From 60bb42d35391855b7ad2bdb047ce1668f20c5199 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Mon, 20 Jul 2026 15:51:26 +0200 Subject: [PATCH 01/14] fix(rest): restore groups field in users overview with bulk computation The groups field was removed from the users overview because User.get_groups() costs O(N) per-user queries (direct groups plus a metagroup scan with two Count annotations each). External API consumers may rely on it, so restore it computed in bulk: prefetch direct groups, fetch parent users and metagroups once, and evaluate metagroup membership in memory with the same semantics as get_groups() (parent fallback, empty metagroup matches everyone, meta_if_any). Cost is now a fixed ~6 queries regardless of user count. Detail endpoint (get_item) is unchanged. Adds test_users_overview_groups asserting overview groups match per-user get_groups() output. Also includes rebuilt admin static artifacts from the gui/admin dashboard branch. --- src/uds/REST/methods/users_groups.py | 59 +++++++- src/uds/static/admin/main.js | 126 +++++++++--------- src/uds/static/admin/translations-fakejs.js | 19 +-- src/uds/templates/uds/admin/index.html | 2 +- tests/REST/methods/users_groups/test_users.py | 18 ++- 5 files changed, 144 insertions(+), 80 deletions(-) diff --git a/src/uds/REST/methods/users_groups.py b/src/uds/REST/methods/users_groups.py index 2f2e1456c..fcc888eb4 100644 --- a/src/uds/REST/methods/users_groups.py +++ b/src/uds/REST/methods/users_groups.py @@ -29,6 +29,7 @@ """ Author: Adolfo Gómez, dkmaster at dkmon dot com """ + import dataclasses import datetime import logging @@ -77,6 +78,41 @@ def get_service_pools_for_groups( yield servicepool +def bulk_groups_of_users(users: list['User'], authenticator: 'Authenticator') -> dict[str, list[str]]: + """ + Bulk equivalent of User.get_groups() for a list of users: direct non-meta groups + (resolved through the parent user, as get_groups does) plus the authenticator + metagroups each user belongs to. + + Note: users must come from a queryset with prefetch_related('groups'), so the + whole computation costs a fixed number of queries (~6, regardless of the number + of users) instead of O(N) per-user ones. + """ + direct: dict[str, list[str]] = {u.uuid: [g.uuid for g in u.groups.all() if not g.is_meta] for u in users} + parents: dict[str, list[str]] = { + u.uuid: [g.uuid for g in u.groups.all() if not g.is_meta] + for u in User.objects.filter(uuid__in={u.parent for u in users if u.parent}).prefetch_related('groups') + } + metagroups = [ + (m.uuid, m.meta_if_any, {g.uuid for g in m.groups.all()}) + for m in authenticator.groups.filter(is_meta=True).prefetch_related('groups') + ] + + result: dict[str, list[str]] = {} + for u in users: + # If the parent is missing, get_groups falls back to the user's own groups + groups = parents.get(u.parent, direct[u.uuid]) if u.parent else direct[u.uuid] + direct_set = set(groups) + result[u.uuid] = groups + [ + meta_uuid + for meta_uuid, meta_if_any, members in metagroups + if not members # Empty metagroup: everyone belongs (0 == 0 on get_groups) + or (meta_if_any and not members.isdisjoint(direct_set)) + or (not meta_if_any and members <= direct_set) + ] + return result + + @dataclasses.dataclass class UserItem(types.rest.BaseRestItem): id: str @@ -115,10 +151,9 @@ def as_user_item(user: 'User') -> UserItem: last_access=user.last_access, mfa_data=user.mfa_data, parent=user.parent, - groups=[i.uuid for i in user.get_groups()], role=user.get_role().as_str(), ) - + @typing.override def apply_sort(self, qs: 'QuerySet[typing.Any]') -> 'list[typing.Any] | QuerySet[typing.Any]': if field_info := self.get_sort_field_info('role'): @@ -137,8 +172,16 @@ def get_item_position(self, parent: 'Model', item_uuid: str) -> int: def get_items(self, parent: 'Model') -> types.rest.ItemsResult[UserItem]: parent = ensure.is_instance(parent, Authenticator) - # Extract authenticator - return [self.as_user_item(i) for i in self.odata_filter(parent.users.all())] + users = self.odata_filter(parent.users.prefetch_related('groups')) + # groups filled in bulk; per-user get_groups() would cost O(N) extra queries + groups_of = bulk_groups_of_users(users, parent) + + items: list[UserItem] = [] + for u in users: + item = self.as_user_item(u) + item.groups = groups_of[u.uuid] + items.append(item) + return items @typing.override def get_item(self, parent: 'Model', item: str) -> UserItem: @@ -220,7 +263,9 @@ def save_item(self, parent: 'Model', item: str | None) -> typing.Any: else: auth.modify_user(fields) # Notifies authenticator user = parent.users.get(uuid=process_uuid(item)) - typing.cast(dict[str, typing.Any], user.__dict__).update(fields) # pyrefly: ignore[redundant-cast] + typing.cast(dict[str, typing.Any], user.__dict__).update( + fields + ) # pyrefly: ignore[redundant-cast] user.save() logger.debug('User parent: %s', user.parent) @@ -488,7 +533,9 @@ def save_item(self, parent: 'Model', item: str | None) -> typing.Any: to_save['skip_mfa'] = fields['skip_mfa'] group = parent.groups.get(uuid=process_uuid(item)) - typing.cast(dict[str, typing.Any], group.__dict__).update(to_save) # pyrefly: ignore[redundant-cast] + typing.cast(dict[str, typing.Any], group.__dict__).update( + to_save + ) # pyrefly: ignore[redundant-cast] if is_meta: # Do not allow to add meta groups to meta groups diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index 5807c391b..65873a7a7 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,8 +1,8 @@ -var g4=Object.defineProperty,_4=Object.defineProperties;var v4=Object.getOwnPropertyDescriptors;var Ff=Object.getOwnPropertySymbols;var LT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var FT=(t,i,e)=>i in t?g4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,q=(t,i)=>{for(var e in i||={})LT.call(i,e)&&FT(t,e,i[e]);if(Ff)for(var e of Ff(i))VT.call(i,e)&&FT(t,e,i[e]);return t},nt=(t,i)=>_4(t,v4(i));var cC=(t,i)=>{var e={};for(var n in t)LT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Ff)for(var n of Ff(t))i.indexOf(n)<0&&VT.call(t,n)&&(e[n]=t[n]);return e};var j=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var _o=null,Lf=!1,dC=1,b4=null,xi=Symbol("SIGNAL");function ut(t){let i=_o;return _o=t,i}function Vf(){return _o}var ul={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ml(t){if(Lf)throw new Error("");if(_o===null)return;_o.consumerOnSignalRead(t);let i=_o.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=_o.recomputing;if(n&&(e=i!==void 0?i.nextProducer:_o.producers,e!==void 0&&e.producer===t)){_o.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===_o&&(!n||C4(o,_o)))return;let r=Zd(_o),a={producer:t,consumer:_o,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};_o.producersTail=a,i!==void 0?i.nextProducer=a:_o.producers=a,r&&UT(t,a)}function BT(){dC++}function gc(t){if(!(Zd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===dC)){if(!t.producerMustRecompute(t)&&!Kd(t)){Qd(t);return}t.producerRecomputeValue(t),Qd(t)}}function uC(t){if(t.consumers===void 0)return;let i=Lf;Lf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||y4(n)}}finally{Lf=i}}function mC(){return _o?.consumerAllowSignalWrites!==!1}function y4(t){t.dirty=!0,uC(t),t.consumerMarkedDirty?.(t)}function Qd(t){t.dirty=!1,t.lastCleanEpoch=dC}function Ss(t){return t&&jT(t),ut(t)}function jT(t){t.producersTail=void 0,t.recomputing=!0}function pl(t,i){ut(i),t&&zT(t)}function zT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Zd(t))do e=pC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Kd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function hl(t){if(Zd(t)){let i=t.producers;for(;i!==void 0;)i=pC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function UT(t,i){let e=t.consumersTail,n=Zd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)UT(o.producer,o)}function pC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Zd(i)){let r=i.producers;for(;r!==void 0;)r=pC(r)}return e}function Zd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Km(t){b4?.(t)}function C4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Zm(t,i){return Object.is(t,i)}function Xm(t,i){let e=Object.create(x4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),ml(e),e.value===Za)throw e.error;return e.value};return n[xi]=e,Km(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Za=Symbol("ERRORED"),x4=nt(q({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Za&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function w4(){throw new Error}var HT=w4;function WT(t){HT(t)}function hC(t){HT=t}var D4=null;function fC(t,i){let e=Object.create(Jm);e.value=t,i!==void 0&&(e.equal=i);let n=()=>$T(e);return n[xi]=e,Km(e),[n,a=>_c(e,a),a=>Bf(e,a)]}function $T(t){return ml(t),t.value}function _c(t,i){mC()||WT(t),t.equal(t.value,i)||(t.value=i,S4(t))}function Bf(t,i){mC()||WT(t),_c(t,i(t.value))}var Jm=nt(q({},ul),{equal:Zm,value:void 0,kind:"signal"});function S4(t){t.version++,BT(),uC(t),D4?.(t)}var gC=nt(q({},ul),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function _C(t){if(t.dirty=!1,t.version>0&&!Kd(t))return;t.version++;let i=Ss(t);try{t.cleanup(),t.fn()}finally{pl(t,i)}}function _t(t){return typeof t=="function"}function fl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var jf=fl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var b4=Object.defineProperty,y4=Object.defineProperties;var C4=Object.getOwnPropertyDescriptors;var Lf=Object.getOwnPropertySymbols;var VT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var LT=(t,i,e)=>i in t?b4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})VT.call(i,e)&<(t,e,i[e]);if(Lf)for(var e of Lf(i))BT.call(i,e)&<(t,e,i[e]);return t},Ze=(t,i)=>y4(t,C4(i));var uC=(t,i)=>{var e={};for(var n in t)VT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Lf)for(var n of Lf(t))i.indexOf(n)<0&&BT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var _o=null,Vf=!1,mC=1,x4=null,xi=Symbol("SIGNAL");function ut(t){let i=_o;return _o=t,i}function Bf(){return _o}var ul={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ml(t){if(Vf)throw new Error("");if(_o===null)return;_o.consumerOnSignalRead(t);let i=_o.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=_o.recomputing;if(n&&(e=i!==void 0?i.nextProducer:_o.producers,e!==void 0&&e.producer===t)){_o.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===_o&&(!n||D4(o,_o)))return;let r=Zd(_o),a={producer:t,consumer:_o,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};_o.producersTail=a,i!==void 0?i.nextProducer=a:_o.producers=a,r&&HT(t,a)}function jT(){mC++}function gc(t){if(!(Zd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Kd(t)){Qd(t);return}t.producerRecomputeValue(t),Qd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Vf;Vf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||w4(n)}}finally{Vf=i}}function hC(){return _o?.consumerAllowSignalWrites!==!1}function w4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Qd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Ss(t){return t&&zT(t),ut(t)}function zT(t){t.producersTail=void 0,t.recomputing=!0}function pl(t,i){ut(i),t&&UT(t)}function UT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Zd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Kd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function hl(t){if(Zd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function HT(t,i){let e=t.consumersTail,n=Zd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)HT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Zd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Zd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Km(t){x4?.(t)}function D4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Zm(t,i){return Object.is(t,i)}function Xm(t,i){let e=Object.create(S4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),ml(e),e.value===Za)throw e.error;return e.value};return n[xi]=e,Km(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Za=Symbol("ERRORED"),S4=Ze(G({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Za&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function E4(){throw new Error}var WT=E4;function $T(t){WT(t)}function gC(t){WT=t}var M4=null;function _C(t,i){let e=Object.create(Jm);e.value=t,i!==void 0&&(e.equal=i);let n=()=>GT(e);return n[xi]=e,Km(e),[n,a=>_c(e,a),a=>jf(e,a)]}function GT(t){return ml(t),t.value}function _c(t,i){hC()||$T(t),t.equal(t.value,i)||(t.value=i,T4(t))}function jf(t,i){hC()||$T(t),_c(t,i(t.value))}var Jm=Ze(G({},ul),{equal:Zm,value:void 0,kind:"signal"});function T4(t){t.version++,jT(),pC(t),M4?.(t)}var vC=Ze(G({},ul),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Kd(t))return;t.version++;let i=Ss(t);try{t.cleanup(),t.fn()}finally{pl(t,i)}}function _t(t){return typeof t=="function"}function fl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var zf=fl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var ze=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof jf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{GT(r)}catch(a){i=i??[],a instanceof jf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new jf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)GT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};ze.EMPTY=(()=>{let t=new ze;return t.closed=!0,t})();var vC=ze.EMPTY;function zf(t){return t instanceof ze||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function GT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xd={setTimeout(t,i,...e){let{delegate:n}=Xd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Xd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Uf(t){Xd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var qT=bC("C",void 0,void 0);function YT(t){return bC("E",void 0,t)}function QT(t){return bC("N",t,void 0)}function bC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function Jd(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function KT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends ze{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,zf(i)&&i.add(this)):this.destination=T4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?CC(QT(i),this):this._next(i)}error(i){this.isStopped?CC(YT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?CC(qT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},E4=Function.prototype.bind;function yC(t,i){return E4.call(t,i)}var xC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){Hf(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){Hf(n)}else Hf(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){Hf(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&yC(i.next,r),error:i.error&&yC(i.error,r),complete:i.complete&&yC(i.complete,r)}):o=i}this.destination=new xC(o)}};function Hf(t){ua.useDeprecatedSynchronousErrorHandling?KT(t):Uf(t)}function M4(t){throw t}function CC(t,i){let{onStoppedNotification:e}=ua;e&&Xd.setTimeout(()=>e(t,i))}var T4={closed:!0,next:bc,error:M4,complete:bc};var eu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function lr(t){return t}function wC(...t){return DC(t)}function DC(t){return t.length===0?lr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=k4(e)?e:new ma(e,n,o);return Jd(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ZT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[eu](){return this}pipe(...e){return DC(e)(this)}toPromise(e){return e=ZT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ZT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function I4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function k4(t){return t&&t instanceof Cc||I4(t)&&zf(t)}function SC(t){return _t(t?.lift)}function kt(t){return i=>{if(SC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new EC(t,i,e,n,o)}var EC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function XT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var ep=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,SC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new ze;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=ze.EMPTY)}return i}refCount(){return XT()(this)}};var tu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=tu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new ze(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=tu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=tu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var JT=fl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Wf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new JT}next(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?vC:(this.currentObservers=null,r.push(e),new ze(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Wf(i,e),t})(),Wf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:vC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var tp={now(){return(tp.delegate||Date).now()},delegate:void 0};var Nr=class extends Z{constructor(i=1/0,e=1/0,n=tp){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;aeI(i)&&t()),i},clearImmediate(t){eI(t)}};var{setImmediate:R4,clearImmediate:O4}=tI,ip={setImmediate(...t){let{delegate:i}=ip;return(i?.setImmediate||R4)(...t)},clearImmediate(t){let{delegate:i}=ip;return(i?.clearImmediate||O4)(t)},delegate:void 0};var Gf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=ip.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(ip.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var nu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};nu.now=tp.now;var _l=class extends nu{constructor(i,e=nu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var qf=class extends _l{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Yf=new qf(Gf);var pa=new _l(gl),nI=pa;var Qf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=tu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(tu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Kf=class extends _l{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Zf=new Kf(Qf);var hi=new dt(t=>t.complete());function Xf(t){return t&&_t(t.schedule)}function IC(t){return t[t.length-1]}function Jf(t){return _t(IC(t))?t.pop():void 0}function Xa(t){return Xf(IC(t))?t.pop():void 0}function iI(t,i){return typeof IC(t)=="number"?t.pop():i}function rI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function oI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function aI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(B,F){r.push([w,P,B,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function sI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof oI=="function"?oI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var iu=t=>t&&typeof t.length=="number"&&typeof t!="function";function eg(t){return _t(t?.then)}function tg(t){return _t(t[eu])}function ng(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function ig(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function P4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var og=P4();function rg(t){return _t(t?.[og])}function ag(t){return aI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function sg(t){return _t(t?.getReader)}function fn(t){if(t instanceof dt)return t;if(t!=null){if(tg(t))return N4(t);if(iu(t))return F4(t);if(eg(t))return L4(t);if(ng(t))return lI(t);if(rg(t))return V4(t);if(sg(t))return B4(t)}throw ig(t)}function N4(t){return new dt(i=>{let e=t[eu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function F4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Uf)})}function V4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function lI(t){return new dt(i=>{j4(t,i).catch(e=>i.error(e))})}function B4(t){return lI(ag(t))}function j4(t,i){var e,n,o,r;return rI(this,void 0,void 0,function*(){try{for(e=sI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function vo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function lg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>vo(n,t,()=>n.next(o),i),()=>vo(n,t,()=>n.complete(),i),o=>vo(n,t,()=>n.error(o),i)))})}function cg(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function cI(t,i){return fn(t).pipe(cg(i),lg(i))}function dI(t,i){return fn(t).pipe(cg(i),lg(i))}function uI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function mI(t,i){return new dt(e=>{let n;return vo(e,i,()=>{n=t[og](),vo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function dg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{vo(e,i,()=>{let n=t[Symbol.asyncIterator]();vo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function pI(t,i){return dg(ag(t),i)}function hI(t,i){if(t!=null){if(tg(t))return cI(t,i);if(iu(t))return uI(t,i);if(eg(t))return dI(t,i);if(ng(t))return dg(t,i);if(rg(t))return mI(t,i);if(sg(t))return pI(t,i)}throw ig(t)}function Hn(t,i){return i?hI(t,i):fn(t)}function Me(...t){let i=Xa(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Es=fl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ug(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Es)}});t.subscribe(r)})}function mg(t){return t instanceof Date&&!isNaN(t)}var z4=fl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function kC(t,i){let{first:e,each:n,with:o=U4,scheduler:r=i??pa,meta:a=null}=mg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=vo(l,r,()=>{try{u.unsubscribe(),fn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function U4(t){throw new z4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:H4}=Array;function W4(t,i){return H4(i)?t(...i):t(i)}function ou(t){return et(i=>W4(t,i))}var{isArray:$4}=Array,{getPrototypeOf:G4,prototype:q4,keys:Y4}=Object;function pg(t){if(t.length===1){let i=t[0];if($4(i))return{args:i,keys:null};if(Q4(i)){let e=Y4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function Q4(t){return t&&typeof t=="object"&&G4(t)===q4}function hg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function bo(...t){let i=Xa(t),e=Jf(t),{args:n,keys:o}=pg(t);if(n.length===0)return Hn([],i);let r=new dt(K4(n,i,o?a=>hg(o,a):lr));return e?r.pipe(ou(e)):r}function K4(t,i,e=lr){return n=>{fI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function fI(t,i,e){t?vo(e,t,i):i()}function gI(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let B=!1;fn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{B=!0},void 0,()=>{if(B)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(fn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>gI(n,o,t,e)))}function vl(t=1/0){return wi(lr,t)}function _I(){return vl(1)}function Ja(...t){return _I()(Hn(t,Xa(t)))}function cr(t){return new dt(i=>{fn(t()).subscribe(i)})}function op(...t){let i=Jf(t),{args:e,keys:n}=pg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?hg(n,s):s),r.complete())}))}});return i?o.pipe(ou(i)):o}var Z4=["addListener","removeListener"],X4=["addEventListener","removeEventListener"],J4=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ou(n));let[o,r]=nz(t)?X4.map(a=>s=>t[a](i,s,e)):ez(t)?Z4.map(vI(t,i)):tz(t)?J4.map(vI(t,i)):[];if(!o&&iu(t))return wi(a=>Sc(a,i,e))(fn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function vI(t,i){return e=>n=>t[e](i,n)}function ez(t){return _t(t.addListener)&&_t(t.removeListener)}function tz(t){return _t(t.on)&&_t(t.off)}function nz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ms(t=0,i,e=nI){let n=-1;return i!=null&&(Xf(i)?e=i:n=i),new dt(o=>{let r=mg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function rp(t=0,i=pa){return t<0&&(t=0),Ms(t,t,i)}function rn(...t){let i=Xa(t),e=iI(t,1/0),n=t;return n.length?n.length===1?fn(n[0]):vl(e)(Hn(n,i)):hi}function Nt(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function bI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||fn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function ru(t,i=pa){return bI(()=>Ms(t,i))}function Io(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=fn(t(a,Io(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function bl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Ts(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function yI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function vn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function CI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function xI(t){return et(()=>t)}function AC(t,i){return i?e=>Ja(i.pipe(vn(1),CI()),e.pipe(AC(t))):wi((e,n)=>fn(t(e,n)).pipe(vn(1),xI(e)))}function ap(t,i=pa){let e=Ms(t,i);return AC(()=>e)}function fg(t,i=lr){return t=t??iz,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function iz(t,i){return t===i}function wI(t=oz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function oz(){return new Es}function yl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Is(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Nt((o,r)=>t(o,r,n)):lr,vn(1),e?yI(i):wI(()=>new Es))}function gg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function _g(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function sp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,B)=>{u++,!g&&!h&&y();let F=l=l??i();B.add(()=>{u--,u===0&&!g&&!h&&(s=RC(S,o))}),F.subscribe(B),!a&&u>0&&(a=new ma({next:G=>F.next(G),error:G=>{g=!0,y(),s=RC(w,e,G),F.error(G)},complete:()=>{h=!0,y(),s=RC(w,n),F.complete()}}),fn(P).subscribe(a))})(r)}}function RC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return fn(i(...e)).subscribe(n)}function vg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,sp({connector:()=>new Nr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return Nt((i,e)=>t<=e)}function ln(...t){let i=Xa(t);return kt((e,n)=>{(i?Ja(t,e,i):Ja(t,e)).subscribe(n)})}function bn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;fn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Ze(t){return kt((i,e)=>{fn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function OC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):lr}var PC;function bg(){return PC}function es(t){let i=PC;return PC=t,i}var DI=Symbol("NotFound");function au(t){return t===DI||t?.name==="\u0275NotFound"}function NC(t,i,e){let n=Object.create(rz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),ml(n),n.value===Za)throw n.error;return n.value};return r[xi]=n,Km(n),r}function SI(t,i){gc(t),_c(t,i),Qd(t)}function EI(t,i){if(gc(t),t.value===Za)throw t.error;Bf(t,i),Qd(t)}var rz=nt(q({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Za,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function MI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Eg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function az(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${az(t)}${i?": "+i:""}`}var Co=globalThis;function An(t){for(let i in t)if(t[i]===An)return i;throw Error("")}function RI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function hp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(hp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function Mg(t,i){return t?i?`${t} ${i}`:t:i||""}var sz=An({__forward_ref__:An});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return YC(t)?t():t}function YC(t){return typeof t=="function"&&t.hasOwnProperty(sz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function fp(t){return lz(t,Tg)}function QC(t){return fp(t)!==null}function lz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function cz(t){let i=t?.[Tg]??null;return i||null}function LC(t){return t&&t.hasOwnProperty(Cg)?t[Cg]:null}var Tg=An({\u0275prov:An}),Cg=An({\u0275inj:An}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function KC(t){return t&&!!t.\u0275providers}var gp=An({\u0275cmp:An}),_p=An({\u0275dir:An}),ZC=An({\u0275pipe:An}),XC=An({\u0275mod:An}),cp=An({\u0275fac:An}),Ac=An({__NG_ELEMENT_ID__:An}),TI=An({__NG_ENV_ID__:An});function JC(t){return kg(t,"@NgModule"),t[XC]||null}function ts(t){return kg(t,"@Component"),t[gp]||null}function Ig(t){return kg(t,"@Directive"),t[_p]||null}function ex(t){return kg(t,"@Pipe"),t[ZC]||null}function kg(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var OI=An({ngErrorCode:An}),dz=An({ngErrorMessage:An}),uz=An({ngTokenPath:An});function tx(t,i){return PI("",-200,i)}function Ag(t,i){throw new ie(-201,!1)}function PI(t,i,e){let n=new ie(i,t);return n[OI]=i,n[dz]=t,e&&(n[uz]=e),n}function mz(t){return t[OI]}var VC;function NI(){return VC}function ko(t){let i=VC;return VC=t,i}function nx(t,i,e){let n=fp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Ag(t,"")}var pz={},Mc=pz,hz="__NG_DI_FLAG__",BC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(au(o))return o;throw o}}};function fz(t,i=0){let e=bg();if(e===void 0)throw new ie(-203,!1);if(e===null)return nx(t,void 0,i);{let n=gz(i),o=e.retrieve(t,n);if(au(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(NI()||fz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function jC(t){let i=[];for(let e=0;eArray.isArray(e)?Rg(e,i):i(e))}function ix(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function vp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function VI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Og(t,i,e){let n=lu(t,i);return n>=0?t[n|1]=e:(n=~n,BI(t,n,i,e)),n}function Pg(t,i){let e=lu(t,i);if(e>=0)return t[e|1]}function lu(t,i){return vz(t,i,1)}function vz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Rg(i,a=>{let s=a;xg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&zI(o,r),e}function zI(t,i){for(let e=0;e{i(r,n)})}}function xg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=LC(t),a=!r&&ts(t);if(!r&&!a){let l=t.ngModule;if(r=LC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)xg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Rg(r.imports,h=>{xg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&zI(u,i)}if(!s){let u=Cl(o)||(()=>new o);i({provide:o,useFactory:u,deps:yo},o),i({provide:rx,useValue:o,multi:!0},o),i({provide:As,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;sx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function sx(t,i){for(let e of t)KC(e)&&(e=e.\u0275providers),Array.isArray(e)?sx(e,i):i(e)}var bz=An({provide:String,useValue:An});function UI(t){return t!==null&&typeof t=="object"&&bz in t}function yz(t){return!!(t&&t.useExisting)}function Cz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function HI(t){return!!t.useClass}var bp=new L(""),yg={},II={},FC;function cu(){return FC===void 0&&(FC=new dp),FC}var yn=class{},kc=class extends yn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,UC(i,a=>this.processProvider(a)),this.records.set(ox,su(void 0,this)),o.has("environment")&&this.records.set(yn,su(void 0,this));let r=this.records.get(bp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(rx,yo,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(au(o))return o;throw o}}destroy(){lp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return lp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){lp(this);let e=es(this),n=ko(void 0),o;try{return i()}finally{es(e),ko(n)}}get(i,e=Mc,n){if(lp(this),i.hasOwnProperty(TI))return i[TI](this);let o=Tc(n),r,a=es(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Ez(i)&&fp(i);h&&this.injectableDefInScope(h)?u=su(zC(i),yg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?cu():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=mz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),es(a)}}resolveInjectorInitializers(){let i=ut(null),e=es(this),n=ko(void 0),o;try{let r=this.get(As,yo,{self:!0});for(let a of r)a()}finally{es(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=wz(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=su(void 0,yg,!0),o.factory=()=>jC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===II)throw tx("");return e.value===yg&&(e.value=II,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Sz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function zC(t){let i=fp(t),e=i!==null?i.factory:Cl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return xz(t);throw new ie(-204,!1)}function xz(t){if(t.length>0)throw new ie(-204,!1);let e=cz(t);return e!==null?()=>e.factory(t):()=>new t}function wz(t){if(UI(t))return su(void 0,t.useValue);{let i=lx(t);return su(i,yg)}}function lx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return Cl(o)||zC(o)}else if(UI(t))n=()=>Bi(t.useValue);else if(Cz(t))n=()=>t.useFactory(...jC(t.deps||[]));else if(yz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Dz(t))n=()=>new o(...jC(t.deps));else return Cl(o)||zC(o)}return n}function lp(t){if(t.destroyed)throw new ie(-205,!1)}function su(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Dz(t){return!!t.deps}function Sz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ez(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function UC(t,i){for(let e of t)Array.isArray(e)?UC(e,i):e&&KC(e)?UC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(lp(t),e=t):e=new BC(t);let n,o=es(e),r=ko(void 0);try{return i()}finally{es(o),ko(r)}}function cx(){return NI()!==void 0||bg()!=null}var va=0,mt=1,Rt=2,ji=3,Fr=4,Ro=5,Rc=6,du=7,Di=8,Rs=9,ba=10,Ln=11,uu=12,dx=13,Oc=14,Oo=15,Sl=16,Pc=17,ns=18,Os=19,ux=20,ks=21,Ng=22,xl=23,dr=24,Nc=25,El=26,si=27,WI=1,mx=6,Ml=7,yp=8,Fc=9,vi=10;function Ps(t){return Array.isArray(t)&&typeof t[WI]=="object"}function ya(t){return Array.isArray(t)&&t[WI]===!0}function px(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function mu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function pu(t){return(t[Rt]&512)!==0}function Lc(t){return(t[Rt]&256)===256}var hx="svg",$I="math";function Lr(t){for(;Array.isArray(t);)t=t[va];return t}function fx(t,i){return Lr(i[t])}function Vr(t,i){return Lr(i[t.index])}function Fg(t,i){return t.data[i]}function Lg(t,i){return t[i]}function gx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Br(t,i){let e=i[t];return Ps(e)?e:e[va]}function GI(t){return(t[Rt]&4)===4}function Vg(t){return(t[Rt]&128)===128}function qI(t){return ya(t[ji])}function ur(t,i){return i==null?null:t[i]}function _x(t){t[Pc]=0}function vx(t){t[Rt]&1024||(t[Rt]|=1024,Vg(t)&&Vc(t))}function YI(t,i){for(;t>0;)i=i[Oc],t--;return i}function Cp(t){return!!(t[Rt]&9216||t[dr]?.dirty)}function Bg(t){t[ba].changeDetectionScheduler?.notify(8),t[Rt]&64&&(t[Rt]|=1024),Cp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=wl(t);for(;i!==null&&!(i[Rt]&8192||(i[Rt]|=8192,!Vg(i)));)i=wl(i)}function bx(t,i){if(Lc(t))throw new ie(911,!1);t[ks]===null&&(t[ks]=[]),t[ks].push(i)}function QI(t,i){if(t[ks]===null)return;let e=t[ks].indexOf(i);e!==-1&&t[ks].splice(e,1)}function wl(t){let i=t[ji];return ya(i)?i[ji]:i}function yx(t){return t[du]??=[]}function Cx(t){return t.cleanup??=[]}function KI(t,i,e,n){let o=yx(i);o.push(e),t.firstCreatePass&&Cx(t).push(n,o.length-1)}var Ht={lFrame:sk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var HC=!1;function ZI(){return Ht.lFrame.elementDepthCount}function XI(){Ht.lFrame.elementDepthCount++}function xx(){Ht.lFrame.elementDepthCount--}function jg(){return Ht.bindingsEnabled}function wx(){return Ht.skipHydrationRootTNode!==null}function Dx(t){return Ht.skipHydrationRootTNode===t}function Sx(){Ht.skipHydrationRootTNode=null}function lt(){return Ht.lFrame.lView}function $n(){return Ht.lFrame.tView}function I(t){return Ht.lFrame.contextLView=t,t[Di]}function k(t){return Ht.lFrame.contextLView=null,t}function ki(){let t=Ex();for(;t!==null&&t.type===64;)t=t.parent;return t}function Ex(){return Ht.lFrame.currentTNode}function JI(){let t=Ht.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function hu(t,i){let e=Ht.lFrame;e.currentTNode=t,e.isParent=i}function Mx(){return Ht.lFrame.isParent}function Tx(){Ht.lFrame.isParent=!1}function ek(){return Ht.lFrame.contextLView}function Ix(){return HC}function up(t){let i=HC;return HC=t,i}function fu(){let t=Ht.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function kx(){return Ht.lFrame.bindingIndex}function tk(t){return Ht.lFrame.bindingIndex=t}function os(){return Ht.lFrame.bindingIndex++}function xp(t){let i=Ht.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function nk(){return Ht.lFrame.inI18n}function ik(t,i){let e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,zg(i)}function ok(){return Ht.lFrame.currentDirectiveIndex}function zg(t){Ht.lFrame.currentDirectiveIndex=t}function rk(t){let i=Ht.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Ug(){return Ht.lFrame.currentQueryIndex}function wp(t){Ht.lFrame.currentQueryIndex=t}function Mz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ax(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Mz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ht.lFrame=ak();return n.currentTNode=i,n.lView=t,!0}function Hg(t){let i=ak(),e=t[mt];Ht.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ak(){let t=Ht.lFrame,i=t===null?null:t.child;return i===null?sk(t):i}function sk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function lk(){let t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Rx=lk;function Wg(){let t=lk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ck(t){return(Ht.lFrame.contextLView=YI(t,Ht.lFrame.contextLView))[Di]}function xa(){return Ht.lFrame.selectedIndex}function Tl(t){Ht.lFrame.selectedIndex=t}function gu(){let t=Ht.lFrame;return Fg(t.tView,t.selectedIndex)}function Gn(){Ht.lFrame.currentNamespace=hx}function wa(){Tz()}function Tz(){Ht.lFrame.currentNamespace=null}function Ox(){return Ht.lFrame.currentNamespace}var dk=!0;function $g(){return dk}function Dp(t){dk=t}function WC(t,i=null,e=null,n){let o=Px(t,i,e,n);return o.resolveInjectorInitializers(),o}function Px(t,i=null,e=null,n,o=new Set){let r=[e||yo,jI(t)],a;return new kc(r,i||cu(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new dp;static create(i,e){if(Array.isArray(i))return WC({name:""},e,i,"");{let n=i.name??"";return WC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ox)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Iz;static __NG_ENV_ID__=e=>e}return t})(),wg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return bx(e,i),()=>QI(e,i)}};function Iz(){return new wg(lt())}var Nx=!1,uk=new L(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(uk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),$C=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,cx()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(rs,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof ze&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=$C;function Dg(...t){}function Fx(t){let i,e;function n(){t=Dg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mk(t){return queueMicrotask(()=>t()),()=>{t=Dg}}var Lx="isAngularZone",mp=Lx+"_ID",kz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Nx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Oz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Lx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Az,Dg,Dg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Az={};function Vx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Rz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Fx(()=>{t.callbackScheduled=!1,GC(t),t.isCheckStableRunning=!0,Vx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),GC(t)}function Oz(t){let i=()=>{Rz(t)},e=kz++;t._inner=t._inner.fork({name:"angular",properties:{[Lx]:!0,[mp]:e,[mp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Pz(l))return n.invokeTask(r,a,s,l);try{return kI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),AI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return kI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Nz(l)&&i(),AI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,GC(t),Vx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function GC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function kI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AI(t){t._nesting--,Vx(t)}var pp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Pz(t){return pk(t,"__ignore_ng_zone__")}function Nz(t){return pk(t,"__scheduler_tick__")}function pk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(yn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),hk={provide:As,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=fC(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Gg.bind(r),r}function Gg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var _u=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Fz}return t})();function Fz(){return new _u(lt(),ki())}var ha=class{},vu=new L("",{factory:()=>!0});var qg=new L(""),bu=(()=>{class t{internalPendingTasks=p(rs);scheduler=p(ha);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Yg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new qC})}return t})(),qC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Sg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Ns(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(_u,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Bz(r.view,a,t),n instanceof wg&&n._lView===r.view&&(n=null)):o=jz(t,e.get(Yg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Sg(o)}var fk=nt(q({},gC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=up(!1);try{_C(this)}finally{up(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),Lz=nt(q({},fk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Vz=nt(q({},fk),{consumerMarkedDirty(){this.view[Rt]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[xl]?.delete(this)}});function Bz(t,i,e){let n=Object.create(Vz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=gk(n,e),t[xl]??=new Set,t[xl].add(n),n.consumerMarkedDirty(n),n}function jz(t,i,e){let n=Object.create(Lz);return n.fn=gk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function gk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Np(t){return{toString:t}.toString()}function Xk(t){let i=Co.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function qz(t){return typeof t=="function"}function Jk(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var r_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},yt=(()=>{let t=()=>eA;return t.ngInherit=!0,t})();function eA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Qz),Yz}function Yz(){let t=nA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Qz(t,i,e,n,o){let r=this.declaredInputs[n],a=nA(t)||Kz(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new r_(u&&u.currentValue,e,l===_a),Jk(t,i,o,e)}var tA="__ngSimpleChanges__";function nA(t){return t[tA]||null}function Kz(t,i){return t[tA]=i}var _k=[];var Un=function(t,i=null,e){for(let n=0;n<_k.length;n++){let o=_k[n];o(t,i,e)}},Dn=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Dn||{});function Zz(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=eA(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}function iA(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Rt]&3)===i&&(t[Rt]+=16384,vk(s,r)):vk(s,r)}var Cu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function Jz(t){return(t.flags&8)!==0}function eU(t){return(t.flags&16)!==0}function tU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function s_(t,i){let e=iU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Qx=!0;function l_(t){let i=Qx;return Qx=t,i}var oU=256,sA=oU-1,lA=5,rU=0,as={};function aU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=rU++);let o=n&sA,r=1<>lA)]|=r}function c_(t,i){let e=cA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,jx(n.data,t),jx(i,null),jx(n.blueprint,null));let o=Pw(t,i),r=t.injectorIndex;if(aA(o)){let a=a_(o),s=s_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function jx(t,i){t.push(0,0,0,0,0,0,0,0,i)}function cA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Pw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hA(o),n===null)return Cu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Cu}function Kx(t,i,e){aU(t,i,e)}function sU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Tp(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw tx("");let l=l_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ax(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&Zz(e,a[e],i)}finally{g!==null&&ko(g),l_(l),s.resolving=!1,Rx()}}return r}function cU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&sA:dU:i}function yk(t,i,e){let n=1<>lA)]&n)}function Ck(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return mA(this._tNode,this._lView,i,Tc(n),e)}};function dU(){return new Bc(ki(),lt())}function Kt(t){return Np(()=>{let i=t.prototype.constructor,e=i[cp]||Zx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[cp]||Zx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Zx(t){return YC(t)?()=>{let i=Zx(Bi(t));return i&&i()}:Cl(t)}function uU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Rt]&2048&&!pu(a);){let s=pA(r,a,e,n|2,as);if(s!==as)return s;let l=r.parent;if(!l){let u=a[ux];if(u){let h=u.get(e,as,n&-5);if(h!==as)return h}l=hA(a),a=a[Oc]}r=l}return o}function hA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Fp(t){return sU(ki(),t)}function mU(){return Mu(ki(),lt())}function Mu(t,i){return new se(Vr(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=mU}return t})();function fA(t){return t instanceof se?t.nativeElement:t}function pU(){return this._results[Symbol.iterator]()}var mr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=LI(i);(this._changesDetected=!FI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=pU};function gA(t){return(t.flags&128)===128}var Nw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Nw||{}),_A=new Map,hU=0;function fU(){return hU++}function gU(t){_A.set(t[Os],t)}function Xx(t){_A.delete(t[Os])}var xk="__ngContext__";function wu(t,i){Ps(i)?(t[xk]=i[Os],gU(i)):t[xk]=i}function vA(t){return yA(t[uu])}function bA(t){return yA(t[Fr])}function yA(t){for(;t!==null&&!ya(t);)t=t[Fr];return t}var Jx;function Fw(t){Jx=t}function CA(){if(Jx!==void 0)return Jx;if(typeof document<"u")return document;throw new ie(210,!1)}var Al=new L("",{factory:()=>_U}),_U="ng";var x_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Rl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var wA="di";var Lw=new L(""),DA=!1,SA=new L("",{factory:()=>DA});var w_=new L("");var wk=new WeakMap;function vU(t,i){if(t==null||typeof t!="object")return;let e=wk.get(t);e||(e=new WeakSet,wk.set(t,e)),e.add(i)}var bU=(t,i,e,n)=>{};function yU(t,i,e,n){bU(t,i,e,n)}function D_(t){return(t.flags&32)===32}var CU=()=>null;function EA(t,i,e=!1){return CU(t,i,e)}function MA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Qg}function S_(t){return xU()?.createHTML(t)||t}var Kg;function TA(){if(Kg===void 0&&(Kg=null,Co.trustedTypes))try{Kg=Co.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Kg}function Dk(t){return TA()?.createHTML(t)||t}function Sk(t){return TA()?.createScriptURL(t)||t}var Fs=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Eg})`}},tw=class extends Fs{getTypeName(){return"HTML"}},nw=class extends Fs{getTypeName(){return"Style"}},iw=class extends Fs{getTypeName(){return"Script"}},ow=class extends Fs{getTypeName(){return"URL"}},rw=class extends Fs{getTypeName(){return"ResourceURL"}};function pr(t){return t instanceof Fs?t.changingThisBreaksApplicationSecurity:t}function ls(t,i){let e=IA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Eg})`)}return e===i}function IA(t){return t instanceof Fs&&t.getTypeName()||null}function Bw(t){return new tw(t)}function jw(t){return new nw(t)}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function wU(t){let i=new sw(t);return DU()?new aw(i):i}var aw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(S_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},sw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=S_(i),e}};function DU(){try{return!!new window.DOMParser().parseFromString(S_(""),"text/html")}catch(t){return!1}}var SU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lp(t){return t=String(t),t.match(SU)?t:"unsafe:"+t}function Ls(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Vp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var kA=Ls("area,br,col,hr,img,wbr"),AA=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RA=Ls("rp,rt"),EU=Vp(RA,AA),MU=Vp(AA,Ls("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")),TU=Vp(RA,Ls("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")),Ek=Vp(kA,MU,TU,EU),OA=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),IU=Ls("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"),kU=Ls("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"),AU=Vp(OA,IU,kU),RU=Ls("script,style,template"),lw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=NU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=PU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Mk(i).toLowerCase();if(!Ek.hasOwnProperty(e))return this.sanitizedSomething=!0,!RU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Mk(i).toLowerCase();Ek.hasOwnProperty(e)&&!kA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Tk(i))}};function OU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function PU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw PA(i);return i}function NU(t){let i=t.firstChild;if(i&&OU(t,i))throw PA(i);return i}function Mk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function PA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var FU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LU=/([^\#-~ |!])/g;function Tk(t){return t.replace(/&/g,"&").replace(FU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(LU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Zg;function E_(t,i){let e=null;try{Zg=Zg||wU(t);let n=i?String(i):"";e=Zg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Zg.getInertBodyElement(n)}while(n!==r);let s=new lw().sanitizeChildren(Ik(e)||e);return S_(s)}finally{if(e){let n=Ik(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ik(t){return"content"in t&&VU(t)?t.content:null}function VU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var BU=/^>|^->||--!>|)/g,zU="\u200B$1\u200B";function UU(t){return t.replace(BU,i=>i.replace(jU,zU))}function HU(t,i){return t.createText(i)}function WU(t,i,e){t.setValue(i,e)}function $U(t,i){return t.createComment(UU(i))}function NA(t,i,e){return t.createElement(i,e)}function d_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function FA(t,i,e){t.appendChild(i,e)}function kk(t,i,e,n,o){n!==null?d_(t,i,e,n,o):FA(t,i,e)}function LA(t,i,e,n){t.removeChild(null,i,e,n)}function GU(t,i,e){t.setAttribute(i,"style",e)}function qU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function VA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&tU(t,i,n),o!==null&&qU(t,i,o),r!==null&&GU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Vn(t){let i=$w();return i?Dk(i.sanitize(Ai.HTML,t)||""):ls(t,"HTML")?Dk(pr(t)):E_(CA(),ga(t))}function qe(t){let i=$w();return i?i.sanitize(Ai.URL,t)||"":ls(t,"URL")?pr(t):Lp(ga(t))}function BA(t){let i=$w();if(i)return Sk(i.sanitize(Ai.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return Sk(pr(t));throw new ie(904,!1)}var YU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function QU(t,i){return YU[t.toLowerCase()]?.[i.toLowerCase()]===!0?BA:qe}function Ww(t,i,e){return QU(i,e)(t)}function $w(){let t=lt();return t&&t[ba].sanitizer}function Gw(t){return t.ownerDocument.defaultView}function qw(t){return t.ownerDocument}function jA(t){return t instanceof Function?t():t}function KU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var zA="ng-template";function ZU(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function eH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Ak(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Ak(r,o)),i}function aH(t){return t.map(rH).join(",")}function sH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Sp.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function pH(t,i){let e=dw.get(t);e?e.includes(i)||e.push(i):dw.set(t,[i])}var zc=new Set,T_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(T_||{}),Ta=new L(""),Rk=new Set;function jr(t){Rk.has(t)||(Rk.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var I_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Jw=[0,1,2,3],eD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Dn.AfterRenderHooksStart),this.executing=!0;for(let n of Jw)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Dn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Rt]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(T_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ip=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return jr("NgAfterNextRender"),fH(t,e,i,!0)}function hH(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function fH(t,i,e,n){let o=i.get(I_);o.impl??=i.get(eD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(_u,null,{optional:!0}),l=new Ip(o.impl,hH(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var GA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(yn)})});function qA(t,i,e){let n=t.get(GA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function gH(t,i){let e=t.get(GA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function _H(t,i){for(let[e,n]of i)qA(t,n.animateFns)}function Ok(t,i,e,n){let o=t?.[El]?.enter;i!==null&&o&&o.has(e.index)&&_H(n,o)}function yu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ps(o)&&(u=!0,o=o[va]);let h=Lr(o);t===0&&n!==null?(Ok(s,n,r,e),a==null?FA(i,n,h):d_(i,n,h,a||null,!0)):t===1&&n!==null?(Ok(s,n,r,e),d_(i,n,h,a||null,!0),mH(r,h)):t===2?(s?.[El]?.leave?.has(r.index)&&pH(r,h),Sp.delete(h),Pk(s,r,e,g=>{if(Sp.has(h)){Sp.delete(h);return}LA(i,h,u,g)})):t===3&&(Sp.delete(h),Pk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&TH(i,t,e,l,r,n,a)}}function vH(t,i){YA(t,i),i[va]=null,i[Ro]=null}function bH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,A_(t,n,e,1,o,r)}function YA(t,i){i[ba].changeDetectionScheduler?.notify(9),A_(t,i,i[Ln],2,null,null)}function yH(t){let i=t[uu];if(!i)return zx(t[mt],t);for(;i;){let e=null;if(Ps(i))e=i[uu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[Fr]&&i!==t;)Ps(i)&&zx(i[mt],i),i=i[ji];i===null&&(i=t),Ps(i)&&zx(i[mt],i),e=i&&i[Fr]}i=e}}function tD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function k_(t,i){if(Lc(i))return;let e=i[Ln];e.destroyNode&&A_(t,i,e,3,null,null),yH(i)}function zx(t,i){if(Lc(i))return;let e=ut(null);try{i[Rt]&=-129,i[Rt]|=256,i[dr]&&hl(i[dr]),wH(t,i),xH(t,i),i[mt].type===1&&i[Ln].destroy();let n=i[Sl];if(n!==null&&ya(i[ji])){n!==i[ji]&&tD(n,i);let o=i[ns];o!==null&&o.detachView(t)}Xx(i)}finally{ut(e)}}function Pk(t,i,e,n){let o=t?.[El];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Os]),qA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[El].running=void 0,zc.delete(t[Os]),i(!0)});return}i(!1)}function xH(t,i){let e=t.cleanup,n=i[du];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[du]=null);let o=i[ks];if(o!==null){i[ks]=null;for(let a=0;asi&&$A(t,i,si,!1);let s=a?Dn.TemplateUpdateStart:Dn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Tl(r);let s=a?Dn.TemplateUpdateEnd:Dn.TemplateCreateEnd;Un(s,o,e)}}function R_(t,i,e){PH(t,i,e),(e.flags&64)===64&&NH(t,i,e)}function Bp(t,i,e=Vr){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function OH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function eR(t,i,e,n,o,r){let a=i[mt];if(O_(t,a,i,e,n)){is(t)&&nR(i,t.index);return}t.type&3&&(e=OH(e)),tR(t,i,e,n,o,r)}function tR(t,i,e,n,o,r){if(t.type&3){let a=Vr(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function nR(t,i){let e=Br(i,t);e[Rt]&16||(e[Rt]|=64)}function PH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;is(e)&&dH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||c_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[dr]=this}});function qH(t){let i=t[dr]??Object.create(YH);return i.lView=t,i}var YH=nt(q({},ul),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=wl(t.lView);for(;i&&!sR(i[mt]);)i=wl(i);i&&vx(i)},consumerOnSignalRead(){this.lView[dr]=this}});function sR(t){return t.type!==2}function lR(t){if(t[xl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[xl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Rt]&8192)}}var QH=100;function cR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{KH(t,i)}finally{o||n.end?.()}}function KH(t,i){let e=Ix();try{up(!0),mw(t,i);let n=0;for(;Cp(t);){if(n===QH)throw new ie(103,!1);n++,mw(t,1)}}finally{up(e)}}function ZH(t,i,e,n){if(Lc(i))return;let o=i[Rt],r=!1,a=!1;Hg(i);let s=!0,l=null,u=null;r||(sR(t)?(u=HH(i),l=Ss(u)):Vf()===null?(s=!1,u=qH(i),l=Ss(u)):i[dr]&&(hl(i[dr]),i[dr]=null));try{_x(i),tk(t.bindingStartIndex),e!==null&&JA(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&e_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&t_(i,w,0,null),Bx(i,0)}if(a||XH(i),lR(i),dR(i,0),t.contentQueries!==null&&MA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&e_(i,w)}else{let w=t.contentHooks;w!==null&&t_(i,w,1),Bx(i,1)}e5(t,i);let g=t.components;g!==null&&mR(i,g,0);let y=t.viewQuery;if(y!==null&&ew(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&e_(i,w)}else{let w=t.viewHooks;w!==null&&t_(i,w,2),Bx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Ng]){for(let w of i[Ng])w();i[Ng]=null}r||(rR(i),i[Rt]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(pl(u,l),s&&$H(u)),Wg()}}function dR(t,i){for(let e=vA(t);e!==null;e=bA(e))for(let n=vi;n0&&(t[e-1][Fr]=n[Fr]);let r=vp(t,vi+i);vH(n[mt],n);let a=r[ns];a!==null&&a.detachView(r[mt]),n[ji]=null,n[Fr]=null,n[Rt]&=-129}return n}function t5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][Fr]=i),n-1&&(Ap(i,n),vp(e,n))}this._attachedToViewContainer=!1}k_(this._lView[mt],this._lView)}onDestroy(i){bx(this._lView,i)}markForCheck(){lD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Rt]&=-129}reattach(){Bg(this._lView),this._lView[Rt]|=128}detectChanges(){this._lView[Rt]|=1024,cR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=pu(this._lView),e=this._lView[Sl];e!==null&&!i&&tD(e,this._lView),YA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=pu(this._lView),n=this._lView[Sl];n!==null&&!e&&gR(n,this._lView),Bg(this._lView)}};var un=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=n5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=jp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Il(r)}}return t})();function n5(){return P_(ki(),lt())}function P_(t,i){return t.type&4?new un(i,t,Mu(t,i)):null}function Tu(t,i,e,n,o){let r=t.data[i];if(r===null)r=i5(t,i,e,n,o),nk()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=JI();r.injectorIndex=a===null?-1:a.injectorIndex}return hu(r,!0),r}function i5(t,i,e,n,o){let r=Ex(),a=Mx(),s=a?r:r&&r.parent,l=t.data[i]=r5(t,s,e,i,n,o);return o5(t,l,r,a),l}function o5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function r5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return wx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Ox(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function a5(t){let i=t[mx]??[],n=t[ji][Ln],o=[];for(let r of i)r.data[wA]!==void 0?o.push(r):s5(r,n);t[mx]=o}function s5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,c5=()=>null;function u_(t,i){return l5(t,i)}function _R(t,i,e){return c5(t,i,e)}var vR=class{},N_=class{},pw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Up=class{static NULL=new pw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>d5()}return t})();function d5(){let t=lt(),i=ki(),e=Br(i.index,t);return(Ps(e)?e:t)[Ln]}var bR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var i_={},hw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,i_,n);return o!==i_||e===i_?o:this.parentInjector.get(i,e,n)}};function m_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function v5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(Lr(P[t.index])):t.index;DR(S,i,e,r,s,w,!1)}}return u}function w5(t){return t.startsWith("animation")||t.startsWith("transition")}function D5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function DR(t,i,e,n,o,r,a){let s=i.firstCreatePass?Cx(i):null,l=yx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function jk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);DR(t.index,s,i,o,r,g,!0)}var fw=Symbol("BINDING");function SR(t){return t.debugInfo?.className||t.type.name||null}var p_=class extends Up{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ts(i);return new kl(e,this.ngModule)}};function S5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&M_.SignalBased)!==0};return o&&(r.transform=o),r})}function E5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function M5(t,i,e){let n=i instanceof yn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new hw(e,n):e}function T5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(bR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function I5(t,i){let e=ER(t);return NA(i,e,e==="svg"?hx:e==="math"?$I:null)}function ER(t){return(t.selectors[0][0]||"div").toLowerCase()}var kl=class extends N_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=S5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=E5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=aH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Dn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=M5(l,o||this.ngModule,i),h=T5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(SR(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=k5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?kH(u,o,s.encapsulation,e):I5(s,u),g=a?.some(zk)||r?.some(S=>typeof S!="function"&&S.bindings.some(zk)),y=Kw(null,l,null,512|HA(s),null,null,i,u,e,null,EA(h,e,!0));y[si]=h,Hg(y);let w=null;try{let S=cD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);VA(u,h,S),wu(h,y),R_(l,y,S),Vw(l,S,y),dD(l,S),n!==void 0&&R5(S,this.ngContentSelectors,n),w=Br(S.index,y),y[Di]=w[Di],sD(l,y,null)}catch(S){throw w!==null&&Xx(w),Xx(y),S}finally{Un(Dn.DynamicComponentEnd),Wg()}return new h_(this.componentType,y,!!g)}};function k5(t,i,e,n){let o=t?["ng-version","21.2.17"]:sH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[fw].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function zk(t){let i=t[fw].kind;return i==="input"||i==="twoWay"}var h_=class extends vR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Fg(e[mt],si),this.location=Mu(this._tNode,e),this.instance=Br(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Il(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=O_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Br(n.index,o);lD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function R5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=O5}return t})();function O5(){let t=ki();return MR(t,lt())}var gw=class t extends Sn{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Mu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Pw(this._hostTNode,this._hostLView);if(aA(i)){let e=s_(i,this._hostLView),n=a_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Uk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=u_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Du(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!qz(i),u;if(l)u=e;else{let B=e||{};u=B.index,n=B.injector,o=B.projectableNodes,r=B.environmentInjector||B.ngModuleRef,a=B.directives,s=B.bindings}let h=l?i:new kl(ts(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(yn,null);F&&(r=F)}let y=ts(h.componentType??{}),w=u_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Du(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(qI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return zp(a,o,r,n),i.attachToViewContainerRef(),ix(Ux(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Uk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);n&&(vp(Ux(this._lContainer),e),k_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);return n&&vp(Ux(this._lContainer),e)!=null?new Il(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Uk(t){return t[yp]}function Ux(t){return t[yp]||(t[yp]=[])}function MR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=pR(n,i,null,t),i[t.index]=e,Zw(i,e)),N5(e,i,t,n),new gw(e,t,i)}function P5(t,i){let e=t[Ln],n=e.createComment(""),o=Vr(i,t),r=e.parentNode(o);return d_(e,r,n,e.nextSibling(o),!1),n}var N5=V5,F5=()=>!1;function L5(t,i,e){return F5(t,i,e)}function V5(t,i,e,n){if(t[Ml])return;let o;e.type&8?o=Lr(n):o=P5(i,e),t[Ml]=o}var _w=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},vw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function RR(t,i,e){t.queries===null&&(t.queries=new bw),t.queries.track(new yw(i,e))}function W5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function fD(t,i){return t.queries.getByIndex(i)}function OR(t,i){let e=t[mt],n=fD(e,i);return n.crossesNgTemplate?Cw(e,t,i,[]):TR(e,t,n,i)}function PR(t,i,e){let n,o=Xm(()=>{n._dirtyCounter();let r=$5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function gD(t){return PR(!0,!1,t)}function _D(t){return PR(!0,!0,t)}function NR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=hD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function $5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Rt]&4)return i?void 0:yo;let o=hD(e,n),r=OR(e,n);return o.reset(r,fA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var xw=new Map,G5=new Set;function vD(t){return j(this,null,function*(){let i=xw;xw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>q5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>j(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),G5.delete(r)}));yield Promise.all(o)})}function FR(){return xw.size===0}function q5(t,i){return j(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ss=class{},L_=class{};var Rp=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new p_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=JC(i);this._bootstrapComponents=jA(r.bootstrap),this._r3Injector=Px(i,e,[{provide:ss,useValue:this},{provide:Up,useValue:this.componentFactoryResolver},...n],hp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Op=class extends L_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Rp(this.moduleType,i,[])}};function LR(t,i,e){return new Rp(t,i,e,!1)}var g_=class extends ss{injector;componentFactoryResolver=new p_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ss,useValue:this},{provide:Up,useValue:this.componentFactoryResolver}],i.parent||cu(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Iu(t,i,e=null){return new g_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Y5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ax(!1,e.type),o=n.length>0?Iu([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(yn))})}return t})();function T(t){return Np(()=>{let i=BR(t),e=nt(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Nw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(Y5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||yo,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&jr("NgStandalone"),jR(e);let n=t.dependencies;return e.directiveDefs=__(n,VR),e.pipeDefs=__(n,ex),e.id=Z5(e),e})}function VR(t){return ts(t)||Ig(t)}function ue(t){return Np(()=>({type:t.type,bootstrap:t.bootstrap||yo,declarations:t.declarations||yo,imports:t.imports||yo,exports:t.exports||yo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Q5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=M_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function K5(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Np(()=>{let i=BR(t);return jR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||yo,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:Q5(t.inputs,i),outputs:K5(t.outputs),debugInfo:null}}function jR(t){t.features?.forEach(i=>i(t))}function __(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function Z5(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function bD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=X5,e.hostDirectives=n?t.map(ww):[t]):n?e.hostDirectives.unshift(...t.map(ww)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function X5(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=xu(o.hostAttrs,e=xu(e,o.hostAttrs))}}function Hx(t){return t===_a?{}:t===yo?[]:t}function i8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function o8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function r8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function UR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=xu(t.mergedAttrs,t.attrs);let h=t.tView=Qw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),hu(t,!1);let l=s8(e,i,t,n);$g()&&nD(e,i,l,t),wu(l,i);let u=pR(l,i,l,t);i[n+si]=u,Zw(i,u),L5(u,t,i)}function a8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Tu(i,g,4,a||null,s||null),jg()&&yR(i,t,y,ur(i.consts,u),oD),iA(i,y)):y=i.data[g],UR(y,t,i,e,n,o,r,l),mu(y)&&R_(i,t,y),u!=null&&Bp(t,y,h),y}function Su(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Tu(i,g,4,a||null,s||null),u!=null){let w=ur(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function cs(t){return typeof t=="function"&&t[xi]!==void 0}function yD(t){return cs(t)&&typeof t.set=="function"}var B_=new L(""),j_=new L(""),Hp=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,cx()&&(this._destroyRef=p(xo,{optional:!0})??void 0),CD||(WR(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(HR),we(j_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),HR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return CD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function WR(t){CD=t}var CD;function Bs(t){return!!t&&typeof t.then=="function"}function z_(t){return!!t&&typeof t.subscribe=="function"}var xD=new L("");function U_(t){return Dl([{provide:xD,multi:!0,useValue:t}])}var wD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(xD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(Bs(r))e.push(r);else if(z_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),H_=new L("");function $R(){hC(()=>{let t="";throw new ie(600,t)})}function GR(t){return t.isBoundToModule}var c8=10;function DD(t,i){return Array.isArray(i)?i.reduce(DD,t):q(q({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(I_);zonelessEnabled=p(vu);rootEffectScheduler=p(Yg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(yn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Dn.BootstrapComponentStart);let a=e instanceof N_;if(!this._injector.get(wD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Up).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=GR(l)?void 0:this._injector.get(ss),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(B_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Mp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Dn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Dn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(T_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Dn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Dn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Cp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Mp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(H_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Mp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function ku(t,i){let e=lt(),n=os();if(Po(e,n,i)){let o=$n(),r=gu();if(O_(r,o,e,t,i))is(r)&&nR(e,r.index);else{let s=Vr(r,e);iR(e[Ln],s,null,r.value,t,i,null)}}return ku}function he(t,i,e,n){let o=lt(),r=os();if(Po(o,r,i)){let a=$n(),s=gu();LH(s,o,t,i,e,n)}return he}var Dw=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Wx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function d8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Wx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Wx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let B=e(a,h),F=e(s,w),G=e(a,g);if(Object.is(G,F)){let ve=e(u,S);Object.is(ve,B)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new v_,r??=Gk(t,a,s,e),Sw(t,o,a,G))t.updateValue(a,g),a++,s++;else if(r.has(G))o.set(B,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)$k(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Wx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new v_,r??=Gk(t,a,s,e);let S=e(a,y);if(Sw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)$k(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Sw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function $k(t,i,e,n,o){if(Sw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Gk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var v_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){jr("NgControlFlow");let l=lt(),u=$n(),h=ur(u.consts,r);return Su(l,u,t,i,e,n,o,h,256,a,s),SD}function SD(t,i,e,n,o,r,a,s){jr("NgControlFlow");let l=lt(),u=$n(),h=ur(u.consts,r);return Su(l,u,t,i,e,n,o,h,512,a,s),SD}function R(t,i){jr("NgControlFlow");let e=lt(),n=os(),o=e[n]!==ao?e[n]:-1,r=o!==-1?b_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&fR(r,a),t!==-1){let l=si+t,u=b_(e,l),h=Iw(e[mt],l),g=_R(u,h,e),y=jp(e,h,i,{dehydratedView:g});zp(u,y,a,Du(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=hR(r,a);s!==void 0&&(s[Di]=i)}}var Ew=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Mw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){jr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,B=lt(),F=s?a.bind(B[Oo][Di]):a,G=new Mw(P,F);B[si+t]=G,Su(w,S,t+1,i,e,n,o,ur(S.consts,r),256),P&&Su(w,S,t+2,l,u,h,g,ur(S.consts,y),512)}var Tw=class extends Dw{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,zp(this.lContainer,e,i,Du(this.templateTNode,n)),u8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,m8(this.lContainer,i),p8(this.lContainer,i)}create(i,e){let n=u_(this.lContainer,this.templateTNode.tView.ssrId);return jp(this.hostLView,this.templateTNode,new Ew(this.lContainer,e,i),{dehydratedView:n})}destroy(i){k_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Rs];gH(r,o),zc.delete(n[Os]),o.detachedLeaveAnimationFns=void 0}}function m8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[El]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function p8(t,i){return Ap(t,i)}function h8(t,i){return hR(t,i)}function Iw(t,i){return Fg(t,i)}function b(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();eR(a,n,t,i,n[Ln],e)}return b}function kw(t,i,e,n,o){O_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?cD(a,o,2,i,oD,jg(),e,n):r.data[a];if(is(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(SR(u),()=>(qk(t,i,o,s,n),c))}}return qk(t,i,o,s,n),c}function qk(t,i,e,n,o){if(rD(n,e,t,i,qR),mu(n)){let r=e[mt];R_(r,e,n),Vw(r,n,e)}o!=null&&Bp(e,n)}function d(){let t=$n(),i=ki(),e=aD(i);return t.firstCreatePass&&dD(t,e),Dx(e)&&Sx(),xx(),e.classesWithoutHost!=null&&Jz(e)&&kw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&eU(e)&&kw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function cn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?y5(a,r,2,i,e,n):r.data[a];return rD(s,o,t,i,qR),n!=null&&Bp(o,s),cn}function mn(){let t=ki(),i=aD(t);return Dx(i)&&Sx(),xx(),mn}function uo(t,i,e,n){return cn(t,i,e,n),mn(),uo}var qR=(t,i,e,n,o)=>(Dp(!0),NA(i[Ln],n,Ox()));function ds(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?cD(r,n,8,"ng-container",oD,jg(),i,e):o.data[r];if(rD(a,n,t,"ng-container",f8),mu(a)){let s=n[mt];R_(s,n,a),Vw(s,a,n)}return e!=null&&Bp(n,a),ds}function us(){let t=$n(),i=ki(),e=aD(i);return t.firstCreatePass&&dD(t,e),us}function Ri(t,i,e){return ds(t,i,e),us(),Ri}var f8=(t,i,e,n,o)=>(Dp(!0),$U(i[Ln],""));function W(){return lt()}function Rn(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();tR(a,n,t,i,n[Ln],e)}return Rn}var Wp="en-US";var g8=Wp;function YR(t){typeof t=="string"&&(g8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return QR(o,n,n[Ln],r,t,i,e),x}function Ol(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&wR(r,o,n,e,n[Ln],t,i,o_(r,n,i)),Ol}function QR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=o_(n,i,r),wR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function b8(t){return(t&2)==2}function y8(t,i){return t&131071|i<<17}function Aw(t){return t|2}function Eu(t){return(t&131068)>>2}function $x(t,i){return t&-131069|i<<2}function C8(t){return(t&1)===1}function Rw(t){return t|1}function x8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Eu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||lu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=Xg(y,s),y!==0&&(t[y+1]=$x(t[y+1],n)),t[s+1]=y8(t[s+1],n)}else t[n+1]=Xg(s,0),s!==0&&(t[s+1]=$x(t[s+1],n)),s=n;else t[n+1]=Xg(l,0),s===0?s=n:t[l+1]=$x(t[l+1],n),l=n;u&&(t[n+1]=Aw(t[n+1])),Yk(t,h,n,!0),Yk(t,h,n,!1),w8(i,h,t,n,r),a=Xg(s,l),r?i.classBindings=a:i.styleBindings=a}function w8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&lu(r,i)>=0&&(e[n+1]=Rw(e[n+1]))}function Yk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Eu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];D8(l,i)&&(s=!0,t[a+1]=n?Rw(u):Aw(u)),a=n?Uc(u):Eu(u)}s&&(t[e+1]=n?Aw(o):Rw(o))}function D8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?lu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function S8(t){return t.substring(Sa.key,Sa.keyEnd)}function E8(t){return M8(t),KR(t,ZR(t,0,Sa.textEnd))}function KR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=T8(t,Sa.key=i,e),ZR(t,i,e))}function M8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function ZR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return XR(t,i,e,!1),Si}function le(t,i){return XR(t,i,null,!0),le}function Mn(t){k8(F8,I8,t,!0)}function I8(t,i){for(let e=E8(i);e>=0;e=KR(i,e))Og(t,S8(i),!0)}function XR(t,i,e,n){let o=lt(),r=$n(),a=xp(2);if(r.firstUpdatePass&&eO(r,t,a,n),i!==ao&&Po(o,a,i)){let s=r.data[xa()];tO(r,s,o,o[Ln],t,o[a+1]=V8(i,e),n,a)}}function k8(t,i,e,n){let o=$n(),r=xp(2);o.firstUpdatePass&&eO(o,null,r,n);let a=lt();if(e!==ao&&Po(a,r,e)){let s=o.data[xa()];if(nO(s,n)&&!JR(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Mg(l,e||"")),kw(o,s,a,e,n)}else L8(o,s,a,a[Ln],a[r+1],a[r+1]=N8(t,i,e),n,r)}}function JR(t,i){return i>=t.expandoStartIndex}function eO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=JR(t,e);nO(r,n)&&i===null&&!a&&(i=!1),i=A8(o,r,i,n),x8(o,r,i,e,a,n)}}function A8(t,i,e,n){let o=rk(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Gx(null,t,i,e,n),e=Pp(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Gx(o,t,i,e,n),r===null){let l=R8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Gx(null,t,i,l[1],n),l=Pp(l,i.attrs,n),O8(t,i,n,l))}else r=P8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function R8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Eu(n)!==0)return t[Uc(n)]}function O8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function P8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===ao&&(y=g?yo:void 0);let w=g?Pg(y,n):h===n?y:void 0;if(u&&!y_(w)&&(w=Pg(l,n)),y_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Eu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Pg(l,n))}return s}function y_(t){return t!==void 0}function V8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=hp(pr(t)))),t}function nO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Tu(n,o,1,i,null):n.data[o],a=B8(n,e,r,i);e[o]=a,$g()&&nD(n,e,a,r),hu(r,!1)}var B8=(t,i,e,n)=>(Dp(!0),HU(i[Ln],n));function j8(t,i,e,n=""){return Po(t,os(),e)?i+ga(e)+n:ao}function z8(t,i,e,n,o,r=""){let a=kx(),s=pD(t,a,e,o);return xp(2),s?i+ga(e)+n+ga(o)+r:ao}function U8(t,i,e,n,o,r,a,s=""){let l=kx(),u=x5(t,l,e,o,a);return xp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:ao}function _e(t){return z("",t),_e}function z(t,i,e){let n=lt(),o=j8(n,t,i,e);return o!==ao&&ED(n,xa(),o),z}function No(t,i,e,n,o){let r=lt(),a=z8(r,t,i,e,n,o);return a!==ao&&ED(r,xa(),a),No}function q_(t,i,e,n,o,r,a){let s=lt(),l=U8(s,t,i,e,n,o,r,a);return l!==ao&&ED(s,xa(),l),q_}function ED(t,i,e){let n=fx(i,t);WU(t[Ln],n,e)}function ee(t,i,e){yD(i)&&(i=i());let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();eR(a,n,t,i,n[Ln],e)}return ee}function ne(t,i){let e=yD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return QR(n,e,e[Ln],o,t,i),te}function Pl(t){return Po(lt(),os(),t)?ga(t):ao}function Kk(t,i,e){let n=$n();n.firstCreatePass&&iO(i,n.data,n.blueprint,Ca(t),e)}function iO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Yx(l,i,o?h:h+y,g);S===-1?(Kx(c_(s,a),r,l),qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Yx(l,i,h+y,g),S=Yx(l,i,h,h+y),P=w>=0&&e[w],B=S>=0&&e[S];if(o&&!B||!o&&!P){Kx(c_(s,a),r,l);let F=$8(o?W8:H8,e.length,o,n,u,t);!o&&B&&(e[S].providerFactory=F),qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=oO(e[o?S:w],u,!o&&n);qx(r,t,w>-1?w:S,F)}!o&&n&&B&&e[S].componentProviders++}}}function qx(t,i,e,n){let o=Ic(i),r=HI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function oO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Yx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Kk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Kk(n,o?o(i):i,!0))}}function MD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=__(i,VR),n.pipeDefs=__(e,ex)}function Gc(t,i){let e=fu()+t,n=lt();return n[e]===ao?mD(n,e,i()):C5(n,e)}function mo(t,i,e){return aO(lt(),fu(),t,i,e)}function TD(t,i,e,n){return sO(lt(),fu(),t,i,e,n)}function rO(t,i){let e=t[i];return e===ao?void 0:e}function aO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?mD(t,a+1,r?n.call(r,o):n(o)):rO(t,a+1)}function sO(t,i,e,n,o,r,a){let s=i+e;return pD(t,s,o,r)?mD(t,s+2,a?n.call(a,o,r):n(o,r)):rO(t,s+2)}function Gt(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=G8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=Cl(n.type,!0)),a,s=ko(D);try{let l=l_(!1),u=r();return l_(l),gx(e,lt(),o,u),u}finally{ko(s)}}function G8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Lg(o,n);return lO(o,n)?aO(o,fu(),i,r.transform,e,r):r.transform(e)}function Y_(t,i,e,n){let o=t+si,r=lt(),a=Lg(r,o);return lO(r,o)?sO(r,fu(),i,a.transform,e,n,a):a.transform(e,n)}function lO(t,i){return t[mt].data[i].pure}function $p(t,i){return P_(t,i)}var Jg=null;function cO(t){Jg!==null&&(t.defaultEncapsulation!==Jg.defaultEncapsulation||t.preserveWhitespaces!==Jg.preserveWhitespaces)||(Jg=t)}var C_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},ID=(()=>{class t{compileModuleSync(e){return new Op(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=JC(e),r=jA(o.declarations).reduce((a,s)=>{let l=ts(s);return l&&a.push(new kl(l)),a},[]);return new C_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dO=new L("");var uO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Ui);taskService=p(rs);ngZone=p(be);zonelessEnabled=p(vu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ze;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(mp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?mk:Fx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(mp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mO(){return[{provide:ha,useExisting:uO},{provide:be,useClass:pp},{provide:vu,useValue:!0}]}function q8(){return typeof $localize<"u"&&$localize.locale||Wp}var Au=new L("",{factory:()=>p(Au,{optional:!0,skipSelf:!0})||q8()});function pn(t){return MI(t)}function Fo(t,i){return Xm(t,i?.equal)}var Y8=t=>t;function kD(t,i){if(typeof t=="function"){let e=NC(t,Y8,i?.equal);return pO(e,i?.debugName)}else{let e=NC(t.source,t.computation,t.equal);return pO(e,t.debugName)}}function pO(t,i){let e=t[xi],n=t;return n.set=o=>SI(e,o),n.update=o=>EI(e,o),n.asReadonly=Gg.bind(t),n}var wO=Symbol("InputSignalNode#UNSET"),a6=nt(q({},Jm),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function DO(t,i){let e=Object.create(a6);e.value=t,e.transformFn=i?.transform;function n(){if(ml(e),e.value===wO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Fp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},SO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function hO(t,i){return DO(t,i)}function s6(t){return DO(wO,t)}var EO=(hO.required=s6,hO);function fO(t,i){return gD(i)}function l6(t,i){return _D(i)}var qp=(fO.required=l6,fO);function gO(t,i){return gD(i)}function c6(t,i){return _D(i)}var MO=(gO.required=c6,gO);function d6(t,i,e){let n=new Op(e);return Promise.resolve(n)}function _O(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var u6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m6=new L("",{factory:()=>!1});function p6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(nt(q({},IO()),{scheduleInRootZone:i})),[{provide:vu,useValue:!1},{provide:be,useFactory:t},{provide:As,multi:!0,useFactory:()=>{let e=p(u6,{optional:!0});return()=>e.initialize()}},{provide:As,multi:!0,useFactory:()=>{let e=p(h6);return()=>{e.initialize()}}},{provide:qg,useValue:i??Nx}]}function TO(t){let i=t?.scheduleInRootZone,e=p6({ngZoneFactory:()=>{let n=IO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&jr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Dl([{provide:m6,useValue:!0},e])}function IO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var h6=(()=>{class t{subscription=new ze;initialized=!1;zone=p(be);pendingTasks=p(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Q_=new L(""),f6=new L("");function Gp(t){return!t.moduleRef}function g6(t){let i=Gp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Gp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Gp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Q_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Q_);a.add(r),t.moduleRef.onDestroy(()=>{Mp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return v6(n,e,()=>{let r=i.get(rs),a=r.add(),s=i.get(wD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Au,Wp);if(YR(l||Wp),!i.get(f6,!0))return Gp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Gp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return kO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var kO;function vO(){kO=_6}function _6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function v6(t,i,e){try{let n=e();return Bs(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var AO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[mO(),...n?.applicationProviders??[],hk],r=LR(e.moduleType,this.injector,o);return vO(),g6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=DD({},n);return vO(),d6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Q_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),jD=null;function b6(t){if(UD())throw new ie(400,!1);$R(),jD=t;let i=t.get(AO);return x6(t),i}function zD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=UD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??b6(y6(s,n))}return C6(o)}}function y6(t=[],i){return Te.create({name:i,providers:[{provide:bp,useValue:"platform"},{provide:Q_,useValue:new Set([()=>jD=null])},...t]})}function C6(t){let i=UD();if(!i)throw new ie(-401,!1);return i}function UD(){return jD?.get(AO)??null}function x6(t){let i=t.get(x_,null);zi(t,()=>{i?.forEach(e=>e())})}var w6=1e4;var T0e=w6-1e3;var Qe=(()=>{class t{static __NG_ELEMENT_ID__=D6}return t})();function D6(t){return S6(ki(),lt(),(t&16)===16)}function S6(t,i,e){if(is(t)&&!e){let n=Br(t.index,i);return new Il(n,n)}else if(t.type&175){let n=i[Oo];return new Il(n,i)}return null}var RD=class{supports(i){return uD(i)}create(i){return new OD(i)}},E6=(t,i)=>i,OD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||E6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new PD(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new K_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new K_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},PD=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},ND=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},K_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new ND,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new VD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},VD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function yO(){return new js([new RD])}var js=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:yO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||yO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function CO(){return new X_([new FD])}var X_=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:CO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var RO=zD(null,"core",[]),OO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var AD=Symbol("NOT_SET"),PO=new Set,M6=nt(q({},Jm),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:AD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ml(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??PO)e()}finally{hl(i)}}};function NO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(I_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(eD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(_u,null,{optional:!0}),l=new BD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function J_(t,i){let e=ts(t),n=i.elementInjector||cu();return new kl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function FO(t){let i=ts(t);if(!i)return null;let e=new kl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var LO=null;function hr(){return LO}function HD(t){LO??=t}var Yp=class{},zs=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(VO),providedIn:"platform"})}return t})(),WD=new L(""),VO=(()=>{class t extends zs{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hr().getBaseHref(this._doc)}onPopState(e){let n=hr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=hr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function ev(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function BO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(nv),providedIn:"root"})}return t})(),tv=new L(""),nv=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ev(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(tv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ms=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=k6(BO(jO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(I6(this._basePath,jO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=ev;static stripTrailingSlash=BO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=$({token:t,factory:()=>T6(),providedIn:"root"})}return t})();function T6(){return new ms(we(Aa))}function I6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function jO(t){return t.replace(/\/index\.html$/,"")}function k6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var YD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=ev(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(tv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var $D=/\s+/,zO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=zO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split($D):zO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split($D):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split($D).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Qp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(X_),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Kp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(Sn))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[yt]})}return t})();function A6(t,i){return new ie(2100,!1)}var GD=class{createSubscription(i,e,n){return pn(()=>i.subscribe({next:e,error:n}))}dispose(i){pn(()=>i.unsubscribe())}},qD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},R6=new qD,O6=new GD,Zp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Bs(e))return R6;if(z_(e))return O6;throw A6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Qe,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function P6(t,i){return{key:t,value:i}}var QD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=UO;transform(e,n=UO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(P6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(X_,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function UO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function Jp(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var ZD="browser";function HO(t){return t===ZD}var XD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new KD(p(ke),window)})}return t})(),KD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(nt(q({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=F6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(nt(q({},e),{left:o-a[0],top:r-a[1]}))}};function F6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var eh=class{_doc;constructor(i){this._doc=i}manager},iv=(()=>{class t extends eh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),av=new L(""),nS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof iv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof iv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(av),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),JD="ng-app-id";function WO(t){for(let i of t)i.remove()}function $O(t,i){let e=i.createElement("style");return e.textContent=t,e}function L6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${JD}="${i}"],link[${JD}="${i}"]`);if(o)for(let r of o)r.removeAttribute(JD),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function tS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var iS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,L6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,$O);n?.forEach(o=>this.addUsage(o,this.external,tS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(WO(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])WO(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,$O(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,tS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Al),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS={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"},oS=/%COMP%/g;var qO="%COMP%",V6=`_nghost-${qO}`,B6=`_ngcontent-${qO}`,j6=!0,z6=new L("",{factory:()=>j6});function U6(t){return B6.replace(oS,t)}function H6(t){return V6.replace(oS,t)}function YO(t,i){return i.map(e=>e.replace(oS,t))}var ih=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new th(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof rv?o.applyToHost(e):o instanceof nh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new rv(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new ov(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new ov(l,e,n,a,s,this.nonce,g);default:r=new nh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(nS),we(iS),we(Al),we(z6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),th=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(eS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(GO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(GO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=eS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=eS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=hr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function GO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ov=class extends th{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=YO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=tS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},nh=class extends th{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?YO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},rv=class extends nh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=U6(u),this.hostAttr=H6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var sv=class t extends Yp{supportsDOMEvents=!0;static makeCurrent(){HD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=W6();return e==null?null:$6(e)}resetBaseElement(){oh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Jp(document.cookie,i)}},oh=null;function W6(){return oh=oh||document.head.querySelector("base"),oh?oh.getAttribute("href"):null}function $6(t){return new URL(t,document.baseURI).pathname}var lv=class{addToWindow(i){Co.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},Co.getAllAngularTestabilities=()=>i.getAllTestabilities(),Co.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Co.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Co.frameworkStabilizers||(Co.frameworkStabilizers=[]),Co.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?hr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},G6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),QO=["alt","control","meta","shift"],q6={"\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"},Y6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KO=(()=>{class t extends eh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),QO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=q6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),QO.forEach(a=>{if(a!==o){let s=Y6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function Q6(){sv.makeCurrent()}function K6(){return new Ao}function Z6(){return Fw(document),document}var X6=[{provide:Hc,useValue:ZD},{provide:x_,useValue:Q6,multi:!0},{provide:ke,useFactory:Z6}],rS=zD(RO,"browser",X6);var J6=[{provide:j_,useClass:lv},{provide:B_,useClass:Hp},{provide:Hp,useClass:Hp}],eW=[{provide:bp,useValue:"root"},{provide:Ao,useFactory:K6},{provide:av,useClass:iv,multi:!0},{provide:av,useClass:KO,multi:!0},ih,iS,nS,{provide:bi,useExisting:ih},{provide:Yc,useClass:G6},[]],rh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...eW,...J6],imports:[Xp,OO]})}return t})();var Lo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var dv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},uv=class{encodeKey(i){return ZO(i)}encodeValue(i){return ZO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function tW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var nW=/%(\d[a-f0-9])/gi,iW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZO(t){return encodeURIComponent(t).replace(nW,(i,e)=>iW[e]??i)}function cv(t){return`${t}`}var Us=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new uv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=tW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(cv):[cv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(cv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(cv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function oW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function XO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function JO(t){return typeof Blob<"u"&&t instanceof Blob}function eP(t){return typeof FormData<"u"&&t instanceof FormData}function rW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tP="Content-Type",nP="Accept",oP="text/plain",rP="application/json",aW=`${rP}, ${oP}, */*`,Ou=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(oW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Lo,this.context??=new dv,!this.params)this.params=new Us,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,B,{params:oe,headers:ve,context:Ne,reportProgress:G,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Nu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Lo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},mv=class t extends Nu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},ah=class t extends Nu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Pu=class extends Nu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},sW=200,lW=204;var cW=new L("");var dW=/^\)\]\}',?\n/;var sS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(bn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((B,F)=>a.setRequestHeader(B,F.join(","))),e.headers.has(nP)||a.setRequestHeader(nP,aW),!e.headers.has(tP)){let B=e.detectContentTypeHeader();B!==null&&a.setRequestHeader(tP,B)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let B=e.responseType.toLowerCase();a.responseType=B!=="json"?B:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let B=a.statusText||"OK",F=new Lo(a.getAllResponseHeaders()),G=a.responseURL||e.url;return l=new mv({headers:F,status:a.status,statusText:B,url:G}),l},h=this.maybePropagateTrace(()=>{let{headers:B,status:F,statusText:G,url:ve}=u(),oe=null;F!==lW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?sW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(dW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new ah({body:oe,headers:B,status:F,statusText:G,url:ve||void 0})),r.complete()):r.error(new Pu({error:oe,headers:B,status:F,statusText:G,url:ve||void 0}))}),g=this.maybePropagateTrace(B=>{let{url:F}=u(),G=new Pu({error:B,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(G)}),y=g;e.timeout&&(y=this.maybePropagateTrace(B=>{let{url:F}=u(),G=new Pu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(G)}));let w=!1,S=this.maybePropagateTrace(B=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:B.loaded};B.lengthComputable&&(F.total=B.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(B=>{let F={type:Qc.UploadProgress,loaded:B.loaded};B.lengthComputable&&(F.total=B.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aP(t,i){return i(t)}function uW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function mW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var sP=new L(""),lS=new L("",{factory:()=>[]}),lP=new L(""),cS=new L("",{factory:()=>!0});function pW(){let t=null;return(i,e)=>{t===null&&(t=(p(sP,{optional:!0})??[]).reduceRight(uW,aP));let n=p(bu);if(p(cS)){let r=n.add();return t(i,e).pipe(yl(r))}else return t(i,e)}}var dS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(sS),o},providedIn:"root"})}return t})();var pv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(bu);contributeToStability=p(cS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(lS),...this.injector.get(lP,[])]));this.chain=n.reduceRight((o,r)=>mW(o,r,this.injector),aP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(yl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(dS),we(yn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(pv),o},providedIn:"root"})}return t})();function aS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Fu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Ou)r=e;else{let l;o.headers instanceof Lo?l=o.headers:l=new Lo(o.headers);let u;o.params&&(o.params instanceof Us?u=o.params:u=new Us({fromObject:o.params})),r=new Ou(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(bl(l=>this.handler.handle(l)));if(e instanceof Ou||o.observe==="events")return a;let s=a.pipe(Nt(l=>l instanceof ah));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Us().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aS(o,n))}post(e,n,o={}){return this.request("POST",e,aS(o,n))}put(e,n,o={}){return this.request("PUT",e,aS(o,n))}static \u0275fac=function(n){return new(n||t)(we(uS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hW=new L("",{factory:()=>!0}),fW="XSRF-TOKEN",gW=new L("",{factory:()=>fW}),_W="X-XSRF-TOKEN",vW=new L("",{factory:()=>_W}),bW=(()=>{class t{cookieName=p(gW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jp(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(bW),o},providedIn:"root"})}return t})();function yW(t,i){if(!p(hW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(zs).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(cP).getToken(),n=p(vW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var mS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(mS||{});function CW(t,i){return{\u0275kind:t,\u0275providers:i}}function pS(...t){let i=[Fu,pv,{provide:uS,useExisting:pv},{provide:dS,useFactory:()=>p(cW,{optional:!0})??p(sS)},{provide:lS,useValue:yW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var iP=new L("");function hS(){return CW(mS.LegacyInterceptors,[{provide:iP,useFactory:pW},{provide:lS,useExisting:iP,multi:!0}])}var uP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(xW),o},providedIn:"root"})}return t})(),xW=(()=>{class t extends Hs{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return ls(n,"HTML")?pr(n):E_(this._doc,String(n)).toString();case Ai.STYLE:return ls(n,"Style")?pr(n):n;case Ai.SCRIPT:if(ls(n,"Script"))return pr(n);throw new ie(5200,!1);case Ai.URL:return ls(n,"URL")?pr(n):Lp(String(n));case Ai.RESOURCE_URL:if(ls(n,"ResourceURL"))return pr(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return Bw(e)}bypassSecurityTrustStyle(e){return jw(e)}bypassSecurityTrustScript(e){return zw(e)}bypassSecurityTrustUrl(e){return Uw(e)}bypassSecurityTrustResourceUrl(e){return Hw(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",bh=Symbol("RouteTitle"),bS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new bS(t)}function fS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!fS(r,t.slice(0,r.length),s)||!fS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function bv(t){return new Promise((i,e)=>{t.pipe(Is()).subscribe({next:n=>i(n),error:n=>e(n)})})}function wW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function DW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:Bs(t)?Hn(Promise.resolve(t)):Me(t)}function CP(t){return Dc(t)?bv(t):Promise.resolve(t)}var SW={exact:DP,subset:SP},xP={exact:EW,subset:MW,ignored:()=>!0},wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mP(t,i,e){return SW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function EW(t,i){return ps(t,i)}function DP(t,i,e){if(!Kc(t.segments,i.segments)||!gv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!DP(t.children[n],i.children[n],e))return!1;return!0}function MW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yP(t[e],i[e]))}function SP(t,i,e){return EP(t,i,i.segments,e)}function EP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!gv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!gv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!SP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!gv(t.segments,o,n)||!t.children[Vt]?!1:EP(t.children[Vt],i,r,n)}}function gv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var gr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Tn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return kW.serialize(this)}},Tn=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _v(this)}},Nl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return TP(this)}};function TW(t,i){return Kc(t,i)&&t.every((e,n)=>ps(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function IW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Vl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new $s,providedIn:"root"})}return t})(),$s=class{parse(i){let e=new wS(i);return new gr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${lh(i.root,!0)}`,n=OW(i.queryParams),o=typeof i.fragment=="string"?`#${AW(i.fragment)}`:"";return`${e}${n}${o}`}},kW=new $s;function _v(t){return t.segments.map(i=>TP(i)).join("/")}function lh(t,i){if(!t.hasChildren())return _v(t);if(i){let e=t.children[Vt]?lh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${lh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=IW(t,(n,o)=>o===Vt?[lh(t.children[Vt],!1)]:[`${o}:${lh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${_v(t)}/${e[0]}`:`${_v(t)}/(${e.join("//")})`}}function MP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hv(t){return MP(t).replace(/%3B/gi,";")}function AW(t){return encodeURI(t)}function xS(t){return MP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vv(t){return decodeURIComponent(t)}function pP(t){return vv(t.replace(/\+/g,"%20"))}function TP(t){return`${xS(t.path)}${RW(t.parameters)}`}function RW(t){return Object.entries(t).map(([i,e])=>`;${xS(i)}=${xS(e)}`).join("")}function OW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${hv(e)}=${hv(o)}`).join("&"):`${hv(e)}=${hv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var PW=/^[^\/()?;#]+/;function gS(t){let i=t.match(PW);return i?i[0]:""}var NW=/^[^\/()?;=#]+/;function FW(t){let i=t.match(NW);return i?i[0]:""}var LW=/^[^=?&#]+/;function VW(t){let i=t.match(LW);return i?i[0]:""}var BW=/^[^&#]+/;function jW(t){let i=t.match(BW);return i?i[0]:""}var wS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tn([],{}):new Tn([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new Tn(e,n)),o}parseSegment(){let i=gS(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Nl(vv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=FW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=gS(this.remaining);o&&(n=o,this.capture(n))}i[vv(e)]=vv(n)}parseQueryParam(i){let e=VW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=jW(this.remaining);a&&(n=a,this.capture(n))}let o=pP(e),r=pP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=gS(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new Tn([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function IP(t){return t.segments.length>0?new Tn([],{[Vt]:t}):t}function kP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=kP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new Tn(t.segments,i);return zW(e)}function zW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new Tn(t.segments.concat(i.segments),i.children)}return t}function Fl(t){return t instanceof gr}function AP(t,i,e=null,n=null,o=new $s){let r=RP(t);return OP(r,i,e,n,o)}function RP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new Tn(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=IP(n);return i??o}function OP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return _S(r,r,r,e,n,o);let a=UW(i);if(a.toRoot())return _S(r,r,new Tn([],{}),e,n,o);let s=HW(a,r,t),l=s.processChildren?dh(s.segmentGroup,s.index,a.commands):NP(s.segmentGroup,s.index,a.commands);return _S(r,s.segmentGroup,l,e,n,o)}function yv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function mh(t){return typeof t=="object"&&t!=null&&t.outlets}function hP(t,i,e){t||="\u0275";let n=new gr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function _S(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>hP(u,g,r)):hP(u,h,r);let s;t===i?s=e:s=PP(t,i,e);let l=IP(kP(s));return new gr(l,a,o)}function PP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=PP(r,i,e)}),new Tn(t.segments,n)}var Cv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&yv(n[0]))throw new ie(4003,!1);let o=n.find(mh);if(o&&o!==DW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function UW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Cv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Cv(e,i,n)}var Vu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function HW(t,i,e){if(t.isAbsolute)return new Vu(i,!0,0);if(!e)return new Vu(i,!1,NaN);if(e.parent===null)return new Vu(e,!0,0);let n=yv(t.commands[0])?0:1,o=e.segments.length-1+n;return WW(e,o,t.numberOfDoubleDots)}function WW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Vu(n,!1,o-r)}function $W(t){return mh(t[0])?t[0].outlets:{[Vt]:t}}function NP(t,i,e){if(t??=new Tn([],{}),t.segments.length===0&&t.hasChildren())return dh(t,i,e);let n=GW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=dh(t.children[Vt],i,e);return new Tn(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=NP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Tn(t.segments,o)}}function GW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(mh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!gP(l,u,a))return r;n+=2}else{if(!gP(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function DS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=DS(new Tn([],{}),0,n))}),i}function fP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function gP(t,i,e){return t==e.path&&ps(i,e.parameters)}var Bu="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),_r=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ll=class extends _r{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ur=class extends _r{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wo||{}),zu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(zu||{}),zr=class extends _r{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function FP(t){return t instanceof zr&&(t.code===wo.Redirect||t.code===wo.SupersededByNewNavigation)}var hs=class extends _r{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends _r{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ph=class extends _r{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xv=class extends _r{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wv=class extends _r{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Dv=class extends _r{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends _r{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ev=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Mv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Tv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Iv=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kv=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Hu=class{},hh=class{},Wu=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function YW(t){return!(t instanceof Hu)&&!(t instanceof Wu)&&!(t instanceof hh)}var Rv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Rv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(yn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ov=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=SS(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=SS(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=ES(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return ES(i,this._root).map(e=>e.value)}};function SS(t,i){if(t===i.value)return i;for(let e of i.children){let n=SS(t,e);if(n)return n}return null}function ES(t,i){if(t===i.value)return[i];for(let e of i.children){let n=ES(t,e);if(n.length)return n.unshift(i),n}return[]}var fr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var fh=class extends Ov{snapshot;constructor(i,e){super(i),this.snapshot=e,NS(this,i)}toString(){return this.snapshot.toString()}};function LP(t,i){let e=QW(t,i),n=new on([new Nl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new at(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new fh(new fr(l,[]),e)}function QW(t,i){let e={},n={},o={},a=new $u([],e,o,"",n,Vt,t,null,{},i);return new gh("",new fr(a,[]))}var at=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[bh]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function PS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:q(q({},i.params),t.params),data:q(q({},i.data),t.data),resolve:q(q(q(q({},t.data),i.data),o?.data),t._resolvedData)}:n={params:q({},t.params),data:q({},t.data),resolve:q(q({},t.data),t._resolvedData??{})},o&&BP(o)&&(n.resolve[bh]=o.title),n}var $u=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[bh]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},gh=class extends Ov{url;constructor(i,e){super(e),this.url=i,NS(this,e)}toString(){return VP(this._root)}};function NS(t,i){i.value._routerState=t,i.children.forEach(e=>NS(t,e))}function VP(t){let i=t.children.length>0?` { ${t.children.map(VP).join(", ")} } `:"";return`${t.value}${i}`}function vS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ps(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ps(i.params,e.params)||t.paramsSubject.next(e.params),wW(i.url,e.url)||t.urlSubject.next(e.url),ps(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function MS(t,i){let e=ps(t.params,i.params)&&TW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||MS(t.parent,i.parent))}function BP(t){return typeof t.title=="string"||t.title===null}var jP=new L(""),yh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=EO();parentContexts=p(ed);location=p(Sn);changeDetector=p(Qe);inputBinder=p(Ch,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new TS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[yt]})}return t})(),TS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===at?this.route:i===ed?this.childContexts:i===jP?this.outletData:this.parent.get(i,e)}},Ch=new L(""),FS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=bo([n.queryParams,n.params,n.data]).pipe(bn(([r,a,s],l)=>(s=q(q(q({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=FO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),LS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[yh],encapsulation:2})}return t})();function VS(t){let i=t.children&&t.children.map(VS),e=i?nt(q({},t),{children:i}):q({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=LS),e}function KW(t,i,e){let n=_h(t,i._root,e?e._root:void 0);return new fh(n,i)}function _h(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=ZW(t,i,e);return new fr(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>_h(t,s)),a}}let n=XW(i.value),o=i.children.map(r=>_h(t,r));return new fr(n,o)}}function ZW(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return _h(t,n,o);return _h(t,n)})}function XW(t){return new at(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var Gu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},zP="ngNavigationCancelingError";function Pv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Fl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=UP(!1,wo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function UP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[zP]=!0,e.cancellationCode=i,e}function JW(t){return HP(t)&&Fl(t.url)}function HP(t){return!!t&&t[zP]}var IS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),vS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Av(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Iv(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(vS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),vS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Nv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},ju=class{component;route;constructor(i,e){this.component=i,this.route=e}};function e$(t,i,e){let n=t._root,o=i?i._root:null;return ch(n,o,e,[n.value])}function t$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Yu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!QC(t)?t:i.get(t):n}function ch(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Lu(i);return t.children.forEach(a=>{n$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>uh(s,e.getContext(a),o)),o}function n$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=i$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Nv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?ch(t,i,s?s.children:null,n,o):ch(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new ju(s.outlet.component,a))}else a&&uh(i,s,o),o.canActivateChecks.push(new Nv(n)),r.component?ch(t,null,s?s.children:null,n,o):ch(t,null,e,n,o);return o}function i$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!ps(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!MS(t,i)||!ps(t.queryParams,i.queryParams);default:return!MS(t,i)}}function uh(t,i,e){let n=Lu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?uh(a,i.children.getContext(r),e):uh(a,null,e):uh(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new ju(i.outlet.component,o)):e.canDeactivateChecks.push(new ju(null,o)):e.canDeactivateChecks.push(new ju(null,o))}function xh(t){return typeof t=="function"}function o$(t){return typeof t=="boolean"}function r$(t){return t&&xh(t.canLoad)}function a$(t){return t&&xh(t.canActivate)}function s$(t){return t&&xh(t.canActivateChild)}function l$(t){return t&&xh(t.canDeactivate)}function c$(t){return t&&xh(t.canMatch)}function WP(t){return t instanceof Es||t?.name==="EmptyError"}var fv=Symbol("INITIAL_VALUE");function qu(){return bn(t=>bo(t.map(i=>i.pipe(vn(1),ln(fv)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===fv)return fv;if(e===!1||d$(e))return e}return!0}),Nt(i=>i!==fv),vn(1)))}function d$(t){return Fl(t)||t instanceof Gu}function $P(t){return t.aborted?Me(void 0).pipe(vn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function GP(t){return Ze($P(t))}function u$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(nt(q({},i),{guardsResult:!0})):m$(r,e,n).pipe(wi(a=>a&&o$(a)?p$(e,o,t):Me(a)),et(a=>nt(q({},i),{guardsResult:a})))})}function m$(t,i,e){return Hn(t).pipe(wi(n=>v$(n.component,n.route,e,i)),Is(n=>n!==!0,!0))}function p$(t,i,e){return Hn(i).pipe(bl(n=>Ja(f$(n.route.parent,e),h$(n.route,e),_$(t,n.path),g$(t,n.route))),Is(n=>n!==!0,!0))}function h$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function f$(t,i){return t!==null&&i&&i(new Tv(t)),Me(!0)}function g$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>cr(()=>{let r=i._environmentInjector,a=Yu(o,r),s=a$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(Is())}));return Me(n).pipe(qu())}function _$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>t$(r)).filter(r=>r!==null).map(r=>cr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Yu(s,l),h=s$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(Is())});return Me(a).pipe(qu())}));return Me(o).pipe(qu())}function v$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Yu(a,s),u=l$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(Is())});return Me(r).pipe(qu())}function b$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Yu(s,t),u=r$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(GP(o)):h});return Me(a).pipe(qu(),qP(n))}function qP(t){return wC(fi(i=>{if(typeof i!="boolean")throw Pv(t,i)}),et(i=>i===!0))}function y$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Yu(l,t),h=c$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(GP(r))});return Me(s).pipe(qu(),qP(n))}var Ws=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},vh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function C$(t){throw new ie(4e3,!1)}function x$(t){throw UP(!1,wo.GuardRejected)}var kS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return j(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw C$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return j(this,null,function*(){let a=yield w$(e,o,r);if(a instanceof gr)throw new vh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new vh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new gr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new Tn(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function w$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return bv(Jc(zi(e,()=>n(i))))}function D$(t,i){return t.providers&&!t._injector&&(t._injector=Iu(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function S$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var AS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function E$(t,i,e,n,o,r,a){let s=QP(t,i,e);if(!s.matched)return Me(s);let l=YP(r(s));return n=D$(i,n),y$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:q({},AS)))}function QP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?q({},AS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||bP)(e,t,i);if(!o)return q({},AS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?q(q({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function _P(t,i,e,n,o){return e.length>0&&I$(t,e,n,o)?{segmentGroup:new Tn(i,T$(n,new Tn(e,t.children))),slicedSegments:[]}:e.length===0&&k$(t,e,n)?{segmentGroup:new Tn(t.segments,M$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Tn(t.segments,t.children),slicedSegments:e}}function M$(t,i,e,n){let o={};for(let r of e)if(Lv(t,i,r)&&!n[Ra(r)]){let a=new Tn([],{});o[Ra(r)]=a}return q(q({},n),o)}function T$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new Tn([],{});e[Ra(n)]=o}return e}function I$(t,i,e,n){return e.some(o=>!Lv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function k$(t,i,e){return e.some(n=>Lv(t,i,n))}function Lv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function A$(t,i,e){return i.length===0&&!t.children[e]}var RS=class{};function R$(t,i,e,n,o,r,a="emptyOnly",s){return j(this,null,function*(){return new OS(t,i,e,n,o,a,r,s).recognize()})}var O$=31,OS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new kS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return j(this,null,function*(){let i=_P(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new fr(n,e),r=new gh("",o),a=AP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return j(this,null,function*(){let e=new $u([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof vh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ws?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return j(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof fr?[a]:[]})}processChildren(i,e,n,o){return j(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=S$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=KP(a);return P$(s),s})}processSegment(i,e,n,o,r,a,s){return j(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof Ws||WP(u))continue;throw u}if(A$(n,o,r))return new RS;throw new Ws(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return j(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Lv(o,r,n)))throw new Ws(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new Ws(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return j(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=QP(e,o,r);if(!l)throw new Ws(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>O$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,YP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new $u(n,o,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,F$(e),Ra(e),e.component??e._loadedComponent??null,e,L$(e),i),s=PS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return j(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield bv(E$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Ws(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:B}=_P(e,y,w,u,r);if(B.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new fr(S,ve)}if(u.length===0&&B.length===0)return new fr(S,[]);let F=Ra(n)===r,G=yield this.processSegment(h,u,P,B,F?Vt:r,!0,S);return new fr(S,G instanceof fr?[G]:[])})}getChildConfig(i,e,n){return j(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield bv(b$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw x$(e)}return{routes:[],injector:i}})}};function P$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function N$(t){let i=t.value.routeConfig;return i&&i.path===""}function KP(t){let i=[],e=new Set;for(let n of t){if(!N$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=KP(n.children);i.push(new fr(n.value,o))}return i.filter(n=>!e.has(n))}function F$(t){return t.data||{}}function L$(t){return t.resolve||{}}function V$(t,i,e,n,o,r,a){return wi(s=>j(null,null,function*(){let{state:l,tree:u}=yield R$(t,i,e,n,s.extractedUrl,o,r,a);return nt(q({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function B$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of ZP(s))r.add(l);let a=0;return Hn(r).pipe(bl(s=>o.has(s)?j$(s,e,t):(s.data=PS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),gg(1),wi(s=>a===r.size?Me(i):hi))})}function ZP(t){let i=t.children.map(e=>ZP(e)).flat();return[t,...i]}function j$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!BP(n)&&(o[bh]=n.title),cr(()=>(t.data=PS(t,t.parent,e).resolve,z$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=q(q({},t.data),r),null)))))}function z$(t,i,e){let n=yS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>U$(t[r],i,e).pipe(Is(),fi(a=>{if(a instanceof Gu)throw Pv(new $s,a);o[r]=a}))),gg(1),et(()=>o),Io(r=>WP(r)?hi:wc(r)))}function U$(t,i,e){let n=i._environmentInjector,o=Yu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function vP(t){return bn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var BS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[bh]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(XP),providedIn:"root"})}return t})(),XP=(()=>{class t extends BS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(uP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bl=new L("",{factory:()=>({})}),Qu=new L(""),Vv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(ID);loadComponent(e,n){return j(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=j(this,null,function*(){try{let r=yield CP(zi(e,()=>n.loadComponent())),a=yield tN(eN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=j(this,null,function*(){try{let r=yield JP(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JP(t,i,e,n){return j(this,null,function*(){let o=yield CP(zi(e,()=>t.loadChildren())),r=yield tN(eN(o)),a;r instanceof L_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Qu,[],{optional:!0,self:!0}).flat()),{routes:l.map(VS),injector:s,factory:h}})}function H$(t){return t&&typeof t=="object"&&"default"in t}function eN(t){return H$(t)?t.default:t}function tN(t){return j(this,null,function*(){return t})}var Bv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(W$),providedIn:"root"})}return t})(),W$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jS=new L(""),zS=new L("");function nN(t,i,e){let n=t.get(zS),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),$$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function $$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var G$=()=>{},US=new L(""),jv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(Vv);environmentInjector=p(yn);destroyRef=p(xo);urlSerializer=p(Vl);rootContexts=p(ed);location=p(ms);inputBindingEnabled=p(Ch,{optional:!0})!==null;titleStrategy=p(BS);options=p(Bl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Bv);createViewTransition=p(jS,{optional:!0});navigationErrorHandler=p(US,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Ev(o)),n=o=>this.events.next(new Mv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;pn(()=>{this.transitions?.next(nt(q({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(Nt(n=>n!==null),bn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(bn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?nt(q({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.rawUrl),"",zu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(bn(g=>(this.events.next(new Ll(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),V$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new hh)}),bn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new ph(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,B=new Ll(g,this.urlSerializer.serialize(y),w,S);this.events.next(B);let F=LP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=nt(q({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:nt(q({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(G=>(G.finalUrl=y,G)),Me(n)}else return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",zu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new xv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=nt(q({},s),{guards:e$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),u$(s=>this.events.next(s)),bn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Pv(this.urlSerializer,s.guardsResult);let l=new wv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",wo.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(B$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",wo.NoDataFromResolver)}}))}),vP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),vP(()=>this.afterPreactivation()),bn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),vn(1),bn(s=>{let l=KW(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=nt(q({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Hu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new IS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=G$,l)),this.lastSuccessfulNavigation.set(pn(this.currentNavigation)),this.events.next(new Ur(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Ze($P(r.signal).pipe(Nt(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",wo.Aborted)}))),fi({complete:()=>{o=!0}}),Ze(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),yl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Io(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(HP(s))this.events.next(new zr(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),JW(s)?this.events.next(new Wu(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof Gu){let{message:h,cancellationCode:g}=Pv(this.urlSerializer,u);this.events.next(new zr(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new Wu(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new zr(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=pn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function q$(t){return t!==Bu}var iN=new L("");var oN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Y$),providedIn:"root"})}return t})(),Fv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},Y$=(()=>{class t extends Fv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zv=(()=>{class t{urlSerializer=p(Vl);options=p(Bl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ms);urlHandlingStrategy=p(Bv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new gr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof gr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=LP(null,p(yn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Q$),providedIn:"root"})}return t})(),Q$=(()=>{class t extends zv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Ll?this.updateStateMemento():e instanceof hs?this.commitTransition(n):e instanceof ph?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Hu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof zr&&!FP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof Ur&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=q(q({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=q(q({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?q({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):q({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uv(t,i){t.events.pipe(Nt(e=>e instanceof Ur||e instanceof zr||e instanceof Xc||e instanceof hs),et(e=>e instanceof Ur||e instanceof hs?0:(e instanceof zr?e.code===wo.Redirect||e.code===wo.SupersededByNewNavigation:!1)?2:1),Nt(e=>e!==2),vn(1)).subscribe(()=>{i()})}var Hr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(V_);stateManager=p(zv);options=p(Bl,{optional:!0})||{};pendingTasks=p(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(jv);urlSerializer=p(Vl);location=p(ms);urlHandlingStrategy=p(Bv);injector=p(yn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(oN);injectorCleanup=p(iN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Qu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Ch,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new ze;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=pn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof zr&&n.code!==wo.Redirect&&n.code!==wo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Ur)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Wu){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=q({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||q$(o.source)},a);this.scheduleNavigation(s,Bu,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}YW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Bu,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=nt(q({},r),{browserUrl:e})),o){let u=q({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(VS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=q(q({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=RP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return OP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Fl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Bu,null,n)}navigate(e,n={skipLocationChange:!1}){return K$(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=q({},wP):n===!1?o=q({},CS):o=q(q({},CS),n),Fl(e))return mP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Uv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K$(t){for(let i=0;i{class t{router=p(Hr);stateManager=p(zv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Vl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Ur&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new gr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=kD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return pn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return pn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return pn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return pn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return pn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return pn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return pn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return pn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return pn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return pn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(Bl,{optional:!0});reactiveRouterState=p(X$);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Fl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return pn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(Hr),D(at),Fp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&he("href",o.reactiveHref(),Ww)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[yt]})}return t})();var wh=class{};var rN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(Nt(e=>e instanceof Ur),bl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=Iu(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(vl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(vl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(Hr),we(yn),we(wh),we(Vv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aN=new L(""),J$=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bu;restoredId=0;store={};isHydrating=p(Lw,{optional:!0})??!1;urlSerializer=p(Vl);zone=p(be);viewportScroller=p(XD);transitions=p(jv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ur?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hs&&e.code===zu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Uu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=pn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>j(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Uu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function eG(){return p(Hr).routerState.root}function Dh(t,i){return{\u0275kind:t,\u0275providers:i}}function tG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(Hr),o=t.get(sN);t.get(WS)===1&&n.initialNavigation(),t.get(dN,null,{optional:!0})?.setUpPreloading(),t.get(aN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sN=new L("",{factory:()=>new Z}),WS=new L("",{factory:()=>1});function lN(){let t=[{provide:w_,useValue:!0},{provide:WS,useValue:0},U_(()=>{let i=p(Te);return i.get(WD,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(Hr),r=i.get(sN);Uv(o,()=>{n(!0)}),i.get(jv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Dh(2,t)}function cN(){let t=[U_(()=>{p(Hr).setUpLocationChangeListener()}),{provide:WS,useValue:2}];return Dh(3,t)}var dN=new L("");function uN(t){return Dh(0,[{provide:dN,useExisting:rN},{provide:wh,useExisting:t}])}function mN(){return Dh(8,[FS,{provide:Ch,useExisting:FS}])}function pN(t){jr("NgRouterViewTransitions");let i=[{provide:jS,useValue:nN},{provide:zS,useValue:q({skipNextTransition:!!t?.skipInitialTransition},t)}];return Dh(9,i)}var hN=[ms,{provide:Vl,useClass:$s},Hr,ed,{provide:at,useFactory:eG},Vv,[]],Hv=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[hN,[],{provide:Qu,multi:!0,useValue:e},[],n?.errorHandler?{provide:US,useValue:n.errorHandler}:[],{provide:Bl,useValue:n||{}},n?.useHash?iG():oG(),nG(),n?.preloadingStrategy?uN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?rG(n):[],n?.bindToComponentInputs?mN().\u0275providers:[],n?.enableViewTransitions?pN().\u0275providers:[],aG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Qu,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function nG(){return{provide:aN,useFactory:()=>{let t=p(XD),i=p(Bl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new J$(i)}}}function iG(){return{provide:Aa,useClass:YD}}function oG(){return{provide:Aa,useClass:nv}}function rG(t){return[t.initialNavigation==="disabled"?cN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lN().\u0275providers:[]]}var HS=new L("");function aG(){return[{provide:HS,useFactory:tG},{provide:H_,multi:!0,useExisting:HS}]}var Wv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var $S;try{$S=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){$S=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?HO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||$S)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var GS;function fN(){if(GS==null){let t=typeof document<"u"?document.head:null;GS=!!(t&&(t.createShadowRoot||t.attachShadow))}return GS}function qS(t){if(fN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Wr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function YS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var $v=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(yn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=$v.get(n);o||(o={loaders:new Set,refs:[]},$v.set(n,o),n.onDestroy(()=>{$v.get(n)?.refs.forEach(r=>r.destroy()),$v.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(J_(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return Gv(t)?Number(t):arguments.length===2?i:0}function Gv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Vo(t){return t instanceof se?t.nativeElement:t}var sG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),lG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function gN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?lG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Cn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(sG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(gN(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),qv,td;function Yv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Ku(){if(typeof document!="object"||!document)return Pa.NORMAL;if(qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),qv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,qv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return qv}var nd=class{};function Sh(t){return t&&typeof t.connect=="function"&&!(t instanceof ep)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Qv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var cG=20,jl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=cG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(ru(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Nt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Vo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Eh=(()=>{class t{elementRef=p(se);scrollDispatcher=p(jl);ngZone=p(be);dir=p(Cn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Ku()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Ku()==Pa.INVERTED?e.left=e.right:Ku()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Yv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Ku()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Ku()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),dG=20,po=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=dG){return e>0?this._change.pipe(ru(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _N=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var vr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Mh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,vr,pt,vr]})}return t})();var QS={},zt=class t{_appId=p(Al);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),QS.hasOwnProperty(i)||(QS[i]=0),`${i}${e?t._infix+"-":""}${QS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var Th=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Jo=class extends Th{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends Th{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},KS=class extends Th{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},zl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Jo)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof KS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Zu=class extends zl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ss,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(yn,n.injector);e=J_(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},bN=(()=>{class t extends Gi{constructor(){let e=p(un),n=p(Sn);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Bo=(()=>{class t extends zl{_moduleRef=p(ss,{optional:!0});_document=p(ke);_viewContainerRef=p(Sn);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),br=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function dn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var yN=Yv();function Ul(t){return new Kv(t.get(po),t.get(ke))}var Kv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function MN(t,i){return new Zv(t.get(jl),t.get(be),t.get(po),i)}var Zv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(Nt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ih=class{enable(){}disable(){}attach(){}};function ZS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function CN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function yr(t,i){return new Xv(t.get(jl),t.get(po),t.get(be),i)}var Xv=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();ZS(e,[{width:n,height:o,bottom:o,right:n,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}},TN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ih;close=e=>MN(this._injector,e);block=()=>Ul(this._injector);reposition=e=>yr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jo=class{positionStrategy;scrollStrategy=new Ih;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var Jv=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kN=(()=>{class t extends IN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends IN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var RN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof zf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{qT(r)}catch(a){i=i??[],a instanceof zf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new zf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)qT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Uf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function qT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xd={setTimeout(t,i,...e){let{delegate:n}=Xd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Xd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Hf(t){Xd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var YT=CC("C",void 0,void 0);function QT(t){return CC("E",void 0,t)}function KT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function Jd(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function ZT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Uf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(KT(i),this):this._next(i)}error(i){this.isStopped?wC(QT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(YT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){Wf(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){Wf(n)}else Wf(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){Wf(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function Wf(t){ua.useDeprecatedSynchronousErrorHandling?ZT(t):Hf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Xd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var eu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ur(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?ur:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new ma(e,n,o);return Jd(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=XT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[eu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=XT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function XT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Uf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function JT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var ep=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return JT()(this)}};var tu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=tu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=tu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=tu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var eI=fl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new $f(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new eI}next(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new $f(i,e),t})(),$f=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var tp={now(){return(tp.delegate||Date).now()},delegate:void 0};var Vr=class extends Z{constructor(i=1/0,e=1/0,n=tp){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;atI(i)&&t()),i},clearImmediate(t){tI(t)}};var{setImmediate:N4,clearImmediate:F4}=nI,ip={setImmediate(...t){let{delegate:i}=ip;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=ip;return(i?.clearImmediate||F4)(t)},delegate:void 0};var qf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=ip.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(ip.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var nu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};nu.now=tp.now;var _l=class extends nu{constructor(i,e=nu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Yf=class extends _l{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Qf=new Yf(qf);var pa=new _l(gl),iI=pa;var Kf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=tu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(tu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Zf=class extends _l{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Xf=new Zf(Kf);var hi=new dt(t=>t.complete());function Jf(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function eg(t){return _t(AC(t))?t.pop():void 0}function Xa(t){return Jf(AC(t))?t.pop():void 0}function oI(t,i){return typeof AC(t)=="number"?t.pop():i}function aI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function rI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function sI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function lI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof rI=="function"?rI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var iu=t=>t&&typeof t.length=="number"&&typeof t!="function";function tg(t){return _t(t?.then)}function ng(t){return _t(t[eu])}function ig(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function og(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rg=L4();function ag(t){return _t(t?.[rg])}function sg(t){return sI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function lg(t){return _t(t?.getReader)}function fn(t){if(t instanceof dt)return t;if(t!=null){if(ng(t))return V4(t);if(iu(t))return B4(t);if(tg(t))return j4(t);if(ig(t))return cI(t);if(ag(t))return z4(t);if(lg(t))return U4(t)}throw og(t)}function V4(t){return new dt(i=>{let e=t[eu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Hf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function cI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return cI(sg(t))}function H4(t,i){var e,n,o,r;return aI(this,void 0,void 0,function*(){try{for(e=lI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function vo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function cg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>vo(n,t,()=>n.next(o),i),()=>vo(n,t,()=>n.complete(),i),o=>vo(n,t,()=>n.error(o),i)))})}function dg(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dI(t,i){return fn(t).pipe(dg(i),cg(i))}function uI(t,i){return fn(t).pipe(dg(i),cg(i))}function mI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function pI(t,i){return new dt(e=>{let n;return vo(e,i,()=>{n=t[rg](),vo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function ug(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{vo(e,i,()=>{let n=t[Symbol.asyncIterator]();vo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hI(t,i){return ug(sg(t),i)}function fI(t,i){if(t!=null){if(ng(t))return dI(t,i);if(iu(t))return mI(t,i);if(tg(t))return uI(t,i);if(ig(t))return ug(t,i);if(ag(t))return pI(t,i);if(lg(t))return hI(t,i)}throw og(t)}function Hn(t,i){return i?fI(t,i):fn(t)}function Me(...t){let i=Xa(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Es=fl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function mg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Es)}});t.subscribe(r)})}function pg(t){return t instanceof Date&&!isNaN(t)}var W4=fl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??pa,meta:a=null}=pg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=vo(l,r,()=>{try{u.unsubscribe(),fn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ou(t){return et(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function hg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function fg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function bo(...t){let i=Xa(t),e=eg(t),{args:n,keys:o}=hg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>fg(o,a):ur));return e?r.pipe(ou(e)):r}function J4(t,i,e=ur){return n=>{gI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function gI(t,i,e){t?vo(e,t,i):i()}function _I(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;fn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(fn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>_I(n,o,t,e)))}function vl(t=1/0){return wi(ur,t)}function vI(){return vl(1)}function Ja(...t){return vI()(Hn(t,Xa(t)))}function mr(t){return new dt(i=>{fn(t()).subscribe(i)})}function op(...t){let i=eg(t),{args:e,keys:n}=hg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?fg(n,s):s),r.complete())}))}});return i?o.pipe(ou(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ou(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(bI(t,i)):oz(t)?nz.map(bI(t,i)):[];if(!o&&iu(t))return wi(a=>Sc(a,i,e))(fn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function bI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ms(t=0,i,e=iI){let n=-1;return i!=null&&(Jf(i)?e=i:n=i),new dt(o=>{let r=pg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function rp(t=0,i=pa){return t<0&&(t=0),Ms(t,t,i)}function rn(...t){let i=Xa(t),e=oI(t,1/0),n=t;return n.length?n.length===1?fn(n[0]):vl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function yI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||fn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function ru(t,i=pa){return yI(()=>Ms(t,i))}function Io(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=fn(t(a,Io(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function bl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Ts(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function CI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function xI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function wI(t){return et(()=>t)}function OC(t,i){return i?e=>Ja(i.pipe(bn(1),xI()),e.pipe(OC(t))):wi((e,n)=>fn(t(e,n)).pipe(bn(1),wI(e)))}function ap(t,i=pa){let e=Ms(t,i);return OC(()=>e)}function gg(t,i=ur){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function DI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Es}function yl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Is(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):ur,bn(1),e?CI(i):DI(()=>new Es))}function _g(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function vg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function sp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),fn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return fn(i(...e)).subscribe(n)}function bg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,sp({connector:()=>new Vr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function ln(...t){let i=Xa(t);return kt((e,n)=>{(i?Ja(t,e,i):Ja(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;fn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{fn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):ur}var FC;function yg(){return FC}function es(t){let i=FC;return FC=t,i}var SI=Symbol("NotFound");function au(t){return t===SI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),ml(n),n.value===Za)throw n.error;return n.value};return r[xi]=n,Km(n),r}function EI(t,i){gc(t),_c(t,i),Qd(t)}function MI(t,i){if(gc(t),t.value===Za)throw t.error;jf(t,i),Qd(t)}var lz=Ze(G({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Za,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function TI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Mg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${cz(t)}${i?": "+i:""}`}var Co=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function OI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function hp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(hp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function Tg(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function fp(t){return uz(t,Ig)}function ZC(t){return fp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[Ig]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(xg)?t[xg]:null}var Ig=Rn({\u0275prov:Rn}),xg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var gp=Rn({\u0275cmp:Rn}),_p=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),cp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),II=Rn({__NG_ENV_ID__:Rn});function tx(t){return Ag(t,"@NgModule"),t[ex]||null}function ts(t){return Ag(t,"@Component"),t[gp]||null}function kg(t){return Ag(t,"@Directive"),t[_p]||null}function nx(t){return Ag(t,"@Pipe"),t[JC]||null}function Ag(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var PI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return NI("",-200,i)}function Rg(t,i){throw new ie(-201,!1)}function NI(t,i,e){let n=new ie(i,t);return n[PI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[PI]}var jC;function FI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=fp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Rg(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(au(o))return o;throw o}}};function vz(t,i=0){let e=yg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(au(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(FI()||vz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Og(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function vp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function BI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Pg(t,i,e){let n=lu(t,i);return n>=0?t[n|1]=e:(n=~n,jI(t,n,i,e)),n}function Ng(t,i){let e=lu(t,i);if(e>=0)return t[e|1]}function lu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Og(i,a=>{let s=a;wg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&UI(o,r),e}function UI(t,i){for(let e=0;e{i(r,n)})}}function wg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ts(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)wg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Og(r.imports,h=>{wg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&UI(u,i)}if(!s){let u=Cl(o)||(()=>new o);i({provide:o,useFactory:u,deps:yo},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:As,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function HI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function WI(t){return!!t.useClass}var bp=new L(""),Cg={},kI={},VC;function cu(){return VC===void 0&&(VC=new dp),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,su(void 0,this)),o.has("environment")&&this.records.set(Cn,su(void 0,this));let r=this.records.get(bp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,yo,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(au(o))return o;throw o}}destroy(){lp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return lp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){lp(this);let e=es(this),n=ko(void 0),o;try{return i()}finally{es(e),ko(n)}}get(i,e=Mc,n){if(lp(this),i.hasOwnProperty(II))return i[II](this);let o=Tc(n),r,a=es(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&fp(i);h&&this.injectableDefInScope(h)?u=su(HC(i),Cg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?cu():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),es(a)}}resolveInjectorInitializers(){let i=ut(null),e=es(this),n=ko(void 0),o;try{let r=this.get(As,yo,{self:!0});for(let a of r)a()}finally{es(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=su(void 0,Cg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===kI)throw ix("");return e.value===Cg&&(e.value=kI,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=fp(t),e=i!==null?i.factory:Cl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(HI(t))return su(void 0,t.useValue);{let i=dx(t);return su(i,Cg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return Cl(o)||HC(o)}else if(HI(t))n=()=>Bi(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return Cl(o)||HC(o)}return n}function lp(t){if(t.destroyed)throw new ie(-205,!1)}function su(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(lp(t),e=t):e=new zC(t);let n,o=es(e),r=ko(void 0);try{return i()}finally{es(o),ko(r)}}function ux(){return FI()!==void 0||yg()!=null}var va=0,mt=1,Ot=2,ji=3,Br=4,Ro=5,Rc=6,du=7,Di=8,Rs=9,ba=10,Vn=11,uu=12,mx=13,Oc=14,Oo=15,Sl=16,Pc=17,ns=18,Os=19,px=20,ks=21,Fg=22,xl=23,pr=24,Nc=25,El=26,si=27,$I=1,hx=6,Ml=7,yp=8,Fc=9,vi=10;function Ps(t){return Array.isArray(t)&&typeof t[$I]=="object"}function ya(t){return Array.isArray(t)&&t[$I]===!0}function fx(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function mu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function pu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",GI="math";function jr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return jr(i[t])}function zr(t,i){return jr(i[t.index])}function Lg(t,i){return t.data[i]}function Vg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Ur(t,i){let e=i[t];return Ps(e)?e:e[va]}function qI(t){return(t[Ot]&4)===4}function Bg(t){return(t[Ot]&128)===128}function YI(t){return ya(t[ji])}function hr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,Bg(t)&&Vc(t))}function QI(t,i){for(;t>0;)i=i[Oc],t--;return i}function Cp(t){return!!(t[Ot]&9216||t[pr]?.dirty)}function jg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),Cp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=wl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!Bg(i)));)i=wl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[ks]===null&&(t[ks]=[]),t[ks].push(i)}function KI(t,i){if(t[ks]===null)return;let e=t[ks].indexOf(i);e!==-1&&t[ks].splice(e,1)}function wl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[du]??=[]}function wx(t){return t.cleanup??=[]}function ZI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ht={lFrame:lk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function XI(){return Ht.lFrame.elementDepthCount}function JI(){Ht.lFrame.elementDepthCount++}function Dx(){Ht.lFrame.elementDepthCount--}function zg(){return Ht.bindingsEnabled}function Sx(){return Ht.skipHydrationRootTNode!==null}function Ex(t){return Ht.skipHydrationRootTNode===t}function Mx(){Ht.skipHydrationRootTNode=null}function lt(){return Ht.lFrame.lView}function $n(){return Ht.lFrame.tView}function I(t){return Ht.lFrame.contextLView=t,t[Di]}function k(t){return Ht.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ht.lFrame.currentTNode}function ek(){let t=Ht.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function hu(t,i){let e=Ht.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ht.lFrame.isParent}function kx(){Ht.lFrame.isParent=!1}function tk(){return Ht.lFrame.contextLView}function Ax(){return $C}function up(t){let i=$C;return $C=t,i}function fu(){let t=Ht.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ht.lFrame.bindingIndex}function nk(t){return Ht.lFrame.bindingIndex=t}function os(){return Ht.lFrame.bindingIndex++}function xp(t){let i=Ht.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ik(){return Ht.lFrame.inI18n}function ok(t,i){let e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ug(i)}function rk(){return Ht.lFrame.currentDirectiveIndex}function Ug(t){Ht.lFrame.currentDirectiveIndex=t}function ak(t){let i=Ht.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Hg(){return Ht.lFrame.currentQueryIndex}function wp(t){Ht.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ht.lFrame=sk();return n.currentTNode=i,n.lView=t,!0}function Wg(t){let i=sk(),e=t[mt];Ht.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function sk(){let t=Ht.lFrame,i=t===null?null:t.child;return i===null?lk(t):i}function lk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function ck(){let t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=ck;function $g(){let t=ck();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dk(t){return(Ht.lFrame.contextLView=QI(t,Ht.lFrame.contextLView))[Di]}function xa(){return Ht.lFrame.selectedIndex}function Tl(t){Ht.lFrame.selectedIndex=t}function gu(){let t=Ht.lFrame;return Lg(t.tView,t.selectedIndex)}function Gn(){Ht.lFrame.currentNamespace=gx}function wa(){Az()}function Az(){Ht.lFrame.currentNamespace=null}function Nx(){return Ht.lFrame.currentNamespace}var uk=!0;function Gg(){return uk}function Dp(t){uk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||yo,zI(t)],a;return new kc(r,i||cu(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new dp;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Dg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>KI(e,i)}};function Rz(){return new Dg(lt())}var Lx=!1,mk=new L(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(mk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(rs,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Sg(...t){}function Vx(t){let i,e;function n(){t=Sg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pk(t){return queueMicrotask(()=>t()),()=>{t=Sg}}var Bx="isAngularZone",mp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Sg,Sg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[mp]:e,[mp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return AI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),RI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return AI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),RI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function AI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RI(t){t._nesting--,jx(t)}var pp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return hk(t,"__ignore_ng_zone__")}function Vz(t){return hk(t,"__scheduler_tick__")}function hk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),fk={provide:As,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=qg.bind(r),r}function qg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var _u=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new _u(lt(),ki())}var ha=class{},vu=new L("",{factory:()=>!0});var Yg=new L(""),bu=(()=>{class t{internalPendingTasks=p(rs);scheduler=p(ha);errorHandler=p(Zo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Qg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Eg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Ns(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(_u,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Uz(r.view,a,t),n instanceof Dg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Qg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Eg(o)}var gk=Ze(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=up(!1);try{bC(this)}finally{up(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ze(G({},gk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ze(G({},gk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[xl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=_k(n,e),t[xl]??=new Set,t[xl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=_k(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function _k(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Np(t){return{toString:t}.toString()}function Jk(t){let i=Co.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function eA(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var a_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>tA;return t.ngInherit=!0,t})();function tA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=iA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=iA(t)||Jz(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new a_(u&&u.currentValue,e,l===_a),eA(t,i,o,e)}var nA="__ngSimpleChanges__";function iA(t){return t[nA]||null}function Jz(t,i){return t[nA]=i}var vk=[];var Un=function(t,i=null,e){for(let n=0;n=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,bk(s,r)):bk(s,r)}var Cu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function l_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function c_(t){let i=Zx;return Zx=t,i}var sU=256,lA=sU-1,cA=5,lU=0,as={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&lA,r=1<>cA)]|=r}function d_(t,i){let e=dA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(sA(o)){let a=s_(o),s=l_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=fA(o),n===null)return Cu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Cu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Tp(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=c_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&ko(g),c_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&lA:pU:i}function Ck(t,i,e){let n=1<>cA)]&n)}function xk(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return pA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Np(()=>{let i=t.prototype.constructor,e=i[cp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[cp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:Cl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!pu(a);){let s=hA(r,a,e,n|2,as);if(s!==as)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,as,n&-5);if(h!==as)return h}l=fA(a),a=a[Oc]}r=l}return o}function fA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Fp(t){return dU(ki(),t)}function fU(){return Mu(ki(),lt())}function Mu(t,i){return new se(zr(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function gA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var fr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=VI(i);(this._changesDetected=!LI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function _A(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),vA=new Map,_U=0;function vU(){return _U++}function bU(t){vA.set(t[Os],t)}function ew(t){vA.delete(t[Os])}var wk="__ngContext__";function wu(t,i){Ps(i)?(t[wk]=i[Os],bU(i)):t[wk]=i}function bA(t){return CA(t[uu])}function yA(t){return CA(t[Br])}function CA(t){for(;t!==null&&!ya(t);)t=t[Br];return t}var tw;function Vw(t){tw=t}function xA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Al=new L("",{factory:()=>yU}),yU="ng";var w_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Rl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var wA="r";var DA="di";var Bw=new L(""),SA=!1,EA=new L("",{factory:()=>SA});var D_=new L("");var Dk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=Dk.get(t);e||(e=new WeakSet,Dk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function S_(t){return(t.flags&32)===32}var DU=()=>null;function MA(t,i,e=!1){return DU(t,i,e)}function TA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Kg}function E_(t){return SU()?.createHTML(t)||t}var Zg;function IA(){if(Zg===void 0&&(Zg=null,Co.trustedTypes))try{Zg=Co.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function Sk(t){return IA()?.createHTML(t)||t}function Ek(t){return IA()?.createScriptURL(t)||t}var Fs=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mg})`}},iw=class extends Fs{getTypeName(){return"HTML"}},ow=class extends Fs{getTypeName(){return"Style"}},rw=class extends Fs{getTypeName(){return"Script"}},aw=class extends Fs{getTypeName(){return"URL"}},sw=class extends Fs{getTypeName(){return"ResourceURL"}};function gr(t){return t instanceof Fs?t.changingThisBreaksApplicationSecurity:t}function ls(t,i){let e=kA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Mg})`)}return e===i}function kA(t){return t instanceof Fs&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(E_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=E_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(E_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Ls(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Vp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var AA=Ls("area,br,col,hr,img,wbr"),RA=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OA=Ls("rp,rt"),IU=Vp(OA,RA),kU=Vp(RA,Ls("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")),AU=Vp(OA,Ls("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")),Mk=Vp(AA,kU,AU,IU),PA=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Ls("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"),OU=Ls("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"),PU=Vp(PA,RU,OU),NU=Ls("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Tk(i).toLowerCase();if(!Mk.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Tk(i).toLowerCase();Mk.hasOwnProperty(e)&&!AA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Ik(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw NA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw NA(i);return i}function Tk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function NA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Ik(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Xg;function M_(t,i){let e=null;try{Xg=Xg||EU(t);let n=i?String(i):"";e=Xg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Xg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(kk(e)||e);return E_(s)}finally{if(e){let n=kk(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function kk(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function FA(t,i,e){return t.createElement(i,e)}function u_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function LA(t,i,e){t.appendChild(i,e)}function Ak(t,i,e,n,o){n!==null?u_(t,i,e,n,o):LA(t,i,e)}function VA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function BA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Sk(i.sanitize(Ai.HTML,t)||""):ls(t,"HTML")?Sk(gr(t)):M_(xA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":ls(t,"URL")?gr(t):Lp(ga(t))}function jA(t){let i=qw();if(i)return Ek(i.sanitize(Ai.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return Ek(gr(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?jA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function Bp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function zA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var UA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Rk(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Rk(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Sp.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,I_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(I_||{}),Ta=new L(""),Ok=new Set;function Hr(t){Ok.has(t)||(Ok.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var k_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(I_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ip=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Hr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(k_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(_u,null,{optional:!0}),l=new Ip(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var qA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function YA(t,i,e){let n=t.get(qA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(qA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)YA(t,n.animateFns)}function Pk(t,i,e,n){let o=t?.[El]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function yu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ps(o)&&(u=!0,o=o[va]);let h=jr(o);t===0&&n!==null?(Pk(s,n,r,e),a==null?LA(i,n,h):u_(i,n,h,a||null,!0)):t===1&&n!==null?(Pk(s,n,r,e),u_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[El]?.leave?.has(r.index)&&gH(r,h),Sp.delete(h),Nk(s,r,e,g=>{if(Sp.has(h)){Sp.delete(h);return}VA(i,h,u,g)})):t===3&&(Sp.delete(h),Nk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){QA(t,i),i[va]=null,i[Ro]=null}function xH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,R_(t,n,e,1,o,r)}function QA(t,i){i[ba].changeDetectionScheduler?.notify(9),R_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[uu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ps(i))e=i[uu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[Br]&&i!==t;)Ps(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ps(i)&&Hx(i[mt],i),e=i&&i[Br]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function A_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&R_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[pr]&&hl(i[pr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[Sl];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[ns];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Nk(t,i,e,n){let o=t?.[El];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Os]),YA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[El].running=void 0,zc.delete(t[Os]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[du];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[du]=null);let o=i[ks];if(o!==null){i[ks]=null;for(let a=0;asi&&GA(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Tl(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function O_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function jp(t,i,e=zr){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tR(t,i,e,n,o,r){let a=i[mt];if(P_(t,a,i,e,n)){is(t)&&iR(i,t.index);return}t.type&3&&(e=FH(e)),nR(t,i,e,n,o,r)}function nR(t,i,e,n,o,r){if(t.type&3){let a=zr(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function iR(t,i){let e=Ur(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;is(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||d_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function KH(t){let i=t[pr]??Object.create(ZH);return i.lView=t,i}var ZH=Ze(G({},ul),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=wl(t.lView);for(;i&&!lR(i[mt]);)i=wl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[pr]=this}});function lR(t){return t.type!==2}function cR(t){if(t[xl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[xl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function dR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{up(!0),hw(t,i);let n=0;for(;Cp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{up(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;Wg(i);let s=!0,l=null,u=null;r||(lR(t)?(u=GH(i),l=Ss(u)):Bf()===null?(s=!1,u=KH(i),l=Ss(u)):i[pr]&&(hl(i[pr]),i[pr]=null));try{bx(i),nk(t.bindingStartIndex),e!==null&&eR(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&t_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&n_(i,w,0,null),zx(i,0)}if(a||t5(i),cR(i),uR(i,0),t.contentQueries!==null&&TA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&t_(i,w)}else{let w=t.contentHooks;w!==null&&n_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&pR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&t_(i,w)}else{let w=t.viewHooks;w!==null&&n_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Fg]){for(let w of i[Fg])w();i[Fg]=null}r||(aR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(pl(u,l),s&&YH(u)),$g()}}function uR(t,i){for(let e=bA(t);e!==null;e=yA(e))for(let n=vi;n0&&(t[e-1][Br]=n[Br]);let r=vp(t,vi+i);CH(n[mt],n);let a=r[ns];a!==null&&a.detachView(r[mt]),n[ji]=null,n[Br]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][Br]=i),n-1&&(Ap(i,n),vp(e,n))}this._attachedToViewContainer=!1}A_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){jg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,dR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=pu(this._lView),e=this._lView[Sl];e!==null&&!i&&nD(e,this._lView),QA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=pu(this._lView),n=this._lView[Sl];n!==null&&!e&&_R(n,this._lView),jg(this._lView)}};var un=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=zp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Il(r)}}return t})();function r5(){return N_(ki(),lt())}function N_(t,i){return t.type&4?new un(i,t,Mu(t,i)):null}function Tu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),ik()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=ek();r.injectorIndex=a===null?-1:a.injectorIndex}return hu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[DA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[wA];for(;enull,m5=()=>null;function m_(t,i){return u5(t,i)}function vR(t,i,e){return m5(t,i,e)}var bR=class{},F_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Hp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Ur(i.index,t);return(Ps(e)?e:t)[Vn]}var yR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var o_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,o_,n);return o!==o_||e===o_?o:this.parentInjector.get(i,e,n)}};function p_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(jr(P[t.index])):t.index;SR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function SR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function zk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);SR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function ER(t){return t.debugInfo?.className||t.type.name||null}var h_=class extends Hp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ts(i);return new kl(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&T_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(yR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=MR(t);return FA(i,e,e==="svg"?gx:e==="math"?GI:null)}function MR(t){return(t.selectors[0][0]||"div").toLowerCase()}var kl=class extends F_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(ER(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=O5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u),g=a?.some(Uk)||r?.some(S=>typeof S!="function"&&S.bindings.some(Uk)),y=Zw(null,l,null,512|WA(s),null,null,i,u,e,null,MA(h,e,!0));y[si]=h,Wg(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);BA(u,h,S),wu(h,y),O_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&N5(S,this.ngContentSelectors,n),w=Ur(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),$g()}return new f_(this.componentType,y,!!g)}};function O5(t,i,e,n){let o=t?["ng-version","21.2.17"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function Uk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var f_=class extends bR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Lg(e[mt],si),this.location=Mu(this._tNode,e),this.instance=Ur(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Il(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=P_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Ur(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function N5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=F5}return t})();function F5(){let t=ki();return TR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Mu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(sA(i)){let e=l_(i,this._hostLView),n=s_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Hk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=m_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Du(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new kl(ts(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ts(h.componentType??{}),w=m_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Du(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(YI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Up(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Hk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);n&&(vp(Wx(this._lContainer),e),A_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);return n&&vp(Wx(this._lContainer),e)!=null?new Il(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Hk(t){return t[yp]}function Wx(t){return t[yp]||(t[yp]=[])}function TR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=hR(n,i,null,t),i[t.index]=e,Xw(i,e)),V5(e,i,t,n),new vw(e,t,i)}function L5(t,i){let e=t[Vn],n=e.createComment(""),o=zr(i,t),r=e.parentNode(o);return u_(e,r,n,e.nextSibling(o),!1),n}var V5=z5,B5=()=>!1;function j5(t,i,e){return B5(t,i,e)}function z5(t,i,e,n){if(t[Ml])return;let o;e.type&8?o=jr(n):o=L5(i,e),t[Ml]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function OR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function q5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function PR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):IR(e,t,n,i)}function NR(t,i,e){let n,o=Xm(()=>{n._dirtyCounter();let r=Y5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return NR(!0,!1,t)}function vD(t){return NR(!0,!0,t)}function FR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Y5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:yo;let o=fD(e,n),r=PR(e,n);return o.reset(r,gA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,Q5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>K5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),Q5.delete(r)}));yield Promise.all(o)})}function LR(){return Dw.size===0}function K5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ss=class{},V_=class{};var Rp=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new h_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=zA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ss,useValue:this},{provide:Hp,useValue:this.componentFactoryResolver},...n],hp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Op=class extends V_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Rp(this.moduleType,i,[])}};function VR(t,i,e){return new Rp(t,i,e,!1)}var __=class extends ss{injector;componentFactoryResolver=new h_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ss,useValue:this},{provide:Hp,useValue:this.componentFactoryResolver}],i.parent||cu(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Iu(t,i,e=null){return new __({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Z5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?Iu([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Np(()=>{let i=jR(t),e=Ze(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(Z5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||yo,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Hr("NgStandalone"),zR(e);let n=t.dependencies;return e.directiveDefs=v_(n,BR),e.pipeDefs=v_(n,nx),e.id=e8(e),e})}function BR(t){return ts(t)||kg(t)}function ue(t){return Np(()=>({type:t.type,bootstrap:t.bootstrap||yo,declarations:t.declarations||yo,imports:t.imports||yo,exports:t.exports||yo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function X5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=T_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function J5(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Np(()=>{let i=jR(t);return zR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||yo,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:X5(t.inputs,i),outputs:J5(t.outputs),debugInfo:null}}function zR(t){t.features?.forEach(i=>i(t))}function v_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function e8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=t8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function t8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=xu(o.hostAttrs,e=xu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===yo?[]:t}function a8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function s8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function l8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function HR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=xu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),hu(t,!1);let l=d8(e,i,t,n);Gg()&&iD(e,i,l,t),wu(l,i);let u=hR(l,i,l,t);i[n+si]=u,Xw(i,u),j5(u,t,i)}function c8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Tu(i,g,4,a||null,s||null),zg()&&CR(i,t,y,hr(i.consts,u),rD),oA(i,y)):y=i.data[g],HR(y,t,i,e,n,o,r,l),mu(y)&&O_(i,t,y),u!=null&&jp(t,y,h),y}function Su(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Tu(i,g,4,a||null,s||null),u!=null){let w=hr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function cs(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return cs(t)&&typeof t.set=="function"}var j_=new L(""),z_=new L(""),Wp=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(xo,{optional:!0})??void 0),xD||($R(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(WR),we(z_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),WR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $R(t){xD=t}var xD;function Bs(t){return!!t&&typeof t.then=="function"}function U_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function H_(t){return Dl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(Bs(r))e.push(r);else if(U_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W_=new L("");function GR(){gC(()=>{let t="";throw new ie(600,t)})}function qR(t){return t.isBoundToModule}var m8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Zo);afterRenderManager=p(k_);zonelessEnabled=p(vu);rootEffectScheduler=p(Qg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof F_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Hp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=qR(l)?void 0:this._injector.get(ss),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(j_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Mp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(I_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Cp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Mp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(W_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Mp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function ku(t,i){let e=lt(),n=os();if(Po(e,n,i)){let o=$n(),r=gu();if(P_(r,o,e,t,i))is(r)&&iR(e,r.index);else{let s=zr(r,e);oR(e[Vn],s,null,r.value,t,i,null)}}return ku}function me(t,i,e,n){let o=lt(),r=os();if(Po(o,r,i)){let a=$n(),s=gu();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function p8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new b_,r??=qk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)Gk(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new b_,r??=qk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)Gk(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Gk(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var b_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Su(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Su(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Hr("NgControlFlow");let e=lt(),n=os(),o=e[n]!==ao?e[n]:-1,r=o!==-1?y_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&gR(r,a),t!==-1){let l=si+t,u=y_(e,l),h=Aw(e[mt],l),g=vR(u,h,e),y=zp(e,h,i,{dehydratedView:g});Up(u,y,a,Du(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=fR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Hr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Su(w,S,t+1,i,e,n,o,hr(S.consts,r),256),P&&Su(w,S,t+2,l,u,h,g,hr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Up(this.lContainer,e,i,Du(this.templateTNode,n)),h8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,f8(this.lContainer,i),g8(this.lContainer,i)}create(i,e){let n=m_(this.lContainer,this.templateTNode.tView.ssrId);return zp(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){A_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Rs];bH(r,o),zc.delete(n[Os]),o.detachedLeaveAnimationFns=void 0}}function f8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[El]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function g8(t,i){return Ap(t,i)}function _8(t,i){return fR(t,i)}function Aw(t,i){return Lg(t,i)}function b(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();tR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){P_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,zg(),e,n):r.data[a];if(is(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(ER(u),()=>(Yk(t,i,o,s,n),c))}}return Yk(t,i,o,s,n),c}function Yk(t,i,e,n,o){if(aD(n,e,t,i,YR),mu(n)){let r=e[mt];O_(r,e,n),jw(r,n,e)}o!=null&&jp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function cn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,YR),n!=null&&jp(o,s),cn}function mn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),mn}function uo(t,i,e,n){return cn(t,i,e,n),mn(),uo}var YR=(t,i,e,n,o)=>(Dp(!0),FA(i[Vn],n,Nx()));function ds(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,zg(),i,e):o.data[r];if(aD(a,n,t,"ng-container",v8),mu(a)){let s=n[mt];O_(s,n,a),jw(s,a,n)}return e!=null&&jp(n,a),ds}function us(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),us}function Ri(t,i,e){return ds(t,i,e),us(),Ri}var v8=(t,i,e,n,o)=>(Dp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();nR(a,n,t,i,n[Vn],e)}return On}var $p="en-US";var b8=$p;function QR(t){typeof t=="string"&&(b8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return KR(o,n,n[Vn],r,t,i,e),x}function Ol(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&DR(r,o,n,e,n[Vn],t,i,r_(r,n,i)),Ol}function KR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=r_(n,i,r),DR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function x8(t){return(t&2)==2}function w8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Eu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function D8(t){return(t&1)===1}function Pw(t){return t|1}function S8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Eu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||lu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=Jg(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=w8(t[s+1],n)}else t[n+1]=Jg(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=Jg(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Qk(t,h,n,!0),Qk(t,h,n,!1),E8(i,h,t,n,r),a=Jg(s,l),r?i.classBindings=a:i.styleBindings=a}function E8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&lu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Qk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Eu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];M8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Eu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function M8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?lu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T8(t){return t.substring(Sa.key,Sa.keyEnd)}function I8(t){return k8(t),ZR(t,XR(t,0,Sa.textEnd))}function ZR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=A8(t,Sa.key=i,e),XR(t,i,e))}function k8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function XR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return JR(t,i,e,!1),Si}function le(t,i){return JR(t,i,null,!0),le}function Tn(t){O8(B8,R8,t,!0)}function R8(t,i){for(let e=I8(i);e>=0;e=ZR(i,e))Pg(t,T8(i),!0)}function JR(t,i,e,n){let o=lt(),r=$n(),a=xp(2);if(r.firstUpdatePass&&tO(r,t,a,n),i!==ao&&Po(o,a,i)){let s=r.data[xa()];nO(r,s,o,o[Vn],t,o[a+1]=z8(i,e),n,a)}}function O8(t,i,e,n){let o=$n(),r=xp(2);o.firstUpdatePass&&tO(o,null,r,n);let a=lt();if(e!==ao&&Po(a,r,e)){let s=o.data[xa()];if(iO(s,n)&&!eO(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Tg(l,e||"")),Rw(o,s,a,e,n)}else j8(o,s,a,a[Vn],a[r+1],a[r+1]=V8(t,i,e),n,r)}}function eO(t,i){return i>=t.expandoStartIndex}function tO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=eO(t,e);iO(r,n)&&i===null&&!a&&(i=!1),i=P8(o,r,i,n),S8(o,r,i,e,a,n)}}function P8(t,i,e,n){let o=ak(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Pp(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=N8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Pp(l,i.attrs,n),F8(t,i,n,l))}else r=L8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function N8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Eu(n)!==0)return t[Uc(n)]}function F8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function L8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===ao&&(y=g?yo:void 0);let w=g?Ng(y,n):h===n?y:void 0;if(u&&!C_(w)&&(w=Ng(l,n)),C_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Eu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Ng(l,n))}return s}function C_(t){return t!==void 0}function z8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=hp(gr(t)))),t}function iO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Tu(n,o,1,i,null):n.data[o],a=U8(n,e,r,i);e[o]=a,Gg()&&iD(n,e,a,r),hu(r,!1)}var U8=(t,i,e,n)=>(Dp(!0),GU(i[Vn],n));function H8(t,i,e,n=""){return Po(t,os(),e)?i+ga(e)+n:ao}function W8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return xp(2),s?i+ga(e)+n+ga(o)+r:ao}function $8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return xp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:ao}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=H8(n,t,i,e);return o!==ao&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=W8(r,t,i,e,n,o);return a!==ao&&MD(r,xa(),a),No}function Y_(t,i,e,n,o,r,a){let s=lt(),l=$8(s,t,i,e,n,o,r,a);return l!==ao&&MD(s,xa(),l),Y_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();tR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return KR(n,e,e[Vn],o,t,i),te}function Pl(t){return Po(lt(),os(),t)?ga(t):ao}function Zk(t,i,e){let n=$n();n.firstCreatePass&&oO(i,n.data,n.blueprint,Ca(t),e)}function oO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(d_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(d_(s,a),r,l);let F=Y8(o?q8:G8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=rO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=WI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function rO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Zk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Zk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=v_(i,BR),n.pipeDefs=v_(e,nx)}function Gc(t,i){let e=fu()+t,n=lt();return n[e]===ao?pD(n,e,i()):D5(n,e)}function mo(t,i,e){return sO(lt(),fu(),t,i,e)}function ID(t,i,e,n){return lO(lt(),fu(),t,i,e,n)}function aO(t,i){let e=t[i];return e===ao?void 0:e}function sO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):aO(t,a+1)}function lO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):aO(t,s+2)}function Gt(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=Q8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=Cl(n.type,!0)),a,s=ko(D);try{let l=c_(!1),u=r();return c_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function Q8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Vg(o,n);return cO(o,n)?sO(o,fu(),i,r.transform,e,r):r.transform(e)}function Q_(t,i,e,n){let o=t+si,r=lt(),a=Vg(r,o);return cO(r,o)?lO(r,fu(),i,a.transform,e,n,a):a.transform(e,n)}function cO(t,i){return t[mt].data[i].pure}function Gp(t,i){return N_(t,i)}var e_=null;function dO(t){e_!==null&&(t.defaultEncapsulation!==e_.defaultEncapsulation||t.preserveWhitespaces!==e_.preserveWhitespaces)||(e_=t)}var x_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Op(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=zA(o.declarations).reduce((a,s)=>{let l=ts(s);return l&&a.push(new kl(l)),a},[]);return new x_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uO=new L("");var mO=(()=>{class t{applicationErrorHandler=p(Zo);appRef=p(Ui);taskService=p(rs);ngZone=p(be);zonelessEnabled=p(vu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(mp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Yg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?pk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(mp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pO(){return[{provide:ha,useExisting:mO},{provide:be,useClass:pp},{provide:vu,useValue:!0}]}function K8(){return typeof $localize<"u"&&$localize.locale||$p}var Au=new L("",{factory:()=>p(Au,{optional:!0,skipSelf:!0})||K8()});function pn(t){return TI(t)}function Fo(t,i){return Xm(t,i?.equal)}var Z8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,Z8,i?.equal);return hO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return hO(e,t.debugName)}}function hO(t,i){let e=t[xi],n=t;return n.set=o=>EI(e,o),n.update=o=>MI(e,o),n.asReadonly=qg.bind(t),n}var DO=Symbol("InputSignalNode#UNSET"),c6=Ze(G({},Jm),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function SO(t,i){let e=Object.create(c6);e.value=t,e.transformFn=i?.transform;function n(){if(ml(e),e.value===DO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Fp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function fO(t,i){return SO(t,i)}function d6(t){return SO(DO,t)}var MO=(fO.required=d6,fO);function gO(t,i){return _D(i)}function u6(t,i){return vD(i)}var Yp=(gO.required=u6,gO);function _O(t,i){return _D(i)}function m6(t,i){return vD(i)}var TO=(_O.required=m6,_O);function p6(t,i,e){let n=new Op(e);return Promise.resolve(n)}function vO(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var h6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Zo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f6=new L("",{factory:()=>!1});function g6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ze(G({},kO()),{scheduleInRootZone:i})),[{provide:vu,useValue:!1},{provide:be,useFactory:t},{provide:As,multi:!0,useFactory:()=>{let e=p(h6,{optional:!0});return()=>e.initialize()}},{provide:As,multi:!0,useFactory:()=>{let e=p(_6);return()=>{e.initialize()}}},{provide:Yg,useValue:i??Lx}]}function IO(t){let i=t?.scheduleInRootZone,e=g6({ngZoneFactory:()=>{let n=kO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Hr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Dl([{provide:f6,useValue:!0},e])}function kO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var K_=new L(""),v6=new L("");function qp(t){return!t.moduleRef}function b6(t){let i=qp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{qp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),qp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(K_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(K_);a.add(r),t.moduleRef.onDestroy(()=>{Mp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return C6(n,e,()=>{let r=i.get(rs),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Au,$p);if(QR(l||$p),!i.get(v6,!0))return qp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(qp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return AO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var AO;function bO(){AO=y6}function y6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function C6(t,i,e){try{let n=e();return Bs(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var RO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[pO(),...n?.applicationProviders??[],fk],r=VR(e.moduleType,this.injector,o);return bO(),b6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return bO(),p6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(K_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function x6(t){if(HD())throw new ie(400,!1);GR(),zD=t;let i=t.get(RO);return S6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??x6(w6(s,n))}return D6(o)}}function w6(t=[],i){return Te.create({name:i,providers:[{provide:bp,useValue:"platform"},{provide:K_,useValue:new Set([()=>zD=null])},...t]})}function D6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(RO)??null}function S6(t){let i=t.get(w_,null);zi(t,()=>{i?.forEach(e=>e())})}var E6=1e4;var F0e=E6-1e3;var Qe=(()=>{class t{static __NG_ELEMENT_ID__=M6}return t})();function M6(t){return T6(ki(),lt(),(t&16)===16)}function T6(t,i,e){if(is(t)&&!e){let n=Ur(t.index,i);return new Il(n,n)}else if(t.type&175){let n=i[Oo];return new Il(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},I6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||I6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new Z_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Z_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},Z_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function CO(){return new js([new OD])}var js=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:CO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function xO(){return new J_([new LD])}var J_=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:xO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||xO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var OO=UD(null,"core",[]),PO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),NO=new Set,k6=Ze(G({},Jm),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ml(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??NO)e()}finally{hl(i)}}};function FO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(k_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(_u,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function ev(t,i){let e=ts(t),n=i.elementInjector||cu();return new kl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function LO(t){let i=ts(t);if(!i)return null;let e=new kl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var VO=null;function _r(){return VO}function WD(t){VO??=t}var Qp=class{},zs=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(BO),providedIn:"platform"})}return t})(),$D=new L(""),BO=(()=>{class t extends zs{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function tv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function jO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(iv),providedIn:"root"})}return t})(),nv=new L(""),iv=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return tv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(nv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ms=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=O6(jO(zO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(R6(this._basePath,zO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=tv;static stripTrailingSlash=jO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=$({token:t,factory:()=>A6(),providedIn:"root"})}return t})();function A6(){return new ms(we(Aa))}function R6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function zO(t){return t.replace(/\/index\.html$/,"")}function O6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=tv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(nv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,UO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=UO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):UO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Kp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(J_),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Zp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function P6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return pn(()=>i.subscribe({next:e,error:n}))}dispose(i){pn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},N6=new YD,F6=new qD,Xp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Zo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Bs(e))return N6;if(U_(e))return F6;throw P6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Qe,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function L6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=HO;transform(e,n=HO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(L6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(J_,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function HO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function eh(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function WO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ze(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=B6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ze(G({},e),{left:o-a[0],top:r-a[1]}))}};function B6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var th=class{_doc;constructor(i){this._doc=i}manager},ov=(()=>{class t extends th{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),sv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof ov));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof ov);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(sv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function $O(t){for(let i of t)i.remove()}function GO(t,i){let e=i.createElement("style");return e.textContent=t,e}function j6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,j6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,GO);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&($O(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$O(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,GO(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Al),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var YO="%COMP%",z6=`_nghost-${YO}`,U6=`_ngcontent-${YO}`,H6=!0,W6=new L("",{factory:()=>H6});function $6(t){return U6.replace(rS,t)}function G6(t){return z6.replace(rS,t)}function QO(t,i){return i.map(e=>e.replace(rS,t))}var oh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new nh(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof av?o.applyToHost(e):o instanceof ih&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new av(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new rv(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new rv(l,e,n,a,s,this.nonce,g);default:r=new ih(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Al),we(W6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),nh=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function qO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var rv=class extends nh{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=QO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},ih=class extends nh{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?QO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},av=class extends ih{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=$6(u),this.hostAttr=G6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var lv=class t extends Qp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=q6();return e==null?null:Y6(e)}resetBaseElement(){rh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return eh(document.cookie,i)}},rh=null;function q6(){return rh=rh||document.head.querySelector("base"),rh?rh.getAttribute("href"):null}function Y6(t){return new URL(t,document.baseURI).pathname}var cv=class{addToWindow(i){Co.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},Co.getAllAngularTestabilities=()=>i.getAllTestabilities(),Co.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Co.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Co.frameworkStabilizers||(Co.frameworkStabilizers=[]),Co.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Q6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),KO=["alt","control","meta","shift"],K6={"\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"},Z6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ZO=(()=>{class t extends th{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),KO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=K6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),KO.forEach(a=>{if(a!==o){let s=Z6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function X6(){lv.makeCurrent()}function J6(){return new Ao}function eW(){return Vw(document),document}var tW=[{provide:Hc,useValue:XD},{provide:w_,useValue:X6,multi:!0},{provide:ke,useFactory:eW}],aS=UD(OO,"browser",tW);var nW=[{provide:z_,useClass:cv},{provide:j_,useClass:Wp},{provide:Wp,useClass:Wp}],iW=[{provide:bp,useValue:"root"},{provide:Ao,useFactory:J6},{provide:sv,useClass:ov,multi:!0},{provide:sv,useClass:ZO,multi:!0},oh,oS,iS,{provide:bi,useExisting:oh},{provide:Yc,useClass:Q6},[]],ah=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...iW,...nW],imports:[Jp,PO]})}return t})();var Xo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var uv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},mv=class{encodeKey(i){return XO(i)}encodeValue(i){return XO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function oW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var rW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XO(t){return encodeURIComponent(t).replace(rW,(i,e)=>aW[e]??i)}function dv(t){return`${t}`}var Us=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new mv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=oW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(dv):[dv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(dv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(dv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function sW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function JO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eP(t){return typeof Blob<"u"&&t instanceof Blob}function tP(t){return typeof FormData<"u"&&t instanceof FormData}function lW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var nP="Content-Type",iP="Accept",rP="text/plain",aP="application/json",cW=`${aP}, ${rP}, */*`,Ou=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(sW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Xo,this.context??=new uv,!this.params)this.params=new Us,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Nu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Xo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},pv=class t extends Nu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},sh=class t extends Nu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Pu=class extends Nu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},dW=200,uW=204;var mW=new L("");var pW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(iP)||a.setRequestHeader(iP,cW),!e.headers.has(nP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(nP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Xo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new pv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==uW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?dW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(pW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new sh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Pu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Pu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Pu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sP(t,i){return i(t)}function hW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function fW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var lP=new L(""),cS=new L("",{factory:()=>[]}),cP=new L(""),dS=new L("",{factory:()=>!0});function gW(){let t=null;return(i,e)=>{t===null&&(t=(p(lP,{optional:!0})??[]).reduceRight(hW,sP));let n=p(bu);if(p(dS)){let r=n.add();return t(i,e).pipe(yl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var hv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(bu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(cP,[])]));this.chain=n.reduceRight((o,r)=>fW(o,r,this.injector),sP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(yl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(hv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Fu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Ou)r=e;else{let l;o.headers instanceof Xo?l=o.headers:l=new Xo(o.headers);let u;o.params&&(o.params instanceof Us?u=o.params:u=new Us({fromObject:o.params})),r=new Ou(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(bl(l=>this.handler.handle(l)));if(e instanceof Ou||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof sh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Us().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _W=new L("",{factory:()=>!0}),vW="XSRF-TOKEN",bW=new L("",{factory:()=>vW}),yW="X-XSRF-TOKEN",CW=new L("",{factory:()=>yW}),xW=(()=>{class t{cookieName=p(bW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eh(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(xW),o},providedIn:"root"})}return t})();function wW(t,i){if(!p(_W)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(zs).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(dP).getToken(),n=p(CW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function DW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Fu,hv,{provide:mS,useExisting:hv},{provide:uS,useFactory:()=>p(mW,{optional:!0})??p(lS)},{provide:cS,useValue:wW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var oP=new L("");function fS(){return DW(pS.LegacyInterceptors,[{provide:oP,useFactory:gW},{provide:cS,useExisting:oP,multi:!0}])}var mP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(SW),o},providedIn:"root"})}return t})(),SW=(()=>{class t extends Hs{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return ls(n,"HTML")?gr(n):M_(this._doc,String(n)).toString();case Ai.STYLE:return ls(n,"Style")?gr(n):n;case Ai.SCRIPT:if(ls(n,"Script"))return gr(n);throw new ie(5200,!1);case Ai.URL:return ls(n,"URL")?gr(n):Lp(String(n));case Ai.RESOURCE_URL:if(ls(n,"ResourceURL"))return gr(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",yh=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function yv(t){return new Promise((i,e)=>{t.pipe(Is()).subscribe({next:n=>i(n),error:n=>e(n)})})}function EW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function MW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:Bs(t)?Hn(Promise.resolve(t)):Me(t)}function xP(t){return Dc(t)?yv(t):Promise.resolve(t)}var TW={exact:SP,subset:EP},wP={exact:IW,subset:kW,ignored:()=>!0},DP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pP(t,i,e){return TW[e.paths](t.root,i.root,e.matrixParams)&&wP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function IW(t,i){return ps(t,i)}function SP(t,i,e){if(!Kc(t.segments,i.segments)||!_v(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!SP(t.children[n],i.children[n],e))return!1;return!0}function kW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>CP(t[e],i[e]))}function EP(t,i,e){return MP(t,i,i.segments,e)}function MP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!_v(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!_v(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!EP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!_v(t.segments,o,n)||!t.children[Vt]?!1:MP(t.children[Vt],i,r,n)}}function _v(t,i,e){return i.every((n,o)=>wP[e](t[o].parameters,n.parameters))}var br=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return OW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vv(this)}},Nl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return IP(this)}};function AW(t,i){return Kc(t,i)&&t.every((e,n)=>ps(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function RW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Vl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new $s,providedIn:"root"})}return t})(),$s=class{parse(i){let e=new DS(i);return new br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${ch(i.root,!0)}`,n=FW(i.queryParams),o=typeof i.fragment=="string"?`#${PW(i.fragment)}`:"";return`${e}${n}${o}`}},OW=new $s;function vv(t){return t.segments.map(i=>IP(i)).join("/")}function ch(t,i){if(!t.hasChildren())return vv(t);if(i){let e=t.children[Vt]?ch(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${ch(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=RW(t,(n,o)=>o===Vt?[ch(t.children[Vt],!1)]:[`${o}:${ch(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${vv(t)}/${e[0]}`:`${vv(t)}/(${e.join("//")})`}}function TP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fv(t){return TP(t).replace(/%3B/gi,";")}function PW(t){return encodeURI(t)}function wS(t){return TP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bv(t){return decodeURIComponent(t)}function hP(t){return bv(t.replace(/\+/g,"%20"))}function IP(t){return`${wS(t.path)}${NW(t.parameters)}`}function NW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function FW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${fv(e)}=${fv(o)}`).join("&"):`${fv(e)}=${fv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var LW=/^[^\/()?;#]+/;function _S(t){let i=t.match(LW);return i?i[0]:""}var VW=/^[^\/()?;=#]+/;function BW(t){let i=t.match(VW);return i?i[0]:""}var jW=/^[^=?&#]+/;function zW(t){let i=t.match(jW);return i?i[0]:""}var UW=/^[^&#]+/;function HW(t){let i=t.match(UW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Nl(bv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=BW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[bv(e)]=bv(n)}parseQueryParam(i){let e=zW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=HW(this.remaining);a&&(n=a,this.capture(n))}let o=hP(e),r=hP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function kP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function AP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=AP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return WW(e)}function WW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Fl(t){return t instanceof br}function RP(t,i,e=null,n=null,o=new $s){let r=OP(t);return PP(r,i,e,n,o)}function OP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=kP(n);return i??o}function PP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=$W(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=GW(a,r,t),l=s.processChildren?uh(s.segmentGroup,s.index,a.commands):FP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function Cv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ph(t){return typeof t=="object"&&t!=null&&t.outlets}function fP(t,i,e){t||="\u0275";let n=new br;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>fP(u,g,r)):fP(u,h,r);let s;t===i?s=e:s=NP(t,i,e);let l=kP(AP(s));return new br(l,a,o)}function NP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=NP(r,i,e)}),new In(t.segments,n)}var xv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Cv(n[0]))throw new ie(4003,!1);let o=n.find(ph);if(o&&o!==MW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $W(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new xv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new xv(e,i,n)}var Vu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function GW(t,i,e){if(t.isAbsolute)return new Vu(i,!0,0);if(!e)return new Vu(i,!1,NaN);if(e.parent===null)return new Vu(e,!0,0);let n=Cv(t.commands[0])?0:1,o=e.segments.length-1+n;return qW(e,o,t.numberOfDoubleDots)}function qW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Vu(n,!1,o-r)}function YW(t){return ph(t[0])?t[0].outlets:{[Vt]:t}}function FP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return uh(t,i,e);let n=QW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=uh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=FP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function QW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(ph(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!_P(l,u,a))return r;n+=2}else{if(!_P(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function gP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function _P(t,i,e){return t==e.path&&ps(i,e.parameters)}var Bu="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),yr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ll=class extends yr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jo=class extends yr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wo||{}),zu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(zu||{}),Wr=class extends yr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function LP(t){return t instanceof Wr&&(t.code===wo.Redirect||t.code===wo.SupersededByNewNavigation)}var hs=class extends yr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends yr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},hh=class extends yr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wv=class extends yr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends yr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Sv=class extends yr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ev=class extends yr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Tv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Iv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kv=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Hu=class{},fh=class{},Wu=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function ZW(t){return!(t instanceof Hu)&&!(t instanceof Wu)&&!(t instanceof fh)}var Ov=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Ov(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var vr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var gh=class extends Pv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function VP(t,i){let e=XW(t,i),n=new on([new Nl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new gh(new vr(l,[]),e)}function XW(t,i){let e={},n={},o={},a=new $u([],e,o,"",n,Vt,t,null,{},i);return new _h("",new vr(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[yh]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&jP(o)&&(n.resolve[yh]=o.title),n}var $u=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[yh]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},_h=class extends Pv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return BP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function BP(t){let i=t.children.length>0?` { ${t.children.map(BP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ps(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ps(i.params,e.params)||t.paramsSubject.next(e.params),EW(i.url,e.url)||t.urlSubject.next(e.url),ps(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=ps(t.params,i.params)&&AW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function jP(t){return typeof t.title=="string"||t.title===null}var zP=new L(""),Ch=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=MO();parentContexts=p(ed);location=p(En);changeDetector=p(Qe);inputBinder=p(xh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===zP?this.outletData:this.parent.get(i,e)}},xh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=bo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=LO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[Ch],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ze(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function JW(t,i,e){let n=vh(t,i._root,e?e._root:void 0);return new gh(n,i)}function vh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=e$(t,i,e);return new vr(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>vh(t,s)),a}}let n=t$(i.value),o=i.children.map(r=>vh(t,r));return new vr(n,o)}}function e$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return vh(t,n,o);return vh(t,n)})}function t$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var Gu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},UP="ngNavigationCancelingError";function Nv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Fl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=HP(!1,wo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function HP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UP]=!0,e.cancellationCode=i,e}function n$(t){return WP(t)&&Fl(t.url)}function WP(t){return!!t&&t[UP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Rv(r.value.snapshot))}),i.children.length&&this.forwardEvent(new kv(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Fv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},ju=class{component;route;constructor(i,e){this.component=i,this.route=e}};function i$(t,i,e){let n=t._root,o=i?i._root:null;return dh(n,o,e,[n.value])}function o$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Yu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function dh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Lu(i);return t.children.forEach(a=>{r$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>mh(s,e.getContext(a),o)),o}function r$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=a$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Fv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?dh(t,i,s?s.children:null,n,o):dh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new ju(s.outlet.component,a))}else a&&mh(i,s,o),o.canActivateChecks.push(new Fv(n)),r.component?dh(t,null,s?s.children:null,n,o):dh(t,null,e,n,o);return o}function a$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!ps(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!ps(t.queryParams,i.queryParams);default:return!TS(t,i)}}function mh(t,i,e){let n=Lu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?mh(a,i.children.getContext(r),e):mh(a,null,e):mh(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new ju(i.outlet.component,o)):e.canDeactivateChecks.push(new ju(null,o)):e.canDeactivateChecks.push(new ju(null,o))}function wh(t){return typeof t=="function"}function s$(t){return typeof t=="boolean"}function l$(t){return t&&wh(t.canLoad)}function c$(t){return t&&wh(t.canActivate)}function d$(t){return t&&wh(t.canActivateChild)}function u$(t){return t&&wh(t.canDeactivate)}function m$(t){return t&&wh(t.canMatch)}function $P(t){return t instanceof Es||t?.name==="EmptyError"}var gv=Symbol("INITIAL_VALUE");function qu(){return yn(t=>bo(t.map(i=>i.pipe(bn(1),ln(gv)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===gv)return gv;if(e===!1||p$(e))return e}return!0}),At(i=>i!==gv),bn(1)))}function p$(t){return Fl(t)||t instanceof Gu}function GP(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function qP(t){return Xe(GP(t))}function h$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ze(G({},i),{guardsResult:!0})):f$(r,e,n).pipe(wi(a=>a&&s$(a)?g$(e,o,t):Me(a)),et(a=>Ze(G({},i),{guardsResult:a})))})}function f$(t,i,e){return Hn(t).pipe(wi(n=>C$(n.component,n.route,e,i)),Is(n=>n!==!0,!0))}function g$(t,i,e){return Hn(i).pipe(bl(n=>Ja(v$(n.route.parent,e),_$(n.route,e),y$(t,n.path),b$(t,n.route))),Is(n=>n!==!0,!0))}function _$(t,i){return t!==null&&i&&i(new Av(t)),Me(!0)}function v$(t,i){return t!==null&&i&&i(new Iv(t)),Me(!0)}function b$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>mr(()=>{let r=i._environmentInjector,a=Yu(o,r),s=c$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(Is())}));return Me(n).pipe(qu())}function y$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>o$(r)).filter(r=>r!==null).map(r=>mr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Yu(s,l),h=d$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(Is())});return Me(a).pipe(qu())}));return Me(o).pipe(qu())}function C$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Yu(a,s),u=u$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(Is())});return Me(r).pipe(qu())}function x$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Yu(s,t),u=l$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(qP(o)):h});return Me(a).pipe(qu(),YP(n))}function YP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Nv(t,i)}),et(i=>i===!0))}function w$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Yu(l,t),h=m$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(qP(r))});return Me(s).pipe(qu(),YP(n))}var Ws=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},bh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function D$(t){throw new ie(4e3,!1)}function S$(t){throw HP(!1,wo.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw D$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield E$(e,o,r);if(a instanceof br)throw new bh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new bh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new br(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function E$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return yv(Jc(zi(e,()=>n(i))))}function M$(t,i){return t.providers&&!t._injector&&(t._injector=Iu(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function T$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function I$(t,i,e,n,o,r,a){let s=KP(t,i,e);if(!s.matched)return Me(s);let l=QP(r(s));return n=M$(i,n),w$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:G({},RS)))}function KP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||yP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function vP(t,i,e,n,o){return e.length>0&&R$(t,e,n,o)?{segmentGroup:new In(i,A$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&O$(t,e,n)?{segmentGroup:new In(t.segments,k$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function k$(t,i,e,n){let o={};for(let r of e)if(Vv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return G(G({},n),o)}function A$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function R$(t,i,e,n){return e.some(o=>!Vv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function O$(t,i,e){return e.some(n=>Vv(t,i,n))}function Vv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function P$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function N$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var F$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=vP(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new vr(n,e),r=new _h("",o),a=RP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new $u([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof bh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ws?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof vr?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=T$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=ZP(a);return L$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof Ws||$P(u))continue;throw u}if(P$(n,o,r))return new OS;throw new Ws(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Vv(o,r,n)))throw new Ws(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new Ws(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=KP(e,o,r);if(!l)throw new Ws(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>F$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,QP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new $u(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,B$(e),Ra(e),e.component??e._loadedComponent??null,e,j$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield yv(I$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Ws(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=vP(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new vr(S,ve)}if(u.length===0&&j.length===0)return new vr(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new vr(S,q instanceof vr?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield yv(x$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw S$(e)}return{routes:[],injector:i}})}};function L$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function V$(t){let i=t.value.routeConfig;return i&&i.path===""}function ZP(t){let i=[],e=new Set;for(let n of t){if(!V$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=ZP(n.children);i.push(new vr(n.value,o))}return i.filter(n=>!e.has(n))}function B$(t){return t.data||{}}function j$(t){return t.resolve||{}}function z$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield N$(t,i,e,n,s.extractedUrl,o,r,a);return Ze(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function U$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of XP(s))r.add(l);let a=0;return Hn(r).pipe(bl(s=>o.has(s)?H$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),_g(1),wi(s=>a===r.size?Me(i):hi))})}function XP(t){let i=t.children.map(e=>XP(e)).flat();return[t,...i]}function H$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!jP(n)&&(o[yh]=n.title),mr(()=>(t.data=NS(t,t.parent,e).resolve,W$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function W$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>$$(t[r],i,e).pipe(Is(),fi(a=>{if(a instanceof Gu)throw Nv(new $s,a);o[r]=a}))),_g(1),et(()=>o),Io(r=>$P(r)?hi:wc(r)))}function $$(t,i,e){let n=i._environmentInjector,o=Yu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function bP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[yh]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(JP),providedIn:"root"})}return t})(),JP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(mP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bl=new L("",{factory:()=>({})}),Qu=new L(""),Bv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield xP(zi(e,()=>n.loadComponent())),a=yield nN(tN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield eN(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eN(t,i,e,n){return B(this,null,function*(){let o=yield xP(zi(e,()=>t.loadChildren())),r=yield nN(tN(o)),a;r instanceof V_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Qu,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function G$(t){return t&&typeof t=="object"&&"default"in t}function tN(t){return G$(t)?t.default:t}function nN(t){return B(this,null,function*(){return t})}var jv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(q$),providedIn:"root"})}return t})(),q$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function iN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Y$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Y$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var Q$=()=>{},HS=new L(""),zv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(Bv);environmentInjector=p(Cn);destroyRef=p(xo);urlSerializer=p(Vl);rootContexts=p(ed);location=p(ms);inputBindingEnabled=p(xh,{optional:!0})!==null;titleStrategy=p(jS);options=p(Bl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(jv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Mv(o)),n=o=>this.events.next(new Tv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;pn(()=>{this.transitions?.next(Ze(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ze(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.rawUrl),"",zu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Ll(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),z$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new fh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new hh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Ll(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=VP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ze(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ze(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",zu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new wv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ze(G({},s),{guards:i$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),h$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Nv(this.urlSerializer,s.guardsResult);let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",wo.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(U$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",wo.NoDataFromResolver)}}))}),bP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),bP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=JW(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ze(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Hu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=Q$,l)),this.lastSuccessfulNavigation.set(pn(this.currentNavigation)),this.events.next(new Jo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe(GP(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",wo.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),yl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Io(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(WP(s))this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),n$(s)?this.events.next(new Wu(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof Gu){let{message:h,cancellationCode:g}=Nv(this.urlSerializer,u);this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new Wu(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new Wr(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=pn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K$(t){return t!==Bu}var oN=new L("");var rN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Z$),providedIn:"root"})}return t})(),Lv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},Z$=(()=>{class t extends Lv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uv=(()=>{class t{urlSerializer=p(Vl);options=p(Bl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ms);urlHandlingStrategy=p(jv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new br;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof br?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=VP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),X$=(()=>{class t extends Uv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Ll?this.updateStateMemento():e instanceof hs?this.commitTransition(n):e instanceof hh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Hu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wr&&!LP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof Jo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hv(t,i){t.events.pipe(At(e=>e instanceof Jo||e instanceof Wr||e instanceof Xc||e instanceof hs),et(e=>e instanceof Jo||e instanceof hs?0:(e instanceof Wr?e.code===wo.Redirect||e.code===wo.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var er=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(B_);stateManager=p(Uv);options=p(Bl,{optional:!0})||{};pendingTasks=p(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(zv);urlSerializer=p(Vl);location=p(ms);urlHandlingStrategy=p(jv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(rN);injectorCleanup=p(oN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Qu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(xh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=pn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Wr&&n.code!==wo.Redirect&&n.code!==wo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Jo)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Wu){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||K$(o.source)},a);this.scheduleNavigation(s,Bu,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ZW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Bu,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ze(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Zo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=OP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return PP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Fl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Bu,null,n)}navigate(e,n={skipLocationChange:!1}){return J$(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},DP):n===!1?o=G({},xS):o=G(G({},xS),n),Fl(e))return pP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return pP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Hv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function J$(t){for(let i=0;i{class t{router=p(er);stateManager=p(Uv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Vl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Jo&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new br(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return pn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return pn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return pn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return pn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return pn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return pn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return pn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return pn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return pn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return pn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Zo);options=p(Bl,{optional:!0});reactiveRouterState=p(tG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Fl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return pn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(er),D(tt),Fp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Dh=class{};var aN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof Jo),bl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=Iu(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(vl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(vl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(er),we(Cn),we(Dh),we(Bv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sN=new L(""),nG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bu;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Vl);zone=p(be);viewportScroller=p(JD);transitions=p(zv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hs&&e.code===zu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Uu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=pn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Uu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function iG(){return p(er).routerState.root}function Sh(t,i){return{\u0275kind:t,\u0275providers:i}}function oG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(er),o=t.get(lN);t.get($S)===1&&n.initialNavigation(),t.get(uN,null,{optional:!0})?.setUpPreloading(),t.get(sN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function cN(){let t=[{provide:D_,useValue:!0},{provide:$S,useValue:0},H_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(er),r=i.get(lN);Hv(o,()=>{n(!0)}),i.get(zv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Sh(2,t)}function dN(){let t=[H_(()=>{p(er).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Sh(3,t)}var uN=new L("");function mN(t){return Sh(0,[{provide:uN,useExisting:aN},{provide:Dh,useExisting:t}])}function pN(){return Sh(8,[LS,{provide:xh,useExisting:LS}])}function hN(t){Hr("NgRouterViewTransitions");let i=[{provide:zS,useValue:iN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Sh(9,i)}var fN=[ms,{provide:Vl,useClass:$s},er,ed,{provide:tt,useFactory:iG},Bv,[]],Wv=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[fN,[],{provide:Qu,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:Bl,useValue:n||{}},n?.useHash?aG():sG(),rG(),n?.preloadingStrategy?mN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?lG(n):[],n?.bindToComponentInputs?pN().\u0275providers:[],n?.enableViewTransitions?hN().\u0275providers:[],cG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Qu,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function rG(){return{provide:sN,useFactory:()=>{let t=p(JD),i=p(Bl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new nG(i)}}}function aG(){return{provide:Aa,useClass:QD}}function sG(){return{provide:Aa,useClass:iv}}function lG(t){return[t.initialNavigation==="disabled"?dN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cN().\u0275providers:[]]}var WS=new L("");function cG(){return[{provide:WS,useFactory:oG},{provide:W_,multi:!0,useExisting:WS}]}var $v=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?WO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function gN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(gN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function $r(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Gv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=Gv.get(n);o||(o={loaders:new Set,refs:[]},Gv.set(n,o),n.onDestroy(()=>{Gv.get(n)?.refs.forEach(r=>r.destroy()),Gv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(ev(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return qv(t)?Number(t):arguments.length===2?i:0}function qv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var dG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),uG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function _N(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?uG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(dG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(_N(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Yv,td;function Qv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Ku(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Yv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Yv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Yv}var nd=class{};function Eh(t){return t&&typeof t.connect=="function"&&!(t instanceof ep)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Kv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var mG=20,jl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=mG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(ru(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mh=(()=>{class t{elementRef=p(se);scrollDispatcher=p(jl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Ku()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Ku()==Pa.INVERTED?e.left=e.right:Ku()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Qv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Ku()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Ku()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),pG=20,po=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=pG){return e>0?this._change.pipe(ru(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vN=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var Cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Th=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,Cr,pt,Cr]})}return t})();var KS={},zt=class t{_appId=p(Al);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ih=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},tr=class extends Ih{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends Ih{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends Ih{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},zl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof tr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Zu=class extends zl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ss,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=ev(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},yN=(()=>{class t extends Gi{constructor(){let e=p(un),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends zl{_moduleRef=p(ss,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function dn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var CN=Qv();function Ul(t){return new Zv(t.get(po),t.get(ke))}var Zv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),CN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function TN(t,i){return new Xv(t.get(jl),t.get(be),t.get(po),i)}var Xv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var kh=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function xN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function wr(t,i){return new Jv(t.get(jl),t.get(po),t.get(be),i)}var Jv=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},IN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new kh;close=e=>TN(this._injector,e);block=()=>Ul(this._injector);reposition=e=>wr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new kh;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var eb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var kN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends kN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RN=(()=>{class t extends kN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(wN(s.overlayElement,n)||wN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ON=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -141,7 +141,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),tb=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||YS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function JS(t){return t&&t.nodeType===1}var Xu=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=ze.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=q(q({},this._config),i),this._updateElementSize()}setDirection(i){this._config=nt(q({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;JS(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new XS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Gs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},wN="cdk-overlay-connected-position-bounding-box",uG=/([A-Za-z%]+)$/;function Fa(t,i){return new Ju(i,t.get(po),t.get(ke),t.get(Ft),t.get(tb))}var Ju=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=ze.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(wN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:JS(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=SN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),B=S*P;return{visibleArea:B,isCompletelyWithinViewport:r.width*r.height===B,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=DN(this._overlayRef.getConfig().minHeight),s=DN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=SN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CN(i,n),isOriginOutsideView:ZS(i,n),isOverlayClipped:CN(e,n),isOverlayOutsideView:ZS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Gs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(uG);return!e||e==="px"?parseFloat(i):null}return t||null}function SN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function mG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EN="cdk-global-overlay-wrapper";function fs(t){return new eb}var eb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},ON=(()=>{class t{_injector=p(Te);constructor(){}global(){return fs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kh=new L("OVERLAY_DEFAULT_CONFIG");function Uo(t,i){t.get(an).load(RN);let e=t.get(tb),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(Cn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new jo(i),u=t.get(kh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return JS(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Xu(new Zu(h,r,t),g,h,l,t.get(be),t.get(kN),n,t.get(ms),t.get(AN),i?.disableAnimations??t.get(Rl,null,{optional:!0})==="NoopAnimations",t.get(yn),s)}var PN=(()=>{class t{scrollStrategies=p(TN);_positionBuilder=p(ON);_injector=p(Te);constructor(){}create(e){return Uo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pG=[{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"}],hG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t)}}),em=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),NN=new L("cdk-connected-overlay-default-config"),nb=(()=>{class t{_dir=p(Cn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=ze.EMPTY;_attachSubscription=ze.EMPTY;_detachSubscription=ze.EMPTY;_positionSubscription=ze.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(hG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(un),n=p(Sn),o=p(NN,{optional:!0}),r=p(kh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=pG);let e=this._overlayRef=Uo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new jo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof em?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof em?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(OC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[yt]})}return t})(),ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[PN],imports:[pt,br,Mh,Mh]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Ah;function FN(){if(Ah==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ah=!0}))}finally{Ah=Ah||!1}return Ah}function tm(t){return FN()?t:!!t.capture}var LN=new L("cdk-input-modality-detector-options"),VN={ignoreKeys:[18,17,224,91,16]},BN=650,eE={passive:!0,capture:!0},jN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(LN,{optional:!0});if(this._options=q(q({},VN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(fg()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,eE),r.listen(n,"mousedown",this._onMousedown,eE),r.listen(n,"touchstart",this._onTouchstart,eE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Rh||{}),zN=new L("cdk-focus-monitor-default-options"),ib=tm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(jN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(zN,{optional:!0});this._detectionMode=e?.detectionMode||Rh.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Vo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=qS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Vo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Vo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Rh.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Rh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?BN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ib),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ib)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ze(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,ib),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ib),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var $r=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { +`],encapsulation:2,changeDetection:0})}return t})(),nb=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Xu=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ze(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Gs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},DN="cdk-overlay-connected-position-bounding-box",hG=/([A-Za-z%]+)$/;function Fa(t,i){return new Ju(i,t.get(po),t.get(ke),t.get(Ft),t.get(nb))}var Ju=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(DN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=EN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=SN(this._overlayRef.getConfig().minHeight),s=SN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=EN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:xN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Gs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function SN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(hG);return!e||e==="px"?parseFloat(i):null}return t||null}function EN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function fG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var MN="cdk-global-overlay-wrapper";function fs(t){return new tb}var tb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(MN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(MN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},PN=(()=>{class t{_injector=p(Te);constructor(){}global(){return fs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ah=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(ON);let e=t.get(nb),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Ah,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Xu(new Zu(h,r,t),g,h,l,t.get(be),t.get(AN),n,t.get(ms),t.get(RN),i?.disableAnimations??t.get(Rl,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var NN=(()=>{class t{scrollStrategies=p(IN);_positionBuilder=p(PN);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gG=[{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"}],_G=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),em=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),FN=new L("cdk-connected-overlay-default-config"),ib=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(_G);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(un),n=p(En),o=p(FN,{optional:!0}),r=p(Ah,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gG);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof em?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof em?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[NN],imports:[pt,xr,Th,Th]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Rh;function LN(){if(Rh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rh=!0}))}finally{Rh=Rh||!1}return Rh}function tm(t){return LN()?t:!!t.capture}var VN=new L("cdk-input-modality-detector-options"),BN={ignoreKeys:[18,17,224,91,16]},jN=650,tE={passive:!0,capture:!0},zN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(VN,{optional:!0});if(this._options=G(G({},BN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(gg()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oh=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Oh||{}),UN=new L("cdk-focus-monitor-default-options"),ob=tm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(zN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(UN,{optional:!0});this._detectionMode=e?.detectionMode||Oh.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Oh.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Oh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ob),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ob)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,ob),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ob),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -160,14 +160,14 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),ob;function fG(){if(ob===void 0&&(ob=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ob=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ob}function ad(t){return fG()?.createHTML(t)||t}function UN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var HN=new Set,sd,nm=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_G}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&gG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gG(t,i){if(!HN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),HN.add(t))}catch(e){console.error(e)}}function _G(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(nm);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WN(Gs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=WN(Gs(e)).map(a=>this._registerQuery(a).observable),r=bo(o);return r=Ja(r.pipe(vn(1)),r.pipe(Ec(1),Ts(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(ln(n),et(({matches:a})=>({query:e,matches:a})),Ze(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WN(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function vG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=(()=>{class t{_mutationObserverFactory=p($N);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Vo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!vG(l))),Nt(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_contentObserver=p(GN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ts(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),rb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$N]})}return t})();var iE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return yG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=bG(TG(e));if(n&&(YN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=YN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!EG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return MG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bG(t){try{return t.frameElement}catch(i){return null}}function yG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function CG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function xG(t){return DG(t)&&t.type=="hidden"}function wG(t){return SG(t)&&t.hasAttribute("href")}function DG(t){return t.nodeName.toLowerCase()=="input"}function SG(t){return t.nodeName.toLowerCase()=="a"}function ZN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function YN(t){if(!ZN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function EG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function MG(t){return xG(t)?!1:CG(t)||wG(t)||t.hasAttribute("contenteditable")||ZN(t)}function TG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var nE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},ab=(()=>{class t{_checker=p(iE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load($r)}create(e,n=!1){return new nE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(ab);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Wr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[yt]})}return t})(),XN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),JN=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),IG=0,Ph=(()=>{class t{_ngZone=p(be);_defaultOptions=p(JN,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Hs);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(XN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:UN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Hl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Hl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Hl.BLACK_ON_WHITE}return Hl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(tE,QN,KN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Hl.BLACK_ON_WHITE?e.add(tE,QN):n===Hl.WHITE_ON_BLACK&&e.add(tE,KN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(eF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[rb]})}return t})();function kG(t,i){}var Wl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var aE=(()=>{class t extends zl{_elementRef=p(se);_focusTrapFactory=p(ab);_config;_interactivityChecker=p(iE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Qe);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Wl,{optional:!0})||new Wl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Wr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Wr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Wr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&rt(Bo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&he("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,kG,0,0,"ng-template",0)},dependencies:[Bo],styles:[`.cdk-dialog-container { +`],encapsulation:2,changeDetection:0})}return t})(),rb;function vG(){if(rb===void 0&&(rb=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(rb=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return rb}function ad(t){return vG()?.createHTML(t)||t}function HN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var WN=new Set,sd,nm=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bG(t,i){if(!WN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),WN.add(t))}catch(e){console.error(e)}}function yG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(nm);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $N(Gs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=$N(Gs(e)).map(a=>this._registerQuery(a).observable),r=bo(o);return r=Ja(r.pipe(bn(1)),r.pipe(Ec(1),Ts(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(ln(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $N(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function CG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_mutationObserverFactory=p(GN);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!CG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YN=(()=>{class t{_contentObserver=p(qN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ts(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),ab=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[GN]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=xG(AG(e));if(n&&(QN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=QN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return kG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xG(t){try{return t.frameElement}catch(i){return null}}function wG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SG(t){return MG(t)&&t.type=="hidden"}function EG(t){return TG(t)&&t.hasAttribute("href")}function MG(t){return t.nodeName.toLowerCase()=="input"}function TG(t){return t.nodeName.toLowerCase()=="a"}function XN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function QN(t){if(!XN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function IG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function kG(t){return SG(t)?!1:DG(t)||EG(t)||t.hasAttribute("contenteditable")||XN(t)}function AG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},sb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(Gr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(sb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=$r(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),JN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),eF=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),RG=0,Nh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(eF,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Hs);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(JN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:HN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Hl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Hl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Hl.BLACK_ON_WHITE}return Hl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,KN,ZN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Hl.BLACK_ON_WHITE?e.add(nE,KN):n===Hl.WHITE_ON_BLACK&&e.add(nE,ZN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(tF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ab]})}return t})();function OG(t,i){}var Wl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends zl{_elementRef=p(se);_focusTrapFactory=p(sb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Qe);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Wl,{optional:!0})||new Wl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=$r(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=$r();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$r()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,OG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } -`],encapsulation:2})}return t})(),Nh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},AG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),RG=new L("DialogData"),OG=new L("DefaultDialogConfig");function PG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var sE=(()=>{class t{_injector=p(Te);_defaultOptions=p(OG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(tb);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(AG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=cr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Wl;n=q(q({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=Uo(this._injector,r),s=new Nh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(vn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){rE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){rE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),rE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new jo({positionStrategy:e.positionStrategy||fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Wl,useValue:o},{provide:Nh,useValue:n},{provide:Xu,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=aE;let l=new Jo(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof un){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=q(q({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new Jo(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:RG,useValue:e.data},{provide:Nh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(Cn,null,{optional:!0}))&&s.push({provide:Cn,useValue:PG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rE(t,i){let e=t.length;for(;e--;)i(t[e])}var tF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[sE],imports:[ho,br,cd,br]})}return t})();function Gr(t){return t!=null&&`${t}`!="false"}function nF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var sb={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 NG=new L("MATERIAL_ANIMATIONS"),iF=null;function lE(){return p(NG,{optional:!0})?.animationsDisabled||p(Rl,{optional:!0})==="NoopAnimations"?"di-disabled":(iF??=p(nm).matchMedia("(prefers-reduced-motion)").matches,iF?"reduced-motion":"enabled")}function Bt(){return lE()!=="enabled"}var FG=200,lb=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:FG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Ts(i),Nt(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof mr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):cs(i)&&(this._effectRef=Ns(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new lb(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends im{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qs=class extends im{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var aF=" ";function am(t,i,e){let n=ub(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(aF)))}function $l(t,i,e){let n=ub(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(aF)):t.removeAttribute(i)}function ub(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var sF="cdk-describedby-message",db="cdk-describedby-host",dE=0,mb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${dE++}`;constructor(){p(an).load($r),this._id=p(Al)+"-"+dE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=cE(n,o);typeof n!="string"?(rF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=cE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${db}="${this._id}"]`);for(let n=0;no.indexOf(sF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);am(e,"aria-describedby",o.messageElement.id),e.setAttribute(db,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,$l(e,"aria-describedby",o.messageElement.id),e.removeAttribute(db)}_isElementDescribedByMessage(e,n){let o=ub(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function rF(t,i){t.id||(t.id=`${sF}-${i}-${dE++}`)}function LG(t,i){}var hb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},uE="mdc-dialog--open",lF="mdc-dialog--opening",cF="mdc-dialog--closing",VG=150,BG=75,jG=(()=>{class t extends aE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uF(this._config.enterAnimationDuration)??VG:0;_exitAnimationDuration=this._animationsEnabled?uF(this._config.exitAnimationDuration)??BG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lF,uE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(uE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(uE),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(lF,cF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Rn("id",o._config.id),he("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,LG,0,0,"ng-template",2),d()())},dependencies:[Bo],styles:[`.mat-mdc-dialog-container { +`],encapsulation:2})}return t})(),Fh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},PG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),NG=new L("DialogData"),FG=new L("DefaultDialogConfig");function LG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(FG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(nb);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(PG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Wl;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Fh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Wl,useValue:o},{provide:Fh,useValue:n},{provide:Xu,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new tr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof un){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new tr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:NG,useValue:e.data},{provide:Fh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:LG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var nF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[ho,xr,cd,xr]})}return t})();function qr(t){return t!=null&&`${t}`!="false"}function iF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var lb={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 VG=new L("MATERIAL_ANIMATIONS"),oF=null;function cE(){return p(VG,{optional:!0})?.animationsDisabled||p(Rl,{optional:!0})==="NoopAnimations"?"di-disabled":(oF??=p(nm).matchMedia("(prefers-reduced-motion)").matches,oF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var BG=200,cb=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:BG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Ts(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof fr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):cs(i)&&(this._effectRef=Ns(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new cb(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends im{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qs=class extends im{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var sF=" ";function am(t,i,e){let n=mb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(sF)))}function $l(t,i,e){let n=mb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(sF)):t.removeAttribute(i)}function mb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lF="cdk-describedby-message",ub="cdk-describedby-host",uE=0,pb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(Gr),this._id=p(Al)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(aF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${ub}="${this._id}"]`);for(let n=0;no.indexOf(lF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);am(e,"aria-describedby",o.messageElement.id),e.setAttribute(ub,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,$l(e,"aria-describedby",o.messageElement.id),e.removeAttribute(ub)}_isElementDescribedByMessage(e,n){let o=mb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function aF(t,i){t.id||(t.id=`${lF}-${i}-${uE++}`)}function jG(t,i){}var fb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",cF="mdc-dialog--opening",dF="mdc-dialog--closing",zG=150,UG=75,HG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?mF(this._config.enterAnimationDuration)??zG:0;_exitAnimationDuration=this._animationsEnabled?mF(this._config.exitAnimationDuration)??UG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(cF,dF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,jG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { width: 100%; height: 100%; display: block; @@ -356,8 +356,8 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-dialog-component-host { display: contents; } -`],encapsulation:2})}return t})(),dF="--mat-dialog-transition-duration";function uF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var pb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(pb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Nr(1);_beforeClosed=new Nr(1);_result;_closeFallbackTimeout;_state=pb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Nt(o=>o.state==="opened"),vn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Nt(o=>o.state==="closed"),vn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(Nt(o=>o.keyCode===27&&!this.disableClose&&!dn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(Nt(n=>n.state==="closing"),vn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=pb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=pb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function mF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),zG=new L("mat-mdc-dialog-default-options"),UG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),Vh=(()=>{class t{_defaultOptions=p(zG,{optional:!0});_scrollStrategy=p(UG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(sE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=hb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=cr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=jG,this._dialogDataToken=bt}open(e,n){let o;n=q(q({},this._defaultOptions||new hb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,nt(q({},n),{positionStrategy:fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Wl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),On=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Vh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=hF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){mF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&he("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"],features:[yt]})}return t})(),pF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Vh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=hF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),Ct=(()=>{class t extends pF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Rn("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),xt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[bD([Eh])]})}return t})(),wt=(()=>{class t extends pF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function hF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var fF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Vh],imports:[tF,ho,br,pt]})}return t})();var gF,_F=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],vF=[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 sm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var bF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Gl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||$G;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=HG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Wo(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Wo(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Wo(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Wo(yF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Wo(l,3);case"k":return Wo(i.getHours(),y===void 0?" ":y);case"L":return Wo(Math.floor(r%1e3),3);case"l":return Wo(yF(i),y===void 0?" ":y);case"M":return Wo(i.getMinutes(),y);case"m":return Wo(i.getMonth()+1,y);case"n":return` -`;case"o":return String(i.getDate())+WG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Wo(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Wo(CF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Wo(CF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Wo(Math.abs(g/60))+Wo(g%60));default:return s}})},HG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Wo=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},WG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},CF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},mE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Gl(mE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",pE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),wF=t=>t===""||t===null||t===void 0,fb=t=>t==="yes"||t===!0||t==="true"||t===1,$G={days:_F,shortDays:bF(_F),months:vF,shortMonths:bF(vF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Qr=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return ug(t.pipe(kC(i)));e=ug(t)}return e},qn=class{static{gF=Symbol.toStringTag}constructor(){this[gF]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var lm,DF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function hE(){if(lm)return lm;if(typeof document!="object"||!document)return lm=new Set(DF),lm;let t=document.createElement("input");return lm=new Set(DF.filter(i=>(t.setAttribute("type",i),t.type===i))),lm}var Kr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Kr||{}),fE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Kr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},SF=tm({passive:!0,capture:!0}),gE=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,SF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,SF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},Bh={enterDuration:225,exitDuration:150},GG=800,EF=tm({passive:!0,capture:!0}),MF=["mousedown","touchstart"],TF=["mouseup","mouseleave","touchend","touchcancel"],qG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { +`],encapsulation:2})}return t})(),uF="--mat-dialog-transition-duration";function mF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var hb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(hb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Vr(1);_beforeClosed=new Vr(1);_result;_closeFallbackTimeout;_state=hb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!dn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),pF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=hb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=hb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),WG=new L("mat-mdc-dialog-default-options"),$G=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),Bh=(()=>{class t{_defaultOptions=p(WG,{optional:!0});_scrollStrategy=p($G);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=fb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=HG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new fb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ze(G({},n),{positionStrategy:fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Wl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Bh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=fF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),hF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Bh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends hF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Mh])]})}return t})(),Dt=(()=>{class t extends hF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function fF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var gF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Bh],imports:[nF,ho,xr,pt]})}return t})();var _F,vF=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bF=[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 sm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var yF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Gl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||YG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=GG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(CF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(CF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` +`;case"o":return String(i.getDate())+qG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(xF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(xF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},GG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},qG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},xF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Gl(pE(o),new Date(i*1e3))}return n},wF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),DF=t=>t===""||t===null||t===void 0,gb=t=>t==="yes"||t===!0||t==="true"||t===1,YG={days:vF,shortDays:yF(vF),months:bF,shortMonths:yF(bF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Kr=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return mg(t.pipe(RC(i)));e=mg(t)}return e},qn=class{static{_F=Symbol.toStringTag}constructor(){this[_F]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var lm,SF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(lm)return lm;if(typeof document!="object"||!document)return lm=new Set(SF),lm;let t=document.createElement("input");return lm=new Set(SF.filter(i=>(t.setAttribute("type",i),t.type===i))),lm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},EF=tm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,EF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,EF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},jh={enterDuration:225,exitDuration:150},QG=800,MF=tm({passive:!0,capture:!0}),TF=["mousedown","touchstart"],IF=["mouseup","mouseleave","touchend","touchcancel"],KG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -385,7 +385,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),jh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new gE;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Vo(n)),r&&r.get(an).load(qG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=q(q({},Bh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||YG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new fE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Kr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let B=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{B&&(B.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},G=()=>this._destroyRipple(P),ve=setTimeout(G,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",G),B={onTransitionEnd:F,onTransitionCancel:G,fallbackTimer:ve}}),this._activeRipples.set(P,B),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Kr.FADING_OUT||i.state===Kr.HIDDEN)return;let e=i.element,n=q(q({},Bh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Kr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Vo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,MF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TF.forEach(e=>{this._triggerElement.addEventListener(e,this,EF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Kr.FADING_IN?this._startFadeOutTransition(i):i.state===Kr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Kr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Kr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Kr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Kr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(MF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(TF.forEach(e=>i.removeEventListener(e,this,EF)),this._pointerUpEventsRegistered=!1))}};function YG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var cm=new L("mat-ripple-global-options"),Cr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(cm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new jh(this,e,this._elementRef,n,r)}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:q(q(q({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,q(q({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,q(q({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var QG={capture:!0},KG=["focus","mousedown","mouseenter","touchstart"],_E="mat-ripple-loader-uninitialized",vE="mat-ripple-loader-class-name",IF="mat-ripple-loader-centered",gb="mat-ripple-loader-disabled",_b=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(cm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>KG.map(n=>e.listen(this._document,n,this._onInteraction,QG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(_E,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(vE))&&e.setAttribute(vE,n.className||""),n.centered&&e.setAttribute(IF,""),n.disabled&&e.setAttribute(gb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(gb,""):e.removeAttribute(gb)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${_E}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(vE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??Bh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??Bh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(gb),rippleConfig:{centered:e.hasAttribute(IF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new jh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(_E)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),zh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(KG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},jh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||ZG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},jh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{IF.forEach(e=>{this._triggerElement.addEventListener(e,this,MF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(TF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(IF.forEach(e=>i.removeEventListener(e,this,MF)),this._pointerUpEventsRegistered=!1))}};function ZG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var cm=new L("mat-ripple-global-options"),Dr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(cm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new zh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var XG={capture:!0},JG=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",kF="mat-ripple-loader-centered",_b="mat-ripple-loader-disabled",vb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(cm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>JG.map(n=>e.listen(this._document,n,this._onInteraction,XG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(kF,""),n.disabled&&e.setAttribute(_b,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(_b,""):e.removeAttribute(_b)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??jh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??jh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(_b),rippleConfig:{centered:e.hasAttribute(kF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new zh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -411,7 +411,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var ZG=["mat-icon-button",""],XG=["*"],JG=new L("MAT_BUTTON_CONFIG");function kF(t){return t==null?void 0:ti(t)}var bE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(JG,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(_b);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(he("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Mn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",kF],_tabindex:[2,"tabindex","_tabindex",kF]}})}return t})(),yi=(()=>{class t extends bE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:ZG,ngContentSelectors:XG,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),uo(0,"span",0),Ie(1),uo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var e7=["mat-icon-button",""],t7=["*"],n7=new L("MAT_BUTTON_CONFIG");function AF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(n7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(vb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",AF],_tabindex:[2,"tabindex","_tabindex",AF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:e7,ngContentSelectors:t7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),uo(0,"span",0),Ie(1),uo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -536,7 +536,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var gs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var e7=["matButton",""],t7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],n7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var AF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends bE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=i7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AF.get(this._appearance):null,r=AF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:e7,ngContentSelectors:n7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(t7),uo(0,"span",0),Ie(1),cn(2,"span",1),Ie(3,1),mn(),Ie(4,2),uo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var gs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var i7=["matButton",""],o7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],r7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=a7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?RF.get(this._appearance):null,r=RF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:i7,ngContentSelectors:r7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(o7),uo(0,"span",0),Ie(1),cn(2,"span",1),Ie(3,1),mn(),Ie(4,2),uo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -1080,7 +1080,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function i7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var vb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Hs,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function o7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function r7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function a7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var zh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(zh||{}),yE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return j(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=rp(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===zh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),Gt(1,"safeHtml"),O(2,"mat-dialog-content",1),Gt(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,o7,4,1,"button",2),A(6,r7,3,1,"button",3),A(7,a7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Vn),m(2),b("innerHTML",Xt(3,7,o.data.body),Vn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,On,Ct,wt,xt,Ee,vb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),Uh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var BF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),jF=(()=>{class t extends BF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var s7={provide:Go,useExisting:Wn(()=>Wt),multi:!0};function l7(){let t=hr()?hr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var c7=new L(""),Wt=(()=>{class t extends BF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!l7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(c7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ye([s7]),We]})}return t})();function xE(t){return t==null||wE(t)===0}function wE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Zr=new L(""),Rb=new L(""),d7=/^(?=.{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])?)*$/,vs=class{static min(i){return u7(i)}static max(i){return m7(i)}static required(i){return zF(i)}static requiredTrue(i){return p7(i)}static email(i){return h7(i)}static minLength(i){return f7(i)}static maxLength(i){return UF(i)}static pattern(i){return g7(i)}static nullValidator(i){return yb()}static compose(i){return YF(i)}static composeAsync(i){return QF(i)}};function u7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function zF(t){return xE(t.value)?{required:!0}:null}function p7(t){return t.value===!0?null:{required:!0}}function h7(t){return xE(t.value)||d7.test(t.value)?null:{email:!0}}function f7(t){return i=>{let e=i.value?.length??wE(i.value);return e===null||e===0?null:e{let e=i.value?.length??wE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function g7(t){if(!t)return yb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(xE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function yb(t){return null}function HF(t){return t!=null}function WF(t){return Bs(t)?Hn(t):t}function $F(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function GF(t,i){return i.map(e=>e(t))}function _7(t){return!t.validate}function qF(t){return t.map(i=>_7(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){return $F(GF(e,i))}}function DE(t){return t!=null?YF(qF(t)):null}function QF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){let n=GF(e,i).map(WF);return op(n).pipe(et($F))}}function SE(t){return t!=null?QF(qF(t)):null}function OF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function KF(t){return t._rawValidators}function ZF(t){return t._rawAsyncValidators}function CE(t){return t?Array.isArray(t)?t:[t]:[]}function Cb(t,i){return Array.isArray(t)?t.includes(i):t===i}function PF(t,i){let e=CE(i);return CE(t).forEach(o=>{Cb(e,o)||e.push(o)}),e}function NF(t,i){return CE(i).filter(e=>!Cb(t,e))}var xb=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=DE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=SE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ys=class extends xb{name;get formDirective(){return null}get path(){return null}},er=class extends xb{_parent=null;name=null;valueAccessor=null},wb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends wb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(er,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Ob=(()=>{class t extends wb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ys,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var Hh="VALID",bb="INVALID",dm="PENDING",Wh="DISABLED",ql=class{},Db=class extends ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Gh=class extends ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},qh=class extends ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},um=class extends ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Sb=class extends ql{source;constructor(i){super(),this.source=i}},Eb=class extends ql{source;constructor(i){super(),this.source=i}};function XF(t){return(Pb(t)?t.validators:t)||null}function v7(t){return Array.isArray(t)?DE(t):t||null}function JF(t,i){return(Pb(i)?i.asyncValidators:t)||null}function b7(t){return Array.isArray(t)?SE(t):t||null}function Pb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function y7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function C7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Mb=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return pn(this.statusReactive)}set status(i){pn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===Hh}get invalid(){return this.status===bb}get pending(){return this.status===dm}get disabled(){return this.status===Wh}get enabled(){return this.status!==Wh}errors;get pristine(){return pn(this.pristineReactive)}set pristine(i){pn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return pn(this.touchedReactive)}set touched(i){pn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(PF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(PF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(NF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}hasValidator(i){return Cb(this._rawValidators,i)}hasAsyncValidator(i){return Cb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(nt(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(nt(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Gh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Gh(!0,n))}markAsPending(i={}){this.status=dm;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new um(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(nt(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Wh,this.errors=null,this._forEachChild(o=>{o.disable(nt(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Db(this.value,n)),this._events.next(new um(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(nt(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Hh,this._forEachChild(n=>{n.enable(nt(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(nt(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Hh||this.status===dm)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Db(this.value,e)),this._events.next(new um(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(nt(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wh:Hh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=dm,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=WF(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new um(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Wh:this.errors?bb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dm)?dm:this._anyControlsHaveStatus(bb)?bb:Hh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Gh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Pb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=v7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=b7(this._rawAsyncValidators)}},Tb=class extends Mb{constructor(i,e,n){super(XF(e),JF(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){C7(this,!0,i),Object.keys(i).forEach(n=>{y7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,nt(q({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Eb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var mm=new L("",{factory:()=>Nb}),Nb="always";function x7(t,i){return[...i.path,t]}function Yh(t,i,e=Nb){EE(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),D7(t,i),E7(t,i),S7(t,i),w7(t,i)}function Ib(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ab(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function kb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function w7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function EE(t,i){let e=KF(t);i.validator!==null?t.setValidators(OF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ZF(t);i.asyncValidator!==null?t.setAsyncValidators(OF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();kb(i._rawValidators,o),kb(i._rawAsyncValidators,o)}function Ab(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=KF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return kb(i._rawValidators,n),kb(i._rawAsyncValidators,n),e}function D7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&e2(t,i)})}function S7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&e2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function e2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function E7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t2(t,i){t==null,EE(t,i)}function M7(t,i){return Ab(t,i)}function n2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function T7(t){return Object.getPrototypeOf(t.constructor)===jF}function i2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function o2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Wt?e=r:T7(r)?n=r:o=r}),o||n||e||null}function I7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var k7={provide:Ys,useExisting:Wn(()=>Xr)},$h=Promise.resolve(),Xr=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Tb({},DE(e),SE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$h.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Yh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$h.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$h.then(()=>{let n=this._findContainer(e.path),o=new Tb({});t2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$h.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){$h.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),i2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Sb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Zr,10),D(Rb,10),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([k7]),We]})}return t})();function FF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function LF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Fb=class extends Mb{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(XF(e),JF(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(LF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Eb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){LF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var A7=t=>t instanceof Fb;var R7={provide:er,useExisting:Wn(()=>Ke)},VF=Promise.resolve(),Ke=(()=>{class t extends er{_changeDetectorRef;callSetDisabledState;control=new Fb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=o2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),n2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Yh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){VF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);VF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?x7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ys,9),D(Zr,10),D(Rb,10),D(Go,10),D(Qe,8),D(mm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ye([R7]),We,yt]})}return t})();var Lb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),O7={provide:Go,useExisting:Wn(()=>xr),multi:!0},xr=(()=>{class t extends jF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ye([O7]),We]})}return t})();var P7=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ab(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Yh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ib(e.control||null,e,!1),I7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,i2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Sb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ib(n||null,e),A7(o)&&(Yh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);t2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&M7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){EE(this.form,this),this._oldForm&&Ab(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Zr,10),D(Rb,10),D(mm,8))};static \u0275dir=Q({type:t,features:[We,yt]})}return t})();var r2=new L(""),N7={provide:er,useExisting:Wn(()=>ME)},ME=(()=>{class t extends er{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=o2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ib(n,this,!1),Yh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}n2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ib(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Zr,10),D(Rb,10),D(Go,10),D(r2,8),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ye([N7]),We,yt]})}return t})();var F7={provide:Ys,useExisting:Wn(()=>Yl)},Yl=(()=>{class t extends P7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([F7]),We]})}return t})();function L7(t){return typeof t=="number"?t:parseInt(t,10)}var a2=(()=>{class t{_validator=yb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):yb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[yt]})}return t})();var V7={provide:Zr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends a2{required;inputName="required";normalizeInput=K;createValidator=e=>zF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&he("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ye([V7]),We]})}return t})();var B7={provide:Zr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends a2{maxlength;inputName="maxlength";normalizeInput=e=>L7(e);createValidator=e=>UF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&he("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ye([B7]),We]})}return t})();var s2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var l2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mm,useValue:e.callSetDisabledState??Nb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})(),Vb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:r2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:mm,useValue:e.callSetDisabledState??Nb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})();var TE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(Nt(e=>e.some(n=>n.target===i)),vg({bufferSize:1,refCount:!0}),Ze(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Bb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new TE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var OE=["*"];function j7(t,i){t&1&&Ie(0)}var z7=["tabListContainer"],U7=["tabList"],H7=["tabListInner"],W7=["nextPaginator"],$7=["previousPaginator"],G7=["content"];function q7(t,i){}var Y7=["tabBodyWrapper"],Q7=["tabHeader"];function K7(t,i){}function Z7(t,i){if(t&1&&xe(0,K7,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function X7(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function J7(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Ot(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,Z7,1,1,null,12)(7,X7,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Ot(1),r=_();Mn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),he("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function e9(t,i){t&1&&Ie(0)}function t9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Mn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),he("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var n9=new L("MatTabContent"),i9=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:n9,useExisting:t}])]})}return t})(),o9=new L("MatTabLabel"),m2=new L("MAT_TAB"),Yn=(()=>{class t extends bN{_closestTab=p(m2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:o9,useExisting:t}]),We]})}return t})(),p2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(Sn);_closestTabGroup=p(p2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&En(r,Yn,5)(r,i9,7,un),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&rt(un,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&he("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ye([{provide:m2,useExisting:t}]),yt],ngContentSelectors:OE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Vs(0,j7,1,0,"ng-template"))},encapsulation:2})}return t})(),IE="mdc-tab-indicator--active",c2="mdc-tab-indicator--no-transition",kE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},r9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(IE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(c2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(c2),n.classList.add(IE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(IE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var h2=(()=>{class t extends r9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(he("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),d2={passive:!0},a9=650,s9=100,l9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_viewportRuler=p(po);_dir=p(Cn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(Bb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),d2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),d2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ts(32),Ze(this._destroyed)),o=this._viewportRuler.change(150).pipe(Ze(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Ze(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(ln(this._items),bn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),Nt(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!dn(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ms(a9,s9).pipe(Ze(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),c9=(()=>{class t extends l9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new kE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&En(r,h2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&rt(z7,7)(U7,7)(H7,7)(W7,5)($7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:OE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),he("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Cr,qN],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return t})();function a7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var bb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Hs,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function s7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function l7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Uh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Uh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=rp(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Uh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),Gt(1,"safeHtml"),O(2,"mat-dialog-content",1),Gt(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,s7,4,1,"button",2),A(6,l7,3,1,"button",3),A(7,c7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,bb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Wo=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})(Wo||{}),Hh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var jF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),zF=(()=>{class t extends jF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),$o=new L("");var d7={provide:$o,useExisting:Wn(()=>Wt),multi:!0};function u7(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var m7=new L(""),Wt=(()=>{class t extends jF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!u7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(m7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ye([d7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Ob=new L(""),p7=/^(?=.{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])?)*$/,vs=class{static min(i){return h7(i)}static max(i){return f7(i)}static required(i){return UF(i)}static requiredTrue(i){return g7(i)}static email(i){return _7(i)}static minLength(i){return v7(i)}static maxLength(i){return HF(i)}static pattern(i){return b7(i)}static nullValidator(i){return Cb()}static compose(i){return QF(i)}static composeAsync(i){return KF(i)}};function h7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function UF(t){return wE(t.value)?{required:!0}:null}function g7(t){return t.value===!0?null:{required:!0}}function _7(t){return wE(t.value)||p7.test(t.value)?null:{email:!0}}function v7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function b7(t){if(!t)return Cb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Cb(t){return null}function WF(t){return t!=null}function $F(t){return Bs(t)?Hn(t):t}function GF(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function qF(t,i){return i.map(e=>e(t))}function y7(t){return!t.validate}function YF(t){return t.map(i=>y7(i)?i:e=>i.validate(e))}function QF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){return GF(qF(e,i))}}function SE(t){return t!=null?QF(YF(t)):null}function KF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){let n=qF(e,i).map($F);return op(n).pipe(et(GF))}}function EE(t){return t!=null?KF(YF(t)):null}function PF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZF(t){return t._rawValidators}function XF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function xb(t,i){return Array.isArray(t)?t.includes(i):t===i}function NF(t,i){let e=xE(i);return xE(t).forEach(o=>{xb(e,o)||e.push(o)}),e}function FF(t,i){return xE(i).filter(e=>!xb(t,e))}var wb=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ys=class extends wb{name;get formDirective(){return null}get path(){return null}},nr=class extends wb{_parent=null;name=null;valueAccessor=null},Db=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Db{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(nr,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Pb=(()=>{class t extends Db{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ys,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var Wh="VALID",yb="INVALID",dm="PENDING",$h="DISABLED",ql=class{},Sb=class extends ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},qh=class extends ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Yh=class extends ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},um=class extends ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Eb=class extends ql{source;constructor(i){super(),this.source=i}},Mb=class extends ql{source;constructor(i){super(),this.source=i}};function JF(t){return(Nb(t)?t.validators:t)||null}function C7(t){return Array.isArray(t)?SE(t):t||null}function e2(t,i){return(Nb(i)?i.asyncValidators:t)||null}function x7(t){return Array.isArray(t)?EE(t):t||null}function Nb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function w7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function D7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Tb=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return pn(this.statusReactive)}set status(i){pn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===Wh}get invalid(){return this.status===yb}get pending(){return this.status===dm}get disabled(){return this.status===$h}get enabled(){return this.status!==$h}errors;get pristine(){return pn(this.pristineReactive)}set pristine(i){pn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return pn(this.touchedReactive)}set touched(i){pn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(NF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(FF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(FF(i,this._rawAsyncValidators))}hasValidator(i){return xb(this._rawValidators,i)}hasAsyncValidator(i){return xb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ze(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ze(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new qh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new qh(!0,n))}markAsPending(i={}){this.status=dm;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new um(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ze(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this.errors=null,this._forEachChild(o=>{o.disable(Ze(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Sb(this.value,n)),this._events.next(new um(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ze(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Wh,this._forEachChild(n=>{n.enable(Ze(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ze(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wh||this.status===dm)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Sb(this.value,e)),this._events.next(new um(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ze(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$h:Wh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=dm,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$F(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new um(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?$h:this.errors?yb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dm)?dm:this._anyControlsHaveStatus(yb)?yb:Wh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new qh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Yh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Nb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=C7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=x7(this._rawAsyncValidators)}},Ib=class extends Tb{constructor(i,e,n){super(JF(e),e2(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){D7(this,!0,i),Object.keys(i).forEach(n=>{w7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ze(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Mb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var mm=new L("",{factory:()=>Fb}),Fb="always";function S7(t,i){return[...i.path,t]}function Qh(t,i,e=Fb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),M7(t,i),I7(t,i),T7(t,i),E7(t,i)}function kb(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Rb(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ab(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function E7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=ZF(t);i.validator!==null?t.setValidators(PF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=XF(t);i.asyncValidator!==null?t.setAsyncValidators(PF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Ab(i._rawValidators,o),Ab(i._rawAsyncValidators,o)}function Rb(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=XF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Ab(i._rawValidators,n),Ab(i._rawAsyncValidators,n),e}function M7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&t2(t,i)})}function T7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&t2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function t2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function I7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function n2(t,i){t==null,ME(t,i)}function k7(t,i){return Rb(t,i)}function i2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function A7(t){return Object.getPrototypeOf(t.constructor)===zF}function o2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Wt?e=r:A7(r)?n=r:o=r}),o||n||e||null}function R7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var O7={provide:Ys,useExisting:Wn(()=>Jr)},Gh=Promise.resolve(),Jr=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Ib({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Gh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Qh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Gh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Gh.then(()=>{let n=this._findContainer(e.path),o=new Ib({});n2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Gh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Gh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),o2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Eb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([O7]),We]})}return t})();function LF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Lb=class extends Tb{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(JF(e),e2(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Mb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){LF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){LF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){VF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var P7=t=>t instanceof Lb;var N7={provide:nr,useExisting:Wn(()=>Ke)},BF=Promise.resolve(),Ke=(()=>{class t extends nr{_changeDetectorRef;callSetDisabledState;control=new Lb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=r2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Qh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){BF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);BF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?S7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ys,9),D(Xr,10),D(Ob,10),D($o,10),D(Qe,8),D(mm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ye([N7]),We,Ct]})}return t})();var Vb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),F7={provide:$o,useExisting:Wn(()=>Sr),multi:!0},Sr=(()=>{class t extends zF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ye([F7]),We]})}return t})();var L7=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Rb(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Qh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){kb(e.control||null,e,!1),R7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,o2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Eb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(kb(n||null,e),P7(o)&&(Qh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);n2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&k7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Rb(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D(mm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var a2=new L(""),V7={provide:nr,useExisting:Wn(()=>TE)},TE=(()=>{class t extends nr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&kb(n,this,!1),Qh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&kb(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D($o,10),D(a2,8),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ye([V7]),We,Ct]})}return t})();var B7={provide:Ys,useExisting:Wn(()=>Yl)},Yl=(()=>{class t extends L7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([B7]),We]})}return t})();function j7(t){return typeof t=="number"?t:parseInt(t,10)}var s2=(()=>{class t{_validator=Cb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Cb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var z7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends s2{required;inputName="required";normalizeInput=K;createValidator=e=>UF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ye([z7]),We]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends s2{maxlength;inputName="maxlength";normalizeInput=e=>j7(e);createValidator=e=>HF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ye([U7]),We]})}return t})();var l2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var c2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mm,useValue:e.callSetDisabledState??Fb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})(),Bb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:mm,useValue:e.callSetDisabledState??Fb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),bg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},jb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function H7(t,i){t&1&&Ie(0)}var W7=["tabListContainer"],$7=["tabList"],G7=["tabListInner"],q7=["nextPaginator"],Y7=["previousPaginator"],Q7=["content"];function K7(t,i){}var Z7=["tabBodyWrapper"],X7=["tabHeader"];function J7(t,i){}function e9(t,i){if(t&1&&xe(0,J7,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function t9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function n9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,e9,1,1,null,12)(7,t9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function i9(t,i){t&1&&Ie(0)}function o9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var r9=new L("MatTabContent"),a9=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:r9,useExisting:t}])]})}return t})(),s9=new L("MatTabLabel"),p2=new L("MAT_TAB"),Yn=(()=>{class t extends yN{_closestTab=p(p2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:s9,useExisting:t}]),We]})}return t})(),h2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(h2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,a9,7,un),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(un,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ye([{provide:p2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Vs(0,H7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",d2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},l9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(d2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(d2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var f2=(()=>{class t extends l9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),u2={passive:!0},c9=650,d9=100,u9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_viewportRuler=p(po);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(jb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),u2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),u2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ts(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(ln(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!dn(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ms(c9,d9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),m9=(()=>{class t extends u9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,f2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at(W7,7)($7,7)(G7,7)(q7,5)(Y7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Dr,YN],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -1199,7 +1199,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` color: GrayText; } } -`],encapsulation:2})}return t})(),d9=new L("MAT_TABS_CONFIG"),u2=(()=>{class t extends Bo{_host=p(AE);_ngZone=p(be);_centeringSub=ze.EMPTY;_leavingSub=ze.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ln(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),AE=(()=>{class t{_elementRef=p(se);_dir=p(Cn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=ze.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Qe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&rt(u2,5)(G7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&he("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,q7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[u2,Eh],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return t})(),p9=new L("MAT_TABS_CONFIG"),m2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ln(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Qe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(m2,5)(Q7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,K7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[m2,Mh],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -1251,7 +1251,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_tabsSubscription=ze.EMPTY;_tabLabelSubscription=ze.EMPTY;_tabBodySubscription=ze.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new mr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(d9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ln(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new RE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&En(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&rt(Y7,5)(Q7,5)(AE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(he("mat-align-tabs",o.alignTabs),Mn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ye([{provide:p2,useExisting:t}])],ngContentSelectors:OE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,J7,8,17,"div",4,De),d(),A(4,e9,1,0),c(5,"div",5,1),fe(7,t9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),ku("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[c9,h2,Oh,Cr,Bo,AE],styles:[`.mdc-tab { +`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new fr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(p9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ln(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(Z7,5)(X7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ye([{provide:h2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,n9,8,17,"div",4,De),d(),A(4,i9,1,0),c(5,"div",5,1),fe(7,o9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),ku("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[m9,f2,Ph,Dr,Vo,RE],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -1472,15 +1472,15 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transition: none !important; animation: none !important; } -`],encapsulation:2})}return t})(),RE=class{index;tab};var f2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function u9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function m9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function p9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function h9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function f9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var jb=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,u9,1,1,"uds-field-text",1)(2,m9,1,1,"uds-field-autocomplete",1)(3,p9,1,1,"uds-field-textbox",1)(4,h9,1,1,"uds-field-numeric",1)(5,f9,1,1,"uds-field-password",1)(6,g9,1,1,"uds-field-hidden",1)(7,_9,1,1,"uds-field-choice",1)(8,v9,1,1,"uds-field-multichoice",1)(9,b9,1,1,"uds-field-editlist",1)(10,y9,1,1,"uds-field-checkbox",1)(11,C9,1,1,"uds-field-imgchoice",1)(12,x9,1,1,"uds-field-date",1)(13,w9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function S9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;z(" ",e," ")}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function M9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,S9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,E9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function T9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,M9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function I9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function k9(t,i){if(t&1&&(c(0,"div",1),fe(1,I9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var g2=django.gettext("Main"),A9=django.gettext("Advanced"),_2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?g2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===g2?-1:e===A9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,T9,3,2,"mat-tab-group",0)(1,k9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,jb],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}"]})}}return t})();function O9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var v2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),Gt(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,O9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Vn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Lb,Ob,Xr,Fe,Ct,wt,xt,Ee,_2,vb],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}"]})}}return t})();var zb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(v2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return j(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let G=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),B=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)B.push(F);for(let F of B){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,B,r,g).subscribe(F=>j(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(G=>{G!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+G,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let G of B)S(G);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return j(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return j(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return j(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return j(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var P9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Ub=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new zb(this)}alert(i,e,n=0,o){return j(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(yE,{width:r,data:{title:i,body:e,autoclose:n,type:zh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return j(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(yE,{width:o,data:{title:i,body:e,type:zh.question,warnOnYes:n},disableClose:!0});return Qr(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var Hb={production:!0};var In=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(In||{}),Ut=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Ut||{});var PE="provider",NE="service",Qh="pool",N9="authenticator",Kh="user",FE="group",LE="transport",VE="osmanager",Wb="calendar",BE="poolgroup",F9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+F9[i]+"",type:Ut.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case PE:this.gotoProvider(o(0));break;case NE:this.gotoService(o(0),o(1));break;case Qh:this.gotoServicePool(o(0));break;case N9:this.gotoAuthenticator(o(0));break;case Kh:this.gotoUser(o(0),o(1));break;case FE:this.gotoGroup(o(0),o(1));break;case LE:this.gotoTransport(o(0));break;case VE:this.gotoOSManager(o(0));break;case Wb:this.gotoCalendar(o(0));break;case BE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function L9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),z(" ",e.data.action," ")}}var V9=["label"];function B9(t,i){}var j9=Math.pow(2,31)-1,Zh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,j9))}_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}},b2=new L("MatSnackBarData"),pm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},z9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),U9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),H9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),y2=(()=>{class t{snackBarRef=p(Zh);data=p(b2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,L9,3,1,"div",1)),n&2&&(m(),z(" ",o.data.message,` -`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,z9,U9,H9],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2})}return t})(),OE=class{index;tab};var g2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function h9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function f9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var zb=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=Wo}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,h9,1,1,"uds-field-text",1)(2,f9,1,1,"uds-field-autocomplete",1)(3,g9,1,1,"uds-field-textbox",1)(4,_9,1,1,"uds-field-numeric",1)(5,v9,1,1,"uds-field-password",1)(6,b9,1,1,"uds-field-hidden",1)(7,y9,1,1,"uds-field-choice",1)(8,C9,1,1,"uds-field-multichoice",1)(9,x9,1,1,"uds-field-editlist",1)(10,w9,1,1,"uds-field-checkbox",1)(11,D9,1,1,"uds-field-imgchoice",1)(12,S9,1,1,"uds-field-date",1)(13,E9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function T9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function I9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function k9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,T9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,I9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function A9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,k9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function R9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function O9(t,i){if(t&1&&(c(0,"div",1),fe(1,R9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var _2=django.gettext("Main"),P9=django.gettext("Advanced"),v2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?_2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===_2?-1:e===P9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,A9,3,2,"mat-tab-group",0)(1,O9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,zb],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}"]})}}return t})();function F9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var b2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),Gt(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,F9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Vb,Pb,Jr,Fe,xt,Dt,wt,Ee,v2,bb],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}"]})}}return t})();var Ub=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Wo.TEXT&&l.gui.lines&&(l.gui.type=Wo.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(b2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===Wo.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var L9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Hb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Ub(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Uh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Uh.question,warnOnYes:n},disableClose:!0});return Kr(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var Wb={production:!0};var _n=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(_n||{}),Ut=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Ut||{});var NE="provider",FE="service",Kh="pool",V9="authenticator",Zh="user",LE="group",VE="transport",BE="osmanager",$b="calendar",jE="poolgroup",B9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+B9[i]+"",type:Ut.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Kh:this.gotoServicePool(o(0));break;case V9:this.gotoAuthenticator(o(0));break;case Zh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case $b:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function j9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var z9=["label"];function U9(t,i){}var H9=Math.pow(2,31)-1,Xh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,H9))}_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}},y2=new L("MatSnackBarData"),pm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},W9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),C2=(()=>{class t{snackBarRef=p(Xh);data=p(y2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,j9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` +`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,W9,$9,G9],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),jE="_mat-snack-bar-enter",zE="_mat-snack-bar-exit",W9=(()=>{class t extends zl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(pm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===zE?this._completeExit():e===jE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(jE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(jE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(zE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&rt(Bo,7)(V9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,B9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),he("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Bo],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",q9=(()=>{class t extends zl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(pm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(z9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,U9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1596,7 +1596,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return t})(),$9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new pm}),UE=(()=>{class t{_live=p(Ph);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p($9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=y2;snackBarContainerComponent=W9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=q(q({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:pm,useValue:n}]}),a=new Jo(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=q(q(q({},new pm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Zh(a,r);if(e instanceof un){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new Jo(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(sb.HandsetPortrait).pipe(Ze(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new jo;n.direction=e.direction;let o=fs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,Uo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Zh,useValue:n},{provide:b2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[UE],imports:[ho,br,_s,y2,pt]})}return t})();var Xh=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Au)}),hm="Method not implemented",so=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(hm)}getHours(i){throw new Error(hm)}getMinutes(i){throw new Error(hm)}getSeconds(i){throw new Error(hm)}parseTime(i,e){throw new Error(hm)}addSeconds(i,e){throw new Error(hm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ql=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $b=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2})}return t})(),Y9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new pm}),HE=(()=>{class t{_live=p(Nh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Y9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=C2;snackBarContainerComponent=q9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:pm,useValue:n}]}),a=new tr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new pm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Xh(a,r);if(e instanceof un){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new tr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(lb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=fs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Xh,useValue:n},{provide:y2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[ho,xr,_s,C2,pt]})}return t})();var Jh=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Au)}),hm="Method not implemented",so=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(hm)}getHours(i){throw new Error(hm)}getMinutes(i){throw new Error(hm)}getSeconds(i){throw new Error(hm)}parseTime(i,e){throw new Error(hm)}addSeconds(i,e){throw new Error(hm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ql=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1702,7 +1702,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();var q9=["text"],Y9=[[["mat-icon"]],"*"],Q9=["mat-icon","*"];function K9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Z9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function X9(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),z("(",e.group.label,")")}}var gm=new L("MAT_OPTION_PARENT_COMPONENT"),_m=new L("MatOptgroup");var fm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Qe);_parent=p(gm,{optional:!0});group=p(_m,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load($r),this._signalDisableRipple=!!this._parent&&cs(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!dn(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new fm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&rt(q9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(Rn("id",o.id),he("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Q9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(Y9),A(0,K9,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,Z9,1,1,"mat-pseudo-checkbox",3),A(6,X9,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[$b,Cr],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return t})();var K9=["text"],Z9=[[["mat-icon"]],"*"],X9=["mat-icon","*"];function J9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function tq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var gm=new L("MAT_OPTION_PARENT_COMPONENT"),_m=new L("MatOptgroup");var fm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Qe);_parent=p(gm,{optional:!0});group=p(_m,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._signalDisableRipple=!!this._parent&&cs(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!dn(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new fm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(K9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:X9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(Z9),A(0,J9,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,eq,1,1,"mat-pseudo-checkbox",3),A(6,tq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Gb,Dr],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -1823,7 +1823,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})();function Jh(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,x2,Mt,pt]})}return t})();var Kl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var J9=["mat-internal-form-field",""],eq=["*"],Gb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:J9,ngContentSelectors:eq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2,changeDetection:0})}return t})();function ef(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,w2,Mt,pt]})}return t})();var Kl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var nq=["mat-internal-form-field",""],iq=["*"],qb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:nq,ngContentSelectors:iq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var tq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,nq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function HE(t,i){let e=Array(t);for(let n=0;n{class t extends so{_matDateLocale=p(Xh,{optional:!0});constructor(){super();let e=p(Xh,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return HE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return HE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return HE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,nt(q({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(tq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(nq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),WE(o,0,23)&&WE(r,0,59)&&(a==null||WE(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function WE(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var oq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[rq()]})}return t})();function rq(t=oq){return[{provide:so,useClass:iq},{provide:Ql,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Wv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Ub(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return Hb.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Fu),we(Hr),we(Vh),we(UE),we(Hs),we(so))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function sq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function lq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function cq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,sq,7,1,"div",2),A(6,lq,7,1,"div",2),A(7,cq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,On,Ct,wt,xt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var Xl=3e4,Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),ci=class{constructor(i,e,n){this.api=i,n===void 0&&(n={}),n.base===void 0&&(n.base=e);let o=(r,a)=>r===void 0?a:r;this.id=e,this.paths={base:n.base,get:o(n.get,n.base),log:o(n.log,n.base),put:o(n.put,n.base),test:o(n.test,n.base+"/test"),delete:o(n.delete,n.base),types:o(n.types,n.base+"/types"),gui:o(n.gui,n.base+"/gui"),tableInfo:o(n.tableInfo,n.base+"/tableinfo")},this.headers=new Lo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.paths.log,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.paths.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Qr(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xl).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Lo}:(this.handleError(r),{items:[],headers:new Lo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Qr(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Io(n=>this.handleError(n))),Xl)}delete(i){return Qr(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.paths.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Qr(this.api.http.put(r,a,{headers:this.headers}).pipe(Io(s=>this.handleError(s))),Xl)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Qr(this.api.http.put(e,n,{headers:this.headers}).pipe(Io(o=>this.handleError(o))),Xl)}types(){return this.doGet(this.getPath(this.paths.types))}gui(i){let e=this.getPath(this.paths.gui+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(i,e){return new $E(this,i,e)}invoke(i,e){let n=i+(e?"?"+e:"");return this.typedGet(n)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.paths.base)+"/position/"+i)}getPath(i,e){if(i===void 0)throw new Error("Path is undefined");return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Qr(this.api.http.get(i,{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Qr(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Io(n=>this.handleError(n,!0))),Xl)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},$E=class extends ci{constructor(i,e,n,o){super(i.api,[i.paths.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},Yb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.get(i+"/maintenance")}},Qb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}},Kb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Zb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},Xb=class extends ci{constructor(i){super(i,"networks"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.get(i+"/assign/"+e)}},e0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},t0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}actionsList(i){return this.get(i+"/actionsList")}listAssignables(i){return this.get(i+"/listAssignables")}createFromAssignable(i,e,n){return this.get(i+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))}},n0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}},i0=class extends ci{constructor(i){super(i,"config"),this.api=i}},o0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},r0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},a0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},s0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Qr(Me([]))}},l0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},c0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},d0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},u0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},m0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},p0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},h0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},f0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Qr(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),Xl).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Yb(e),this.serverGroups=new e0(e),this.authenticators=new Qb(e),this.mfas=new p0(e),this.osManagers=new Kb(e),this.transports=new Zb(e),this.networks=new Xb(e),this.tunnels=new Jb(e),this.servicesPools=new t0(e),this.metaPools=new n0(e),this.gallery=new o0(e),this.servicesPoolGroups=new r0(e),this.calendars=new c0(e),this.accounts=new d0(e),this.system=new a0(e),this.configuration=new i0(e),this.actorToken=new u0(e),this.serversTokens=new m0(e),this.reports=new s0(e),this.dashboard=new l0(e),this.enterprise=new f0(e),this.notifiers=new h0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dq=["determinateSpinner"];function uq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();he("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),he("r",e._circleRadius())}}var mq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:T2})}),T2=100,pq=10,bm=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(mq),n=lE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=T2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-pq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&rt(dq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(he("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Mn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,uq,2,8,"ng-template",null,0,$p),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Ot(1);m(4),he("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),he("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Kp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var oq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,rq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends so{_matDateLocale=p(Jh,{optional:!0});constructor(){super();let e=p(Jh,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ze(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(oq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(rq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var sq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var D2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lq()]})}return t})();function lq(t=sq){return[{provide:so,useClass:aq},{provide:Ql,useValue:t}]}var S2="dark-theme",E2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new $v(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Hb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return Wb.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[S2,E2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?S2:E2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Fu),we(er),we(Bh),we(HE),we(Hs),we(so))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var T2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,dq,7,1,"div",2),A(6,uq,7,1,"div",2),A(7,mq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var Xl=3e4,Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),ci=class{constructor(i,e,n){this.api=i,n===void 0&&(n={}),n.base===void 0&&(n.base=e);let o=(r,a)=>r===void 0?a:r;this.id=e,this.paths={base:n.base,get:o(n.get,n.base),log:o(n.log,n.base),put:o(n.put,n.base),test:o(n.test,n.base+"/test"),delete:o(n.delete,n.base),types:o(n.types,n.base+"/types"),gui:o(n.gui,n.base+"/gui"),tableInfo:o(n.tableInfo,n.base+"/tableinfo")},this.headers=new Xo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.paths.log,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.paths.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Kr(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xl).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Xo}:(this.handleError(r),{items:[],headers:new Xo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Kr(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Io(n=>this.handleError(n))),Xl)}delete(i){return Kr(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.paths.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Kr(this.api.http.put(r,a,{headers:this.headers}).pipe(Io(s=>this.handleError(s))),Xl)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Kr(this.api.http.put(e,n,{headers:this.headers}).pipe(Io(o=>this.handleError(o))),Xl)}types(){return this.doGet(this.getPath(this.paths.types))}gui(i){let e=this.getPath(this.paths.gui+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(i,e){return new GE(this,i,e)}invoke(i,e){let n=i+(e?"?"+e:"");return this.typedGet(n)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.paths.base)+"/position/"+i)}getPath(i,e){if(i===void 0)throw new Error("Path is undefined");return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Kr(this.api.http.get(i,{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Kr(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Io(n=>this.handleError(n,!0))),Xl)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.paths.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},Qb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.get(i+"/maintenance")}},Kb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Zb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Xb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"networks"),this.api=i}},e0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.get(i+"/assign/"+e)}},t0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},n0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}actionsList(i){return this.get(i+"/actionsList")}listAssignables(i){return this.get(i+"/listAssignables")}createFromAssignable(i,e,n){return this.get(i+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))}},i0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}},o0=class extends ci{constructor(i){super(i,"config"),this.api=i}},r0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},s0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},l0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Kr(Me([]))}},c0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},d0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},u0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},m0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},p0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},f0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},g0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Kr(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),Xl).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Qb(e),this.serverGroups=new t0(e),this.authenticators=new Kb(e),this.mfas=new h0(e),this.osManagers=new Zb(e),this.transports=new Xb(e),this.networks=new Jb(e),this.tunnels=new e0(e),this.servicesPools=new n0(e),this.metaPools=new i0(e),this.gallery=new r0(e),this.servicesPoolGroups=new a0(e),this.calendars=new d0(e),this.accounts=new u0(e),this.system=new s0(e),this.configuration=new o0(e),this.actorToken=new m0(e),this.serversTokens=new p0(e),this.reports=new l0(e),this.dashboard=new c0(e),this.enterprise=new g0(e),this.notifiers=new f0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var pq=["determinateSpinner"];function hq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var fq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,gq=10,bm=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(fq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-gq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(pq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,hq,2,8,"ng-template",null,0,Gp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Zp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; @@ -2032,9 +2032,9 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transform: rotate(-265deg); } } -`],encapsulation:2,changeDetection:0})}return t})();var I2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var hq="uplot",fq="u-hz",gq="u-vt",_q="u-title",vq="u-wrap",bq="u-under",yq="u-over",Cq="u-axis",gd="u-off",xq="u-select",wq="u-cursor-x",Dq="u-cursor-y",Sq="u-cursor-pt",Eq="u-legend",Mq="u-live",Tq="u-inline",Iq="u-series",kq="u-marker",A2="u-label",Aq="u-value",nf="width",of="height";var R2="bottom",ym="left",GE="right",cM="#000",O2=cM+"0",qE="mousemove",P2="mousedown",YE="mouseup",N2="mouseenter",F2="mouseleave",L2="dblclick",Rq="resize",Oq="scroll",V2="change",y0="dppxchange",dM="--",Mm=typeof window<"u",JE=Mm?document:null,xm=Mm?window:null,Pq=Mm?navigator:null,kn,g0;function eM(){let t=devicePixelRatio;kn!=t&&(kn=t,g0&&nM(V2,g0,eM),g0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(V2,g0,eM),xm.dispatchEvent(new CustomEvent(y0)))}function Dr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function tM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function La(t,i,e,n){let o=JE.createElement(t);return i!=null&&Dr(o,i),e?.insertBefore(o,n),o}function Jr(t,i){return La("div",t,i)}var B2=new WeakMap;function bs(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=B2.get(t);r!=a&&(t.style.transform=r,B2.set(t,r),i<0||e<0||i>n||e>o?Dr(t,gd):tM(t,gd))}var j2=new WeakMap;function z2(t,i,e){let n=i+e,o=j2.get(t);n!=o&&(j2.set(t,n),t.style.background=i,t.style.borderColor=e)}var U2=new WeakMap;function H2(t,i,e,n){let o=i+""+e,r=U2.get(t);o!=r&&(U2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var uM={passive:!0},Nq=nt(q({},uM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Nq:uM)}function nM(t,i,e,n){i.removeEventListener(t,e,uM)}Mm&&eM();function Va(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Sr((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var vL=t=>t!=null,bL=t=>t!=null&&t>0,w0=_L(vL),Fq=_L(bL);function Lq(t,i,e,n=0,o=!1){let r=o?Fq:w0,a=o?bL:vL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function D0(t,i,e,n){let o=G2(t),r=G2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Ks:yL,s=o==1?Sr:ea,l=r==1?ea:Sr,u=s(a(Zi(t))),h=l(a(Zi(i))),g=wm(e,u),y=wm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=DL(t,g),i=S0(i,y)),[t,i]}function mM(t,i,e,n){let o=D0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var pM=.1,W2={mode:3,pad:pM},af={pad:0,soft:null,mode:0},Vq={min:af,max:af};function C0(t,i,e,n){return E0(e)?$2(t,i,e):(af.pad=e,af.soft=n?0:null,af.mode=n?3:0,$2(t,i,Vq))}function xn(t,i){return t??i}function Bq(t,i,e){for(i=xn(i,0),e=xn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function $2(t,i,e){let n=e.min,o=e.max,r=xn(n.pad,0),a=xn(o.pad,0),s=xn(n.hard,-Kn),l=xn(o.hard,Kn),u=xn(n.soft,Kn),h=xn(o.soft,-Kn),g=xn(n.mode,0),y=xn(o.mode,0),w=i-t,S=Ks(w),P=qo(Zi(t),Zi(i)),B=Ks(P),F=Zi(B-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let G=w||P||1e3,ve=Ks(G),oe=wm(10,Sr(ve)),Ne=G*(w==0?t==0?.1:1:r),Ce=Zn(DL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=qo(s,Ce=Le?Le:Ba(Le,Ce)),Pt=G*(w==0?i==0?.1:1:a),ht=Zn(S0(i+Pt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=Ba(l,ht>Se&&i<=Se?Se:qo(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var jq=new Intl.NumberFormat(Mm?Pq.language:"en-US"),hM=t=>jq.format(t),Er=Math,b0=Er.PI,Zi=Er.abs,Sr=Er.floor,Ki=Er.round,ea=Er.ceil,Ba=Er.min,qo=Er.max,wm=Er.pow,G2=Er.sign,Ks=Er.log10,yL=Er.log2,zq=(t,i=1)=>Er.sinh(t)*i,QE=(t,i=1)=>Er.asinh(t/i),Kn=1/0;function q2(t){return(Ks((t^t>>31)-(t>>31))|0)+1}function iM(t,i,e){return Ba(qo(t,i),e)}function CL(t){return typeof t=="function"}function sn(t){return CL(t)?t:()=>t}var Uq=()=>{},xL=t=>t,wL=(t,i)=>i,Hq=t=>null,Y2=t=>!0,Q2=(t,i)=>t==i,Wq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(EL(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Wq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function S0(t,i){return vd(ea(vd(t/i))*i)}function DL(t,i){return vd(Sr(vd(t/i))*i)}function Zn(t,i=0){if(EL(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function SL(t){return((""+t).split(".")[1]||"").length}function lf(t,i,e,n){let o=[],r=n.map(SL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var sf={},fM=[],Dm=[null,null],Jl=Array.isArray,EL=Number.isInteger,$q=t=>t===void 0;function K2(t){return typeof t=="string"}function E0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Gq(t){return t!=null&&typeof t=="object"}var qq=Object.getPrototypeOf(Uint8Array),ML="__proto__";function Sm(t,i=E0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function eY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Sr((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var TL=["January","February","March","April","May","June","July","August","September","October","November","December"],IL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function kL(t){return t.slice(0,3)}var iY=IL.map(kL),oY=TL.map(kL),rY={MMMM:TL,MMM:oY,WWWW:IL,WWW:iY};function tf(t){return(t<10?"0":"")+t}function aY(t){return(t<10?"00":t<100?"0":"")+t}var sY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>tf(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>tf(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>tf(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>tf(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>tf(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>aY(t.getMilliseconds())};function gM(t,i){i=i||rY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?sY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,x0=[1,2,2.5,5],dY=lf(10,-32,0,x0),RL=lf(10,0,32,x0),uY=RL.filter(AL),fd=dY.concat(RL),_M=` -`,OL="{YYYY}",Z2=_M+OL,PL="{M}/{D}",rf=_M+PL,_0=rf+"/{YY}",NL="{aa}",mY="{h}:{mm}",Cm=mY+NL,X2=_M+Cm,J2=":{ss}",Pn=null;function FL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?lf(10,0,3,x0).filter(AL):lf(10,-3,0,x0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,OL,Pn,Pn,Pn,Pn,Pn,Pn,1],[o*28,"{MMM}",Z2,Pn,Pn,Pn,Pn,Pn,1],[o,PL,Z2,Pn,Pn,Pn,Pn,Pn,1],[n,"{h}"+NL,_0,Pn,rf,Pn,Pn,Pn,1],[e,Cm,_0,Pn,rf,Pn,Pn,Pn,1],[i,J2,_0+" "+Cm,Pn,rf+" "+Cm,Pn,X2,Pn,1],[t,J2+".{fff}",_0+" "+Cm,Pn,rf+" "+Cm,Pn,X2,Pn,1]];function h(g){return(y,w,S,P,B,F)=>{let G=[],ve=B>=a,oe=B>=r&&B=o?o:B,ht=Sr(S)-Sr(Ce),Se=Je+ht+S0(Ce-Je,Pt);G.push(Se);let Tt=g(Se),Ge=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=B/n,it=y.axes[w]._space,me=F/it;for(;Se=Zn(Se+B,t==1?0:3),!(Se>P);)if(It>1){let ae=Sr(Zn(Ge+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,Ge=(Ge+It)%24;let Qt=G[G.length-1];Zn((Se-Qt)/B,3)*me>=.7&&G.push(Se)}else G.push(Se)}return G}}return[l,u,h]}var[pY,hY,fY]=FL(1),[gY,_Y,vY]=FL(.001);lf(2,-53,53,[1]);function eL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function tL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),B=P.getFullYear(),F=P.getMonth(),G=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=B!=l&&s[2]||F!=u&&s[3]||G!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=B,u=F,h=G,g=ve,y=oe,w=Ne,Ce(P)})}}function bY(t,i){let e=gM(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function KE(t,i,e){return new Date(t,i,e)}function nL(t,i){return i(t)}var yY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function iL(t,i){return(e,n,o,r)=>r==null?dM:i(t(n))}function CY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function xY(t,i){return t.series[i].fill(t,i)}var wY={show:!0,live:!0,isolate:!1,mount:Uq,markers:{show:!0,width:2,stroke:CY,fill:xY,dash:"solid"},idx:null,idxs:null,values:[]};function DY(t,i){let e=t.cursor.points,n=Jr(),o=e.size(t,i);di(n,nf,o),di(n,of,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function SY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function EY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function MY(t,i){return t.series[i].points.size}var ZE=[0,0];function TY(t,i,e){return ZE[0]=i,ZE[1]=e,ZE}function v0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function XE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var IY={show:!0,x:!0,y:!0,lock:!1,move:TY,points:{one:!1,show:DY,size:MY,width:0,stroke:EY,fill:SY},bind:{mousedown:v0,mouseup:v0,click:v0,dblclick:v0,mousemove:XE,mouseleave:XE,mouseenter:XE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},LL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},vM=Ni({},LL,{filter:wL}),VL=Ni({},vM,{size:10}),BL=Ni({},LL,{show:!1}),bM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',jL="bold "+bM,zL=1.5,oL={show:!0,scale:"x",stroke:cM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:jL,side:2,grid:vM,ticks:VL,border:BL,font:bM,lineGap:zL,rotate:0},kY="Value",AY="Time",rL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function RY(t,i,e,n,o){return i.map(r=>r==null?"":hM(r))}function OY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(S0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function oM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Ks:yL,h=Sr(u(e));o=wm(l,h),l==10&&(o=fd[Va(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Va(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Va(y,fd)]));while(g<=n);return s}function PY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?oM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?oM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var UL=/./,NY=/[12357]/,FY=/[125]/,aL=/1/,rM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function LY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?UL:l(7,a)-h>=u?NY:l(5,a)-h>=u?FY:aL;if(g==aL){let y=Zi(l(1,a)-h);if(yo,cL={show:!0,auto:!0,sorted:0,gaps:HL,alpha:1,facets:[Ni({},lL,{scale:"x"}),Ni({},lL,{scale:"y"})]},dL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:HL,alpha:1,points:{show:zY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function UY(t,i,e,n,o){return e/10}var WL={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},HY=Ni({},WL,{time:!1,ori:1}),uL={};function $L(t,i){let e=uL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,G=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Tm:Im,oe,Ne;G==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,B,S)),Je=F(g(s[Ne],u,P,w)),Pt=F(y(r==1?h.max:h.min,h,B,S)),ht=new Path2D(o);return ve(ht,Je,Pt),ve(ht,Ce,Pt),ve(ht,Ce,Le),ht})}function M0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?k0:xM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function $Y(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function CM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function mL(t){return t==0?xL:t==1?Ki:i=>hd(i,t)}function GL(t){let i=t==0?T0:I0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=Ba(u,s/2,l/2),h=Ba(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var T0=(t,i,e)=>{t.moveTo(i,e)},I0=(t,i,e)=>{t.moveTo(e,i)},Tm=(t,i,e)=>{t.lineTo(i,e)},Im=(t,i,e)=>{t.lineTo(e,i)},k0=GL(0),xM=GL(1),qL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},YL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},QL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function ZL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,B)=>{let{pxRound:F,points:G}=a,ve,oe;u.ori==0?(ve=T0,oe=qL):(ve=I0,oe=YL);let Ne=Zn(G.width*kn,3),Ce=(G.size-G.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Pt=new Path2D,{left:ht,top:Se,width:Tt,height:Ge}=i.bbox;k0(Pt,ht-Le,Se-Le,Tt+Le*2,Ge+Le*2);let It=it=>{if(l[it]!=null){let me=F(g(s[it],u,P,w)),ae=F(y(l[it],h,B,S));ve(Je,me+Ce,ae),oe(Je,me,ae,Ce,0,b0*2)}};if(r)r.forEach(It);else for(let it=n;it<=o;it++)It(it);return{stroke:Ne>0?Je:null,fill:Je,clip:Pt,flags:Em|aM}})}function XL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var GY=XL(Tm),qY=XL(Im);function JL(t){let i=xn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,B)=>{[o,r]=w0(l,o,r);let F=a.pxRound,G=Ge=>F(g(Ge,u,P,w)),ve=Ge=>F(y(Ge,h,B,S)),oe,Ne;u.ori==0?(oe=Tm,Ne=GY):(oe=Im,Ne=qY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Je=Le.stroke,Pt=!1;if(r-o>=P*4){let Ge=Ve=>e.posToVal(Ve,u.key,!0),It=null,it=null,me,ae,He,tt=G(s[Ce==1?o:r]),gt=G(s[o]),Qt=G(s[r]),ft=Ge(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?tt:G(jt),At=l[Ve];Xn==tt?At!=null?(ae=At,It==null?(oe(Je,Xn,ve(ae)),me=It=it=ae):aeit&&(it=ae)):At===null&&(Pt=!0):(It!=null&&Ne(Je,tt,ve(It),ve(it),ve(me),ve(ae)),At!=null?(ae=At,oe(Je,Xn,ve(ae)),It=it=me=ae):(It=it=null,At===null&&(Pt=!0)),tt=Xn,ft=Ge(tt+Ce))}It!=null&&It!=it&&He!=tt&&Ne(Je,tt,ve(It),ve(it),ve(me),ve(ae))}else for(let Ge=Ce==1?o:r;Ge>=o&&Ge<=r;Ge+=Ce){let It=l[Ge];It===null?Pt=!0:It!=null&&oe(Je,G(s[Ge]),ve(It))}let[Se,Tt]=yM(e,n);if(a.fill!=null||Se!=0){let Ge=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),it=ve(It),me=G(s[o]),ae=G(s[r]);Ce==-1&&([ae,me]=[me,ae]),oe(Ge,ae,it),oe(Ge,me,it)}if(!a.spanGaps){let Ge=[];Pt&&Ge.push(...CM(s,l,o,r,Ce,G,i)),Le.gaps=Ge=a.gaps(e,n,o,r,Ge),Le.clip=M0(Ge,u.ori,w,S,P,B)}return Tt!=0&&(Le.band=Tt==2?[Zs(e,n,o,r,Je,-1),Zs(e,n,o,r,Je,1)]:Zs(e,n,o,r,Je,Tt)),Le})}function YY(t){let i=xn(t.align,1),e=xn(t.ascDesc,!1),n=xn(t.alignGaps,0),o=xn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,B,F,G,ve)=>{[s,l]=w0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,G,B)),Je=gt=>oe(P(gt,w,ve,F)),Pt=y.ori==0?Tm:Im,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),Ge=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),it=It,me=It;o&&i==-1&&(me=Ne,Pt(Se,me,Ge)),Pt(Se,It,Ge);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Pt(Se,ft,Ge):Pt(Se,it,Ve),Pt(Se,ft,Ve),Ge=Ve,it=ft}let ae=it;o&&i==1&&(ae=Ne+Ce,Pt(Se,ae,Ge));let[He,tt]=yM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Pt(gt,ae,ft),Pt(gt,me,ft)}if(!u.spanGaps){let gt=[];gt.push(...CM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=M0(gt,y.ori,B,F,G,ve)}return tt!=0&&(ht.band=tt==2?[Zs(r,a,s,l,Se,-1),Zs(r,a,s,l,Se,1)]:Zs(r,a,s,l,Se,tt)),ht})}function pL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,B)=>bd(w,S,(F,G,ve,oe,Ne,Ce,Le,Je,Pt,ht,Se)=>{let Tt=F.pxRound,Ge=e,It=n*kn,it=s*kn,me=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let tt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?k0:xM,Qt=oe.ori==0?h:(Pe,ei,Vi,Od,ac,$a,sc)=>{h(Pe,ei,Vi,ac,Od,sc,$a)},ft=xn(w.bands,fM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Pt)),Xn,At,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,xs=null,Ir=null,rl=null,kd=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,xs=g.values(w,S,P,B),Ir=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Ir.set(Pe,new Path2D)}),jn>0&&(rl=y.values(w,S,P,B),kd=new Map,new Set(rl).forEach(Pe=>{Pe!=null&&kd.set(Pe,new Path2D)})));let{x0:Ad,size:Um}=u;if(Ad!=null&&Um!=null){Ge=1,G=Ad.values(w,S,P,B),Ad.unit==2&&(G=G.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Um.values(w,S,P,B);Um.unit==2?At=Pe[0]*ht:At=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=pL(G,ve,Ce,oe,ht,Je,Jn),Li=Jn-At+It}else Jn=pL(G,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,At=Jn-Li;Li<1&&(Li=0),jn>=At/2&&(jn=0),Li<5&&(Tt=xL);let Ef=Li>0,oc=Jn-Li-(Ef?jn:0);At=Tt(iM(oc,me,it)),Xn=(Ge==0?At/2:Ge==tt?0:At)-Ge*tt*((Ge==0?It/2:0)+(Ef?jn/2:0));let So={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Rd=Qo?null:new Path2D,ws=null;if(ft!=null)ws=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,B),ws=Pe.values(w,S,P,B))}let rc=ae*At,$t=He*At;for(let Pe=tt==1?P:B;Pe>=P&&Pe<=B;Pe+=tt){let ei=ve[Pe];if(ei==null)continue;if(ws!=null){let Ko=ws[Pe]??0;if(ei-Ko==0)continue;Ji=Le(Ko,Ne,Se,Pt)}let Vi=oe.distr!=2||u!=null?G[Pe]:Pe,Od=Ce(Vi,oe,ht,Je),ac=Le(xn(ei,jt),Ne,Se,Pt),$a=Tt(Od-Xn),sc=Tt(qo(ac,Ji)),or=Tt(Ba(ac,Ji)),kr=sc-or;if(ei!=null){let Ko=ei<0?$t:rc,sa=ei<0?rc:$t;Qo?(jn>0&&rl[Pe]!=null&>(kd.get(rl[Pe]),$a,or+Sr(jn/2),At,qo(0,kr-jn),Ko,sa),xs[Pe]!=null&>(Ir.get(xs[Pe]),$a,or+Sr(jn/2),At,qo(0,kr-jn),Ko,sa)):gt(Rd,$a,or+Sr(jn/2),At,qo(0,kr-jn),Ko,sa),Qt(w,S,Pe,$a-jn/2,or,At+jn,kr)}}return jn>0?So.stroke=Qo?kd:Rd:Qo||(So._fill=F.width==0?F._fill:F._stroke??F._fill,So.width=0),So.fill=Qo?Ir:Rd,So})}function KY(t,i){let e=xn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,B,F)=>{[r,a]=w0(u,r,a);let G=s.pxRound,ve=ae=>G(y(ae,h,B,S)),oe=ae=>G(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=T0,Le=Tm,Ce=QL):(Ne=I0,Le=Im,Ce=KL);let Je=h.dir*(h.ori==0?1:-1),Pt=ve(l[Je==1?r:a]),ht=Pt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let tt=l[ae],gt=ve(tt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let Ge={stroke:t(Se,Tt,Ne,Le,Ce,G),fill:null,clip:null,band:null,gaps:null,flags:Em},It=Ge.stroke,[it,me]=yM(n,o);if(s.fill!=null||it!=0){let ae=Ge.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,it),tt=oe(He);Le(ae,ht,tt),Le(ae,Pt,tt)}if(!s.spanGaps){let ae=[];ae.push(...CM(l,u,r,a,Je,ve,e)),Ge.gaps=ae=s.gaps(n,o,r,a,ae),Ge.clip=M0(ae,h.ori,S,P,B,F)}return me!=0&&(Ge.band=me==2?[Zs(n,o,r,a,It,-1),Zs(n,o,r,a,It,1)]:Zs(n,o,r,a,It,me)),Ge})}function ZY(t){return KY(XY,t)}function XY(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var JY=JL(),eQ=ZL();function fL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>lM(r,a,i,e))}function tQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function lM(t,i,e,n){return Ni({},i==0?e:n,t)}function eV(t,i,e){return i==null?Dm:[i,e]}var nQ=eV;function iQ(t,i,e){return i==null?Dm:C0(i,e,pM,!0)}function tV(t,i,e,n){return i==null?Dm:D0(i,e,t.scales[n].log,!1)}var oQ=tV;function nV(t,i,e,n){return i==null?Dm:mM(i,e,t.scales[n].log,!1)}var rQ=nV;function aQ(t,i,e,n,o){let r=qo(q2(t),q2(i)),a=i-t,s=Va(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function sQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:xn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=Jr(hq);if(t.id!=null&&(u.id=t.id),Dr(u,t.class),t.title){let v=Jr(_q,u);v.textContent=t.title}let h=La("canvas"),g=n.ctx=h.getContext("2d"),y=Jr(vq,u);_d("click",y,v=>{v.target===S&&(oi!=Wd||ui!=$d)&&co.click(n,v)},!0);let w=n.under=Jr(bq,y);y.appendChild(h);let S=n.over=Jr(yq,y);t=Sm(t);let P=+xn(t.pxAlign,1),B=mL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,G=n.series=o==1?fL(t.series||[],rL,dL,!1):tQ(t.series||[null],cL),ve=n.axes=fL(t.axes||[],oL,sL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=sn(v.fill||null),v.dir=xn(v.dir,-1)});let Ce=o==2?G[1].facets[0].scale:G[0].scale,Le={axes:t4,series:Kj},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Pt(v){let C=v.distr==3?E=>Ks(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>QE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:H}=v,re=H-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||sf)[v]||sf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Pt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?WL:HY,E),C.key=v;let M=C.time,N=C.range,H=Jl(N);if((v!=Ce||o==2&&!M)&&(H&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?W2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?W2:{mode:1,hard:N[1],soft:N[1]}},H=!1),!H&&E0(N))){let re=N;N=(pe,ye,Ae)=>ye==null?Dm:C0(ye,Ae,re)}C.range=sn(N||(M?nQ:v==Ce?C.distr==3?oQ:C.distr==4?rQ:eV:C.distr==3?tV:C.distr==4?nV:iQ)),C.auto=sn(H?!1:C.auto),C.clamp=sn(C.clamp||UY),C._min=C._max=null,C.valToPct=Pt(C)}}}ht("x"),ht("y"),o==1&&G.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,Ge,It;Se.ori==0?(Dr(u,fq),Ge=r,It=a):(Dr(u,gq),Ge=a,It=r);let it={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(it[v]={min:C.min,max:C.max},C.min=C.max=null)}let me=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||gM,He=F==1?fY(me):vY(me),tt=tL(me,eL(F==1?hY:_Y,ae)),gt=iL(me,nL(yY,ae)),Qt=[],ft=n.legend=Ni({},wY,t.legend),Ve=n.cursor=Ni({},IY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=sn(Xn.width),Xn.dash=sn(Xn.dash),Xn.stroke=sn(Xn.stroke),Xn.fill=sn(Xn.fill);let At,Li,Jn,jn=[],Qo=[],xs,Ir=!1,rl={};if(ft.live){let v=G[1]?G[1].values:null;Ir=v!=null,xs=Ir?v(n,1,0):{_:0};for(let C in xs)rl[C]=dM}if(jt)if(At=La("table",Eq,u),Jn=La("tbody",null,At),ft.mount(n,At),Ir){Li=La("thead",null,At,Jn);let v=La("tr",null,Li);La("th",null,v);for(var kd in xs)La("th",A2,v).textContent=kd}else Dr(At,Tq),ft.live&&Dr(At,Mq);let Ad={show:!0},Um={show:!1};function Ef(v,C){if(C==0&&(Ir||!ft.live||o==2))return Dm;let E=[],M=La("tr",Iq,Jn,Jn.childNodes[C]);Dr(M,v.class),v.show||Dr(M,gd);let N=La("th",null,M);if(Xn.show){let pe=Jr(kq,N);if(C>0){let ye=Xn.width(n,C);ye&&(pe.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),pe.style.background=Xn.fill(n,C)}}let H=Jr(A2,N);v.label instanceof HTMLElement?H.appendChild(v.label):H.textContent=v.label,C>0&&(Xn.show||(H.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),So("click",N,pe=>{if(Ve._lock)return;cc(pe);let ye=G.indexOf(v);if((pe.ctrlKey||pe.metaKey)!=ft.isolate){let Ae=G.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);G.forEach((Oe,Be)=>{Be>0&&qa(Be,Ae?Be==ye?Ad:Um:Ad,!0,Ii.setSeries)})}else qa(ye,{show:!v.show},!0,Ii.setSeries)},!1),Nd&&So(N2,N,pe=>{Ve._lock||(cc(pe),qa(G.indexOf(v),qd,!0,Ii.setSeries))},!1));for(var re in xs){let pe=La("td",Aq,M);pe.textContent="--",E.push(pe)}return[M,E]}let oc=new Map;function So(v,C,E,M=!0){let N=oc.get(C)||{},H=Ve.bind[v](n,C,E,M);H&&(_d(v,C,N[v]=H),oc.set(C,N))}function Rd(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(nM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let ws=0,rc=0,$t=0,Pe=0,ei=0,Vi=0,Od=ei,ac=Vi,$a=$t,sc=Pe,or=0,kr=0,Ko=0,sa=0;n.bbox={};let jy=!1,Mf=!1,Pd=!1,lc=!1,Tf=!1,Ar=!1;function zy(v,C,E){(E||v!=n.width||C!=n.height)&&aT(v,C),jd(!1),Pd=!0,Mf=!0,zd()}function aT(v,C){n.width=ws=$t=v,n.height=rc=Pe=C,ei=Vi=0,Hj(),Wj();let E=n.bbox;or=E.left=hd(ei*kn,.5),kr=E.top=hd(Vi*kn,.5),Ko=E.width=hd($t*kn,.5),sa=E.height=hd(Pe*kn,.5)}let jj=3;function zj(){let v=!1,C=0;for(;!v;){C++;let E=Jj(C),M=e4(C);v=C==jj||E&&M,v||(aT(n.width,n.height),Mf=!0)}}function Uj({width:v,height:C}){zy(v,C)}n.setSize=Uj;function Hj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,H)=>{if(N.show&&N._show){let{side:re,_size:pe}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=pe+Ae;Oe>0&&(ye?($t-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,$t-=al[1]+al[3],ei+=al[3],Pe-=al[2]+al[0],Vi+=al[0]}function Wj(){let v=ei+$t,C=Vi+Pe,E=ei,M=Vi;function N(H,re){switch(H){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((H,re)=>{if(H.show&&H._show){let pe=H.side;H._pos=N(pe,H._size),H.label!=null&&(H._lpos=N(pe,H.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=sn(v.prox),M=v.bias??=0;Ve.dataIdx=(N,H,re,pe)=>{if(H==0)return re;let ye=re,Ae=E(N,H,re,pe)??Kn,Oe=Ae>=0&&Ae0;)C.has(_n[ot])||(tn=ot);if(M==0||M==1)for(ot=re;St==null&&ot++<_n.length;)C.has(_n[ot])||(St=ot);if(tn!=null||St!=null)if(Oe){let ai=tn==null?-1/0:Ge(wn[tn],Se,Be,0),gi=St==null?1/0:Ge(wn[St],Se,Be,0),ro=Lt-ai,zn=gi-Lt;ro<=zn?ro<=Ae&&(ye=tn):zn<=Ae&&(ye=St)}else ye=St==null?tn:tn==null?St:re-tn<=St-re?tn:St}else Oe&&Zi(Lt-Ge(wn[re],Se,Be,0))>Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let go=Ve.points;go.show=sn(go.show),go.size=sn(go.size),go.stroke=sn(go.stroke),go.width=sn(go.width),go.fill=sn(go.fill);let Ga=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Nd=Ga.prox>=0,Fd=Nd&&go.one,Rr=[],Ld=[],Vd=[];function sT(v,C){let E=go.show(n,C);if(E instanceof HTMLElement)return Dr(E,Sq),Dr(E,v.class),bs(E,-10,-10,$t,Pe),S.insertBefore(E,Rr[C]),E}function lT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?K2(M)?iL(me,nL(M,ae)):M||gt:M||BY,v.label=v.label||(E?AY:kY)}if(Fd||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||JY||Hq,v.fillTo=sn(v.fillTo||WY),v.pxAlign=+xn(v.pxAlign,P),v.pxRound=mL(v.pxAlign),v.stroke=sn(v.stroke||null),v.fill=sn(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=jY(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:eQ,_stroke:null,_fill:null},v.points);M.show=sn(M.show),M.filter=sn(M.filter),M.fill=sn(M.fill),M.stroke=sn(M.stroke),M.paths=sn(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Ef(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Fd?C==0&&(E=sT(v,C)):C>0&&(E=sT(v,C)),Rr.splice(C,0,E),Ld.splice(C,0,0),Vd.splice(C,0,0)}oo("addSeries",C)}function $j(v,C){C=C??G.length,v=o==1?lM(v,C,rL,dL):lM(v,C,{},cL),G.splice(C,0,v),lT(G[C],C)}n.addSeries=$j;function Gj(v){if(G.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Rd(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Rr.splice(v,1)[0].remove(),Ld.splice(v,1),Vd.splice(v,1)),oo("delSeries",v)}n.delSeries=Gj;let dc=[!1,!1,!1,!1];function qj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?G[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=sn(v.size),v.space=sn(v.space),v.rotate=sn(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,SL(re))}),v.incrs=sn(v.incrs||(M.distr==2?uY:N?F==1?pY:gY:fd)),v.splits=sn(v.splits||(N&&M.distr==1?He:M.distr==3?oM:M.distr==4?PY:OY)),v.stroke=sn(v.stroke),v.grid.stroke=sn(v.grid.stroke),v.ticks.stroke=sn(v.ticks.stroke),v.border.stroke=sn(v.border.stroke);let H=v.values;v.values=Jl(H)&&!Jl(H[0])?sn(H):N?Jl(H)?tL(me,eL(H,ae)):K2(H)?bY(me,H):H||tt:H||RY,v.filter=sn(v.filter||(M.distr>=3&&M.log==10?LY:M.distr==3&&M.log==2?VY:wL)),v.font=gL(v.font),v.labelFont=gL(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=Jr(Cq,y))}}function Hm(v,C,E,M){let[N,H,re,pe]=E,ye=C%2,Ae=0;return ye==0&&(pe||H)&&(Ae=C==0&&!N||C==2&&!re?Ki(oL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!H||C==3&&!pe?Ki(sL.size/2):0),Ae}let cT=n.padding=(t.padding||[Hm,Hm,Hm,Hm]).map(v=>sn(xn(v,Hm))),al=n._padding=cT.map((v,C)=>v(n,C,dc,0)),lo,eo=null,to=null,If=o==1?G[0].idxs:null,la=null,Wm=!1;function dT(v,C){if(i=v??[],n.data=n._data=i,o==2){lo=0;for(let E=1;E=0,Ar=!0,zd()}}n.setData=dT;function Uy(){Wm=!0;let v,C;o==1&&(lo>0?(eo=If[0]=0,to=If[1]=lo-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=D0(v,v,Se.log,!1):Tt==4?[v,C]=mM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=C0(v,C,pM,!0))):(eo=If[0]=v=null,to=If[1]=C=null)),ll(Ce,v,C)}let kf,Bd,Hy,Wy,$y,Gy,qy,Yy,Qy,Zo;function uT(v,C,E,M,N,H){v??=O2,E??=fM,M??="butt",N??=O2,H??="round",v!=kf&&(g.strokeStyle=kf=v),N!=Bd&&(g.fillStyle=Bd=N),C!=Hy&&(g.lineWidth=Hy=C),H!=$y&&(g.lineJoin=$y=H),M!=Gy&&(g.lineCap=Gy=M),E!=Wy&&g.setLineDash(Wy=E)}function mT(v,C,E,M){C!=Bd&&(g.fillStyle=Bd=C),v!=qy&&(g.font=qy=v),E!=Yy&&(g.textAlign=Yy=E),M!=Qy&&(g.textBaseline=Qy=M)}function Ky(v,C,E,M,N=0){if(M.length>0&&v.auto(n,Wm)&&(C==null||C.min==null)){let H=xn(eo,0),re=xn(to,M.length-1),pe=E.min==null?Lq(M,H,re,N,v.distr==3):[E.min,E.max];v.min=Ba(v.min,E.min=pe[0]),v.max=qo(v.max,E.max=pe[1])}}let pT={min:null,max:null};function Yj(){for(let M in oe){let N=oe[M];it[M]==null&&(N.min==null||it[Ce]!=null&&N.auto(n,Wm))&&(it[M]=pT)}for(let M in oe){let N=oe[M];it[M]==null&&N.from!=null&&it[N.from]!=null&&(it[M]=pT)}it[Ce]!=null&&jd(!0);let v={};for(let M in it){let N=it[M];if(N!=null){let H=v[M]=Sm(oe[M],Gq);if(N.min!=null)Ni(H,N);else if(M!=Ce||o==2)if(lo==0&&H.from==null){let re=H.range(n,null,null,M);H.min=re[0],H.max=re[1]}else H.min=Kn,H.max=-Kn}}if(lo>0){G.forEach((M,N)=>{if(o==1){let H=M.scale,re=it[H];if(re==null)return;let pe=v[H];if(N==0){let ye=pe.range(n,pe.min,pe.max,H);pe.min=ye[0],pe.max=ye[1],eo=Va(pe.min,i[0]),to=Va(pe.max,i[0]),to-eo>1&&(i[0][eo]pe.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Ky(pe,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[H,re]=M.facets,pe=H.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[pe],Lt=v[ye];Be!=null&&Ky(Be,it[pe],H,Ae,H.sorted),Lt!=null&&Ky(Lt,it[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],H=it[M];if(N.from==null&&(H==null||H.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let H=v[N.from];if(H.min==null)N.min=N.max=null;else{let re=N.range(n,H.min,H.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],H=oe[M];if(H.min!=N.min||H.max!=N.max){H.min=N.min,H.max=N.max;let re=H.distr;H._min=re==3?Ks(H.min):re==4?QE(H.min,H.asinh):re==100?H.fwd(H.min):H.min,H._max=re==3?Ks(H.max):re==4?QE(H.max,H.asinh):re==100?H.fwd(H.max):H.max,C[M]=E=!0}}if(E){G.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Pd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Ar=!0)}for(let M in it)it[M]=null}function Qj(v){let C=iM(eo-1,0,lo-1),E=iM(to+1,0,lo-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=G.some(C=>C._focus)&&Zo!=Ga.alpha;v&&(g.globalAlpha=Zo=Ga.alpha),G.forEach((C,E)=>{if(E>0&&C.show&&(hT(E,!1),hT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Qj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),G.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&fT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,H=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,H,N);(H||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),fT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function hT(v,C){let E=C?G[v].points:G[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function fT(v,C){let E=C?G[v].points:G[v],{stroke:M,fill:N,clip:H,flags:re,_stroke:pe=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":pe);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let wn=or-Ae/2,_n=kr-Ae/2,tn=Ko+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(wn,_n,tn,St)}C?Zy(pe,Ae,E.dash,E.cap,ye,M,N,re,H):Zj(v,pe,Ae,E.dash,E.cap,ye,M,N,re,Oe,H),Lt&&g.translate(-Be,-Be)}function Zj(v,C,E,M,N,H,re,pe,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,wn)=>{if(Lt.series[0]==v){let _n=G[Lt.series[1]],tn=i[Lt.series[1]],St=(_n._paths||sf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let ot,ai=null;_n.show&&St&&Bq(tn,eo,to)?(ai=Lt.fill(n,wn)||H,ot=_n._paths.clip):St=null,Zy(C,E,M,N,ai,re,pe,ye,Ae,Oe,ot,St),Be=!0}}),Be||Zy(C,E,M,N,H,re,pe,ye,Ae,Oe)}let gT=Em|aM;function Zy(v,C,E,M,N,H,re,pe,ye,Ae,Oe,Be){uT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(pe&gT)==gT?(g.clip(Be),Oe&&g.clip(Oe),Rf(N,re),Af(v,H,C)):pe&aM?(Rf(N,re),g.clip(Be),Af(v,H,C)):pe&Em&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Rf(N,re),g.restore(),Af(v,H,C)):(Rf(N,re),Af(v,H,C)),(ye||Ae||Be)&&g.restore()}function Af(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=kf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Rf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=Bd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function Xj(v,C,E,M){let N=ve[v],H;if(M<=0)H=[0,0];else{let re=N._space=N.space(n,v,C,E,M),pe=N._incrs=N.incrs(n,v,C,E,M,re);H=aQ(C,E,pe,M,re)}return N._found=H}function Xy(v,C,E,M,N,H,re,pe,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),uT(pe,re,ye,Ae,pe),g.beginPath();let Be,Lt,wn,_n,tn=N+(M==0||M==3?-H:H);E==0?(Lt=N,_n=tn):(Be=N,wn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,jd(!1));return}else E._show||(C=!1,E._show=!0,jd(!1));let H=E.side,re=H%2,{min:pe,max:ye}=N,[Ae,Oe]=Xj(M,pe,ye,re==0?$t:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,pe,ye,Ae,Oe,Be),wn=N.distr==2?Lt.map(ot=>la[ot]):Lt,_n=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,wn,M,Oe,_n),M,Oe,_n);E._rotate=H==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ea(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function e4(v){let C=!0;return cT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=al[M]&&(C=!1),al[M]=N}),C}function t4(){for(let v=0;vla[Mo]):wn,tn=Oe.distr==2?la[wn[1]]-la[wn[0]]:ye,St=C.ticks,ot=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-b0/180,_i=B(C._pos*kn),rr=(gi+ro)*pe,Eo=_i+rr;H=M==0?Eo:0,N=M==1?Eo:0;let Or=C.font[0],ca=C.align==1?ym:C.align==2?GE:zn>0?ym:zn<0?GE:M==0?"center":E==3?GE:ym,Qa=zn||M==1?"middle":E==2?"top":R2;mT(Or,re,ca,Qa);let ar=C.font[1]*C.lineGap,Pr=wn.map(Mo=>B(s(Mo,Oe,Be,Lt))),da=C._values;for(let Mo=0;Mo{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Of=!1,Jy=!1,$m=[];function n4(){Jy=!1;for(let v=0;v<$m.length;v++)oo(...$m[v]);$m.length=0}function zd(){Of||(Jq(_T),Of=!0)}function i4(v,C=!1){Of=!0,Jy=C,v(n),_T(),C&&$m.length>0&&queueMicrotask(n4)}n.batch=i4;function _T(){if(jy&&(Yj(),jy=!1),Pd&&(zj(),Pd=!1),Mf){if(di(w,ym,ei),di(w,"top",Vi),di(w,nf,$t),di(w,of,Pe),di(S,ym,ei),di(S,"top",Vi),di(S,nf,$t),di(S,of,Pe),di(y,nf,ws),di(y,of,rc),h.width=Ki(ws*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let H=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-H),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:$t),tM(v,gd)}else Dr(v,gd)}),kf=Bd=Hy=$y=Gy=qy=Yy=Qy=Wy=null,Zo=1,Ym(!0),ei!=Od||Vi!=ac||$t!=$a||Pe!=sc){jd(!1);let v=$t/$a,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Ud&&bs(Ud,Ki(Ve.left),0,$t,Pe),Hd&&bs(Hd,0,Ki(Ve.top),$t,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in rC)di(Gd,E,ri[E])}Od=ei,ac=Vi,$a=$t,sc=Pe}oo("setSize"),Mf=!1}ws>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&Tf&&(Pf(ri),Tf=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Ar&&(iC(),Ar=!1),l||(l=!0,n.status=1,oo("ready")),Wm=!1,Of=!1}n.redraw=(v,C)=>{Pd=C||!1,v!==!1?ll(Ce,Se.min,Se.max):zd()};function eC(v,C){let E=oe[v];if(E.from==null){if(lo==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(lo>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&lo>0&&(C.min=Va(C.min,i[0]),C.max=Va(C.max,i[0]),C.min==C.max&&C.max++),it[v]=C,jy=!0,zd()}}n.setScale=eC;let tC,nC,Ud,Hd,vT,bT,Wd,$d,yT,CT,oi,ui,sl=!1,co=Ve.drag,no=co.x,io=co.y;Ji&&(Ve.x&&(tC=Jr(wq,S)),Ve.y&&(nC=Jr(Dq,S)),Se.ori==0?(Ud=tC,Hd=nC):(Ud=nC,Hd=tC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Gd=ri.show?Jr(xq,ri.over?S:w):null;function Pf(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in rC&&di(Gd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Pf;function o4(v){if(G[v].show)jt&&tM(jn[v],gd);else if(jt&&Dr(jn[v],gd),Ji){let E=Fd?Rr[0]:Rr[v];E!=null&&bs(E,-10,-10,$t,Pe)}}function ll(v,C,E){eC(v,{min:C,max:E})}function qa(v,C,E,M){C.focus!=null&&c4(v),C.show!=null&&G.forEach((N,H)=>{H>0&&(v==H||v==null)&&(N.show=C.show,o4(H),o==2?(ll(N.facets[0].scale,null,null),ll(N.facets[1].scale,null,null)):ll(N.scale,null,null),zd())}),E!==!1&&oo("setSeries",v,C),M&&Qm("setSeries",n,v,C)}n.setSeries=qa;function r4(v,C){Ni(Ne[v],C)}function a4(v,C){v.fill=sn(v.fill||null),v.dir=xn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function s4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=a4,n.setBand=r4,n.delBand=s4;function l4(v,C){G[v].alpha=C,Ji&&Rr[v]!=null&&(Rr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ds,cl,uc,qd={focus:!0};function c4(v){if(v!=uc){let C=v==null,E=Ga.alpha!=1;G.forEach((M,N)=>{if(o==1||N>0){let H=C||N==0||N==v;M._focus=C?null:H,E&&l4(N,H?1:Ga.alpha)}}),uc=v,E&&zd()}}jt&&Nd&&So(F2,At,v=>{Ve._lock||(cc(v),uc!=null&&qa(null,qd,!0,Ii.setSeries))});function Ya(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=$t;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let H=M._min,re=M._max,pe=v/N,ye=H+(re-H)*pe,Ae=M.distr;return Ae==3?wm(10,ye):Ae==4?zq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function d4(v,C){let E=Ya(v,Ce,C);return Va(E,i[0],eo,to)}n.valToIdx=v=>Va(v,i[0]),n.posToIdx=d4,n.posToVal=Ya,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:$t,E?or:0):a(v,oe[C],E?sa:Pe,E?kr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function xT(v,C){di(Gd,ym,ri.left=v),di(Gd,nf,ri.width=C)}function wT(v,C){di(Gd,"top",ri.top=v),di(Gd,of,ri.height=C)}let Gm=Se.ori==0?xT:wT,qm=Se.ori==1?xT:wT;function u4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):$q(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Ir)&&m4(E,Qt[E]);u4()}Ar=!1,C!==!1&&oo("setLegend")}n.setLegend=iC;function m4(v,C){let E=G[v],M=v==0&&Tt==2?la:i[v],N;Ir?N=E.values(n,v,C)??rl:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?rl:{_:N}),ft.values[v]=N}function mc(v,C,E){yT=oi,CT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Ud&&bs(Ud,Ki(oi),0,$t,Pe),Hd&&bs(Hd,0,Ki(ui),$t,Pe));let M,N=eo>to;Ds=Kn,cl=null;let H=Se.ori==0?$t:Pe,re=Se.ori==1?$t:Pe;if(oi<0||lo==0||N){M=Ve.idx=null;for(let pe=0;pe0&&ai.show){let rr=zn==null?-10:zn==M?Ae:Ge(o==1?i[0][zn]:i[ot][0][zn],Se,H,0),Eo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Nd&&_i!=null){let Or=Se.ori==1?oi:ui,ca=Zi(Ga.dist(n,ot,zn,Eo,Or));if(ca=0?1:-1,da=ar>=0?1:-1;da==Pr&&(da==1?Qa==1?_i>=ar:_i<=ar:Qa==1?_i<=ar:_i>=ar)&&(Ds=ca,cl=ot)}else Ds=ca,cl=ot}}if(Ar||Fd){let Or,ca;Se.ori==0?(Or=rr,ca=Eo):(Or=Eo,ca=rr);let Qa,ar,Pr,da,Ka,Mo,sr=!0,pc=go.bbox;if(pc!=null){sr=!1;let To=pc(n,ot);Pr=To.left,da=To.top,Qa=To.width,ar=To.height}else Pr=Or,da=ca,Qa=ar=go.size(n,ot);if(Mo=go.fill(n,ot),Ka=go.stroke(n,ot),Fd)ot==cl&&Ds<=Ga.prox&&(Oe=Pr,Be=da,Lt=Qa,wn=ar,_n=sr,tn=Mo,St=Ka);else{let To=Rr[ot];To!=null&&(Ld[ot]=Pr,Vd[ot]=da,H2(To,Qa,ar,sr),z2(To,Mo,Ka),bs(To,ea(Pr),ea(da),$t,Pe))}}}}if(Fd){let ot=Ga.prox,ai=uc==null?Ds<=ot:Ds>ot||cl!=uc;if(Ar||ai){let gi=Rr[0];gi!=null&&(Ld[0]=Oe,Vd[0]=Be,H2(gi,Lt,wn,_n),z2(gi,tn,St),bs(gi,ea(Oe),ea(Be),$t,Pe))}}}if(ri.show&&sl)if(v!=null){let[pe,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,wn=v.cursor.drag;if(no=wn._x,io=wn._y,no||io){let{left:_n,top:tn,width:St,height:ot}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,rr,Eo,Or=pe!=null&&Ae(pe,Be),ca=ye!=null&&Oe(ye,Lt);Or&&no?(ai==0?(ro=_n,zn=St):(ro=tn,zn=ot),_i=oe[pe],rr=Ge(gi(ro,Be),_i,H,0),Eo=Ge(gi(ro+zn,Be),_i,H,0),Gm(Ba(rr,Eo),Zi(Eo-rr))):Gm(0,H),ca&&io?(ai==1?(ro=_n,zn=St):(ro=tn,zn=ot),_i=oe[ye],rr=It(gi(ro,Lt),_i,re,0),Eo=It(gi(ro+zn,Lt),_i,re,0),qm(Ba(rr,Eo),Zi(Eo-rr))):qm(0,re)}else aC()}else{let pe=Zi(yT-vT),ye=Zi(CT-bT);if(Se.ori==1){let Lt=pe;pe=ye,ye=Lt}no=co.x&&pe>=co.dist,io=co.y&&ye>=co.dist;let Ae=co.uni;Ae!=null?no&&io&&(no=pe>=Ae,io=ye>=Ae,!no&&!io&&(ye>pe?io=!0:no=!0)):co.x&&co.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),Gm(Ba(Oe,Be),Zi(Be-Oe)),io||qm(0,re)),io&&(Se.ori==1?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),qm(Ba(Oe,Be),Zi(Be-Oe)),no||Gm(0,H)),!no&&!io&&(Gm(0,0),qm(0,0))}if(co._x=no,co._y=io,v==null){if(E){if(PT!=null){let[pe,ye]=Ii.scales;Ii.values[0]=pe!=null?Ya(Se.ori==0?oi:ui,pe):null,Ii.values[1]=ye!=null?Ya(Se.ori==1?oi:ui,ye):null}Qm(qE,n,oi,ui,$t,Pe,M)}if(Nd){let pe=E&&Ii.setSeries,ye=Ga.prox;uc==null?Ds<=ye&&qa(cl,qd,!0,pe):Ds>ye?qa(null,qd,!0,pe):cl!=uc&&qa(cl,qd,!0,pe)}}Ar&&(ft.idx=M,iC()),C!==!1&&oo("setCursor")}let dl=null;Object.defineProperty(n,"rect",{get(){return dl==null&&Ym(!1),dl}});function Ym(v=!1){v?dl=null:(dl=S.getBoundingClientRect(),oo("syncRect",dl))}function DT(v,C,E,M,N,H,re){Ve._lock||sl&&v!=null&&v.movementX==0&&v.movementY==0||(oC(v,C,E,M,N,H,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function oC(v,C,E,M,N,H,re,pe,ye){if(dl==null&&Ym(!1),cc(v),v!=null)E=v.clientX-dl.left,M=v.clientY-dl.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,wn]=Be.values,[_n,tn]=Be.scales,[St,ot]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?$t:Pe,ro=Se.ori==1?$t:Pe,zn=ai?H:N,_i=ai?N:H,rr=ai?M:E,Eo=ai?E:M;if(_n!=null?E=St(Ae,_n)?s(Lt,oe[Ae],gi,0):-10:E=gi*(rr/zn),tn!=null?M=ot(Oe,tn)?s(wn,oe[Oe],ro,0):-10:M=ro*(Eo/_i),Se.ori==1){let Or=E;E=M,M=Or}}ye&&(C==null||C.cursor.event.type==qE)&&((E<=1||E>=$t-1)&&(E=hd(E,$t)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),pe?(vT=E,bT=M,[Wd,$d]=Ve.move(n,E,M)):(oi=E,ui=M)}let rC={width:0,height:0,left:0,top:0};function aC(){Pf(rC,!1)}let ST,ET,MT,TT;function IT(v,C,E,M,N,H,re){sl=!0,no=io=co._x=co._y=!1,oC(v,C,E,M,N,H,re,!0,!1),v!=null&&(So(YE,JE,kT,!1),Qm(P2,n,Wd,$d,$t,Pe,null));let{left:pe,top:ye,width:Ae,height:Oe}=ri;ST=pe,ET=ye,MT=Ae,TT=Oe}function kT(v,C,E,M,N,H,re){sl=co._x=co._y=!1,oC(v,C,E,M,N,H,re,!1,!0);let{left:pe,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ST!=pe||ET!=ye||MT!=Ae||TT!=Oe;if(Be&&Lt&&Pf(ri),co.setScale&&Be&&Lt){let wn=pe,_n=Ae,tn=ye,St=Oe;if(Se.ori==1&&(wn=ye,_n=Oe,tn=pe,St=Ae),no&&ll(Ce,Ya(wn,Ce),Ya(wn+_n,Ce)),io)for(let ot in oe){let ai=oe[ot];ot!=Ce&&ai.from==null&&ai.min!=Kn&&ll(ot,Ya(tn+St,ot),Ya(tn,ot))}aC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Rd(YE,JE),Qm(YE,n,oi,ui,$t,Pe,null))}function p4(v,C,E,M,N,H,re){if(Ve._lock)return;cc(v);let pe=sl;if(sl){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=$t-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi{let N=Ii.match[2];E=N(n,C,E),E!=-1&&qa(E,M,!0,!1)},Ji&&(So(P2,S,IT),So(qE,S,DT),So(N2,S,v=>{cc(v),Ym(!1)}),So(F2,S,p4),So(L2,S,AT),sM.add(n),n.syncRect=Ym);let Nf=n.hooks=t.hooks||{};function oo(v,C,E){Jy?$m.push([v,C,E]):v in Nf&&Nf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Nf[C]=(Nf[C]||[]).concat(v.hooks[C])});let OT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Y2,sub:Y2},scales:[Ce,G[1]?G[1].scale:null],match:[Q2,Q2,OT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(OT),Ve.sync=Ii;let PT=Ii.key,sC=$L(PT);function Qm(v,C,E,M,N,H,re){Ii.filters.pub(v,C,E,M,N,H,re)&&sC.pub(v,C,E,M,N,H,re)}sC.sub(n);function h4(v,C,E,M,N,H,re){Ii.filters.sub(v,C,E,M,N,H,re)&&Yd[v](null,C,E,M,N,H,re)}n.pub=h4;function f4(){sC.unsub(n),sM.delete(n),oc.clear(),nM(y0,xm,RT),u.remove(),At?.remove(),oo("destroy")}n.destroy=f4;function lC(){oo("init",t,i),dT(i||t.data,!1),it[Ce]?eC(Ce,it[Ce]):Uy(),Tf=ri.show&&(ri.width>0||ri.height>0),lc=Ar=!0,zy(t.width,t.height)}return G.forEach(lT),ve.forEach(qj),e?e instanceof HTMLElement?(e.appendChild(u),lC()):e(n,lC):lC(),n}Ti.assign=Ni;Ti.fmtNum=hM;Ti.rangeNum=C0;Ti.rangeLog=D0;Ti.rangeAsinh=mM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=Xq;Ti.fmtDate=gM,Ti.tzDate=cY;Ti.sync=$L;{Ti.addGap=$Y,Ti.clipGaps=M0;let t=Ti.paths={points:ZL};t.linear=JL,t.stepped=YY,t.bars=QY,t.spline=ZY}var lQ=["host"],cQ=["donut"],iV=(t,i)=>i.name;function dQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function uQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,dQ,6,4,"div",6,iV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function mQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),z("",e.name," ")}}function pQ(t,i){if(t&1&&(c(0,"div",10),fe(1,mQ,3,3,"span",13,iV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function hQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function fQ(t,i){if(t&1&&(c(0,"div",3),A(1,pQ,3,0,"div",10),O(2,"div",11,0),A(4,hQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var A0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function gQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var oV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,B)=>B.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,B=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>nt(q({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),G=B.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>B.map((Le,Je)=>F.slice(0,Ce+1).reduce((Pt,ht)=>Pt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[G,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(B[Le]):""),h[0].splits=()=>G,y=Ne=>B[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,B)=>[0,(B||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[gQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:A0[r%A0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let B=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+B),l.closePath(),l.fillStyle=A0[P%A0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=B}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&rt(lQ,5)(cQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,uQ,8,0,"div",2)(1,fQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var vQ=(t,i)=>i.value,bQ=(t,i)=>i.user;function yQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),z(" ",e.label," ")}}function CQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),z(": ",e.renderTimestamp(e.data.generated)," ")}}function xQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),z(": ",e.license.end_date)}}function wQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),z(" ",e.licenseDaysRemaining," "),m(3),z(" (",e.license.end_date,")")}}function DQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),z(" ",e.license.end_date)}}function SQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,xQ,6,1)(2,wQ,9,2)(3,DQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function EQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function MQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function TQ(t,i){if(t&1&&(c(0,"div",15)(1,"div",33)(2,"div",34),f(3),d(),c(4,"div",35)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"div",33)(8,"div",34),f(9),d(),c(10,"div",35)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"div",33)(14,"div",34),f(15),d(),c(16,"div",35)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"div",33)(20,"div",34),f(21),d(),c(22,"div",35)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"div",33)(26,"div",34),f(27),d(),c(28,"div",35)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"div",33)(32,"div",34),f(33),d(),c(34,"div",35)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"div",33)(38,"div",34),f(39),d(),c(40,"div",35)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"div",33)(44,"div",34),f(45),d(),c(46,"div",35)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function IQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function kQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function AQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function RQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function OQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function PQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function QQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function KQ(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,QQ,11,5,"tr",null,bQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function ZQ(t,i){if(t&1&&(c(0,"div",32)(1,"div",26),O(2,"img",27),c(3,"div",28)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",29)(10,"a",31)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),qe),m(4),z("",e.info.restrained_services_pools," ")}}function XQ(t,i){if(t&1&&(A(0,TQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,IQ,1,1,"uds-uplot-chart",19)(7,kQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,AQ,1,1,"uds-uplot-chart",19)(13,RQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,OQ,1,1,"uds-uplot-chart",19)(19,PQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,NQ,1,1,"uds-uplot-chart",19)(25,FQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,LQ,1,1,"uds-uplot-chart",19)(31,VQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,BQ,1,1,"uds-uplot-chart",19)(37,jQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,zQ,1,1,"uds-uplot-chart",19)(43,UQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,HQ,1,1,"uds-uplot-chart",19)(49,WQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,$Q,1,1,"uds-uplot-chart",19)(55,GQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,qQ,1,1,"uds-uplot-chart",19)(61,YQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,KQ,25,0,"div",23),c(74,"div",24)(75,"div",25)(76,"div",26),O(77,"img",27),c(78,"div",28)(79,"ul")(80,"li"),f(81),c(82,"uds-translate"),f(83,"total users"),d()(),c(84,"li"),f(85),c(86,"uds-translate"),f(87,"total groups"),d()(),c(88,"li"),f(89),c(90,"uds-translate"),f(91,"with services"),d()()()()(),c(92,"div",29)(93,"a",30)(94,"uds-translate"),f(95,"View authenticators"),d()()()(),c(96,"div",25)(97,"div",26),O(98,"img",27),c(99,"div",28)(100,"ul")(101,"li"),f(102),c(103,"uds-translate"),f(104,"total pools"),d()()()()(),c(105,"div",29)(106,"a",31)(107,"uds-translate"),f(108,"View service pools"),d()()()(),c(109,"div",25)(110,"div",26),O(111,"img",27),c(112,"div",28)(113,"ul")(114,"li"),f(115),c(116,"uds-translate"),f(117,"total services"),d()(),c(118,"li"),f(119),c(120,"uds-translate"),f(121,"assigned"),d()()()()(),c(122,"div",29)(123,"a",31)(124,"uds-translate"),f(125,"View service pools"),d()()()(),A(126,ZQ,13,2,"div",32),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(4),b("src",e.api.staticURL("admin/img/icons/authenticators.png"),qe),m(4),z("",e.info.users," "),m(4),z("",e.info.groups," "),m(4),z("",e.info.users_with_services," "),m(9),b("src",e.api.staticURL("admin/img/icons/pools.png"),qe),m(4),z("",e.info.service_pools," "),m(9),b("src",e.api.staticURL("admin/img/icons/services.png"),qe),m(4),z("",e.info.user_services," "),m(4),z("",e.info.assigned_user_services," "),m(7),R(e.info.restrained_services_pools>0?126:-1)}}var wM=null,rV=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return j(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return j(this,null,function*(){wM===null&&(wM=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return j(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return j(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return j(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return wM||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(M2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return j(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],[1,"info-panel","info-danger"],[1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],[1,"dashboard-table"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,yQ,2,3,"button",3,vQ),d(),c(5,"div",4),A(6,CQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,SQ,4,5,"div",8),A(11,EQ,2,2,"div",9),d()(),A(12,MQ,5,0,"div",10)(13,XQ,127,24),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,bm,Ee,oV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function eK(t,i){t&1&&O(0,"uds-dashboard")}function tK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var aV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,eK,1,0,"uds-dashboard")(3,tK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var ys=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var R0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var nK=["notch"],iK=["matFormFieldNotchedOutline",""],oK=["*"],sV=["iconPrefixContainer"],lV=["textPrefixContainer"],cV=["iconSuffixContainer"],dV=["textSuffixContainer"],rK=["textField"],aK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],sK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function lK(t,i){t&1&&O(0,"span",21)}function cK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,lK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),he("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function dK(t,i){if(t&1&&A(0,cK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function uK(t,i){t&1&&O(0,"div",7)}function mK(t,i){}function pK(t,i){if(t&1&&xe(0,mK,0,0,"ng-template",13),t&2){_(2);let e=Ot(1);b("ngTemplateOutlet",e)}}function hK(t,i){if(t&1&&(c(0,"div",9),A(1,pK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function fK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function gK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function _K(t,i){}function vK(t,i){if(t&1&&xe(0,_K,0,0,"ng-template",13),t&2){_();let e=Ot(1);b("ngTemplateOutlet",e)}}function bK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function yK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function CK(t,i){t&1&&O(0,"div",16)}function xK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function wK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function DK(t,i){if(t&1&&(c(0,"div",19),A(1,wK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),_V=new L("MatError");var DM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Rn("id",o.id),he("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),vV=new L("MatPrefix");var SM=new L("MatSuffix"),Mr=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:SM,useExisting:t}])]})}return t})(),bV=new L("FloatingLabelParent"),uV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(Bb);_ngZone=p(be);_parent=p(bV);_resizeSubscription=new ze;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return SK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function SK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var mV="mdc-line-ripple--active",O0="mdc-line-ripple--deactivating",pV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(O0),e.add(mV)}deactivate(){this._elementRef.nativeElement.classList.add(O0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(O0);e.propertyName==="opacity"&&o&&n.remove(mV,O0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),hV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&rt(nK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:iK,ngContentSelectors:oK,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&&(vt(),uo(0,"div",1),cn(1,"div",2,0),Ie(3),mn(),uo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var ta=new L("MatFormField"),P0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fV="fill",EK="auto",gV="fixed",MK="translateY(-50%)",je=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(P0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=qp("iconPrefixContainer");_textPrefixContainerSignal=qp("textPrefixContainer");_iconSuffixContainerSignal=qp("iconSuffixContainer");_textSuffixContainerSignal=qp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Gr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||EK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||fV;this._appearanceSignal.set(n)}_appearanceSignal=Re(fV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||gV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||gV}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(Cn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ns(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(ln([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),_g(),Nt(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Ze(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){NO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${MK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(W_(r,o._labelChild,st,5),En(r,Xs,5)(r,vV,5)(r,SM,5)(r,_V,5)(r,DM,5)),n&2){G_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&($_(o._iconPrefixContainerSignal,sV,5)(o._textPrefixContainerSignal,lV,5)(o._iconSuffixContainerSignal,cV,5)(o._textSuffixContainerSignal,dV,5),rt(rK,5)(sV,5)(lV,5)(cV,5)(dV,5)(uV,5)(hV,5)(pV,5)),n&2){G_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ye([{provide:ta,useExisting:t},{provide:bV,useExisting:t}])],ngContentSelectors:sK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(aK),xe(0,dK,1,1,"ng-template",null,0,$p),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,uK,1,0,"div",7),c(5,"div",8),A(6,hK,2,2,"div",9),A(7,fK,3,0,"div",10),A(8,gK,3,0,"div",11),c(9,"div",12),A(10,vK,1,1,null,13),Ie(11),d(),A(12,bK,3,0,"div",14),A(13,yK,3,0,"div",15),d(),A(14,CK,1,0,"div",16),d(),c(15,"div",17),A(16,xK,2,0,"div",18)(17,DK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[uV,hV,Kp,pV,DM],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var _q="uplot",vq="u-hz",bq="u-vt",yq="u-title",Cq="u-wrap",xq="u-under",wq="u-over",Dq="u-axis",gd="u-off",Sq="u-select",Eq="u-cursor-x",Mq="u-cursor-y",Tq="u-cursor-pt",Iq="u-legend",kq="u-live",Aq="u-inline",Rq="u-series",Oq="u-marker",R2="u-label",Pq="u-value",of="width",rf="height";var O2="bottom",ym="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Nq="resize",Fq="scroll",B2="change",C0="dppxchange",uM="--",Mm=typeof window<"u",eM=Mm?document:null,xm=Mm?window:null,Lq=Mm?navigator:null,kn,_0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,_0&&iM(B2,_0,tM),_0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,_0,tM),xm.dispatchEvent(new CustomEvent(C0)))}function Mr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function La(t,i,e,n){let o=eM.createElement(t);return i!=null&&Mr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return La("div",t,i)}var j2=new WeakMap;function bs(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Mr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Vq=Ze(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Vq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Mm&&tM();function Va(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Tr((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,D0=vL(bL),Bq=vL(yL);function jq(t,i,e,n=0,o=!1){let r=o?Bq:D0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function S0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Ks:CL,s=o==1?Tr:ta,l=r==1?ta:Tr,u=s(a(Zi(t))),h=l(a(Zi(i))),g=wm(e,u),y=wm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=E0(i,y)),[t,i]}function pM(t,i,e,n){let o=S0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},sf={pad:0,soft:null,mode:0},zq={min:sf,max:sf};function x0(t,i,e,n){return M0(e)?G2(t,i,e):(sf.pad=e,sf.soft=n?0:null,sf.mode=n?3:0,G2(t,i,zq))}function wn(t,i){return t??i}function Uq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Ks(w),P=Go(Zi(t),Zi(i)),j=Ks(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Ks(q),oe=wm(10,Tr(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=Go(s,Ce=Le?Le:Ba(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(E0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=Ba(l,ht>Se&&i<=Se?Se:Go(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Hq=new Intl.NumberFormat(Mm?Lq.language:"en-US"),fM=t=>Hq.format(t),Ir=Math,y0=Ir.PI,Zi=Ir.abs,Tr=Ir.floor,Ki=Ir.round,ta=Ir.ceil,Ba=Ir.min,Go=Ir.max,wm=Ir.pow,q2=Ir.sign,Ks=Ir.log10,CL=Ir.log2,Wq=(t,i=1)=>Ir.sinh(t)*i,KE=(t,i=1)=>Ir.asinh(t/i),Kn=1/0;function Y2(t){return(Ks((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return Ba(Go(t,i),e)}function xL(t){return typeof t=="function"}function sn(t){return xL(t)?t:()=>t}var $q=()=>{},wL=t=>t,DL=(t,i)=>i,Gq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,qq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(qq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function E0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Tr(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function cf(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var lf={},gM=[],Dm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Yq=t=>t===void 0;function Z2(t){return typeof t=="string"}function M0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Qq(t){return t!=null&&typeof t=="object"}var Kq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Sm(t,i=M0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function iY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=Go(1,Tr((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var aY=kL.map(AL),sY=IL.map(AL),lY={MMMM:IL,MMM:sY,WWWW:kL,WWW:aY};function nf(t){return(t<10?"0":"")+t}function cY(t){return(t<10?"00":t<100?"0":"")+t}var dY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>nf(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>nf(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>nf(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>nf(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>nf(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>cY(t.getMilliseconds())};function _M(t,i){i=i||lY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?dY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,w0=[1,2,2.5,5],pY=cf(10,-32,0,w0),OL=cf(10,0,32,w0),hY=OL.filter(RL),fd=pY.concat(OL),vM=` +`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",af=vM+NL,v0=af+"/{YY}",FL="{aa}",fY="{h}:{mm}",Cm=fY+FL,J2=vM+Cm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?cf(10,0,3,w0).filter(RL):cf(10,-3,0,w0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,v0,Fn,af,Fn,Fn,Fn,1],[e,Cm,v0,Fn,af,Fn,Fn,Fn,1],[i,eL,v0+" "+Cm,Fn,af+" "+Cm,Fn,J2,Fn,1],[t,eL+".{fff}",v0+" "+Cm,Fn,af+" "+Cm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Tr(S)-Tr(Ce),Se=Je+ht+E0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Tr(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[gY,_Y,vY]=LL(1),[bY,yY,CY]=LL(.001);cf(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function xY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var wY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function DY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function SY(t,i){return t.series[i].fill(t,i)}var EY={show:!0,live:!0,isolate:!1,mount:$q,markers:{show:!0,width:2,stroke:DY,fill:SY,dash:"solid"},idx:null,idxs:null,values:[]};function MY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,of,o),di(n,rf,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function TY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function IY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function kY(t,i){return t.series[i].points.size}var XE=[0,0];function AY(t,i,e){return XE[0]=i,XE[1]=e,XE}function b0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var RY={show:!0,x:!0,y:!0,lock:!1,move:AY,points:{one:!1,show:MY,size:kY,width:0,stroke:IY,fill:TY},bind:{mousedown:b0,mouseup:b0,click:b0,dblclick:b0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},OY="Value",PY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function NY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function FY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(E0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Ks:CL,h=Tr(u(e));o=wm(l,h),l==10&&(o=fd[Va(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Va(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Va(y,fd)]));while(g<=n);return s}function LY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,Go(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,Go(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,VY=/[12357]/,BY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function jY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?VY:l(5,a)-h>=u?BY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:WY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function $Y(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},GY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Tm:Im,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function T0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?A0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function YY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?I0:k0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=Ba(u,s/2,l/2),h=Ba(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var I0=(t,i,e)=>{t.moveTo(i,e)},k0=(t,i,e)=>{t.moveTo(e,i)},Tm=(t,i,e)=>{t.lineTo(i,e)},Im=(t,i,e)=>{t.lineTo(e,i)},A0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=I0,oe=YL):(ve=k0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;A0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,y0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Em|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var QY=JL(Tm),KY=JL(Im);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=D0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Tm,Ne=QY):(oe=Im,Ne=KY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=T0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Zs(e,n,o,r,Je,-1),Zs(e,n,o,r,Je,1)]:Zs(e,n,o,r,Je,Tt)),Le})}function ZY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=D0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Tm:Im,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=T0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Zs(r,a,s,l,Se,-1),Zs(r,a,s,l,Se,1)]:Zs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?A0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Od,ac,$a,sc)=>{h(Pe,ei,Vi,ac,Od,sc,$a)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Yo=!1,xs=null,Rr=null,rl=null,kd=null;g!=null&&(jn==0||y!=null)&&(Yo=!0,xs=g.values(w,S,P,j),Rr=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Rr.set(Pe,new Path2D)}),jn>0&&(rl=y.values(w,S,P,j),kd=new Map,new Set(rl).forEach(Pe=>{Pe!=null&&kd.set(Pe,new Path2D)})));let{x0:Ad,size:Um}=u;if(Ad!=null&&Um!=null){qe=1,q=Ad.values(w,S,P,j),Ad.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Um.values(w,S,P,j);Um.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Mf=Li>0,oc=Jn-Li-(Mf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Mf?jn/2:0));let So={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Rd=Yo?null:new Path2D,ws=null;if(ft!=null)ws=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),ws=Pe.values(w,S,P,j))}let rc=ae*Rt,$t=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(ws!=null){let Qo=ws[Pe]??0;if(ei-Qo==0)continue;Ji=Le(Qo,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Od=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),$a=Tt(Od-Xn),sc=Tt(Go(ac,Ji)),sr=Tt(Ba(ac,Ji)),Or=sc-sr;if(ei!=null){let Qo=ei<0?$t:rc,sa=ei<0?rc:$t;Yo?(jn>0&&rl[Pe]!=null&>(kd.get(rl[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),xs[Pe]!=null&>(Rr.get(xs[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa)):gt(Rd,$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),Qt(w,S,Pe,$a-jn/2,sr,Rt+jn,Or)}}return jn>0?So.stroke=Yo?kd:Rd:Yo||(So._fill=F.width==0?F._fill:F._stroke??F._fill,So.width=0),So.fill=Yo?Rr:Rd,So})}function JY(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=D0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=I0,Le=Tm,Ce=KL):(Ne=k0,Le=Im,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Em},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=T0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Zs(n,o,r,a,It,-1),Zs(n,o,r,a,It,1)]:Zs(n,o,r,a,It,pe)),qe})}function eQ(t){return JY(tQ,t)}function tQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var nQ=eV(),iQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function oQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Dm:[i,e]}var rQ=tV;function aQ(t,i,e){return i==null?Dm:x0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Dm:S0(i,e,t.scales[n].log,!1)}var sQ=nV;function iV(t,i,e,n){return i==null?Dm:pM(i,e,t.scales[n].log,!1)}var lQ=iV;function cQ(t,i,e,n,o){let r=Go(Y2(t),Y2(i)),a=i-t,s=Va(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function dQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(_q);if(t.id!=null&&(u.id=t.id),Mr(u,t.class),t.title){let v=ea(yq,u);v.textContent=t.title}let h=La("canvas"),g=n.ctx=h.getContext("2d"),y=ea(Cq,u);_d("click",y,v=>{v.target===S&&(oi!=Wd||ui!=$d)&&co.click(n,v)},!0);let w=n.under=ea(xq,y);y.appendChild(h);let S=n.over=ea(wq,y);t=Sm(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):oQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=sn(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Ks(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||lf)[v]||lf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:GY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&M0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Dm:x0(ye,Ae,re)}C.range=sn(N||(M?rQ:v==Ce?C.distr==3?sQ:C.distr==4?lQ:tV:C.distr==3?nV:C.distr==4?iV:aQ)),C.auto=sn(U?!1:C.auto),C.clamp=sn(C.clamp||$Y),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Mr(u,vq),qe=r,It=a):(Mr(u,bq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?vY(pe):CY(pe),nt=nL(pe,tL(F==1?_Y:yY,ae)),gt=oL(pe,iL(wY,ae)),Qt=[],ft=n.legend=Ni({},EY,t.legend),Ve=n.cursor=Ni({},RY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=sn(Xn.width),Xn.dash=sn(Xn.dash),Xn.stroke=sn(Xn.stroke),Xn.fill=sn(Xn.fill);let Rt,Li,Jn,jn=[],Yo=[],xs,Rr=!1,rl={};if(ft.live){let v=q[1]?q[1].values:null;Rr=v!=null,xs=Rr?v(n,1,0):{_:0};for(let C in xs)rl[C]=uM}if(jt)if(Rt=La("table",Iq,u),Jn=La("tbody",null,Rt),ft.mount(n,Rt),Rr){Li=La("thead",null,Rt,Jn);let v=La("tr",null,Li);La("th",null,v);for(var kd in xs)La("th",R2,v).textContent=kd}else Mr(Rt,Aq),ft.live&&Mr(Rt,kq);let Ad={show:!0},Um={show:!1};function Mf(v,C){if(C==0&&(Rr||!ft.live||o==2))return Dm;let E=[],M=La("tr",Rq,Jn,Jn.childNodes[C]);Mr(M,v.class),v.show||Mr(M,gd);let N=La("th",null,M);if(Xn.show){let he=ea(Oq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),So("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&qa(Be,Ae?Be==ye?Ad:Um:Ad,!0,Ii.setSeries)})}else qa(ye,{show:!v.show},!0,Ii.setSeries)},!1),Nd&&So(F2,N,he=>{Ve._lock||(cc(he),qa(q.indexOf(v),qd,!0,Ii.setSeries))},!1));for(var re in xs){let he=La("td",Pq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function So(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Rd(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let ws=0,rc=0,$t=0,Pe=0,ei=0,Vi=0,Od=ei,ac=Vi,$a=$t,sc=Pe,sr=0,Or=0,Qo=0,sa=0;n.bbox={};let Uy=!1,Tf=!1,Pd=!1,lc=!1,If=!1,Pr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&sT(v,C),jd(!1),Pd=!0,Tf=!0,zd()}function sT(v,C){n.width=ws=$t=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;sr=E.left=hd(ei*kn,.5),Or=E.top=hd(Vi*kn,.5),Qo=E.width=hd($t*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(sT(n.width,n.height),Tf=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?($t-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,$t-=al[1]+al[3],ei+=al[3],Pe-=al[2]+al[0],Vi+=al[0]}function qj(){let v=ei+$t,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=sn(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let go=Ve.points;go.show=sn(go.show),go.size=sn(go.size),go.stroke=sn(go.stroke),go.width=sn(go.width),go.fill=sn(go.fill);let Ga=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Nd=Ga.prox>=0,Fd=Nd&&go.one,Nr=[],Ld=[],Vd=[];function lT(v,C){let E=go.show(n,C);if(E instanceof HTMLElement)return Mr(E,Tq),Mr(E,v.class),bs(E,-10,-10,$t,Pe),S.insertBefore(E,Nr[C]),E}function cT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||UY,v.label=v.label||(E?PY:OY)}if(Fd||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||nQ||Gq,v.fillTo=sn(v.fillTo||qY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=sn(v.stroke||null),v.fill=sn(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=HY(Go(1,v.width),1),M=v.points=Ni({},{size:E,width:Go(1,E*.2),stroke:v.stroke,space:E*2,paths:iQ,_stroke:null,_fill:null},v.points);M.show=sn(M.show),M.filter=sn(M.filter),M.fill=sn(M.fill),M.stroke=sn(M.stroke),M.paths=sn(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Mf(v,C);jn.splice(C,0,E[0]),Yo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Fd?C==0&&(E=lT(v,C)):C>0&&(E=lT(v,C)),Nr.splice(C,0,E),Ld.splice(C,0,0),Vd.splice(C,0,0)}oo("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),cT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Yo.splice(v,1);let C=jn.splice(v,1)[0];Rd(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Nr.splice(v,1)[0].remove(),Ld.splice(v,1),Vd.splice(v,1)),oo("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=sn(v.size),v.space=sn(v.space),v.rotate=sn(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=sn(v.incrs||(M.distr==2?hY:N?F==1?gY:bY:fd)),v.splits=sn(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?LY:FY)),v.stroke=sn(v.stroke),v.grid.stroke=sn(v.grid.stroke),v.ticks.stroke=sn(v.ticks.stroke),v.border.stroke=sn(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?sn(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?xY(pe,U):U||nt:U||NY,v.filter=sn(v.filter||(M.distr>=3&&M.log==10?jY:M.distr==3&&M.log==2?zY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Dq,y))}}function Hm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let dT=n.padding=(t.padding||[Hm,Hm,Hm,Hm]).map(v=>sn(wn(v,Hm))),al=n._padding=dT.map((v,C)=>v(n,C,dc,0)),lo,eo=null,to=null,kf=o==1?q[0].idxs:null,la=null,Wm=!1;function uT(v,C){if(i=v??[],n.data=n._data=i,o==2){lo=0;for(let E=1;E=0,Pr=!0,zd()}}n.setData=uT;function Wy(){Wm=!0;let v,C;o==1&&(lo>0?(eo=kf[0]=0,to=kf[1]=lo-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=S0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=x0(v,C,hM,!0))):(eo=kf[0]=v=null,to=kf[1]=C=null)),ll(Ce,v,C)}let Af,Bd,$y,Gy,qy,Yy,Qy,Ky,Zy,Ko;function mT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Af&&(g.strokeStyle=Af=v),N!=Bd&&(g.fillStyle=Bd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function pT(v,C,E,M){C!=Bd&&(g.fillStyle=Bd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,Wm)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?jq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=Ba(v.min,E.min=he[0]),v.max=Go(v.max,E.max=he[1])}}let hT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,Wm))&&(ot[M]=hT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=hT)}ot[Ce]!=null&&jd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Sm(oe[M],Qq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(lo==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(lo>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Va(he.min,i[0]),to=Va(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Ks(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Ks(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Pd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Pr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(eo-1,0,lo-1),E=oM(to+1,0,lo-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Ko!=Ga.alpha;v&&(g.globalAlpha=Ko=Ga.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(fT(E,!1),fT(E,!0),C._paths==null)){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Ko!=M&&(g.globalAlpha=Ko=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha),C._paths!=null&&gT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),gT(E,!0))}Ko!=M&&(g.globalAlpha=Ko=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Ko=1)}}function fT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function gT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=sr-Ae/2,vn=Or-Ae/2,tn=Qo+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||lf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Uq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let _T=Em|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){mT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&_T)==_T?(g.clip(Be),Oe&&g.clip(Oe),Of(N,re),Rf(v,U,C)):he&sM?(Of(N,re),g.clip(Be),Rf(v,U,C)):he&Em&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Of(N,re),g.restore(),Rf(v,U,C)):(Of(N,re),Rf(v,U,C)),(ye||Ae||Be)&&g.restore()}function Rf(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Af=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Of(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=Bd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=cQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),mT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,jd(!1));return}else E._show||(C=!1,E._show=!0,jd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?$t:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return dT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=al[M]&&(C=!1),al[M]=N}),C}function o4(){for(let v=0;vla[Mo]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-y0/180,_i=j(C._pos*kn),lr=(gi+ro)*he,Eo=_i+lr;U=M==0?Eo:0,N=M==1?Eo:0;let Fr=C.font[0],ca=C.align==1?ym:C.align==2?qE:zn>0?ym:zn<0?qE:M==0?"center":E==3?qE:ym,Qa=zn||M==1?"middle":E==2?"top":O2;pT(Fr,re,ca,Qa);let cr=C.font[1]*C.lineGap,Lr=Dn.map(Mo=>j(s(Mo,Oe,Be,Lt))),da=C._values;for(let Mo=0;Mo{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Pf=!1,tC=!1,$m=[];function r4(){tC=!1;for(let v=0;v<$m.length;v++)oo(...$m[v]);$m.length=0}function zd(){Pf||(nY(vT),Pf=!0)}function a4(v,C=!1){Pf=!0,tC=C,v(n),vT(),C&&$m.length>0&&queueMicrotask(r4)}n.batch=a4;function vT(){if(Uy&&(Zj(),Uy=!1),Pd&&(Wj(),Pd=!1),Tf){if(di(w,ym,ei),di(w,"top",Vi),di(w,of,$t),di(w,rf,Pe),di(S,ym,ei),di(S,"top",Vi),di(S,of,$t),di(S,rf,Pe),di(y,of,ws),di(y,rf,rc),h.width=Ki(ws*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:$t),nM(v,gd)}else Mr(v,gd)}),Af=Bd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Ko=1,Ym(!0),ei!=Od||Vi!=ac||$t!=$a||Pe!=sc){jd(!1);let v=$t/$a,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Ud&&bs(Ud,Ki(Ve.left),0,$t,Pe),Hd&&bs(Hd,0,Ki(Ve.top),$t,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(Gd,E,ri[E])}Od=ei,ac=Vi,$a=$t,sc=Pe}oo("setSize"),Tf=!1}ws>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&If&&(Nf(ri),If=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Pr&&(rC(),Pr=!1),l||(l=!0,n.status=1,oo("ready")),Wm=!1,Pf=!1}n.redraw=(v,C)=>{Pd=C||!1,v!==!1?ll(Ce,Se.min,Se.max):zd()};function nC(v,C){let E=oe[v];if(E.from==null){if(lo==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(lo>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&lo>0&&(C.min=Va(C.min,i[0]),C.max=Va(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,zd()}}n.setScale=nC;let iC,oC,Ud,Hd,bT,yT,Wd,$d,CT,xT,oi,ui,sl=!1,co=Ve.drag,no=co.x,io=co.y;Ji&&(Ve.x&&(iC=ea(Eq,S)),Ve.y&&(oC=ea(Mq,S)),Se.ori==0?(Ud=iC,Hd=oC):(Ud=oC,Hd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Gd=ri.show?ea(Sq,ri.over?S:w):null;function Nf(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(Gd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Nf;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Mr(jn[v],gd),Ji){let E=Fd?Nr[0]:Nr[v];E!=null&&bs(E,-10,-10,$t,Pe)}}function ll(v,C,E){nC(v,{min:C,max:E})}function qa(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(ll(N.facets[0].scale,null,null),ll(N.facets[1].scale,null,null)):ll(N.scale,null,null),zd())}),E!==!1&&oo("setSeries",v,C),M&&Qm("setSeries",n,v,C)}n.setSeries=qa;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=sn(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,Ji&&Nr[v]!=null&&(Nr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ds,cl,uc,qd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=Ga.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:Ga.alpha)}}),uc=v,E&&zd()}}jt&&Nd&&So(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&qa(null,qd,!0,Ii.setSeries))});function Ya(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=$t;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?wm(10,ye):Ae==4?Wq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Ya(v,Ce,C);return Va(E,i[0],eo,to)}n.valToIdx=v=>Va(v,i[0]),n.posToIdx=p4,n.posToVal=Ya,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Qo:$t,E?sr:0):a(v,oe[C],E?sa:Pe,E?Or:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function wT(v,C){di(Gd,ym,ri.left=v),di(Gd,of,ri.width=C)}function DT(v,C){di(Gd,"top",ri.top=v),di(Gd,rf,ri.height=C)}let Gm=Se.ori==0?wT:DT,qm=Se.ori==1?wT:DT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Yq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Rr)&&f4(E,Qt[E]);h4()}Pr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Rr?N=E.values(n,v,C)??rl:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?rl:{_:N}),ft.values[v]=N}function mc(v,C,E){CT=oi,xT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Ud&&bs(Ud,Ki(oi),0,$t,Pe),Hd&&bs(Hd,0,Ki(ui),$t,Pe));let M,N=eo>to;Ds=Kn,cl=null;let U=Se.ori==0?$t:Pe,re=Se.ori==1?$t:Pe;if(oi<0||lo==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let lr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Eo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Nd&&_i!=null){let Fr=Se.ori==1?oi:ui,ca=Zi(Ga.dist(n,rt,zn,Eo,Fr));if(ca=0?1:-1,da=cr>=0?1:-1;da==Lr&&(da==1?Qa==1?_i>=cr:_i<=cr:Qa==1?_i<=cr:_i>=cr)&&(Ds=ca,cl=rt)}else Ds=ca,cl=rt}}if(Pr||Fd){let Fr,ca;Se.ori==0?(Fr=lr,ca=Eo):(Fr=Eo,ca=lr);let Qa,cr,Lr,da,Ka,Mo,dr=!0,pc=go.bbox;if(pc!=null){dr=!1;let To=pc(n,rt);Lr=To.left,da=To.top,Qa=To.width,cr=To.height}else Lr=Fr,da=ca,Qa=cr=go.size(n,rt);if(Mo=go.fill(n,rt),Ka=go.stroke(n,rt),Fd)rt==cl&&Ds<=Ga.prox&&(Oe=Lr,Be=da,Lt=Qa,Dn=cr,vn=dr,tn=Mo,St=Ka);else{let To=Nr[rt];To!=null&&(Ld[rt]=Lr,Vd[rt]=da,W2(To,Qa,cr,dr),U2(To,Mo,Ka),bs(To,ta(Lr),ta(da),$t,Pe))}}}}if(Fd){let rt=Ga.prox,ai=uc==null?Ds<=rt:Ds>rt||cl!=uc;if(Pr||ai){let gi=Nr[0];gi!=null&&(Ld[0]=Oe,Vd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),bs(gi,ta(Oe),ta(Be),$t,Pe))}}}if(ri.show&&sl)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,lr,Eo,Fr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Fr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],lr=qe(gi(ro,Be),_i,U,0),Eo=qe(gi(ro+zn,Be),_i,U,0),Gm(Ba(lr,Eo),Zi(Eo-lr))):Gm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],lr=It(gi(ro,Lt),_i,re,0),Eo=It(gi(ro+zn,Lt),_i,re,0),qm(Ba(lr,Eo),Zi(Eo-lr))):qm(0,re)}else lC()}else{let he=Zi(CT-bT),ye=Zi(xT-yT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=co.x&&he>=co.dist,io=co.y&&ye>=co.dist;let Ae=co.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):co.x&&co.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),Gm(Ba(Oe,Be),Zi(Be-Oe)),io||qm(0,re)),io&&(Se.ori==1?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),qm(Ba(Oe,Be),Zi(Be-Oe)),no||Gm(0,U)),!no&&!io&&(Gm(0,0),qm(0,0))}if(co._x=no,co._y=io,v==null){if(E){if(NT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Ya(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Ya(Se.ori==1?oi:ui,ye):null}Qm(YE,n,oi,ui,$t,Pe,M)}if(Nd){let he=E&&Ii.setSeries,ye=Ga.prox;uc==null?Ds<=ye&&qa(cl,qd,!0,he):Ds>ye?qa(null,qd,!0,he):cl!=uc&&qa(cl,qd,!0,he)}}Pr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let dl=null;Object.defineProperty(n,"rect",{get(){return dl==null&&Ym(!1),dl}});function Ym(v=!1){v?dl=null:(dl=S.getBoundingClientRect(),oo("syncRect",dl))}function ST(v,C,E,M,N,U,re){Ve._lock||sl&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(dl==null&&Ym(!1),cc(v),v!=null)E=v.clientX-dl.left,M=v.clientY-dl.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?$t:Pe,ro=Se.ori==1?$t:Pe,zn=ai?U:N,_i=ai?N:U,lr=ai?M:E,Eo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(lr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Eo/_i),Se.ori==1){let Fr=E;E=M,M=Fr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=$t-1)&&(E=hd(E,$t)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(bT=E,yT=M,[Wd,$d]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Nf(sC,!1)}let ET,MT,TT,IT;function kT(v,C,E,M,N,U,re){sl=!0,no=io=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(So(QE,eM,AT,!1),Qm(N2,n,Wd,$d,$t,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ET=he,MT=ye,TT=Ae,IT=Oe}function AT(v,C,E,M,N,U,re){sl=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ET!=he||MT!=ye||TT!=Ae||IT!=Oe;if(Be&&Lt&&Nf(ri),co.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&ll(Ce,Ya(Dn,Ce),Ya(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&ll(rt,Ya(tn+St,rt),Ya(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Rd(QE,eM),Qm(QE,n,oi,ui,$t,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=sl;if(sl){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=$t-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi{let N=Ii.match[2];E=N(n,C,E),E!=-1&&qa(E,M,!0,!1)},Ji&&(So(N2,S,kT),So(YE,S,ST),So(F2,S,v=>{cc(v),Ym(!1)}),So(L2,S,g4),So(V2,S,RT),lM.add(n),n.syncRect=Ym);let Ff=n.hooks=t.hooks||{};function oo(v,C,E){tC?$m.push([v,C,E]):v in Ff&&Ff[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Ff[C]=(Ff[C]||[]).concat(v.hooks[C])});let PT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,PT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(PT),Ve.sync=Ii;let NT=Ii.key,cC=GL(NT);function Qm(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Yd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(C0,xm,OT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=v4;function dC(){oo("init",t,i),uT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),If=ri.show&&(ri.width>0||ri.height>0),lc=Pr=!0,Hy(t.width,t.height)}return q.forEach(cT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=x0;Ti.rangeLog=S0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=tY;Ti.fmtDate=_M,Ti.tzDate=mY;Ti.sync=GL;{Ti.addGap=YY,Ti.clipGaps=T0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=ZY,t.bars=XY,t.spline=eQ}var uQ=["host"],mQ=["donut"],oV=(t,i)=>i.name;function pQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function hQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,pQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function fQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function gQ(t,i){if(t&1&&(c(0,"div",10),fe(1,fQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function _Q(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Y_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function vQ(t,i){if(t&1&&(c(0,"div",3),A(1,gQ,3,0,"div",10),O(2,"div",11,0),A(4,_Q,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var R0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function bQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ze(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[bQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:R0[r%R0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=R0[P%R0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(uQ,5)(mQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,hQ,8,0,"div",2)(1,vQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var CQ=(t,i)=>i.value,xQ=(t,i)=>i.user;function wQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function DQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function SQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function MQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function TQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,SQ,6,1)(2,EQ,9,2)(3,MQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function IQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function kQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function AQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",30)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",30)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",31)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",32)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",30)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function RQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function OQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function PQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function NQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function FQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function LQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function VQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function BQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function jQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function zQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function UQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function HQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function WQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function $Q(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function GQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function qQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function YQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function QQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function KQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function ZQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function XQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function JQ(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",33)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,XQ,11,5,"tr",null,xQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function eK(t,i){if(t&1&&(c(0,"div",25)(1,"div",34),O(2,"img",35),c(3,"div",36)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",37)(10,"a",38)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function tK(t,i){if(t&1&&(A(0,AQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,RQ,1,1,"uds-uplot-chart",19)(7,OQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,PQ,1,1,"uds-uplot-chart",19)(13,NQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,FQ,1,1,"uds-uplot-chart",19)(19,LQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,VQ,1,1,"uds-uplot-chart",19)(25,BQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,jQ,1,1,"uds-uplot-chart",19)(31,zQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,UQ,1,1,"uds-uplot-chart",19)(37,HQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,WQ,1,1,"uds-uplot-chart",19)(43,$Q,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,GQ,1,1,"uds-uplot-chart",19)(49,qQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,YQ,1,1,"uds-uplot-chart",19)(55,QQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,KQ,1,1,"uds-uplot-chart",19)(61,ZQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,JQ,25,0,"div",23),c(74,"div",24),A(75,eK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var DM=null,aV=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){DM===null&&(DM=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return DM||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(T2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,wQ,2,3,"button",3,CQ),d(),c(5,"div",4),A(6,DQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,TQ,4,5,"div",8),A(11,IQ,2,2,"div",9),d()(),A(12,kQ,5,0,"div",10)(13,tK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,bm,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function iK(t,i){t&1&&O(0,"uds-dashboard")}function oK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,iK,1,0,"uds-dashboard")(3,oK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var ys=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var O0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var rK=["notch"],aK=["matFormFieldNotchedOutline",""],sK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],lK=["textField"],cK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function uK(t,i){t&1&&O(0,"span",21)}function mK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,uK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function pK(t,i){if(t&1&&A(0,mK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function hK(t,i){t&1&&O(0,"div",7)}function fK(t,i){}function gK(t,i){if(t&1&&xe(0,fK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function _K(t,i){if(t&1&&(c(0,"div",9),A(1,gK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function vK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function bK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function yK(t,i){}function CK(t,i){if(t&1&&xe(0,yK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function xK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function wK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function DK(t,i){t&1&&O(0,"div",16)}function SK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function EK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function MK(t,i){if(t&1&&(c(0,"div",19),A(1,EK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var SM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var EM=new L("MatSuffix"),kr=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:EM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(jb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return TK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function TK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",P0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(P0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(P0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(P0);e.propertyName==="opacity"&&o&&n.remove(pV,P0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(rK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:aK,ngContentSelectors:sK,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&&(vt(),uo(0,"div",1),cn(1,"div",2,0),Ie(3),mn(),uo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),N0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",IK="auto",_V="fixed",kK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(N0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Yp("iconPrefixContainer");_textPrefixContainerSignal=Yp("textPrefixContainer");_iconSuffixContainerSignal=Yp("iconSuffixContainer");_textSuffixContainerSignal=Yp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=TO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=qr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||IK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ns(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(ln([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),vg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){FO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${kK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&($_(r,o._labelChild,st,5),Mn(r,Xs,5)(r,bV,5)(r,EM,5)(r,vV,5)(r,SM,5)),n&2){q_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(G_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(lK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){q_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ye([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:dK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(cK),xe(0,pK,1,1,"ng-template",null,0,Gp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,hK,1,0,"div",7),c(5,"div",8),A(6,_K,2,2,"div",9),A(7,vK,3,0,"div",10),A(8,bK,3,0,"div",11),c(9,"div",12),A(10,CK,1,1,null,13),Ie(11),d(),A(12,xK,3,0,"div",14),A(13,wK,3,0,"div",15),d(),A(14,DK,1,0,"div",16),d(),c(15,"div",17),A(16,SK,2,0,"div",18)(17,MK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Zp,hV,SM],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -2983,7 +2983,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[rb,je,pt]})}return t})();var TK=["trigger"],IK=["panel"],kK=[[["mat-select-trigger"]],"*"],AK=["mat-select-trigger","*"];function RK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function OK(t,i){t&1&&Ie(0)}function PK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function NK(t,i){if(t&1&&(c(0,"span",5),A(1,OK,1,0)(2,PK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function FK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Mn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),he("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var LK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t)}}),VK=new L("MAT_SELECT_CONFIG"),yV=new L("MatSelectTrigger"),EM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(po);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(Cn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(ta,{optional:!0});ngControl=p(er,{self:!0,optional:!0});_liveAnnouncer=p(Ph);_defaultOptions=p(VK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=Jh(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=ef(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EM(this,e)}_scrollStrategyFactory=p(LK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=cr(()=>{let e=this.options;return e?e.changes.pipe(ln(e),bn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(bn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(Nt(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(Nt(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Xr,{optional:!0}),o=p(Yl,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(kh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Kl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ys(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Ze(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(Ze(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(ln(null),Ze(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(vn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!dn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!dn(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!dn(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof em?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ze(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Ze(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&En(r,yV,5)(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&rt(TK,5)(IK,5)(nb,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(he("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ye([{provide:Xs,useExisting:t},{provide:gm,useExisting:t}]),yt],ngContentSelectors:AK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(kK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,RK,2,1,"span",4)(5,NK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,FK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Ot(1);m(3),he("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[em,nb],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ab,ze,pt]})}return t})();var AK=["trigger"],RK=["panel"],OK=[[["mat-select-trigger"]],"*"],PK=["mat-select-trigger","*"];function NK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function FK(t,i){t&1&&Ie(0)}function LK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function VK(t,i){if(t&1&&(c(0,"span",5),A(1,FK,1,0)(2,LK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function BK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var jK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),zK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),MM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(po);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(nr,{self:!0,optional:!0});_liveAnnouncer=p(Nh);_defaultOptions=p(zK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=ef(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=tf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MM(this,e)}_scrollStrategyFactory=p(jK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=mr(()=>{let e=this.options;return e?e.changes.pipe(ln(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Yl,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Ah,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Kl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ys(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(ln(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!dn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!dn(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!dn(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof em?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(AK,5)(RK,5)(ib,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ye([{provide:Xs,useExisting:t},{provide:gm,useExisting:t}]),Ct],ngContentSelectors:PK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(OK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,NK,2,1,"span",4)(5,VK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,BK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[em,ib],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -3172,7 +3172,7 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return t})(),N0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ye([{provide:yV,useExisting:t}])]})}return t})(),F0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,pt,vr,yd,vm]})}return t})();var BK=["tooltip"],jK=20;var zK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t,{scrollThrottle:jK})}}),UK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var CV="tooltip-panel",HK={passive:!0},WK=8,$K=8,GK=24,qK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(mb);_focusMonitor=p(Oi);_dir=p(Cn);_injector=p(Te);_viewContainerRef=p(Sn);_mediaMatcher=p(nm);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(UK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=xV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Gr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Gr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=WK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ze(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 Jo(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ze(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(jl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${CV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Ze(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Uo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(zK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ze(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ze(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ze(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Ze(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(q(q({},o.main),r.main)),this._addOffset(q(q({},o.fallback),r.fallback))])}_addOffset(e){let n=$K,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${CV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,HK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!dn(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),xV=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>GK&&e.width>=qK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&rt(BK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(cn(0,"div",1,0),Ol("animationend",function(a){return o._handleAnimationEnd(a)}),cn(2,"div",2),f(3),mn()()),n&2&&(Mn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { +`],encapsulation:2,changeDetection:0})}return t})(),F0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ye([{provide:CV,useExisting:t}])]})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,pt,Cr,yd,vm]})}return t})();var UK=["tooltip"],HK=20;var WK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t,{scrollThrottle:HK})}}),$K=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",GK={passive:!0},qK=8,YK=8,QK=24,KK=200,qo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(pb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(nm);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p($K,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=qr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=qr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=qK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 tr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(jl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(WK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=YK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,GK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!dn(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>QK&&e.width>=KK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(UK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(cn(0,"div",1,0),Ol("animationend",function(a){return o._handleAnimationEnd(a)}),cn(2,"div",2),f(3),mn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -3277,7 +3277,7 @@ div.mat-mdc-select-panel { .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return t})();var L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,ho,pt,vr]})}return t})();function YK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),z(" ",e," ")}}function QK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,YK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Ot(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),ku("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function KK(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function ZK(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,QK,6,7,"mat-form-field",14),A(4,KK,2,1,"div",15),d()),t&2){let e=_();m(),he("id",e._pageSizeLabelId),m(),z(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function XK(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),he("aria-label",e._intl.firstPageLabel)}}function JK(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),he("aria-label",e._intl.lastPageLabel)}}var cf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(cf);_changeDetectorRef=p(Qe);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Nr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(tZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,ZK,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,XK,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,JK,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),z(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),he("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),he("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[je,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { +`],encapsulation:2,changeDetection:0})}return t})();var V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,ho,pt,Cr]})}return t})();function ZK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function XK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,ZK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),ku("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function JK(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function eZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,XK,6,7,"mat-form-field",14),A(4,JK,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function tZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var df=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(df);_changeDetectorRef=p(Qe);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Vr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(oZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,eZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,tZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,nZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,qo],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3378,10 +3378,10 @@ div.mat-mdc-select-panel { transform: translate(-50%, -50%); cursor: pointer; } -`],encapsulation:2,changeDetection:0})}return t})(),wV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,F0,L0,Js]})}return t})();var nZ=[[["caption"]],[["colgroup"],["col"]],"*"],iZ=["caption","colgroup, col","*"];function oZ(t,i){t&1&&Ie(0,2)}function rZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function aZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var ja=new L("CDK_TABLE");var z0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),U0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),MV=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&En(r,z0,5)(r,U0,5)(r,MV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),j0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},TV=(()=>{class t extends j0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var IV=(()=>{class t extends j0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var TM=(()=>{class t{template=p(un);_differs=p(js);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof uf?e.headerCell.template:this instanceof IM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[yt]})}return t})(),uf=(()=>{class t extends TM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,yt]})}return t})(),IM=(()=>{class t extends TM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,yt]})}return t})(),H0=(()=>{class t extends TM{_table=p(ja,{optional:!0});when;constructor(){super(p(un),p(js))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(Sn);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),kM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),kV=(()=>{class t{templateRef=p(un);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),SV=["top","bottom","left","right"],MM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(B=>B)||n.some(B=>B))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let B of i)for(let F=0;F!!B)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((B,F)=>e[F]?B:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((B,F)=>n[F+y]?B:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);SV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of SV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&sZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function sZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var df=new L("STICKY_POSITIONING_LISTENER");var RM=(()=>{class t{viewContainer=p(Sn);elementRef=p(se);constructor(){let e=p(ja);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),OM=(()=>{class t{viewContainer=p(Sn);elementRef=p(se);constructor(){let e=p(ja);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(Sn);elementRef=p(se);constructor(){let e=p(ja);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(Sn);elementRef=p(se);constructor(){let e=p(ja);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),FM=(()=>{class t{_differs=p(js);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(Cn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(po);_injector=p(Te);_virtualScrollViewport=p(_N,{optional:!0,host:!0});_positionListener=p(df,{optional:!0})||p(df,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Ze(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Qv:new R0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Sh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=EV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=EV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),B0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=B0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=B0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=B0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Sh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Sh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=bo([e,this.viewChange]).pipe(Ze(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new MM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Ze(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Zf:Yf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(ru(0,n),Ze(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),bo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Ze(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&En(r,kV,5)(r,tc,5)(r,H0,5)(r,uf,5)(r,IM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:ja,useExisting:t},{provide:df,useValue:null}])],ngContentSelectors:iZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(nZ),Ie(0),Ie(1,1),A(2,oZ,1,0),A(3,rZ,7,0)(4,aZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.cdk-table-fixed-layout { +`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,L0,V0,Js]})}return t})();var rZ=[[["caption"]],[["colgroup"],["col"]],"*"],aZ=["caption","colgroup, col","*"];function sZ(t,i){t&1&&Ie(0,2)}function lZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function cZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var ja=new L("CDK_TABLE");var U0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),H0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,U0,5)(r,H0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),z0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends z0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends z0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var IM=(()=>{class t{template=p(un);_differs=p(js);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof mf?e.headerCell.template:this instanceof kM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),mf=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),kM=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),W0=(()=>{class t extends IM{_table=p(ja,{optional:!0});when;constructor(){super(p(un),p(js))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var RM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(un);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],TM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&dZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var uf=new L("STICKY_POSITIONING_LISTENER");var OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),FM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),LM=(()=>{class t{_differs=p(js);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(po);_injector=p(Te);_virtualScrollViewport=p(vN,{optional:!0,host:!0});_positionListener=p(uf,{optional:!0})||p(uf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Kv:new O0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Eh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),j0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=j0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=j0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=j0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Eh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Eh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=bo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new TM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Xf:Qf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(ru(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),bo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,W0,5)(r,mf,5)(r,kM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:ja,useExisting:t},{provide:uf,useValue:null}])],ngContentSelectors:aZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(rZ),Ie(0),Ie(1,1),A(2,sZ,1,0),A(3,lZ,7,0)(4,cZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.cdk-table-fixed-layout { table-layout: fixed; } -`],encapsulation:2})}return t})();function B0(t,i){return t.concat(Array.from(i))}function EV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var AV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Mh]})}return t})();var lZ=["mat-sort-header",""],cZ=["*",[["","matSortHeaderIcon",""]]],dZ=["*","[matSortHeaderIcon]"];function uZ(t,i){t&1&&(Gn(),cn(0,"svg",3),uo(1,"path",4),mn())}function mZ(t,i){t&1&&(cn(0,"div",2),Ie(1,1,null,uZ,2,0),mn())}var RV=new L("MAT_SORT_DEFAULT_OPTIONS"),el=(()=>{class t{_defaultOptions;_initializedStream=new Nr(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=pZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(RV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[yt]})}return t})();function pZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var W0=(()=>{class t{_sort=p(el,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Qe);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(mb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(RV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(he("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:lZ,ngContentSelectors:dZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(cZ),cn(0,"div",0)(1,"div",1),Ie(2),mn(),A(3,mZ,3,0,"div",2),mn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),he("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { +`],encapsulation:2})}return t})();function j0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Th]})}return t})();var uZ=["mat-sort-header",""],mZ=["*",[["","matSortHeaderIcon",""]]],pZ=["*","[matSortHeaderIcon]"];function hZ(t,i){t&1&&(Gn(),cn(0,"svg",3),uo(1,"path",4),mn())}function fZ(t,i){t&1&&(cn(0,"div",2),Ie(1,1,null,hZ,2,0),mn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),el=(()=>{class t{_defaultOptions;_initializedStream=new Vr(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=gZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function gZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var $0=(()=>{class t{_sort=p(el,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Qe);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(pb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:uZ,ngContentSelectors:pZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(mZ),cn(0,"div",0)(1,"div",1),Ie(2),mn(),A(3,fZ,3,0,"div",2),mn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { cursor: pointer; } @@ -3480,7 +3480,7 @@ div.mat-mdc-select-panel { .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { margin: 0 6px 0 0; } -`],encapsulation:2,changeDetection:0})}return t})(),OV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var hZ=["input"],fZ=["label"],gZ=["*"],LM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},_Z=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>LM}),Do=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Do||{}),VM=class{source;checked},mf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_animationsDisabled=Bt();_options=p(_Z,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new VM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Do.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||LM,this.color=this._options.color||LM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Do.Indeterminate):this._transitionCheckState(this.checked?Do.Checked:Do.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Do.Checked:Do.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Do.Init:if(n===Do.Checked)return this._animationClasses.uncheckedToChecked;if(n==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return n===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return n===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return n===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&rt(hZ,5)(fZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(Rn("id",o.id),he("tabindex",null)("aria-label",null)("aria-labelledby",null),Mn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ye([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Zr,useExisting:t,multi:!0}]),yt],ngContentSelectors:gZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Ot(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),he("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Cr,Gb],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var _Z=["input"],vZ=["label"],bZ=["*"],VM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},yZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>VM}),Do=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Do||{}),BM=class{source;checked},pf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_animationsDisabled=Bt();_options=p(yZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new BM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Do.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||VM,this.color=this._options.color||VM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Do.Indeterminate):this._transitionCheckState(this.checked?Do.Checked:Do.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Do.Checked:Do.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Do.Init:if(n===Do.Checked)return this._animationClasses.uncheckedToChecked;if(n==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return n===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return n===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return n===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(_Z,5)(vZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:bZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Dr,qb],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -3953,7 +3953,7 @@ div.mat-mdc-select-panel { .mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),NV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[mf,pt]})}return t})();var $0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Gr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Gr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(he("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { +`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pf,pt]})}return t})();var G0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=qr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=qr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { display: block; margin: 0; border-top-style: solid; @@ -3973,7 +3973,7 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function LV(t){return Error(`Unable to find icon with the name "${t}"`)}function yZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function VV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function BV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var tl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},zV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new tl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw BV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new tl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new tl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw BV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new tl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw VV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(G0(o)):this._loadSvgIconFromConfig(new tl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>G0(r)))}getNamedSvgIcon(e,n=""){let o=jV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(LV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(G0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>G0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Io(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return op(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw LV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),yl(()=>this._inProgressUrlFetches.delete(a)),sp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(jV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),UV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],SZ=UV.map(t=>`[${t}]`).join(", "),EZ=/^url\(['"]?#(.*?)['"]?\)$/,HV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(zV);_location=p(DZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ze.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(wZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(SZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(EZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(vn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(he("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),Mn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:xZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function wZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var tl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new tl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new tl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new tl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new tl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(q0(o)):this._loadSvgIconFromConfig(new tl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>q0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(q0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>q0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Io(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return op(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),yl(()=>this._inProgressUrlFetches.delete(a)),sp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],TZ=HV.map(t=>`[${t}]`).join(", "),IZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(MZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(EZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(TZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(IZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:SZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -4009,8 +4009,8 @@ div.mat-mdc-select-panel { .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})();var MZ=["searchSelectInput"],TZ=["innerSelectSearch"],IZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],kZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function AZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function RZ(t,i){t&1&&O(0,"mat-spinner",7)}function OZ(t,i){t&1&&Ie(0,1)}function PZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function NZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),z(" ",e.closeIcon," ")}}function FZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,OZ,1,0)(2,PZ,1,1,"mat-icon",12)(3,NZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function LZ(t,i){t&1&&Ie(0,2)}function VZ(t,i){if(t&1&&f(0),t&2){let e=_(2);z(" ",e.noEntriesFoundLabel," ")}}function BZ(t,i){if(t&1&&(c(0,"div",9),A(1,LZ,1,0)(2,VZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var jZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),zZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],UZ=new L("mat-selectsearch-default-options"),HZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),BM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(bn(e=>e?e.changes.pipe(et(n=>n.toArray()),ln(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Fb("",{nonNullable:!0});_showNoEntriesFound$=bo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of zZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(ap(1),Ze(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(vn(1),bn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Ze(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Ze(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Ze(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Ze(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(Nt(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Ze(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Ze(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Qe),D(po),D(Mt,8),D(je,8),D(UZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&En(r,jZ,5)(r,HZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&rt(MZ,7,se)(TZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ye([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:kZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(IZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,AZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,RZ,1,0,"mat-spinner",7),A(8,FZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,BZ,3,1,"div",9),Gt(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),he("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Zp,Vb,Wt,$e,ME,mf,$0,Yo,bm,HV,_s,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var WV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[BM]})}return t})();function $Z(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,$Z,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ke,Mt,BM],encapsulation:2})}}return t})();function GZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function qZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function YZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function QZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function KZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var $V=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return j(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return j(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return j(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,GZ,2,0,"uds-translate")(2,qZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,YZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,QZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,KZ,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Vn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,en,Mt,Ee,pi],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}"]})}}return t})();var ZZ=(t,i)=>[t,i];function XZ(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),z(" ",e.perm_name," \xA0")}}function JZ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,XZ,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var GV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return j(this,null,function*(){yield this.reload()})}reload(){return j(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return j(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return j(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield $V.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,JZ,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Vn),m(8),ge(TD(1,ZZ,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,On,Ct,wt,xt,Ee],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}"]})}}return t})();var eX="text/csv",qV=",",YV=`\r -`,QV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',q0=t=>j(null,null,function*(){let i="";t.columns.forEach(o=>{i+=QV(o.title)+qV}),i=i.slice(0,-1)+YV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case In.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case In.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case In.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case In.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=QV(a)+qV}i=i.slice(0,-1)+YV}let n=new Blob([i],{type:eX});sm(n,t.title+".csv")});var Y0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var jM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},KV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new jM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ZV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var nX=["mat-menu-item",""],iX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],oX=["mat-icon, [matMenuItemIcon]","*"];function rX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var aX=["*"];function sX(t,i){if(t&1){let e=W();cn(0,"div",0),Ol("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),cn(1,"div",1),Ie(2),mn()()}if(t&2){let e=_();Mn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Rn("id",e.panelId),he("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var UM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(UM,{optional:!0});_changeDetectorRef=p(Qe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(un);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(Sn);_document=p(ke);_changeDetectorRef=p(Qe);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Zu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ye([{provide:XV,useExisting:t}])]})}return t})(),lX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),zM="_mat-menu-enter",Q0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new mr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=q({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(lX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),bn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),bn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:dn(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=nt(q({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Q0;(n||e===zM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===zM||e===Q0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Q0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?zM:Q0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(ln(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&En(r,XV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&rt(un,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&he("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ye([{provide:UM,useExisting:t}])],ngContentSelectors:aX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Vs(0,sX,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return t})();var kZ=["searchSelectInput"],AZ=["innerSelectSearch"],RZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],OZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function PZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function NZ(t,i){t&1&&O(0,"mat-spinner",7)}function FZ(t,i){t&1&&Ie(0,1)}function LZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function VZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function BZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,FZ,1,0)(2,LZ,1,1,"mat-icon",12)(3,VZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function jZ(t,i){t&1&&Ie(0,2)}function zZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function UZ(t,i){if(t&1&&(c(0,"div",9),A(1,jZ,1,0)(2,zZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var HZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),WZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],$Z=new L("mat-selectsearch-default-options"),GZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),jM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),ln(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Lb("",{nonNullable:!0});_showNoEntriesFound$=bo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of WZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(ap(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Qe),D(po),D(Mt,8),D(ze,8),D($Z,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,HZ,5)(r,GZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(kZ,7,se)(AZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:OZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(RZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,PZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,NZ,1,0,"mat-spinner",7),A(8,BZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,UZ,3,1,"div",9),Gt(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Xp,Bb,Wt,$e,TE,pf,G0,qo,bm,WV,_s,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[jM]})}return t})();function YZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,YZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ke,Mt,jM],encapsulation:2})}}return t})();function QZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function ZZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,QZ,2,0,"uds-translate")(2,KZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,ZZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,XZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,JZ,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var eX=(t,i)=>[t,i];function tX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function nX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,tX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,nX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,eX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var iX="text/csv",YV=",",QV=`\r +`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Y0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case _n.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case _n.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case _n.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case _n.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:iX});sm(n,t.title+".csv")});var Q0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var zM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new zM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var rX=["mat-menu-item",""],aX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],sX=["mat-icon, [matMenuItemIcon]","*"];function lX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var cX=["*"];function dX(t,i){if(t&1){let e=W();cn(0,"div",0),Ol("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),cn(1,"div",1),Ie(2),mn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var HM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(HM,{optional:!0});_changeDetectorRef=p(Qe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(un);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Qe);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Zu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ye([{provide:JV,useExisting:t}])]})}return t})(),uX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),UM="_mat-menu-enter",K0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new fr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(uX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:dn(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ze(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===K0;(n||e===UM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===UM||e===K0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(K0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?UM:K0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(ln(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(un,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ye([{provide:HM,useExisting:t}])],ngContentSelectors:cX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Vs(0,dX,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -4202,7 +4202,7 @@ div.mat-mdc-select-panel { position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return t})(),cX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t)}});var km=new WeakMap,dX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(Sn);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(Cn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(cX);_changeDetectorRef=p(Qe);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ze.EMPTY;_menuCloseSubscription=ze.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(UM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&km.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=km.get(n);km.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Ze(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(vn(1)).subscribe(()=>{n.detach(),km.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&km.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Uo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new jo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Nt(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return km.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),K0=(()=>{class t extends dX{_cleanupTouchstart;_hoverSubscription=ze.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&he("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var e3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,ho,pt,vr]})}return t})();var uX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { +`],encapsulation:2,changeDetection:0})}return t})(),mX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}});var km=new WeakMap,pX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(mX);_changeDetectorRef=p(Qe);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(HM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&km.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=km.get(n);km.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),km.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&km.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return km.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),Z0=(()=>{class t extends pX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,ho,pt,Cr]})}return t})();var hX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { resize: none; } @@ -4228,7 +4228,7 @@ textarea.cdk-textarea-autosize-measuring-firefox { .cdk-text-field-autofill-monitored:not(:-webkit-autofill) { animation: cdk-text-field-autofill-end 0s 1ms; } -`],encapsulation:2,changeDetection:0})}return t})(),mX={passive:!0},n3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(uX);let n=Vo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,mX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Vo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var i3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var Z0=new L("MAT_INPUT_VALUE_ACCESSOR");var pX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(er,{optional:!0,self:!0});_autofillMonitor=p(n3);_ngZone=p(be);_formField=p(ta,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(hX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Gr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=Gr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&hE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Gr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>hE().has(e));constructor(){let e=p(Xr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd),r=p(Z0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?cs(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ns(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){pX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Rn("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),he("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ye([{provide:Xs,useExisting:t}]),yt]})}return t})(),o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,i3,pt]})}return t})();var fX=[[["caption"]],[["colgroup"],["col"]],"*"],gX=["caption","colgroup, col","*"];function _X(t,i){t&1&&Ie(0,2)}function vX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function bX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var J0=(()=>{class t extends FM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:FM,useExisting:t},{provide:ja,useExisting:t},{provide:df,useValue:null}]),We],ngContentSelectors:gX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(fX),Ie(0),Ie(1,1),A(2,_X,1,0),A(3,vX,7,0)(4,bX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.mat-mdc-table-sticky { +`],encapsulation:2,changeDetection:0})}return t})(),fX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(hX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,fX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var X0=new L("MAT_INPUT_VALUE_ACCESSOR");var gX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],_X=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(nr,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(_X,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=qr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=qr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=qr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd),r=p(X0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?cs(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ns(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){gX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ye([{provide:Xs,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var vX=[[["caption"]],[["colgroup"],["col"]],"*"],bX=["caption","colgroup, col","*"];function yX(t,i){t&1&&Ie(0,2)}function CX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function xX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ey=(()=>{class t extends LM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:LM,useExisting:t},{provide:ja,useExisting:t},{provide:uf,useValue:null}]),We],ngContentSelectors:bX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(vX),Ie(0),Ie(1,1),A(2,yX,1,0),A(3,CX,7,0)(4,xX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.mat-mdc-table-sticky { position: sticky !important; } @@ -4405,9 +4405,9 @@ mat-cell.mat-mdc-cell, mat-footer-cell.mat-mdc-footer-cell { align-self: stretch; } -`],encapsulation:2})}return t})(),ey=(()=>{class t extends z0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:z0,useExisting:t}]),We]})}return t})(),ty=(()=>{class t extends U0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:U0,useExisting:t}]),We]})}return t})();var ny=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ye([{provide:tc,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends TV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var oy=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var ry=(()=>{class t extends uf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ye([{provide:uf,useExisting:t}]),We]})}return t})();var ay=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ye([{provide:H0,useExisting:t}]),We]})}return t})(),sy=(()=>{class t extends kM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:kM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var ly=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[AV,pt]})}return t})(),yX=9007199254740991,X0=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Gv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=bo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=bo([o,i]).pipe(et(([s])=>this._orderData(s))),a=bo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var s3=(()=>{class t{transform(e){return pE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!pE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var l3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var xX=["trigger"],wX=()=>[5,10,25,100,1e3];function DX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,qe)}}function SX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Vn)}}function EX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,SX,1,1,"button",43,De),Gt(6,"sort"),d()),t&2){let e=i.$implicit,n=Ot(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(Y_(6,3,e.value,"name"))}}function MX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,EX,7,6,null,null,De),Gt(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Ot(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function TX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Vn)}}function IX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,TX,1,1,"button",45,De),Gt(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Ot(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Y_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function kX(t,i){if(t&1&&(A(0,MX,13,4),A(1,IX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function AX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function RX(t,i){if(t&1&&(A(0,kX,2,2),A(1,AX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function OX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function PX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function NX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Vn)}}function FX(t,i){if(t&1&&fe(0,NX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function LX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function VX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function BX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function jX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function zX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function UX(t,i){t&1&&(ds(0,26),xe(1,jX,2,2,"mat-header-cell",54)(2,zX,2,1,"mat-cell",55),us())}function HX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),z(" ",e.title," ")}}function WX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Vn)}}function $X(t,i){if(t&1&&(ds(0,27),xe(1,HX,2,5,"mat-header-cell",59)(2,WX,2,2,"mat-cell",60),us()),t&2){let e=i.$implicit;b("matColumnDef",Pl(e.name))}}function GX(t,i){t&1&&O(0,"mat-header-row")}function qX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function YX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),z(" ",e.selection.selected.length," ")}}function QX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function KX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function ZX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function XX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function JX(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Vn)}}function eJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Vn)}}function nJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,tJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function iJ(t,i){if(t&1&&(A(0,QX,5,0,"button",65),A(1,KX,5,0,"button",65),A(2,ZX,5,0,"button",65),A(3,XX,5,0,"button",65),fe(4,JX,1,2,"button",66,De),A(6,eJ,5,0,"button",67),A(7,nJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Xe=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new ys(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return j(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new Y0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new ys(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=rp(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return j(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=In.ALPHANUMERIC,s("10rem");break;case In.DATE:case In.DATETIME:case In.TIME:case In.DATETIMESEC:s("13rem");break;case In.IMAGE:case In.BOOLEAN:s("6.5rem");break;case In.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?In.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ONLY_MENU&&e.type!==Ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Ut.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case In.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case In.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case In.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case In.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case In.TIME:o=qi("TIME_FORMAT",o);break;case In.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case In.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case In.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Ut.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Ut.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Ut.ALWAYS||(e.type===Ut.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return j(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){q0(this)}permissions(){this.selection.selected.length&&GV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl),D(KV),D(Qe))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&rt(xX,7)(Js,7)(el,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,DX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,RX,2,2),A(11,OX,6,1,"a",12),A(12,PX,6,1,"a",12),A(13,FX,2,0),A(14,LX,6,0,"a",13),A(15,VX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,BX,3,0,"button",18),Gt(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,UX,3,0,"ng-container",26),fe(34,$X,3,2,"ng-container",27,De),xe(36,GX,1,0,"mat-header-row",28)(37,qX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,YX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,iJ,8,6,"ng-template",36),d()}if(n&2){let r=Ot(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),z(" ",o.title," "),m(2),z(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,wX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Qp,Wt,$e,Ke,Fe,yi,nc,xd,JV,K0,je,st,Mr,Yt,J0,ty,ry,ny,ey,ay,iy,oy,sy,ly,Js,el,W0,bm,mf,$0,Ee,QD,Ci,l3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var c3='pause'+django.gettext("Maintenance")+"",oJ='pause'+django.gettext("Exit maintenance mode")+"",rJ='pause'+django.gettext("Enter maintenance mode")+"",HM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:c3,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=c3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=oJ:this.customButtons[0].html=rJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return j(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var ia=class{constructor(i,e,n,o){this.title=i,this.data=e,this.columns=n,this.id=o,this.columnsDefinition=Array.from(n,r=>{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?In.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}overview(i){return typeof this.data=="function"?Promise.resolve(this.data()):Promise.resolve(this.data)}list(i,e){return typeof this.data=="function"?this.data().then(n=>({items:n,headers:new Lo({"X-Total-Count":n.length.toString()})})):Promise.resolve({items:this.data,headers:new Lo({"X-Total-Count":this.data.length.toString()})})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e){return Promise.resolve({})}export(i){return Promise.resolve([])}position(i){return Promise.resolve(null)}};var aJ=()=>[5,10,25,100,1e3];function sJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function lJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function cJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Vn)}}function dJ(t,i){if(t&1&&(ds(0,20),xe(1,lJ,2,1,"mat-header-cell",25)(2,cJ,2,1,"mat-cell",26),us()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function uJ(t,i){t&1&&O(0,"mat-header-row")}function mJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var tr=(()=>{class t{constructor(e){this.api=e,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 X0([]),this.selection=new ys}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 e of this.displayedColumns){let n=e==="date"?In.DATETIMESEC:In.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return j(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return j(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&rt(Js,7)(el,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,sJ,3,0,"button",13),Gt(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,dJ,3,1,"ng-container",20,De),xe(35,uJ,1,0,"mat-header-row",21)(36,mJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),qe),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,aJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Wt,$e,Ke,Fe,yi,je,Mr,Yt,J0,ty,ry,ny,ey,ay,iy,oy,sy,ly,Js,el,W0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function pJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function hJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var fJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],d3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Qh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ia(django.gettext("Service pools"),e,fJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,pJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,hJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),z(" ",o.service.name,` -`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,On,Ct,wt,xt,Yn,Qn,ii,Ee,Xe,tr],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}"]})}}return t})();var gJ=(t,i)=>i.tab;function _J(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Vn),m(),b("innerHTML",e.value,Vn)}}function vJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,_J,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var bJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||bJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=Uh.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=Uh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,vJ,6,1,"div",1,gJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var yJ=t=>["/services","providers",t];function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function xJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function wJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function DJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function SJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function EJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,CJ,2,0,"ng-template",8),c(5,"div",9),A(6,xJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,wJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,DJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,SJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var WM=(()=>{class t{constructor(e,n,o){this.route=e,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 e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){d3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,EJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,yJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),qe),m(),z(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,tr,oa],encapsulation:2})}}return t})();var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],encapsulation:2})}}return t})();var u3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return j(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return j(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Ot(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Vn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Wt,$e,Ke,Fe,Yo,On,Ct,wt,xt,je,st,Yt,en,Mt,Ee],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}"]})}}return t})();var MJ=t=>["/services","servers",t];function TJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function IJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function kJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,TJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,IJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var m3='pause'+django.gettext("Maintenance")+"",AJ='pause'+django.gettext("Exit maintenance mode")+"",RJ='pause'+django.gettext("Enter maintenance mode")+"",OJ='import_export'+django.gettext("Import CSV")+"",p3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:m3,type:Ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return j(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:OJ,type:Ut.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return j(this,null,function*(){let n=yield u3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),e.table.reloadPage()})}customButtonAction(e){return j(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=m3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=AJ:this.customButtons[0].html=RJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,kJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,MJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),qe),m(),z(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return j(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return j(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return j(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return j(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return j(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return j(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var PJ=["panel"],NJ=["*"];function FJ(t,i){if(t&1&&(cn(0,"div",1,0),Ie(2),mn()),t&2){let e=i.id,n=_();Mn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),Rn("id",n.id),he("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var YM=class{source;option;constructor(i,e){this.source=i,this.option=e}},h3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Rm=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_defaults=p(h3);_animationsDisabled=Bt();_activeOptionChanges=ze.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new YM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&En(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&rt(un,7)(PJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ye([{provide:gm,useExisting:t}])],ngContentSelectors:NJ,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&&(vt(),Vs(0,FJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { +`],encapsulation:2})}return t})(),ty=(()=>{class t extends U0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:U0,useExisting:t}]),We]})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:H0,useExisting:t}]),We]})}return t})();var iy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ye([{provide:tc,useExisting:t}]),We]})}return t})(),oy=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ry=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var ay=(()=>{class t extends mf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ye([{provide:mf,useExisting:t}]),We]})}return t})();var sy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ye([{provide:W0,useExisting:t}]),We]})}return t})(),ly=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var cy=(()=>{class t extends RM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:RM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),wX=9007199254740991,J0=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(qv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=bo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=bo([o,i]).pipe(et(([s])=>this._orderData(s))),a=bo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var SX=["trigger"],EX=()=>[5,10,25,100,1e3];function MX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function TX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function IX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,TX,1,1,"button",43,De),Gt(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(Q_(6,3,e.value,"name"))}}function kX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,IX,7,6,null,null,De),Gt(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function AX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function RX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,AX,1,1,"button",45,De),Gt(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Q_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function OX(t,i){if(t&1&&(A(0,kX,13,4),A(1,RX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function PX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function NX(t,i){if(t&1&&(A(0,OX,2,2),A(1,PX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function FX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function BX(t,i){if(t&1&&fe(0,VX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function jX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function zX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function UX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function HX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function WX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function $X(t,i){t&1&&(ds(0,26),xe(1,HX,2,2,"mat-header-cell",54)(2,WX,2,1,"mat-cell",55),us())}function GX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function qX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function YX(t,i){if(t&1&&(ds(0,27),xe(1,GX,2,5,"mat-header-cell",59)(2,qX,2,2,"mat-cell",60),us()),t&2){let e=i.$implicit;b("matColumnDef",Pl(e.name))}}function QX(t,i){t&1&&O(0,"mat-header-row")}function KX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function ZX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function XX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function iJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function oJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function rJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,oJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function aJ(t,i){if(t&1&&(A(0,XX,5,0,"button",65),A(1,JX,5,0,"button",65),A(2,eJ,5,0,"button",65),A(3,tJ,5,0,"button",65),fe(4,nJ,1,2,"button",66,De),A(6,iJ,5,0,"button",67),A(7,rJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new ys(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new Q0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new ys(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=rp(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=_n.ALPHANUMERIC,s("10rem");break;case _n.DATE:case _n.DATETIME:case _n.TIME:case _n.DATETIMESEC:s("13rem");break;case _n.IMAGE:case _n.BOOLEAN:s("6.5rem");break;case _n.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?_n.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ONLY_MENU&&e.type!==Ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Ut.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case _n.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case _n.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case _n.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case _n.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case _n.TIME:o=qi("TIME_FORMAT",o);break;case _n.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case _n.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case _n.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Ut.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Ut.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Ut.ALWAYS||(e.type===Ut.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Y0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl),D(ZV),D(Qe))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(SX,7)(Js,7)(el,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,MX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,NX,2,2),A(11,FX,6,1,"a",12),A(12,LX,6,1,"a",12),A(13,BX,2,0),A(14,jX,6,0,"a",13),A(15,zX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,UX,3,0,"button",18),Gt(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,$X,3,0,"ng-container",26),fe(34,YX,3,2,"ng-container",27,De),xe(36,QX,1,0,"mat-header-row",28)(37,KX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,ZX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,aJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,EX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Kp,Wt,$e,Ke,Fe,yi,nc,xd,e3,Z0,ze,st,kr,Yt,ey,ny,ay,iy,ty,sy,oy,ry,ly,cy,Js,el,$0,bm,pf,G0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",sJ='pause'+django.gettext("Exit maintenance mode")+"",lJ='pause'+django.gettext("Enter maintenance mode")+"",WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=sJ:this.customButtons[0].html=lJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var cJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function dJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(cJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function uJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?_n.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>dJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(uJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Xo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var mJ=()=>[5,10,25,100,1e3];function pJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function hJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function fJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function gJ(t,i){if(t&1&&(ds(0,20),xe(1,hJ,2,1,"mat-header-cell",25)(2,fJ,2,1,"mat-cell",26),us()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function _J(t,i){t&1&&O(0,"mat-header-row")}function vJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var or=(()=>{class t{constructor(e){this.api=e,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 J0([]),this.selection=new ys}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 e of this.displayedColumns){let n=e==="date"?_n.DATETIMESEC:_n.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=wF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Y0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(Js,7)(el,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,pJ,3,0,"button",13),Gt(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,gJ,3,1,"ng-container",20,De),xe(35,_J,1,0,"mat-header-row",21)(36,vJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,mJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Wt,$e,Ke,Fe,yi,ze,kr,Yt,ey,ny,ay,iy,ty,sy,oy,ry,ly,cy,Js,el,$0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function bJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var CJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Kh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ir(django.gettext("Service pools"),e,CJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,bJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,yJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` +`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or],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}"]})}}return t})();var xJ=(t,i)=>i.tab;function wJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function DJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,wJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var SJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||SJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==Wo.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case Wo.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Wo.PASSWORD:n.value=django.gettext("(hidden)");break;case Wo.CHOICE:{let r=Hh.locateChoice(o,n);n.value=r.text;break}case Wo.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Wo.IMAGECHOICE:{let r=Hh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case Wo.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,DJ,6,1,"div",1,xJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var EJ=t=>["/services","providers",t];function MJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function TJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function IJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function RJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,MJ,2,0,"ng-template",8),c(5,"div",9),A(6,TJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,IJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,kJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,AJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var $M=(()=>{class t{constructor(e,n,o){this.route=e,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 e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,RJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,EJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa],encapsulation:2})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Wt,$e,Ke,Fe,qo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var OJ=t=>["/services","servers",t];function PJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function FJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,PJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,NJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",LJ='pause'+django.gettext("Exit maintenance mode")+"",VJ='pause'+django.gettext("Enter maintenance mode")+"",BJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:BJ,type:Ut.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=LJ:this.customButtons[0].html=VJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,FJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,OJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var YM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var jJ=["panel"],zJ=["*"];function UJ(t,i){if(t&1&&(cn(0,"div",1,0),Ie(2),mn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var QM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Rm=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new QM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(un,7)(jJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ye([{provide:gm,useExisting:t}])],ngContentSelectors:zJ,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&&(vt(),Vs(0,UJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { width: 100%; max-height: 256px; visibility: hidden; @@ -4461,11 +4461,11 @@ div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, mat-autocomplete { display: none; } -`],encapsulation:2,changeDetection:0})}return t})();var LJ={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var VJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t)}}),Dd=(()=>{class t{_environmentInjector=p(yn);_element=p(se);_injector=p(Te);_viewContainerRef=p(Sn);_zone=p(be);_changeDetectorRef=p(Qe);_dir=p(Cn,{optional:!0});_formField=p(ta,{optional:!0,host:!0});_viewportRuler=p(po);_scrollStrategy=p(VJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(h3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ze.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=ze.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=Gs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&$l(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Nt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Nt(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof fm?e:null))}optionSelections=cr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(ln(e),bn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(bn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=dn(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Wr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),ap(0))??Me();return rn(e,n).pipe(bn(()=>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})),vn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;am(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=Uo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(sb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!dn(e)||e.keyCode===38&&dn(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new jo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&he("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ye([LJ]),yt]})}return t})(),f3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,vr,vm,pt]})}return t})();function BJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),z(" ",e.user.name," ")}}function jJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function zJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),z(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function UJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function HJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,UJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Ot(5),n=_();m(2),z(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function WJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),z(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function $J(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function GJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}var KM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return j(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,BJ,4,1,"div")(2,jJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,zJ,4,3,"mat-form-field"),A(6,HJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,WJ,4,2,"mat-form-field"),A(43,$J,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,GJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Wt,$e,Ke,Fe,On,Ct,wt,xt,je,st,Yt,en,Mt,Rm,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function qJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),z(" ",e.group.name," ")}}function YJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function QJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),z(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function KJ(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,KJ,2,3,"mat-option",11,De),d()()}if(t&2){let e=Ot(5),n=_(2);m(2),z(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function XJ(t,i){if(t&1&&(A(0,QJ,4,3,"mat-form-field"),A(1,ZJ,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function JJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function eee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function tee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,eee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function nee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function iee(t,i){if(t&1&&A(0,nee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,iee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,qJ,4,1,"div")(2,YJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,XJ,2,2)(6,JJ,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,tee,7,1,"mat-form-field")(35,oee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Wt,$e,Ke,Fe,On,Ct,wt,xt,je,st,Yt,en,Mt,Rm,Dd,Ee],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}"]})}}return t})();function ree(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function aee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,ree,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function see(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function lee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,see,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function cee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function dee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,cee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var mee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],pee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],hee=[{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")}],g3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return j(this,null,function*(){let e=()=>j(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>j(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>j(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new ia(django.gettext("Groups"),e,mee,this.user.id+"infogrp"),this.servicesPools=new ia(django.gettext("Services Pools"),n,pee,this.user.id+"infopool"),this.userServices=new ia(django.gettext("Assigned services"),o,hee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,aee,3,2,"mat-tab"),Gt(7,"notEmpty"),A(8,lee,3,2,"mat-tab"),Gt(9,"notEmpty"),A(10,dee,3,2,"mat-tab"),Gt(11,"notEmpty"),c(12,"mat-tab"),xe(13,uee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),z(" ",o.user.name,` -`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,On,Ct,wt,xt,Yn,Qn,ii,Ee,Xe,tr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function gee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,fee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function _ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function vee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,_ee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function yee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,bee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Cee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],xee=[{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:In.DATETIME}],wee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/servicesPools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new ia(django.gettext("Service pools"),n,Cee,this.data.group.id+"infopls"),this.users=new ia(django.gettext("Users"),o,xee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new ia(django.gettext("Groups"),r,wee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,gee,3,2,"mat-tab"),Gt(6,"notEmpty"),A(7,vee,3,2,"mat-tab"),Gt(8,"notEmpty"),A(9,yee,3,2,"mat-tab"),Gt(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,On,Ct,wt,xt,Yn,Qn,ii,Ee,Xe,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Dee=t=>["/authenticators",t];function See(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Eee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Tee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Iee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Aee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Ree(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,See,2,0,"ng-template",8),c(5,"div",9),A(6,Eee,1,2,"uds-information",10),Gt(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Mee,2,0,"ng-template",8),c(10,"div",9),A(11,Tee,1,6,"uds-table",11),A(12,Iee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,kee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Aee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var cy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{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},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){KM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){KM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){ZM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ZM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return j(this,null,function*(){e.param.id==="info"?g3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){_3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Ree,21,16,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Dee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),qe),m(),z(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,tr,oa,Ci],encapsulation:2})}}return t})();var XM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],encapsulation:2})}}return t})();function Oee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}var v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return j(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return j(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return j(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 j(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,Oee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Pee=t=>["/connectivity","tunnels",t];function Nee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Lee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Nee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Fee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onMaintenance(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var b3='pause'+django.gettext("Maintenance")+"",Vee='pause'+django.gettext("Exit maintenance mode")+"",Bee='pause'+django.gettext("Enter maintenance mode")+"",y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:b3,type:Ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return j(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onNew(e){return j(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 v3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=b3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=Vee:this.customButtons[0].html=Bee}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Lee,11,9,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Pee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),qe),m(),z(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(PE,"provider_id"),Pi.getGotoButton(NE,"provider_id","service_id"),Pi.getGotoButton(VE,"osmanager_id"),Pi.getGotoButton(BE,"pool_group_id")],this.editing=!1}ngOnInit(){return j(this,null,function*(){})}onChange(e){return j(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return j(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return j(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return j(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function jee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function zee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}var dy=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return j(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 j(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,jee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,zee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function $ee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function Gee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,$ee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Uee,2,0,"uds-translate"),A(2,Hee,2,0,"uds-translate"),A(3,Wee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Gee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),z(" ",o.pool.name,` -`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Wt,xr,$e,Ke,Fe,On,Ct,wt,xt,je,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function qee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function Yee(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;z(" (",e.comments,") ")}}function Qee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,Yee,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name),m(),R(e.comments?2:-1)}}var uy=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return j(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return j(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return j(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 j(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return j(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,qee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,Qee,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),z(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Kee(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;z(" (",e.comments,") ")}}function Zee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,Kee,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name),m(),R(e.comments?2:-1)}}var C3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return j(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return j(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 j(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,Zee,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),z(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),z(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.reason))},dependencies:[Wt,$e,Ke,Fe,Ct,wt,xt,je,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),z(" ",o.servicePool.name,` -`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,On,Ct,wt,xt,Ee,Xe],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Xee=["switch"],Jee=["*"];function ete(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var tte=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),my=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nl=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Qe);defaults=p(tte);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new my(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 my(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&rt(Xee,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Rn("id",o.id),he("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Mn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ye([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Zr,useExisting:t,multi:!0}]),yt],ngContentSelectors:Jee,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ete,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Ot(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),he("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),he("id",o._labelId)}},dependencies:[Cr,Gb],styles:[`.mdc-switch { +`],encapsulation:2,changeDetection:0})}return t})();var HJ={provide:$o,useExisting:Wn(()=>Dd),multi:!0};var WJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Qe);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(po);_scrollStrategy=p(WJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=Gs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&$l(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof fm?e:null))}optionSelections=mr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(ln(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=dn(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return $r()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),ap(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;am(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(lb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!dn(e)||e.keyCode===38&&dn(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ye([HJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,Cr,vm,pt]})}return t})();function $J(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function GJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function qJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function YJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function QJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,YJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function XJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,$J,4,1,"div")(2,GJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,qJ,4,3,"mat-form-field"),A(6,QJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,KJ,4,2,"mat-form-field"),A(43,ZJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,XJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Rm,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function JJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function tee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function nee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function iee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,nee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function oee(t,i){if(t&1&&(A(0,tee,4,3,"mat-form-field"),A(1,iee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function ree(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function aee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function see(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,aee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function lee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function cee(t,i){if(t&1&&A(0,lee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function dee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,cee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var XM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,JJ,4,1,"div")(2,eee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,oee,2,2)(6,ree,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,see,7,1,"mat-form-field")(35,dee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Rm,Dd,Ee],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}"]})}}return t})();function uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,uee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function hee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,pee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function gee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,fee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function _ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var vee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],bee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new ir(django.gettext("Groups"),e,vee,this.user.id+"infogrp"),this.servicesPools=new ir(django.gettext("Services Pools"),n,bee,this.user.id+"infopool"),this.userServices=new ir(django.gettext("Assigned services"),o,yee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,mee,3,2,"mat-tab"),Gt(7,"notEmpty"),A(8,hee,3,2,"mat-tab"),Gt(9,"notEmpty"),A(10,gee,3,2,"mat-tab"),Gt(11,"notEmpty"),c(12,"mat-tab"),xe(13,_ee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` +`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Cee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function xee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Cee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Dee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,wee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function See(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Eee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,See,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Mee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Tee=[{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:_n.DATETIME}],Iee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/servicesPools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new ir(django.gettext("Service pools"),n,Mee,this.data.group.id+"infopls"),this.users=new ir(django.gettext("Users"),o,Tee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new ir(django.gettext("Groups"),r,Iee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,xee,3,2,"mat-tab"),Gt(6,"notEmpty"),A(7,Dee,3,2,"mat-tab"),Gt(8,"notEmpty"),A(9,Eee,3,2,"mat-tab"),Gt(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var kee=t=>["/authenticators",t];function Aee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Ree(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Oee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Pee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Vee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Aee,2,0,"ng-template",8),c(5,"div",9),A(6,Ree,1,2,"uds-information",10),Gt(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Oee,2,0,"ng-template",8),c(10,"div",9),A(11,Pee,1,6,"uds-table",11),A(12,Nee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Fee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Lee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var dy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{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},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){ZM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){ZM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){XM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){XM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Vee,21,16,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,kee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function Bee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,Bee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var jee=t=>["/connectivity","tunnels",t];function zee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Hee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,zee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Uee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onMaintenance(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3='pause'+django.gettext("Maintenance")+"",Wee='pause'+django.gettext("Exit maintenance mode")+"",$ee='pause'+django.gettext("Enter maintenance mode")+"",C3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:y3,type:Ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=y3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=Wee:this.customButtons[0].html=$ee}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Hee,11,9,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,jee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var i1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var uy=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,Gee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,qee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Zee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Xee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Zee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Yee,2,0,"uds-translate"),A(2,Qee,2,0,"uds-translate"),A(3,Kee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Xee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` +`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ete(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function tte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ete,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Jee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,tte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function nte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ite(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,nte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ite,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.reason))},dependencies:[Wt,$e,Ke,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var D3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ote=["switch"],rte=["*"];function ate(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ste=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),py=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nl=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Qe);defaults=p(ste);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new py(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 py(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ote,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:rte,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ate,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Dr,qb],styles:[`.mdc-switch { align-items: center; background: none; border: none; @@ -4893,15 +4893,15 @@ mat-autocomplete { right: 50%; transform: translate(50%, -50%); } -`],encapsulation:2,changeDetection:0})}return t})(),D3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[nl,pt]})}return t})();var nte=()=>["transport","group","bool"];function ite(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function ote(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function rte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function ate(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.description," ")}}function ste(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function lte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,ste,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function dte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),z(" ",e.name," ")}}function ute(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,cte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,dte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function mte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function pte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),z(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var i1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return j(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return j(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ite,2,0,"uds-translate")(2,ote,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,rte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,ate,2,2,"mat-option",4,De),d()(),A(30,lte,8,2,"mat-form-field"),A(31,ute,15,3),A(32,mte,5,2,"div",8),A(33,pte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),z(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,nte).includes(o.parameter.type)?33:-1))},dependencies:[Wt,xr,$e,Ke,Fe,On,Ct,wt,xt,je,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var pf=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),z(" ",o.title,` -`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,On,Ct,wt,xt,Ee,tr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.text," ")}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}var S3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return j(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return j(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return j(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return j(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,hte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,fte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,gte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,Ct,wt,xt,je,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var _te=["chart"],E3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return j(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&rt(_te,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var bte=t=>["/pools","service-pools",t];function yte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Cte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function xte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function wte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,xte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Dte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Ste(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ete(t,i){if(t&1&&(A(0,Dte,3,0,"span"),A(1,Ste,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Mte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ete,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Tte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Ite(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Tte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function kte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Ate(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,kte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Rte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Ote(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Rte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Pte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Vte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Lte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function jte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,yte,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Cte,1,2,"uds-information",12),d()(),A(11,wte,4,8,"mat-tab"),A(12,Mte,4,9,"mat-tab"),A(13,Ite,4,7,"mat-tab"),A(14,Ate,4,7,"mat-tab"),A(15,Ote,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,Pte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Fte,4,8,"mat-tab"),A(21,Vte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,Bte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var hy='event'+django.gettext("Logs")+"",zte='computer'+django.gettext("VNC")+"",Ute='schedule'+django.gettext("Launch now")+"",o1='perm_identity'+django.gettext("Change owner")+"",Hte='perm_identity'+django.gettext("Assign service")+"",Wte='cancel'+django.gettext("Cancel")+"",$te='event'+django.gettext("Changelog")+"",M3='perm_identity'+django.gettext("Fallback: Allow")+"",Gte='perm_identity'+django.gettext("Fallback: Deny")+"",fy=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Ute,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Wb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:M3,type:Ut.ALWAYS},Pi.getGotoButton(Wb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Ut.SINGLE_SELECT},{id:"log",html:hy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Kh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:hy,type:Ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Wte,type:Ut.SINGLE_SELECT},{id:"changelog",html:$te,type:Ut.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(FE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(LE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return j(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:zte,type:Ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Hte,type:Ut.ALWAYS})})}reloadInfo(){return j(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] +`],encapsulation:2,changeDetection:0})}return t})(),S3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[nl,pt]})}return t})();var lte=()=>["transport","group","bool"];function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function hte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,pte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,fte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,gte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function vte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function bte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var o1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,cte,2,0,"uds-translate")(2,dte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,ute,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,mte,2,2,"mat-option",4,De),d()(),A(30,hte,8,2,"mat-form-field"),A(31,_te,15,3),A(32,vte,5,2,"div",8),A(33,bte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,lte).includes(o.parameter.type)?33:-1))},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var hf=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` +`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,or],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var E3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,yte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,Cte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,xte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var wte=["chart"],M3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(wte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ste=t=>["/pools","service-pools",t];function Ete(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Mte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Tte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Ite(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Tte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Rte(t,i){if(t&1&&(A(0,kte,3,0,"span"),A(1,Ate,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Ote(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Rte,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Pte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Nte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Pte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Fte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Lte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Fte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Vte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Bte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Vte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Ute(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,zte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Hte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Wte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Hte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function $te(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Gte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ete,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Mte,1,2,"uds-information",12),d()(),A(11,Ite,4,8,"mat-tab"),A(12,Ote,4,9,"mat-tab"),A(13,Nte,4,7,"mat-tab"),A(14,Lte,4,7,"mat-tab"),A(15,Bte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,jte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Ute,4,8,"mat-tab"),A(21,Wte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,$te,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var fy='event'+django.gettext("Logs")+"",qte='computer'+django.gettext("VNC")+"",Yte='schedule'+django.gettext("Launch now")+"",r1='perm_identity'+django.gettext("Change owner")+"",Qte='perm_identity'+django.gettext("Assign service")+"",Kte='cancel'+django.gettext("Cancel")+"",Zte='event'+django.gettext("Changelog")+"",T3='perm_identity'+django.gettext("Fallback: Allow")+"",Xte='perm_identity'+django.gettext("Fallback: Deny")+"",gy=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Yte,type:Ut.SINGLE_SELECT},Pi.getGotoButton($b,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:T3,type:Ut.ALWAYS},Pi.getGotoButton($b,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:fy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Zh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:fy,type:Ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Kte,type:Ut.SINGLE_SELECT},{id:"changelog",html:Zte,type:Ut.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:qte,type:Ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Qte,type:Ut.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});sm(o,e.ip+".vnc")}onCustomAssigned(e){return j(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield dy.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?pf.launch(this.api,n,this.assignedServices,this.servicePool?.name):e.param.id==="assign-service"?(yield S3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage():e.param.id==="vnc"&&this.vnc(n)})}onCustomCached(e){let n=e.table.selection.selected[0];e.param.id==="log"&&this.cache&&pf.launch(this.api,n,this.cache,this.servicePool?.name)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}onDeleteAssigned(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}checkLocked(){return j(this,null,function*(){return this.servicePool.state==="Q"?(this.api.gui.alert(django.gettext("Service pool is locked"),django.gettext("Service pool is locked, no changes allowed")),!0):!1})}onNewGroup(e){return j(this,null,function*(){(yield this.checkLocked())||(yield uy.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return j(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return j(this,null,function*(){(yield this.checkLocked())||(yield C3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return j(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return j(this,null,function*(){(yield x3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return j(this,null,function*(){e.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))})}onCustomPublication(e){return j(this,null,function*(){e.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&w3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return j(this,null,function*(){i1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return j(this,null,function*(){i1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return j(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return j(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return j(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return j(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return j(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return j(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return j(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=M3:this.customButtonAccessCalendars[0].html=Gte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,jte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,bte,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),qe),m(),z(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Xe,tr,oa,E3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var r1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],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}"]})}}return t})();function qte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function Yte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function Qte(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function Kte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.name," ")}}var a1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return j(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return j(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,qte,2,0,"uds-translate"),A(2,Yte,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,Qte,1,0,"uds-cond-select-search"),fe(16,Kte,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),z(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Wt,xr,$e,Ke,Fe,Ct,wt,xt,je,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var Zte=t=>["/pools","meta-pools",t];function Xte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Jte(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function ene(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function ine(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function one(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function rne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Xte,2,0,"ng-template",8),c(5,"div",9),A(6,Jte,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,ene,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,tne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,nne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,ine,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,one,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var T3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Qh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Ut.SINGLE_SELECT},{id:"log",html:hy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Kh,"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 j(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return j(this,null,function*(){(yield a1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return j(this,null,function*(){(yield a1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return j(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return j(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield dy.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&pf.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return j(this,null,function*(){fy.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return j(this,null,function*(){(yield uy.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,rne,27,31,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Zte,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),qe),m(),z(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,tr,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var s1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return j(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],encapsulation:2})}}return t})();var ane=["mat-calendar-body",""];function sne(t,i){return this._trackRow(i)}var N3=(t,i)=>i.id;function lne(t,i){if(t&1&&(cn(0,"tr",0)(1,"td",3),f(2),mn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),he("colspan",e.numCols),m(),z(" ",e.label," ")}}function cne(t,i){if(t&1&&(cn(0,"td",3),f(1),mn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),he("colspan",e._firstRowOffset),m(),z(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function dne(t,i){if(t&1){let e=W();cn(0,"td",6)(1,"button",7),Ol("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),cn(2,"span",8),f(3),mn(),uo(4,"span",9),mn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),he("data-mat-row",o)("data-mat-col",n),m(),Mn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),Rn("tabIndex",r._isActiveCell(o,n)?0:-1),he("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),z(" ",e.displayValue," ")}}function une(t,i){if(t&1&&(cn(0,"tr",1),A(1,cne,2,6,"td",4),fe(2,dne,5,49,"td",5,N3),mn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function mne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var pne=["*"];function hne(t,i){}function fne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function gne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function _ne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function vne(t,i){}var bne=["button"],yne=[[["","matDatepickerToggleIcon",""]]],Cne=["[matDatepickerToggleIcon]"];function xne(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Nm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wne=0,ff=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=wne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Dne={passive:!1,capture:!0},gy={passive:!0,capture:!0},I3={passive:!0},Pm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Nm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Dne),e.listen(o,"mouseenter",this._enterHandler,gy),e.listen(o,"focus",this._enterHandler,gy),e.listen(o,"mouseleave",this._leaveHandler,gy),e.listen(o,"blur",this._leaveHandler,gy),e.listen(o,"mousedown",this._mousedownHandler,I3),e.listen(o,"touchstart",this._mousedownHandler,I3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return u1(e,this.startValue,this.endValue)}_isRangeEnd(e){return m1(e,this.startValue,this.endValue)}_isInRange(e){return p1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return u1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return p1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return u1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return m1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return p1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=k3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),d1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=d1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=k3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=d1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[yt],attrs:ane,decls:11,vars:11,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","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&&(A(0,lne,3,6,"tr",0),fe(1,une,4,1,"tr",1,sne,!0),cn(3,"span",2),f(4),mn(),cn(5,"span",2),f(6),mn(),cn(7,"span",2),f(8),mn(),cn(9,"span",2),f(10),mn()),n&2&&(R(o._firstRowOffset{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&D3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=T3:this.customButtonAccessCalendars[0].html=Xte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Gte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,Ste,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,qo,Yn,Qn,ii,Ee,Ge,or,oa,M3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var I3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:_n.DATETIME},{field:"role",title:django.gettext("Role")}],Jte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],_y=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Jte],users:[()=>this.users(),I3],"users-with-services":[()=>this.usersWithServices(),I3]},[s,l]=a[r.list];this.selectedRest=new ir(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ze(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var a1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function ene(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function nne(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function ine(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var s1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ene,2,0,"uds-translate"),A(2,tne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,nne,1,0,"uds-cond-select-search"),fe(16,ine,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Wt,Sr,$e,Ke,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var one=t=>["/pools","meta-pools",t];function rne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function ane(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function mne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,rne,2,0,"ng-template",8),c(5,"div",9),A(6,ane,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,sne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,lne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,cne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,dne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,une,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Kh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:fy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Zh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield uy.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&hf.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){gy.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield my.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,mne,27,31,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,one,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var c1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var pne=["mat-calendar-body",""];function hne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function fne(t,i){if(t&1&&(cn(0,"tr",0)(1,"td",3),f(2),mn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function gne(t,i){if(t&1&&(cn(0,"td",3),f(1),mn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function _ne(t,i){if(t&1){let e=W();cn(0,"td",6)(1,"button",7),Ol("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),cn(2,"span",8),f(3),mn(),uo(4,"span",9),mn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function vne(t,i){if(t&1&&(cn(0,"tr",1),A(1,gne,2,6,"td",4),fe(2,_ne,5,49,"td",5,L3),mn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function bne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var yne=["*"];function Cne(t,i){}function xne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function wne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){}var Ene=["button"],Mne=[[["","matDatepickerToggleIcon",""]]],Tne=["[matDatepickerToggleIcon]"];function Ine(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Nm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kne=0,gf=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=kne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Ane={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Pm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Nm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Ane),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return m1(e,this.startValue,this.endValue)}_isRangeEnd(e){return p1(e,this.startValue,this.endValue)}_isInRange(e){return h1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return p1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return h1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return m1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return p1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return h1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),u1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=u1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=u1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:pne,decls:11,vars:11,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","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&&(A(0,fne,3,6,"tr",0),fe(1,vne,4,1,"tr",1,hne,!0),cn(3,"span",2),f(4),mn(),cn(5,"span",2),f(6),mn(),cn(7,"span",2),f(8),mn(),cn(9,"span",2),f(10),mn()),n&2&&(R(o._firstRowOffset=i&&t===e}function p1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function k3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},gf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Sne=(()=>{class t extends gf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(so))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var F3={provide:gf,useFactory:()=>p(gf,{optional:!0,skipSelf:!0})||new Sne(p(so))};var L3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var h1=7,Ene=0,A3=(()=>{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(Cn,{optional:!0});_rangeStrategy=p(L3,{optional:!0});_rerenderSubscription=ze.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load($r),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!dn(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((h1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%h1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Ene++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&rt(Pm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[yt],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"),fe(3,mne,5,2,"th",2,N3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Pm],encapsulation:2,changeDetection:0})}return t})(),Tr=24,f1=4,R3=(()=>{class t{_changeDetectorRef=p(Qe);_dateAdapter=p(so,{optional:!0});_dir=p(Cn,{optional:!0});_rerenderSubscription=ze.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),V3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-hf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-f1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,f1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Tr-hf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Tr*10:-Tr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Tr*10:Tr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return hf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new ff(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(Cn,{optional:!0});_rerenderSubscription=ze.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new ff(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Nm);calendar=p(g1);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load($r);let e=p(Qe);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Tr))}nextClicked(){this.nextEnabled()&&(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:Tr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):V3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-hf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Tr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),he("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),he("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),he("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),g1=(()=>{class t{_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_changeDetectorRef=p(Qe);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Nm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Jo(this.headerComponent||j3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Wr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&rt(A3,5)(O3,5)(R3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ye([F3]),yt],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&&(xe(0,hne,0,0,"ng-template",0),c(1,"div",1),A(2,fne,1,11,"mat-month-view",2)(3,gne,1,6,"mat-year-view",3)(4,_ne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Bo,Oh,A3,O3,R3],styles:[`.mat-calendar { +`],encapsulation:2,changeDetection:0})}return t})();function d1(t){return t?.nodeName==="TD"}function u1(t){let i;return d1(t)?i=t:d1(t.parentNode)?i=t.parentNode:d1(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function m1(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function h1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},_f=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Rne=(()=>{class t extends _f{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(so))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:_f,useFactory:()=>p(_f,{optional:!0,skipSelf:!0})||new Rne(p(so))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var f1=7,One=0,O3=(()=>{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(Gr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!dn(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((f1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%f1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:One++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Pm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,bne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Pm],encapsulation:2,changeDetection:0})}return t})(),Ar=24,g1=4,P3=(()=>{class t{_changeDetectorRef=p(Qe);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-g1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,g1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ar-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Ar*10:-Ar);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ar*10:Ar);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new gf(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new gf(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Nm);calendar=p(_1);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(Gr);let e=p(Qe);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Ar))}nextClicked(){this.nextEnabled()&&(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:Ar))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-ff(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Ar-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:yne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,qo],encapsulation:2,changeDetection:0})}return t})(),_1=(()=>{class t{_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_changeDetectorRef=p(Qe);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Nm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new tr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains($r())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ye([V3]),Ct],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&&(xe(0,Cne,0,0,"ng-template",0),c(1,"div",1),A(2,xne,1,11,"mat-month-view",2)(3,wne,1,6,"mat-year-view",3)(4,Dne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Ph,O3,N3,P3],styles:[`.mat-calendar { display: block; line-height: normal; font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); @@ -5291,7 +5291,7 @@ port=5900 .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),Tne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>yr(t)}}),z3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Qe);_globalModel=p(gf);_dateAdapter=p(so);_ngZone=p(be);_rangeSelectionStrategy=p(L3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load($r),this._closeButtonText=p(Nm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&rt(g1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Mn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,vne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),he("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Mn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[oE,g1,Bo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { +`],encapsulation:2,changeDetection:0})}return t})(),Nne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Qe);_globalModel=p(_f);_dateAdapter=p(so);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(Gr),this._closeButtonText=p(Nm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(_1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Sne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,_1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { from { opacity: 0; transform: scaleY(0.8); @@ -5394,7 +5394,7 @@ port=5900 height: 115vw; } } -`],encapsulation:2,changeDetection:0})}return t})(),P3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(Sn);_dateAdapter=p(so,{optional:!0});_dir=p(Cn,{optional:!0});_model=p(gf);_animationsDisabled=Bt();_scrollStrategy=p(Tne);_inputStateChanges=ze.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=nF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Qe);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Ju&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Wr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(vn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new Jo(z3,this._viewContainerRef),o=this._overlayRef=Uo(this._injector,new jo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ul(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return fs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Nt(o=>o.keyCode===27&&!dn(o)||this.datepickerInput&&dn(o,"altKey")&&o.keyCode===38&&n.every(r=>!dn(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[yt]})}return t})(),_y=(()=>{class t extends P3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ye([F3,{provide:P3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Om=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Ine=(()=>{class t{_elementRef=p(se);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ze.EMPTY;_localeSubscription=ze.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Om(this,this._elementRef.nativeElement)),this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){kne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];dn(e,"altKey")&&e.keyCode===40&&n.every(r=>!dn(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Om(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[yt]})}return t})();function kne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Ane={provide:Go,useExisting:Wn(()=>Fm),multi:!0},Rne={provide:Zr,useExisting:Wn(()=>Fm),multi:!0},Fm=(()=>{class t extends Ine{_formField=p(ta,{optional:!0});_closedSubscription=ze.EMPTY;_openedSubscription=ze.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=vs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(Rn("disabled",o.disabled),he("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"],features:[Ye([Ane,Rne,{provide:Z0,useExisting:t}]),We]})}return t})(),One=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),_f=(()=>{class t{_intl=p(Nm);_changeDetectorRef=p(Qe);_stateChanges=ze.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&En(r,One,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&rt(bne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(he("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[yt],ngContentSelectors:Cne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(yne),c(0,"button",1,0),A(2,xne,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),he("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { +`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_model=p(_f);_animationsDisabled=Bt();_scrollStrategy=p(Nne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=iF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Qe);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Ju&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=$r(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new tr(H3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ul(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return fs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!dn(o)||this.datepickerInput&&dn(o,"altKey")&&o.keyCode===38&&n.every(r=>!dn(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ye([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Om=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Fne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Om(this,this._elementRef.nativeElement)),this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Lne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];dn(e,"altKey")&&e.keyCode===40&&n.every(r=>!dn(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Om(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Lne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Vne={provide:$o,useExisting:Wn(()=>Fm),multi:!0},Bne={provide:Xr,useExisting:Wn(()=>Fm),multi:!0},Fm=(()=>{class t extends Fne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=vs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Ye([Vne,Bne,{provide:X0,useExisting:t}]),We]})}return t})(),jne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),vf=(()=>{class t{_intl=p(Nm);_changeDetectorRef=p(Qe);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,jne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Ene,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Tne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Mne),c(0,"button",1,0),A(2,Ine,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { pointer-events: auto; color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); } @@ -5411,7 +5411,7 @@ port=5900 color: CanvasText; } } -`],encapsulation:2,changeDetection:0})}return t})();var U3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Nm],imports:[_s,ho,cd,br,z3,_f,j3,pt,vr]})}return t})();function Pne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Fne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.value," ")}}function Lne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.value," ")}}function Vne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.value," ")}}function Bne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,Vne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function jne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),z("\xA0",e.frequency())}}var vy={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")]},by={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},W3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],$3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(W3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},G3=t=>{t.frequency==="WEEKDAYS"?t.interval=$3(t.interval):t.interval=t.interval+" "+vy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+by[t.duration_unit]},v1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(by).map(a=>({id:a,value:by[a]})),this.freqs=Object.keys(vy).map(a=>({id:a,value:vy[a][2]})),this.weekDays=W3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=mE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+$3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Gl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Gl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+by[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Pne,2,0,"uds-translate"),Gt(2,"notEmpty"),A(3,Nne,2,0,"uds-translate"),Gt(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Fne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Lne,2,2,"mat-option",9,De),d()(),A(63,Bne,7,1,"mat-form-field",10),A(64,jne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Ot(46),a=Ot(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),z(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Wt,xr,$e,Ke,Fe,On,Ct,wt,xt,je,st,Mr,Yt,en,Mt,_y,Fm,_f,Ee,s3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var zne=t=>["/pools","calendars",t];function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Hne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Une,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){v1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){v1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){G3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Hne,7,7,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,zne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),qe),m(),z(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,Ci],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}"]})}}return t})();var Wne='event'+django.gettext("Set time mark")+"",b1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Wne,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Xe],encapsulation:2})}}return t})();var $ne=t=>["/pools","accounts",t];function Gne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function qne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Gne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var Y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,qne,7,6,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,$ne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),qe),m(),z(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Xe,Ci],encapsulation:2})}}return t})();function Yne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function Qne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var y1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,Yne,2,0,"uds-translate"),A(2,Qne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Ot(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Ot(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Qp,Wt,$e,Ke,Fe,On,Ct,wt,xt,je,st,Yt,Ee],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}"]})}}return t})();var C1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){y1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){y1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(at),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Xe],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var Kne='assessment'+django.gettext("Generate report")+"",Q3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:Kne,type:Ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return j(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();function Zne(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;z(" ",e," ")}}function Xne(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function Jne(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function eie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function tie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),z(" ",e," ")}}function nie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),z(" ",e," ")}}function iie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,nie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),z(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function oie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function rie(t,i){}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1&&A(0,Xne,5,4,"div")(1,Jne,5,3,"div")(2,eie,5,3,"div")(3,tie,4,3,"div")(4,iie,7,3,"div")(5,oie,5,3,"div")(6,rie,0,0)(7,aie,5,3,"div")(8,sie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function cie(t,i){if(t&1&&(c(0,"div",10),A(1,lie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function die(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Zne,1,1,"ng-template",8),c(2,"div",9),fe(3,cie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function uie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,die,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var Z3=["UDS","Security"],X3=["UDS ID"],J3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return j(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!Z3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,Z3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&X3.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,X3),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,uie,9,1,"div",3),Gt(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),qe),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Wt,xr,$e,Ke,Fe,Yo,je,st,Yt,en,Mt,Yn,Qn,ii,nl,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var eB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return j(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var tB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(at),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Xe],encapsulation:2})}}return t})();var mie=[{path:"",canActivate:[E2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:aV},{path:"services/providers",component:HM},{path:"services/providers/:provider/detail",component:WM},{path:"services/providers/:provider",component:HM},{path:"services/providers/:provider/detail/:service",component:WM},{path:"services/servers",component:$M},{path:"services/servers/:server/detail",component:p3},{path:"services/servers/:server",component:$M},{path:"authenticators",component:GM},{path:"authenticators/:authenticator/detail",component:cy},{path:"authenticators/:authenticator",component:GM},{path:"authenticators/:authenticator/detail/groups/:group",component:cy},{path:"authenticators/:authenticator/detail/users/:user",component:cy},{path:"mfas",component:qM},{path:"mfas/:mfa",component:qM},{path:"osmanagers",component:XM},{path:"osmanagers/:osmanager",component:XM},{path:"connectivity/transports",component:JM},{path:"connectivity/transports/:transport",component:JM},{path:"connectivity/networks",component:e1},{path:"connectivity/networks/:network",component:e1},{path:"connectivity/tunnels",component:t1},{path:"connectivity/tunnels/:tunnel",component:t1},{path:"connectivity/tunnels/:tunnel/detail",component:y3},{path:"pools/service-pools",component:n1},{path:"pools/service-pools/:pool",component:n1},{path:"pools/service-pools/:pool/detail",component:fy},{path:"pools/meta-pools",component:r1},{path:"pools/meta-pools/:metapool",component:r1},{path:"pools/meta-pools/:metapool/detail",component:T3},{path:"pools/pool-groups",component:s1},{path:"pools/pool-groups/:poolgroup",component:s1},{path:"pools/calendars",component:l1},{path:"pools/calendars/:calendar",component:l1},{path:"pools/calendars/:calendar/detail",component:q3},{path:"pools/accounts",component:b1},{path:"pools/accounts/:account",component:b1},{path:"pools/accounts/:account/detail",component:Y3},{path:"tools/gallery",component:C1},{path:"tools/gallery/:image",component:C1},{path:"tools/reports",component:Q3},{path:"tools/notifiers",component:K3},{path:"tools/tokens/actor",component:eB},{path:"tools/tokens/server",component:tB},{path:"tools/configuration",component:J3}]}],nB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[Hv.forRoot(mie,{}),Hv]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ua="*";function iB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var il=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Lm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},vf="!";function oB(t){return new ie(3e3,!1)}function pie(){return new ie(3100,!1)}function hie(){return new ie(3101,!1)}function fie(t){return new ie(3001,!1)}function gie(t){return new ie(3003,!1)}function _ie(t){return new ie(3004,!1)}function aB(t,i){return new ie(3005,!1)}function sB(){return new ie(3006,!1)}function lB(){return new ie(3007,!1)}function cB(t,i){return new ie(3008,!1)}function dB(t){return new ie(3002,!1)}function uB(t,i,e,n,o){return new ie(3010,!1)}function mB(){return new ie(3011,!1)}function pB(){return new ie(3012,!1)}function hB(){return new ie(3200,!1)}function fB(){return new ie(3202,!1)}function gB(){return new ie(3013,!1)}function _B(t){return new ie(3014,!1)}function vB(t){return new ie(3015,!1)}function bB(t){return new ie(3016,!1)}function yB(t,i){return new ie(3404,!1)}function vie(t){return new ie(3502,!1)}function CB(t){return new ie(3503,!1)}function xB(){return new ie(3300,!1)}function wB(t){return new ie(3504,!1)}function DB(t){return new ie(3301,!1)}function SB(t,i){return new ie(3302,!1)}function EB(t){return new ie(3303,!1)}function MB(t,i){return new ie(3400,!1)}function TB(t){return new ie(3401,!1)}function IB(t){return new ie(3402,!1)}function kB(t,i){return new ie(3505,!1)}function ol(t){switch(t.length){case 0:return new il;case 1:return t[0];default:return new Lm(t)}}function E1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case vf:P=e.get(w);break;case Ua:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw vie(o);return r}function yy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&w1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&w1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&w1(e,"destroy",t)));break}}function w1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=Cy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function Cy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function nr(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function M1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var bie=typeof document>"u"?null:document.documentElement;function xy(t){let i=t.parentNode||t.host||null;return i===bie?null:i}function yie(t){return t.substring(1,6)=="ebkit"}var Ed=null,rB=!1;function AB(t){Ed||(Ed=Cie()||{},rB=Ed.style?"WebkitAppearance"in Ed.style:!1);let i=!0;return Ed.style&&!yie(t)&&(i=t in Ed.style,!i&&rB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ed.style)),i}function Cie(){return typeof document<"u"?document.body:null}function T1(t,i){for(;i;){if(i===t)return!0;i=xy(i)}return!1}function I1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var xie=1e3,k1="{{",wie="}}",A1="ng-enter",wy="ng-leave",bf="ng-trigger",yf=".ng-trigger",R1="ng-animating",Dy=".ng-animating";function Cs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:D1(parseFloat(i[1]),i[2])}function D1(t,i){return i==="s"?t*xie:t}function Cf(t,i,e){return t.hasOwnProperty("duration")?t:Sie(t,i,e)}var Die=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Sie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Die);if(a===null)return i.push(oB(t)),{duration:0,delay:0,easing:""};n=D1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=D1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(pie()),a=!0),o<0&&(i.push(hie()),a=!0),a&&i.splice(s,0,oB(t))}return{duration:n,delay:o,easing:r}}function RB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ha(t,i,e){i.forEach((n,o)=>{let r=Sy(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=Sy(n);t.style[o]=""})}function Vm(t){return Array.isArray(t)?t.length==1?t[0]:iB(t):t}function OB(t,i,e){let n=i.params||{},o=O1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(fie(r))})}var S1=new RegExp(`${k1}\\s*(.+?)\\s*${wie}`,"g");function O1(t){let i=[];if(typeof t=="string"){let e;for(;e=S1.exec(t);)i.push(e[1]);S1.lastIndex=0}return i}function Bm(t,i,e){let n=`${t}`,o=n.replace(S1,(r,a)=>{let s=i[a];return s==null&&(e.push(gie(a)),s=""),s.toString()});return o==n?t:o}var Eie=/-+([a-z0-9])/g;function Sy(t){return t.replace(Eie,(...i)=>i[1].toUpperCase())}function PB(t,i){return t===0||i===0}function NB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ey(t,s)))}}return i}function ir(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw _ie(i.type)}}function Ey(t,i){return window.getComputedStyle(t)[i]}var K1=(()=>{class t{validateStyleProperty(e){return AB(e)}containsElement(e,n){return T1(e,n)}getParentElement(e){return xy(e)}query(e,n,o){return I1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new il(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Td=class{static NOOP=new K1},Id=class{};var Mie=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"]),Ay=class extends Id{normalizePropertyName(i,e){return Sy(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Mie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(aB(i,n))}return a+r}};var Ry="*";function Tie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Iie(n,e,i)):e.push(t),e}function Iie(t,i,e){if(t[0]==":"){let l=kie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(vB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(FB(o,a));let s=o==Ry&&a==Ry;r[0]=="<"&&!s&&i.push(FB(a,o))}function kie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var My=new Set(["true","1"]),Ty=new Set(["false","0"]);function FB(t,i){let e=My.has(t)||Ty.has(t),n=My.has(i)||Ty.has(i);return(o,r)=>{let a=t==Ry||t==o,s=i==Ry||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?My.has(t):Ty.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?My.has(i):Ty.has(i)),a&&s}}var GB=":self",Aie=new RegExp(`s*${GB}s*,?`,"g");function qB(t,i,e,n){return new B1(t).build(i,e,n)}var LB="",B1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new j1(e);return this._resetContextStyleTimingState(o),ir(this,Vm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=LB,i.collectedStyles=new Map,i.collectedStyles.set(LB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(sB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(lB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{O1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(cB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ir(this,Vm(i.animation),e),o=Tie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Md(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>ir(this,n,e)),options:Md(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ir(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Md(i.options)}}visitAnimate(i,e){let n=Nie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ua?n.push(s):e.errors.push(dB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(k1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(uB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&OB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(mB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let G=this._makeStyleAst(F,e),ve=G.offset!=null?G.offset:Pie(G.styles),oe=0;return ve!=null&&(r++,oe=G.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?G==w?1:y*G:a[G],oe=ve*B;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:ir(this,Vm(i.animation),e),options:Md(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Md(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Md(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=Rie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,nr(e.collectedStyles,e.currentQuerySelector,new Map);let s=ir(this,Vm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Md(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(gB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:Cf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:ir(this,Vm(i.animation),e),timings:n,options:null}}};function Rie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==GB);return i&&(t=t.replace(Aie,"")),t=t.replace(/@\*/g,yf).replace(/@\w+/g,e=>yf+"-"+e.slice(1)).replace(/:animating/g,Dy),[t,i]}function Oie(t){return t?q({},t):null}var j1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Pie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Nie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=Cf(t,i).duration;return P1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=P1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=Cf(e,i);return P1(o.duration,o.delay,o.easing)}function Md(t){return t?(t=q({},t),t.params&&(t.params=Oie(t.params))):t={},t}function P1(t,i,e){return{duration:t,delay:i,easing:e}}function Z1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var wf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Fie=1,Lie=":enter",Vie=new RegExp(Lie,"g"),Bie=":leave",jie=new RegExp(Bie,"g");function YB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new z1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var z1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new wf;let g=new U1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?Cs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),ir(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let B=w[P];if(B.element===e){S=B;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[Z1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:Cs(Bm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Cs(n.duration):null,s=n.delay!=null?Cs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ir(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Oy);let a=Cs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ir(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ir(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?Bm(n,e.params,e.errors):n;return Cf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?Cs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Oy);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),ir(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;ir(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Oy={},U1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Oy;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Py(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=Cs(n.duration)),n.delay!=null&&(o.delay=Cs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Bm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Oy,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new H1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(Vie,"."+this._enterClassName),i=i.replace(jie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(_B(e)),s}},Py=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Fie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ua),this._currentKeyframe.set(e,Ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=zie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=Bm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===vf?i.add(g):h===Ua&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},H1=class extends Py{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",VB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",VB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return Z1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function VB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function zie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ua)}else for(let[r,a]of o)e.set(r,a)}),e}function BB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var N1={},Ny=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Uie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||N1,w=s&&s.params||N1,S=this.buildStyles(n,w,g),P=l&&l.params||N1,B=this.buildStyles(o,P,g),F=new Set,G=new Map,ve=new Map,oe=o==="void",Ne={params:QB(P,y),delay:this.ast.options?.delay},Ce=h?[]:YB(i,e,this.ast.animation,r,a,S,B,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?BB(e,this._triggerName,n,o,oe,S,B,[],[],G,ve,Le,g):(Ce.forEach(Je=>{let Pt=Je.element,ht=nr(G,Pt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=nr(ve,Pt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Pt!==e&&F.add(Pt)}),BB(e,this._triggerName,n,o,oe,S,B,Ce,[...F.values()],G,ve,Le))}};function Uie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function QB(t,i){let e=q({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var W1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=QB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=Bm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Hie(t,i,e){return new $1(t,i,e)}var $1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new W1(o.style,r,n))}),jB(this.states,"true","1"),jB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ny(i,o,this.states))}),this.fallbackTransition=Wie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Wie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ny(t,r,i)}function jB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var $ie=new wf,G1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=qB(this._driver,e,n,o);if(n.length)throw CB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=E1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=YB(this._driver,e,r,A1,wy,new Map,new Map,n,$ie,o),a.forEach(h=>{let g=nr(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(xB()),a=[]),o.length)throw wB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ua))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=ol(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw DB(i);return e}listen(i,e,n,o){let r=Cy(e,"","","");return yy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},zB="ng-animate-queued",Gie=".ng-animate-queued",F1="ng-animate-disabled",qie=".ng-animate-disabled",Yie="ng-star-inserted",Qie=".ng-star-inserted",Kie=[],KB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zie={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wa="__ng_removed",Df=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=Jie(o),n){let r=i,{value:a}=r,s=cC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},xf="void",L1=new Df(xf),q1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw SB(n,e);if(n==null||n.length==0)throw EB(e);if(!eoe(n))throw MB(n,e);let r=nr(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=nr(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,bf),aa(i,bf+"-"+e),s.set(e,L1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw TB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Sf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,bf),aa(i,bf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Df(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=L1),!(u.value===xf)&&l.value===u.value){if(!ioe(l.params,u.params)){let P=[],B=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,B),Ha(i,F)})}return}let y=nr(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,zB),a.onStart(()=>{jm(i,zB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let B=this._engine.playersByElement.get(i);if(B){let F=B.indexOf(a);F>=0&&B.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,yf,!0);n.forEach(o=>{if(o[Wa])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,xf,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ol(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||L1,h=new Df(xf),g=new Sf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[Wa];(!r||r===KB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=Cy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,yy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Y1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new q1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Iy(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Iy(e))return;let r=e[Wa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,F1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),jm(i,F1))}removeNode(i,e,n){if(Iy(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[Wa]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Iy(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,yf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Dy,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ol(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Wa];if(e&&e.setForRemoval){if(i[Wa]=KB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(F1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,qie,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?ol(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw IB(i)}_flushAnimations(i,e){let n=new wf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(me=>{h.add(me);let ae=this.driver.query(me,Gie,!0);for(let He=0;He{let He=A1+P++;S.set(ae,He),me.forEach(tt=>aa(tt,He))});let B=[],F=new Set,G=new Set;for(let me=0;meF.add(tt)):G.add(ae))}let ve=new Map,oe=WB(y,Array.from(F));oe.forEach((me,ae)=>{let He=wy+P++;ve.set(ae,He),me.forEach(tt=>aa(tt,He))}),i.push(()=>{w.forEach((me,ae)=>{let He=S.get(ae);me.forEach(tt=>jm(tt,He))}),oe.forEach((me,ae)=>{let He=ve.get(ae);me.forEach(tt=>jm(tt,He))}),B.forEach(me=>{this.processLeaveNode(me)})});let Ne=[],Ce=[];for(let me=this._namespaceList.length-1;me>=0;me--)this._namespaceList[me].drainQueuedTransitions(e).forEach(He=>{let tt=He.player,gt=He.element;if(Ne.push(tt),this.collectedEnterElements.length){let At=gt[Wa];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(He.triggerName)){let Li=At.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}tt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){tt.onStart(()=>ic(gt,jt.fromStyles)),tt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(tt);return}if(He.isFallbackTransition){tt.onStart(()=>ic(gt,jt.fromStyles)),tt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(tt);return}let Ji=[];jt.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||Ji.push(At)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:tt,element:gt};a.push(Xn),jt.queriedElements.forEach(At=>nr(s,At,[]).push(tt)),jt.preStyleProps.forEach((At,Li)=>{if(At.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),At.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((At,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),At.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let me=[];Ce.forEach(ae=>{me.push(kB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(me)}let Le=new Map,Je=new Map;a.forEach(me=>{let ae=me.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(me.player.namespaceId,me.instruction,Le))}),o.forEach(me=>{let ae=me.element;this._getPreviousPlayers(ae,!1,me.namespaceId,me.triggerName,null).forEach(tt=>{nr(Le,ae,[]).push(tt),tt.destroy()})});let Pt=B.filter(me=>$B(me,l,u)),ht=new Map;HB(ht,this.driver,G,u,Ua).forEach(me=>{$B(me,l,u)&&Pt.push(me)});let Tt=new Map;w.forEach((me,ae)=>{HB(Tt,this.driver,new Set(me),l,vf)}),Pt.forEach(me=>{let ae=ht.get(me),He=Tt.get(me);ht.set(me,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let Ge=[],It=[],it={};a.forEach(me=>{let{element:ae,player:He,instruction:tt}=me;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Ha(ae,tt.toStyles)),He.disabled=!0,He.overrideTotalTime(tt.totalTime),o.push(He);return}let gt=it;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,tt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===it)Ge.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=ol(ft)),o.push(He)}}else ic(ae,tt.fromStyles),He.onDestroy(()=>Ha(ae,tt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(me=>{let ae=r.get(me.element);if(ae&&ae.length){let He=ol(ae);me.setRealPlayer(He)}}),o.forEach(me=>{me.parentPlayer?me.syncPlayerEvents(me.parentPlayer):me.destroy()});for(let me=0;me!Qt.destroyed);gt.length?toe(this,ae,gt):this.processLeaveNode(ae)}return B.length=0,Ge.forEach(me=>{this.players.push(me),me.onDone(()=>{me.destroy();let ae=this.players.indexOf(me);this.players.splice(ae,1)}),me.play()}),Ge}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==xf;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=nr(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let B=P[Wa];if(B&&B.removedBeforeQueried)return new il(S.duration,S.delay);let F=P!==l,G=noe((n.get(P)||Kie).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=E1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,G);if(S.subTimeline&&o&&g.add(P),F){let Le=new Sf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{nr(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>Xie(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,R1));let w=ol(y);return w.onDestroy(()=>{h.forEach(S=>jm(S,R1)),Ha(l,e.toStyles)}),g.forEach(S=>{nr(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new il(i.duration,i.delay)}},Sf=class{namespaceId;triggerName;element;_player=new il;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>yy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){nr(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function Xie(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function Jie(t){return t??null}function Iy(t){return t&&t.nodeType===1}function eoe(t){return t=="start"||t=="done"}function UB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function HB(t,i,e,n,o){let r=[];e.forEach(l=>r.push(UB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[Wa]=Zie,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>UB(l,r[s++])),a}function WB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function jm(t,i){t.classList?.remove(i)}function toe(t,i,e){ol(e).onDone(()=>t.processLeaveNode(i))}function noe(t){let i=[];return ZB(t,i),i}function ZB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var zm=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Y1(i.body,e,n),this._timelineEngine=new G1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=qB(this._driver,r,l,u);if(l.length)throw yB(o,l);s=Hie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=M1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=M1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function ooe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=V1(i[0]),i.length>1&&(n=V1(i[i.length-1]))):i instanceof Map&&(e=V1(i)),e||n?new roe(t,e,n):null}var roe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}return t})();function V1(t){let i=null;return t.forEach((e,n)=>{aoe(n)&&(i=i||new Map,i.set(n,e))}),i}function aoe(t){return t==="display"||t==="position"}var Fy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ey(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ly=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return T1(i,e)}getParentElement(i){return xy(i)}query(i,e,n){return I1(i,e,n)}computeStyle(i,e,n){return Ey(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Fy);PB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=RB(e).map(w=>new Map(w));g=NB(i,g,u);let y=ooe(i,g);return new Fy(i,g,l,y)}};var ky="@",XB="@.disabled",Vy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==ky&&e==XB?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Q1=class extends Vy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==ky?e.charAt(1)=="."&&e==XB?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==ky){let r=soe(i),a=e.slice(1),s="";return a.charAt(0)!=ky&&([a,s]=loe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function soe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function loe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var By=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new Vy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new Q1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var doe=(()=>{class t extends zm{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Td),we(Id))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function uoe(){return new Ay}function moe(){return new By(p(ih),p(zm),p(be))}var ej=[{provide:Id,useFactory:uoe},{provide:zm,useClass:doe},{provide:bi,useFactory:moe}],poe=[{provide:Td,useClass:K1},{provide:Rl,useValue:"NoopAnimations"},...ej],JB=[{provide:Td,useFactory:()=>new Ly},{provide:Rl,useFactory:()=>"BrowserAnimations"},...ej],tj=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?poe:JB}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:JB,imports:[rh]})}return t})();var hoe=["button"],foe=["*"];function goe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var _oe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),voe=new L("MatButtonToggleGroup");var X1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var boe=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(voe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(_oe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 X1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&rt(hoe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(he("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:foe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,goe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Ot(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),he("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Cr,$b],styles:[`.mat-button-toggle-standalone, +`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Nm],imports:[_s,ho,cd,xr,H3,vf,U3,pt,Cr]})}return t})();function zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Hne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,$ne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},b1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Gl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Gl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,zne,2,0,"uds-translate"),Gt(2,"notEmpty"),A(3,Une,2,0,"uds-translate"),Gt(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Hne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Wne,2,2,"mat-option",9,De),d()(),A(63,Gne,7,1,"mat-form-field",10),A(64,qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,kr,Yt,en,Mt,by,Fm,vf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Yne=t=>["/pools","calendars",t];function Qne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Kne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Qne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){b1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){b1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Kne,7,7,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Yne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Zne='event'+django.gettext("Set time mark")+"",y1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Zne,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Xne=t=>["/pools","accounts",t];function Jne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function eie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Jne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,eie,7,6,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Xne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var C1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,tie,2,0,"uds-translate"),A(2,nie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Kp,Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var x1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){C1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){C1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var iie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:iie,type:Ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function oie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function rie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function cie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,cie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function mie(t,i){}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1&&A(0,rie,5,4,"div")(1,aie,5,3,"div")(2,sie,5,3,"div")(3,lie,4,3,"div")(4,die,7,3,"div")(5,uie,5,3,"div")(6,mie,0,0)(7,pie,5,3,"div")(8,hie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function gie(t,i){if(t&1&&(c(0,"div",10),A(1,fie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function _ie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,oie,1,1,"ng-template",8),c(2,"div",9),fe(3,gie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function vie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,_ie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,vie,9,1,"div",3),Gt(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Wt,Sr,$e,Ke,Fe,qo,ze,st,Yt,en,Mt,Yn,Qn,ii,nl,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var bie=[{path:"",canActivate:[M2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:_y,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:_y,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:_y,data:{list:"users",icon:"users",title:"Users"}},{path:"services/providers",component:WM},{path:"services/providers/:provider/detail",component:$M},{path:"services/providers/:provider",component:WM},{path:"services/providers/:provider/detail/:service",component:$M},{path:"services/servers",component:GM},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:GM},{path:"authenticators",component:qM},{path:"authenticators/:authenticator/detail",component:dy},{path:"authenticators/:authenticator",component:qM},{path:"authenticators/:authenticator/detail/groups/:group",component:dy},{path:"authenticators/:authenticator/detail/users/:user",component:dy},{path:"mfas",component:YM},{path:"mfas/:mfa",component:YM},{path:"osmanagers",component:JM},{path:"osmanagers/:osmanager",component:JM},{path:"connectivity/transports",component:e1},{path:"connectivity/transports/:transport",component:e1},{path:"connectivity/networks",component:t1},{path:"connectivity/networks/:network",component:t1},{path:"connectivity/tunnels",component:n1},{path:"connectivity/tunnels/:tunnel",component:n1},{path:"connectivity/tunnels/:tunnel/detail",component:C3},{path:"pools/service-pools",component:i1},{path:"pools/service-pools/:pool",component:i1},{path:"pools/service-pools/:pool/detail",component:gy},{path:"pools/meta-pools",component:a1},{path:"pools/meta-pools/:metapool",component:a1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:l1},{path:"pools/pool-groups/:poolgroup",component:l1},{path:"pools/calendars",component:c1},{path:"pools/calendars/:calendar",component:c1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:y1},{path:"pools/accounts/:account",component:y1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:x1},{path:"tools/gallery/:image",component:x1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[Wv.forRoot(bie,{}),Wv]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ua="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function w1(t){return{type:Jt.Style,styles:t,offset:null}}var il=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Lm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},bf="!";function aB(t){return new ie(3e3,!1)}function yie(){return new ie(3100,!1)}function Cie(){return new ie(3101,!1)}function xie(t){return new ie(3001,!1)}function wie(t){return new ie(3003,!1)}function Die(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Sie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function ol(t){switch(t.length){case 0:return new il;case 1:return t[0];default:return new Lm(t)}}function M1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case bf:P=e.get(w);break;case Ua:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Sie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&D1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&D1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&D1(e,"destroy",t)));break}}function D1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function T1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Eie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Eie?null:i}function Mie(t){return t.substring(1,6)=="ebkit"}var Ed=null,sB=!1;function OB(t){Ed||(Ed=Tie()||{},sB=Ed.style?"WebkitAppearance"in Ed.style:!1);let i=!0;return Ed.style&&!Mie(t)&&(i=t in Ed.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ed.style)),i}function Tie(){return typeof document<"u"?document.body:null}function I1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function k1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Iie=1e3,A1="{{",kie="}}",R1="ng-enter",Sy="ng-leave",yf="ng-trigger",Cf=".ng-trigger",O1="ng-animating",Ey=".ng-animating";function Cs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:S1(parseFloat(i[1]),i[2])}function S1(t,i){return i==="s"?t*Iie:t}function xf(t,i,e){return t.hasOwnProperty("duration")?t:Rie(t,i,e)}var Aie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Rie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Aie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=S1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=S1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(yie()),a=!0),o<0&&(i.push(Cie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ha(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Vm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=P1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(xie(r))})}var E1=new RegExp(`${A1}\\s*(.+?)\\s*${kie}`,"g");function P1(t){let i=[];if(typeof t=="string"){let e;for(;e=E1.exec(t);)i.push(e[1]);E1.lastIndex=0}return i}function Bm(t,i,e){let n=`${t}`,o=n.replace(E1,(r,a)=>{let s=i[a];return s==null&&(e.push(wie(a)),s=""),s.toString()});return o==n?t:o}var Oie=/-+([a-z0-9])/g;function My(t){return t.replace(Oie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function ar(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Die(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var Z1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return I1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return k1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new il(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Td=class{static NOOP=new Z1},Id=class{};var Pie=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"]),Oy=class extends Id{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Pie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Nie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Fie(n,e,i)):e.push(t),e}function Fie(t,i,e){if(t[0]==":"){let l=Lie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Lie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Vie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new j1(t).build(i,e,n)}var BB="",j1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new z1(e);return this._resetContextStyleTimingState(o),ar(this,Vm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{P1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ar(this,Vm(i.animation),e),o=Nie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Md(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>ar(this,n,e)),options:Md(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Md(i.options)}}visitAnimate(i,e){let n=Uie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:w1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=w1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ua?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(A1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:zie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:ar(this,Vm(i.animation),e),options:Md(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Md(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Md(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=Bie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);let s=ar(this,Vm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Md(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:xf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:ar(this,Vm(i.animation),e),timings:n,options:null}}};function Bie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Vie,"")),t=t.replace(/@\*/g,Cf).replace(/@\w+/g,e=>Cf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function jie(t){return t?G({},t):null}var z1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function zie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Uie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=xf(t,i).duration;return N1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=N1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=xf(e,i);return N1(o.duration,o.delay,o.easing)}function Md(t){return t?(t=G({},t),t.params&&(t.params=jie(t.params))):t={},t}function N1(t,i,e){return{duration:t,delay:i,easing:e}}function X1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Df=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Hie=1,Wie=":enter",$ie=new RegExp(Wie,"g"),Gie=":leave",qie=new RegExp(Gie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new U1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var U1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Df;let g=new H1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?Cs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),ar(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[X1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:Cs(Bm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Cs(n.duration):null,s=n.delay!=null?Cs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ar(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=Cs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?Bm(n,e.params,e.errors):n;return xf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?Cs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),ar(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;ar(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},H1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=Cs(n.duration)),n.delay!=null&&(o.delay=Cs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Bm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new W1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace($ie,"."+this._enterClassName),i=i.replace(qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Hie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ua),this._currentKeyframe.set(e,Ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Yie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=Bm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===bf?i.add(g):h===Ua&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return X1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},W1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return X1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Yie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ua)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var F1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Qie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||F1,w=s&&s.params||F1,S=this.buildStyles(n,w,g),P=l&&l.params||F1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=rr(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=rr(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Qie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var $1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=Bm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Kie(t,i,e){return new G1(t,i,e)}var G1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new $1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Zie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Zie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Xie=new Df,q1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=M1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,R1,Sy,new Map,new Map,n,Xie,o),a.forEach(h=>{let g=rr(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ua))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=ol(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",Jie=".ng-animate-queued",L1="ng-animate-disabled",eoe=".ng-animate-disabled",toe="ng-star-inserted",noe=".ng-star-inserted",ioe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ooe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wa="__ng_removed",Sf=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=aoe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},wf="void",V1=new Sf(wf),Y1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!soe(n))throw IB(n,e);let r=rr(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=rr(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,yf),aa(i,yf+"-"+e),s.set(e,V1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Ef(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,yf),aa(i,yf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Sf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V1),!(u.value===wf)&&l.value===u.value){if(!doe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Ha(i,F)})}return}let y=rr(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,HB),a.onStart(()=>{jm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,Cf,!0);n.forEach(o=>{if(o[Wa])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,wf,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ol(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||V1,h=new Sf(wf),g=new Ef(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[Wa];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Q1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new Y1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[Wa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,L1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),jm(i,L1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[Wa]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,Cf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ol(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Wa];if(e&&e.setForRemoval){if(i[Wa]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(L1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,eoe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?ol(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Df,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,Jie,!0);for(let He=0;He{let He=R1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>jm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>jm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[Wa];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>rr(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{rr(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ua).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,bf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Ha(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=ol(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Ha(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=ol(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?loe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==wf;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=rr(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[Wa];if(j&&j.removedBeforeQueried)return new il(S.duration,S.delay);let F=P!==l,q=coe((n.get(P)||ioe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=M1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Ef(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{rr(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>roe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,O1));let w=ol(y);return w.onDestroy(()=>{h.forEach(S=>jm(S,O1)),Ha(l,e.toStyles)}),g.forEach(S=>{rr(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new il(i.duration,i.delay)}},Ef=class{namespaceId;triggerName;element;_player=new il;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){rr(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function roe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function aoe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function soe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[Wa]=ooe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function jm(t,i){t.classList?.remove(i)}function loe(t,i,e){ol(e).onDone(()=>t.processLeaveNode(i))}function coe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var zm=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Q1(i.body,e,n),this._timelineEngine=new q1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Kie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=T1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=T1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function uoe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=B1(i[0]),i.length>1&&(n=B1(i[i.length-1]))):i instanceof Map&&(e=B1(i)),e||n?new moe(t,e,n):null}var moe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}return t})();function B1(t){let i=null;return t.forEach((e,n)=>{poe(n)&&(i=i||new Map,i.set(n,e))}),i}function poe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return I1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return k1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=uoe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},K1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=hoe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=foe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function hoe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function foe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new K1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var _oe=(()=>{class t extends zm{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Td),we(Id))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function voe(){return new Oy}function boe(){return new zy(p(oh),p(zm),p(be))}var nj=[{provide:Id,useFactory:voe},{provide:zm,useClass:_oe},{provide:bi,useFactory:boe}],yoe=[{provide:Td,useClass:Z1},{provide:Rl,useValue:"NoopAnimations"},...nj],tj=[{provide:Td,useFactory:()=>new By},{provide:Rl,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?yoe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[ah]})}return t})();var Coe=["button"],xoe=["*"];function woe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Doe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Soe=new L("MatButtonToggleGroup");var J1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Eoe=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Soe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Doe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 J1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(Coe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:xoe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,woe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Dr,Gb],styles:[`.mat-button-toggle-standalone, .mat-button-toggle-group { position: relative; display: inline-flex; @@ -5686,7 +5686,7 @@ port=5900 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); } -`],encapsulation:2,changeDetection:0})}return t})(),nj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,boe,pt]})}return t})();var Coe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],xoe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function woe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Doe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Soe=`.mdc-evolution-chip, +`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,Eoe,pt]})}return t})();var Toe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ioe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function koe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Aoe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Roe=`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6234,7 +6234,7 @@ port=5900 img.mdc-evolution-chip__icon { min-height: 0; } -`,Eoe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Moe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Toe(t,i){t&1&&O(0,"span",0)}function Ioe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function koe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Aoe(t,i){t&1&&Ie(0,2)}function Roe(t,i){t&1&&O(0,"span",7)}function Ooe(t,i){if(t&1&&A(0,Aoe,1,0)(1,Roe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Poe(t,i){t&1&&Ie(0,3)}function Noe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var aj=["*"],Foe=`.mat-mdc-chip-set { +`,Ooe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Poe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Noe(t,i){t&1&&O(0,"span",0)}function Foe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Loe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Voe(t,i){t&1&&Ie(0,2)}function Boe(t,i){t&1&&O(0,"span",7)}function joe(t,i){if(t&1&&A(0,Voe,1,0)(1,Boe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function zoe(t,i){t&1&&Ie(0,3)}function Uoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Hoe=`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6302,7 +6302,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`,sj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),ij=new L("MatChipAvatar"),oj=new L("MatChipTrailingIcon"),rj=new L("MatChipEdit"),eT=new L("MatChipRemove"),iT=new L("MatChip"),lj=(()=>{class t{_elementRef=p(se);_parentChip=p(iT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(he("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),oT=(()=>{class t extends lj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(he("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var cj=(()=>{class t extends oT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&he("aria-hidden",null)},features:[Ye([{provide:eT,useExisting:t}]),We]})}return t})(),tT=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_tagName=p(SO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(cm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(_b);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load($r),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&En(r,ij,5)(r,rj,5)(r,oj,5)(r,eT,5)(r,ij,5)(r,oj,5)(r,rj,5)(r,eT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&rt(oT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(Rn("id",o.id),he("role",o.role)("aria-label",o.ariaLabel),Mn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:iT,useExisting:t}])],ngContentSelectors:xoe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Coe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,woe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Doe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[lj],styles:[`.mdc-evolution-chip, +`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),tT=new L("MatChipRemove"),oT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(oT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),rT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends rT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Ye([{provide:tT,useExisting:t}]),We]})}return t})(),nT=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_tagName=p(EO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(cm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(vb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,tT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,tT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(rT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:oT,useExisting:t}])],ngContentSelectors:Ioe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Toe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,koe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Aoe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6850,7 +6850,7 @@ input.mat-mdc-chip-input { img.mdc-evolution-chip__icon { min-height: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var J1=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),rT=(()=>{class t extends tT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Ze(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&En(r,J1,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&rt(J1,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(Rn("id",o.id),he("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ye([{provide:tT,useExisting:t},{provide:iT,useExisting:t}]),We],ngContentSelectors:Moe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Eoe),A(0,Toe,1,0,"span",0),A(1,Ioe,2,0,"span",1),c(2,"span",2),A(3,koe,2,0,"span",3),c(4,"span",4),A(5,Ooe,2,1)(6,Poe,1,0),O(7,"span",5),d()(),A(8,Noe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),he("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[oT,J1],styles:[Soe],encapsulation:2,changeDetection:0})}return t})(),Loe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_dir=p(Cn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new mr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(ln(null),bn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(ln(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new qs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Ze(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Ze(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(ln(null),Ze(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Ze(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&En(r,tT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&he("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:aj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[`.mat-mdc-chip-set { +`],encapsulation:2,changeDetection:0})}return t})();var eT=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),aT=(()=>{class t extends nT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,eT,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(eT,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ye([{provide:nT,useExisting:t},{provide:oT,useExisting:t}]),We],ngContentSelectors:Poe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Ooe),A(0,Noe,1,0,"span",0),A(1,Foe,2,0,"span",1),c(2,"span",2),A(3,Loe,2,0,"span",3),c(4,"span",4),A(5,joe,2,1)(6,zoe,1,0),O(7,"span",5),d()(),A(8,Uoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[rT,eT],styles:[Roe],encapsulation:2,changeDetection:0})}return t})(),Woe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new fr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(ln(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(ln(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new qs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(ln(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,nT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6918,7 +6918,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var nT=class{source;value;constructor(i,e){this.source=i,this.value=e}},dj=(()=>{class t extends Loe{ngControl=p(er,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Xr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Ze(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Ze(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&dn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new nT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&En(r,rT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(he("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Xs,useExisting:t}]),We],ngContentSelectors:aj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[Foe],encapsulation:2,changeDetection:0})}return t})(),uj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(sj),n=p(ta,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?dn(e,...r):!dn(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Rn("id",o.id),he("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[yt]})}return t})();var mj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:sj,useValue:{separatorKeyCodes:[13]}}],imports:[gs,pt]})}return t})();var pj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pj,br,pt]})}return t})();var Boe=["*",[["mat-toolbar-row"]]],joe=["*","mat-toolbar-row"],zoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),fj=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&En(r,zoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Mn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:joe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Boe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { +`],encapsulation:2,changeDetection:0})}return t})();var iT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends Woe{ngControl=p(nr,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&dn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new iT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Xs,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[Hoe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?dn(e,...r):!dn(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[gs,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,xr,pt]})}return t})();var Goe=["*",[["mat-toolbar-row"]]],qoe=["*","mat-toolbar-row"],Yoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Goe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); } @@ -6983,5 +6983,5 @@ input.mat-mdc-chip-input { min-height: var(--mat-toolbar-mobile-height, 56px); } } -`],encapsulation:2,changeDetection:0})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var _j=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:P0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Xh,useValue:udsData.language}],imports:[Xp,l2,Vb,gj,_s,e3,L0,hj,fF,yd,o3,F0,U3,w2,r3,wV,OV,I2,NV,f2,mj,nj,D3,f3,C2,FV,ZV,WV]})}}return t})();function Hoe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Woe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function $oe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Goe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function qoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Yoe(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Ot(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function Qoe(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function Koe(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),qe)}}function Zoe(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,Qoe,3,1,"a",22),A(4,Koe,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function Xoe(t,i){t&1&&A(0,Zoe,7,3,"div",20),t&2&&R(i.title?0:-1)}function Joe(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Ot(8);b("matMenuTriggerFor",n),m(),z("",e.api.user.user," ")}}var vj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Hoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Woe,2,0,"uds-translate")(18,$oe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,Goe,2,0,"uds-translate")(30,qoe,2,0,"uds-translate"),d(),A(31,Yoe,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,Xoe,1,1),Gt(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,Joe,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Ot(4),s=Ot(25);b("action",Pl(o.api.config.urls.change_language),qe),m(),b("name",Pl(o.api.csrfField))("value",Pl(o.api.csrfToken)),m(),b("value",Pl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),qe),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),z("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Lb,Ob,Xr,fj,Fe,yi,nc,xd,K0,Ee,Zp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var bj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function nre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),qe)}}function ire(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),qe)}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,nre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,ire,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),qe),m(4),b("src",o.icon("providers"),qe),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),qe),m(4),b("src",o.icon("servers"),qe),m(4),b("src",o.icon("authentication"),qe),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),qe),m(4),b("src",o.icon("mfas"),qe),m(4),b("src",o.icon("osmanagers"),qe),m(4),b("src",o.icon("connectivity"),qe),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),qe),m(4),b("src",o.icon("networks"),qe),m(4),b("src",o.icon("tunnels"),qe),m(4),b("src",o.icon("poolsmenu"),qe),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),qe),m(4),b("src",o.icon("metas"),qe),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),qe),m(4),b("src",o.icon("accounts"),qe),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),qe),m(4),b("src",o.icon("reports"),qe),m(4),b("src",o.icon("notifiers"),qe),m(4),b("src",o.icon("tokens"),qe),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),qe),m(4),b("src",o.icon("servers"),qe),m(4),b("src",o.icon("configuration"),qe),m(4),b("src",o.icon("flush-cache"),qe))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();function rre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Vn)}}var Cj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,rre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var sre=["backgroundThumbnail"],xj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&rt(sre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},Gw)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var wj=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},qw)},standalone:!1,decls:12,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()()),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[yh,vj,bj,yj,Cj,xj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Dj=(()=>{class t extends cf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Sj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,je,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function cre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),z(" ",e," ")}}var Ej=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,cre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Ot(4);m(2),z(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Wt,$e,Yi,md,Ke,je,st,Yt,Mt,Rm,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Mj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Wt,xr,$e,Yi,Ke,je,st,Yt],encapsulation:2})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Wt,$e,Yi,Ke,yi,je,st,Mr,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Ij=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var kj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,je,st,Yt],encapsulation:2})}}return t})();function dre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.text," ")}}var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[yt],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,dre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,je,st,en,Mt,pi],encapsulation:2})}}return t})();function ure(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),z(" ",e.text," ")}}var Rj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,ure,2,2,"mat-option",2,De),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),z(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,je,st,en,N0,Mt,pi],encapsulation:2})}}return t})();function mre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),z(" ",e," ")}}var Oj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,mre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),z(" ",o.data.title,` -`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Wt,$e,Ke,Fe,yi,Ct,wt,xt,je,Mr,Yt,Ee],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}"]})}}return t})();var Pj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return j(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Oj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[je,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){wF(this.field.value)?this.field.value=fb(this.field.gui.default):this.field.value=fb(this.field.value)}getValue(){return fb(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),z(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ke,nl],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function pre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Vn)}}function hre(t,i){if(t&1&&(c(0,"div"),A(1,pre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function fre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Vn)}}var Fj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,hre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,fre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),z(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,je,st,en,N0,Mt,pi],encapsulation:2})}}return t})();var Lj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Gl("%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=Gl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Gl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Ot(6);m(2),z(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Wt,$e,Ke,je,st,Mr,Yt,_y,Fm,_f],encapsulation:2})}}return t})();function gre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),z(" ",e," ")}}var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,gre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Ot(4);m(2),z(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[je,st,dj,uj,cj,rT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[wj]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:cf,useClass:Dj},pS(hS())],imports:[rh,nB,tj,_j]})}}return t})();MD(jb,[Yo,Sj,Mj,Tj,Ij,kj,Aj,Rj,Pj,Nj,Fj,Lj,Vj,Ej],[]);Hb.production&&void 0;rS().bootstrapModule(Bj,{applicationProviders:[TO()]}).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:N0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Jh,useValue:udsData.language}],imports:[Jp,c2,Bb,vj,_s,t3,V0,gj,gF,yd,r3,L0,W3,D2,a3,DV,PV,k2,FV,g2,hj,oj,S3,g3,x2,LV,XV,$V]})}}return t})();function Koe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Zoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function nre(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ire(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function ore(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,nre,3,1,"a",22),A(4,ire,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function rre(t,i){t&1&&A(0,ore,7,3,"div",20),t&2&&R(i.title?0:-1)}function are(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Koe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Zoe,2,0,"uds-translate")(18,Xoe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,Joe,2,0,"uds-translate")(30,ere,2,0,"uds-translate"),d(),A(31,tre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,rre,1,1),Gt(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,are,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Pl(o.api.config.urls.change_language),it),m(),b("name",Pl(o.api.csrfField))("value",Pl(o.api.csrfToken)),m(),b("value",Pl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Vb,Pb,Jr,_j,Fe,yi,nc,xd,Z0,Ee,Xp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function cre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function dre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof Jo)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(er))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,cre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,dre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},Bp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function pre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,pre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var fre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(fre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},Bp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[Ch,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends df{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function _re(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,_re,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Wt,$e,Yi,md,Ke,ze,st,Yt,Mt,Rm,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Wt,Sr,$e,Yi,Ke,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Wt,$e,Yi,Ke,yi,ze,st,kr,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,ze,st,Yt],encapsulation:2})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,vre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,F0,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,yre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` +`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Wt,$e,Ke,Fe,yi,xt,Dt,wt,ze,kr,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){DF(this.field.value)?this.field.value=gb(this.field.gui.default):this.field.value=gb(this.field.value)}getValue(){return gb(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ke,nl],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function Cre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function xre(t,i){if(t&1&&(c(0,"div"),A(1,Cre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function wre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,xre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,wre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,F0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Gl("%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=Gl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Gl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Wt,$e,Ke,ze,st,kr,Yt,by,Fm,vf],encapsulation:2})}}return t})();function Dre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Dre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,aT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:df,useClass:Mj},hS(fS())],imports:[ah,oB,ij,bj]})}}return t})();TD(zb,[qo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);Wb.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[IO()]}).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index a498e83d8..d2c76ba2d 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -123,6 +123,16 @@ gettext("Edit server"); gettext("Delete server"); gettext("In Maintenance"); gettext("Active"); +gettext("User"); +gettext("Name"); +gettext("Authenticator"); +gettext("State"); +gettext("Last access"); +gettext("Role"); +gettext("Group"); +gettext("Authenticator"); +gettext("Comments"); +gettext("State"); gettext("Last 7 days"); gettext("Last 30 days"); gettext("Last 90 days"); @@ -482,15 +492,6 @@ gettext("Sessions"); gettext("Pools used"); gettext("Hours"); gettext("Avg hours/session"); -gettext("total users"); -gettext("total groups"); -gettext("with services"); -gettext("View authenticators"); -gettext("total pools"); -gettext("View service pools"); -gettext("total services"); -gettext("assigned"); -gettext("View service pools"); gettext("restrained services"); gettext("View service pools"); gettext("Summary"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 0871b6e4f..7a9cda7bf 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + diff --git a/tests/REST/methods/users_groups/test_users.py b/tests/REST/methods/users_groups/test_users.py index 2eafa14b8..853e07f8b 100644 --- a/tests/REST/methods/users_groups/test_users.py +++ b/tests/REST/methods/users_groups/test_users.py @@ -33,6 +33,7 @@ import functools import datetime import logging +from typing_extensions import override from django.utils import timezone @@ -51,6 +52,7 @@ class UsersTest(rest.test.RESTActorTestCase): Test users group rest api """ + @override def setUp(self) -> None: timezone.activate(datetime.timezone.utc) super().setUp() @@ -72,6 +74,20 @@ def test_users(self) -> None: # Locate the user in the auth self.assertTrue(rest.assertions.assert_user_is(self.auth.users.get(name=user['name']), user)) + def test_users_overview_groups(self) -> None: + url = f'authenticators/{self.auth.uuid}/users' + + response = self.client.rest_get(f'{url}/overview') + self.assertEqual(response.status_code, 200) + for user in response.json(): + db_user = self.auth.users.get(name=user['name']) + # Bulk-computed overview groups must match per-user get_groups() semantics + self.assertEqual( + set(user['groups']), + {g.uuid for g in db_user.get_groups()}, + f'Groups of user {user["name"]} do not match', + ) + def test_users_tableinfo(self) -> None: url = f'authenticators/{self.auth.uuid}/users/tableinfo' @@ -91,7 +107,7 @@ def test_users_tableinfo(self) -> None: functools.reduce( lambda x, y: x and y, # pyright: ignore typing.cast( - typing.Iterable[bool], + collections.abc.Iterable[bool], map( lambda f: next(iter(f.keys())) in MUST_HAVE_FIELDS, fields, From 14cf720bab424cdb2175b3adbd26e3d74c95e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janier=20Rodr=C3=ADguez?= Date: Tue, 21 Jul 2026 12:29:08 +0200 Subject: [PATCH 02/14] perf(rest): cache authenticator user/group overviews for the dashboard The dashboard drill-down fans out to every authenticator at once for users, groups and users-with-services, which change seldom yet dominate load time. Memoize the assembled overview lists for a short TTL; flush=1 bypasses. cached_overview is generic and typed via a small Protocol so it preserves the item type without leaking Any. --- src/uds/REST/methods/authenticators.py | 18 ++++++--- src/uds/REST/methods/users_groups.py | 54 ++++++++++++++++++++------ 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/src/uds/REST/methods/authenticators.py b/src/uds/REST/methods/authenticators.py index c1d849f8a..03ffd68c5 100644 --- a/src/uds/REST/methods/authenticators.py +++ b/src/uds/REST/methods/authenticators.py @@ -48,7 +48,7 @@ from uds.models import MFA, Authenticator, Network, Tag from uds.REST.model import ModelHandler -from .users_groups import Groups, Users, UserItem +from .users_groups import Groups, Users, UserItem, cached_overview # Not imported at runtime, just for type checking @@ -343,11 +343,17 @@ def users_with_services(self, item: 'models.Model') -> list[UserItem]: item = ensure.is_instance(item, Authenticator) self.check_access(item, types.permissions.PermissionType.READ) - # all users from this authhenticator with userservices assigned, and not removed or canceled - # userServices is a RelatedManager, so we can filter it directly - users = item.users.filter(userServices__state__in=types.states.State.VALID_STATES).distinct() - - return [Users.as_user_item(i) for i in users] + # userServices is a RelatedManager: users with a valid (not removed/canceled) service assigned + return cached_overview( + self, + f'users_with_services:{item.uuid}', + lambda: [ + Users.as_user_item(i) + for i in item.users.filter( + userServices__state__in=types.states.State.VALID_STATES + ).distinct() + ], + ) @typing.override def test(self, type_: str) -> typing.Any: diff --git a/src/uds/REST/methods/users_groups.py b/src/uds/REST/methods/users_groups.py index fcc888eb4..88aba8315 100644 --- a/src/uds/REST/methods/users_groups.py +++ b/src/uds/REST/methods/users_groups.py @@ -45,6 +45,7 @@ from uds.core.auths.user import User as AUser from uds.core.util import log, ensure, ui as ui_utils +from uds.core.util.cache import Cache from uds.core.util.model import process_uuid, sql_stamp_seconds from uds.models import Authenticator, User, Group, ServicePool, UserService from uds.core.managers.crypto import CryptoManager @@ -61,6 +62,32 @@ # Details of /auth +# Authenticator overviews are hammered by the dashboard drill-down (it asks every +# authenticator at once for users/groups) yet change seldom, so we memoize the +# assembled list for a short while. flush=1 bypasses it. +_overview_cache: typing.Final = Cache('UsersGroupsOverview') + +_T = typing.TypeVar('_T') + + +class _SupportsQueryParams(typing.Protocol): + def query_params(self) -> collections.abc.Mapping[str, typing.Any]: ... + + +def cached_overview( + handler: _SupportsQueryParams, + cache_key: str, + builder: collections.abc.Callable[[], list[_T]], +) -> list[_T]: + flush = str(handler.query_params().get('flush', '')).lower() in ('1', 'true', 'yes') + if not flush: + cached = _overview_cache.get(cache_key, consts.cache.CACHE_NOT_FOUND) + if cached is not consts.cache.CACHE_NOT_FOUND: + return typing.cast('list[_T]', cached) + data = builder() + _overview_cache.put(cache_key, data, consts.cache.SHORT_CACHE_TIMEOUT) + return data + def get_groups_from_metagroup(groups: collections.abc.Iterable[Group]) -> collections.abc.Iterable[Group]: for g in groups: @@ -172,16 +199,18 @@ def get_item_position(self, parent: 'Model', item_uuid: str) -> int: def get_items(self, parent: 'Model') -> types.rest.ItemsResult[UserItem]: parent = ensure.is_instance(parent, Authenticator) - users = self.odata_filter(parent.users.prefetch_related('groups')) - # groups filled in bulk; per-user get_groups() would cost O(N) extra queries - groups_of = bulk_groups_of_users(users, parent) + def build() -> list[UserItem]: + users = self.odata_filter(parent.users.prefetch_related('groups')) + # groups filled in bulk; per-user get_groups() would cost O(N) extra queries + groups_of = bulk_groups_of_users(users, parent) + items: list[UserItem] = [] + for u in users: + item = self.as_user_item(u) + item.groups = groups_of[u.uuid] + items.append(item) + return items - items: list[UserItem] = [] - for u in users: - item = self.as_user_item(u) - item.groups = groups_of[u.uuid] - items.append(item) - return items + return cached_overview(self, f'users:{parent.uuid}:{self._odata}', build) @typing.override def get_item(self, parent: 'Model', item: str) -> UserItem: @@ -439,8 +468,11 @@ def get_item_position(self, parent: 'Model', item_uuid: str) -> int: @typing.override def get_items(self, parent: 'Model') -> types.rest.ItemsResult['GroupItem']: parent = ensure.is_instance(parent, Authenticator) - q = self.odata_filter(parent.groups.all()) - return [self.as_group_item(i) for i in q] + return cached_overview( + self, + f'groups:{parent.uuid}:{self._odata}', + lambda: [self.as_group_item(i) for i in self.odata_filter(parent.groups.all())], + ) @typing.override def get_item(self, parent: 'Model', item: str) -> 'GroupItem': From 6d71081ea857de480196e33a928458bef6e65268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janier=20Rodr=C3=ADguez?= Date: Tue, 21 Jul 2026 12:29:09 +0200 Subject: [PATCH 03/14] chore(admin): rebuild static bundle with dashboard drill-down fixes --- src/uds/static/admin/main.js | 120 +-- src/uds/static/admin/translations-fakejs.js | 788 ++++++++++---------- src/uds/templates/uds/admin/index.html | 2 +- 3 files changed, 461 insertions(+), 449 deletions(-) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index 65873a7a7..d5a0f6cb8 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,8 +1,8 @@ -var b4=Object.defineProperty,y4=Object.defineProperties;var C4=Object.getOwnPropertyDescriptors;var Lf=Object.getOwnPropertySymbols;var VT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var LT=(t,i,e)=>i in t?b4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})VT.call(i,e)&<(t,e,i[e]);if(Lf)for(var e of Lf(i))BT.call(i,e)&<(t,e,i[e]);return t},Ze=(t,i)=>y4(t,C4(i));var uC=(t,i)=>{var e={};for(var n in t)VT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Lf)for(var n of Lf(t))i.indexOf(n)<0&&BT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var _o=null,Vf=!1,mC=1,x4=null,xi=Symbol("SIGNAL");function ut(t){let i=_o;return _o=t,i}function Bf(){return _o}var ul={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ml(t){if(Vf)throw new Error("");if(_o===null)return;_o.consumerOnSignalRead(t);let i=_o.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=_o.recomputing;if(n&&(e=i!==void 0?i.nextProducer:_o.producers,e!==void 0&&e.producer===t)){_o.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===_o&&(!n||D4(o,_o)))return;let r=Zd(_o),a={producer:t,consumer:_o,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};_o.producersTail=a,i!==void 0?i.nextProducer=a:_o.producers=a,r&&HT(t,a)}function jT(){mC++}function gc(t){if(!(Zd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Kd(t)){Qd(t);return}t.producerRecomputeValue(t),Qd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Vf;Vf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||w4(n)}}finally{Vf=i}}function hC(){return _o?.consumerAllowSignalWrites!==!1}function w4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Qd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Ss(t){return t&&zT(t),ut(t)}function zT(t){t.producersTail=void 0,t.recomputing=!0}function pl(t,i){ut(i),t&&UT(t)}function UT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Zd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Kd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function hl(t){if(Zd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function HT(t,i){let e=t.consumersTail,n=Zd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)HT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Zd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Zd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Km(t){x4?.(t)}function D4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Zm(t,i){return Object.is(t,i)}function Xm(t,i){let e=Object.create(S4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),ml(e),e.value===Za)throw e.error;return e.value};return n[xi]=e,Km(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Za=Symbol("ERRORED"),S4=Ze(G({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Za&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function E4(){throw new Error}var WT=E4;function $T(t){WT(t)}function gC(t){WT=t}var M4=null;function _C(t,i){let e=Object.create(Jm);e.value=t,i!==void 0&&(e.equal=i);let n=()=>GT(e);return n[xi]=e,Km(e),[n,a=>_c(e,a),a=>jf(e,a)]}function GT(t){return ml(t),t.value}function _c(t,i){hC()||$T(t),t.equal(t.value,i)||(t.value=i,T4(t))}function jf(t,i){hC()||$T(t),_c(t,i(t.value))}var Jm=Ze(G({},ul),{equal:Zm,value:void 0,kind:"signal"});function T4(t){t.version++,jT(),pC(t),M4?.(t)}var vC=Ze(G({},ul),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Kd(t))return;t.version++;let i=Ss(t);try{t.cleanup(),t.fn()}finally{pl(t,i)}}function _t(t){return typeof t=="function"}function fl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var zf=fl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var y4=Object.defineProperty,C4=Object.defineProperties;var x4=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var VT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var LT=(t,i,e)=>i in t?y4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,$=(t,i)=>{for(var e in i||={})VT.call(i,e)&<(t,e,i[e]);if(Vf)for(var e of Vf(i))BT.call(i,e)&<(t,e,i[e]);return t},Ye=(t,i)=>C4(t,x4(i));var uC=(t,i)=>{var e={};for(var n in t)VT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Vf)for(var n of Vf(t))i.indexOf(n)<0&&BT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var _o=null,Bf=!1,mC=1,w4=null,xi=Symbol("SIGNAL");function ut(t){let i=_o;return _o=t,i}function jf(){return _o}var ul={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ml(t){if(Bf)throw new Error("");if(_o===null)return;_o.consumerOnSignalRead(t);let i=_o.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=_o.recomputing;if(n&&(e=i!==void 0?i.nextProducer:_o.producers,e!==void 0&&e.producer===t)){_o.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===_o&&(!n||S4(o,_o)))return;let r=Xd(_o),a={producer:t,consumer:_o,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};_o.producersTail=a,i!==void 0?i.nextProducer=a:_o.producers=a,r&&HT(t,a)}function jT(){mC++}function gc(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Bf;Bf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||D4(n)}}finally{Bf=i}}function hC(){return _o?.consumerAllowSignalWrites!==!1}function D4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Ss(t){return t&&zT(t),ut(t)}function zT(t){t.producersTail=void 0,t.recomputing=!0}function pl(t,i){ut(i),t&&UT(t)}function UT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function hl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function HT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)HT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){w4?.(t)}function S4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(E4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),ml(e),e.value===Za)throw e.error;return e.value};return n[xi]=e,Zm(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Za=Symbol("ERRORED"),E4=Ye($({},ul),{value:hc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Za&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function M4(){throw new Error}var WT=M4;function $T(t){WT(t)}function gC(t){WT=t}var T4=null;function _C(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>GT(e);return n[xi]=e,Zm(e),[n,a=>_c(e,a),a=>zf(e,a)]}function GT(t){return ml(t),t.value}function _c(t,i){hC()||$T(t),t.equal(t.value,i)||(t.value=i,I4(t))}function zf(t,i){hC()||$T(t),_c(t,i(t.value))}var ep=Ye($({},ul),{equal:Xm,value:void 0,kind:"signal"});function I4(t){t.version++,jT(),pC(t),T4?.(t)}var vC=Ye($({},ul),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Ss(t);try{t.cleanup(),t.fn()}finally{pl(t,i)}}function _t(t){return typeof t=="function"}function fl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Uf=fl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof zf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{qT(r)}catch(a){i=i??[],a instanceof zf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new zf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)qT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Uf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function qT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xd={setTimeout(t,i,...e){let{delegate:n}=Xd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Xd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Hf(t){Xd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var YT=CC("C",void 0,void 0);function QT(t){return CC("E",void 0,t)}function KT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function Jd(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function ZT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Uf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(KT(i),this):this._next(i)}error(i){this.isStopped?wC(QT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(YT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){Wf(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){Wf(n)}else Wf(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){Wf(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function Wf(t){ua.useDeprecatedSynchronousErrorHandling?ZT(t):Hf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Xd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var eu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ur(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?ur:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new ma(e,n,o);return Jd(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=XT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[eu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=XT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function XT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Uf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function JT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var ep=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return JT()(this)}};var tu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=tu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=tu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=tu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var eI=fl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new $f(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new eI}next(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Jd(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new $f(i,e),t})(),$f=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var tp={now(){return(tp.delegate||Date).now()},delegate:void 0};var Vr=class extends Z{constructor(i=1/0,e=1/0,n=tp){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;atI(i)&&t()),i},clearImmediate(t){tI(t)}};var{setImmediate:N4,clearImmediate:F4}=nI,ip={setImmediate(...t){let{delegate:i}=ip;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=ip;return(i?.clearImmediate||F4)(t)},delegate:void 0};var qf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=ip.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(ip.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var nu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};nu.now=tp.now;var _l=class extends nu{constructor(i,e=nu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Yf=class extends _l{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Qf=new Yf(qf);var pa=new _l(gl),iI=pa;var Kf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=tu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(tu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Zf=class extends _l{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Xf=new Zf(Kf);var hi=new dt(t=>t.complete());function Jf(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function eg(t){return _t(AC(t))?t.pop():void 0}function Xa(t){return Jf(AC(t))?t.pop():void 0}function oI(t,i){return typeof AC(t)=="number"?t.pop():i}function aI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function rI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function sI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function lI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof rI=="function"?rI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var iu=t=>t&&typeof t.length=="number"&&typeof t!="function";function tg(t){return _t(t?.then)}function ng(t){return _t(t[eu])}function ig(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function og(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rg=L4();function ag(t){return _t(t?.[rg])}function sg(t){return sI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function lg(t){return _t(t?.getReader)}function fn(t){if(t instanceof dt)return t;if(t!=null){if(ng(t))return V4(t);if(iu(t))return B4(t);if(tg(t))return j4(t);if(ig(t))return cI(t);if(ag(t))return z4(t);if(lg(t))return U4(t)}throw og(t)}function V4(t){return new dt(i=>{let e=t[eu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Hf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function cI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return cI(sg(t))}function H4(t,i){var e,n,o,r;return aI(this,void 0,void 0,function*(){try{for(e=lI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function vo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function cg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>vo(n,t,()=>n.next(o),i),()=>vo(n,t,()=>n.complete(),i),o=>vo(n,t,()=>n.error(o),i)))})}function dg(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dI(t,i){return fn(t).pipe(dg(i),cg(i))}function uI(t,i){return fn(t).pipe(dg(i),cg(i))}function mI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function pI(t,i){return new dt(e=>{let n;return vo(e,i,()=>{n=t[rg](),vo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function ug(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{vo(e,i,()=>{let n=t[Symbol.asyncIterator]();vo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hI(t,i){return ug(sg(t),i)}function fI(t,i){if(t!=null){if(ng(t))return dI(t,i);if(iu(t))return mI(t,i);if(tg(t))return uI(t,i);if(ig(t))return ug(t,i);if(ag(t))return pI(t,i);if(lg(t))return hI(t,i)}throw og(t)}function Hn(t,i){return i?fI(t,i):fn(t)}function Me(...t){let i=Xa(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Es=fl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function mg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Es)}});t.subscribe(r)})}function pg(t){return t instanceof Date&&!isNaN(t)}var W4=fl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??pa,meta:a=null}=pg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=vo(l,r,()=>{try{u.unsubscribe(),fn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ou(t){return et(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function hg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function fg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function bo(...t){let i=Xa(t),e=eg(t),{args:n,keys:o}=hg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>fg(o,a):ur));return e?r.pipe(ou(e)):r}function J4(t,i,e=ur){return n=>{gI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function gI(t,i,e){t?vo(e,t,i):i()}function _I(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;fn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(fn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>_I(n,o,t,e)))}function vl(t=1/0){return wi(ur,t)}function vI(){return vl(1)}function Ja(...t){return vI()(Hn(t,Xa(t)))}function mr(t){return new dt(i=>{fn(t()).subscribe(i)})}function op(...t){let i=eg(t),{args:e,keys:n}=hg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?fg(n,s):s),r.complete())}))}});return i?o.pipe(ou(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ou(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(bI(t,i)):oz(t)?nz.map(bI(t,i)):[];if(!o&&iu(t))return wi(a=>Sc(a,i,e))(fn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function bI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ms(t=0,i,e=iI){let n=-1;return i!=null&&(Jf(i)?e=i:n=i),new dt(o=>{let r=pg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function rp(t=0,i=pa){return t<0&&(t=0),Ms(t,t,i)}function rn(...t){let i=Xa(t),e=oI(t,1/0),n=t;return n.length?n.length===1?fn(n[0]):vl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function yI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||fn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function ru(t,i=pa){return yI(()=>Ms(t,i))}function Io(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=fn(t(a,Io(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function bl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Ts(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function CI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function xI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function wI(t){return et(()=>t)}function OC(t,i){return i?e=>Ja(i.pipe(bn(1),xI()),e.pipe(OC(t))):wi((e,n)=>fn(t(e,n)).pipe(bn(1),wI(e)))}function ap(t,i=pa){let e=Ms(t,i);return OC(()=>e)}function gg(t,i=ur){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function DI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Es}function yl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Is(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):ur,bn(1),e?CI(i):DI(()=>new Es))}function _g(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function vg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function sp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),fn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return fn(i(...e)).subscribe(n)}function bg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,sp({connector:()=>new Vr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function ln(...t){let i=Xa(t);return kt((e,n)=>{(i?Ja(t,e,i):Ja(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;fn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{fn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):ur}var FC;function yg(){return FC}function es(t){let i=FC;return FC=t,i}var SI=Symbol("NotFound");function au(t){return t===SI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),ml(n),n.value===Za)throw n.error;return n.value};return r[xi]=n,Km(n),r}function EI(t,i){gc(t),_c(t,i),Qd(t)}function MI(t,i){if(gc(t),t.value===Za)throw t.error;jf(t,i),Qd(t)}var lz=Ze(G({},ul),{value:hc,dirty:!0,error:null,equal:Zm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Za,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function TI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Mg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${cz(t)}${i?": "+i:""}`}var Co=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function OI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function hp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(hp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function Tg(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function fp(t){return uz(t,Ig)}function ZC(t){return fp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[Ig]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(xg)?t[xg]:null}var Ig=Rn({\u0275prov:Rn}),xg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var gp=Rn({\u0275cmp:Rn}),_p=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),cp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),II=Rn({__NG_ENV_ID__:Rn});function tx(t){return Ag(t,"@NgModule"),t[ex]||null}function ts(t){return Ag(t,"@Component"),t[gp]||null}function kg(t){return Ag(t,"@Directive"),t[_p]||null}function nx(t){return Ag(t,"@Pipe"),t[JC]||null}function Ag(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var PI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return NI("",-200,i)}function Rg(t,i){throw new ie(-201,!1)}function NI(t,i,e){let n=new ie(i,t);return n[PI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[PI]}var jC;function FI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=fp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Rg(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(au(o))return o;throw o}}};function vz(t,i=0){let e=yg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(au(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(FI()||vz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Og(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function vp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function BI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Pg(t,i,e){let n=lu(t,i);return n>=0?t[n|1]=e:(n=~n,jI(t,n,i,e)),n}function Ng(t,i){let e=lu(t,i);if(e>=0)return t[e|1]}function lu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Og(i,a=>{let s=a;wg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&UI(o,r),e}function UI(t,i){for(let e=0;e{i(r,n)})}}function wg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ts(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)wg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Og(r.imports,h=>{wg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&UI(u,i)}if(!s){let u=Cl(o)||(()=>new o);i({provide:o,useFactory:u,deps:yo},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:As,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function HI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function WI(t){return!!t.useClass}var bp=new L(""),Cg={},kI={},VC;function cu(){return VC===void 0&&(VC=new dp),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,su(void 0,this)),o.has("environment")&&this.records.set(Cn,su(void 0,this));let r=this.records.get(bp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,yo,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(au(o))return o;throw o}}destroy(){lp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return lp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){lp(this);let e=es(this),n=ko(void 0),o;try{return i()}finally{es(e),ko(n)}}get(i,e=Mc,n){if(lp(this),i.hasOwnProperty(II))return i[II](this);let o=Tc(n),r,a=es(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&fp(i);h&&this.injectableDefInScope(h)?u=su(HC(i),Cg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?cu():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),es(a)}}resolveInjectorInitializers(){let i=ut(null),e=es(this),n=ko(void 0),o;try{let r=this.get(As,yo,{self:!0});for(let a of r)a()}finally{es(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=su(void 0,Cg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===kI)throw ix("");return e.value===Cg&&(e.value=kI,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=fp(t),e=i!==null?i.factory:Cl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(HI(t))return su(void 0,t.useValue);{let i=dx(t);return su(i,Cg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return Cl(o)||HC(o)}else if(HI(t))n=()=>Bi(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return Cl(o)||HC(o)}return n}function lp(t){if(t.destroyed)throw new ie(-205,!1)}function su(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(lp(t),e=t):e=new zC(t);let n,o=es(e),r=ko(void 0);try{return i()}finally{es(o),ko(r)}}function ux(){return FI()!==void 0||yg()!=null}var va=0,mt=1,Ot=2,ji=3,Br=4,Ro=5,Rc=6,du=7,Di=8,Rs=9,ba=10,Vn=11,uu=12,mx=13,Oc=14,Oo=15,Sl=16,Pc=17,ns=18,Os=19,px=20,ks=21,Fg=22,xl=23,pr=24,Nc=25,El=26,si=27,$I=1,hx=6,Ml=7,yp=8,Fc=9,vi=10;function Ps(t){return Array.isArray(t)&&typeof t[$I]=="object"}function ya(t){return Array.isArray(t)&&t[$I]===!0}function fx(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function mu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function pu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",GI="math";function jr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return jr(i[t])}function zr(t,i){return jr(i[t.index])}function Lg(t,i){return t.data[i]}function Vg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Ur(t,i){let e=i[t];return Ps(e)?e:e[va]}function qI(t){return(t[Ot]&4)===4}function Bg(t){return(t[Ot]&128)===128}function YI(t){return ya(t[ji])}function hr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,Bg(t)&&Vc(t))}function QI(t,i){for(;t>0;)i=i[Oc],t--;return i}function Cp(t){return!!(t[Ot]&9216||t[pr]?.dirty)}function jg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),Cp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=wl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!Bg(i)));)i=wl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[ks]===null&&(t[ks]=[]),t[ks].push(i)}function KI(t,i){if(t[ks]===null)return;let e=t[ks].indexOf(i);e!==-1&&t[ks].splice(e,1)}function wl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[du]??=[]}function wx(t){return t.cleanup??=[]}function ZI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ht={lFrame:lk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function XI(){return Ht.lFrame.elementDepthCount}function JI(){Ht.lFrame.elementDepthCount++}function Dx(){Ht.lFrame.elementDepthCount--}function zg(){return Ht.bindingsEnabled}function Sx(){return Ht.skipHydrationRootTNode!==null}function Ex(t){return Ht.skipHydrationRootTNode===t}function Mx(){Ht.skipHydrationRootTNode=null}function lt(){return Ht.lFrame.lView}function $n(){return Ht.lFrame.tView}function I(t){return Ht.lFrame.contextLView=t,t[Di]}function k(t){return Ht.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ht.lFrame.currentTNode}function ek(){let t=Ht.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function hu(t,i){let e=Ht.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ht.lFrame.isParent}function kx(){Ht.lFrame.isParent=!1}function tk(){return Ht.lFrame.contextLView}function Ax(){return $C}function up(t){let i=$C;return $C=t,i}function fu(){let t=Ht.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ht.lFrame.bindingIndex}function nk(t){return Ht.lFrame.bindingIndex=t}function os(){return Ht.lFrame.bindingIndex++}function xp(t){let i=Ht.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ik(){return Ht.lFrame.inI18n}function ok(t,i){let e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ug(i)}function rk(){return Ht.lFrame.currentDirectiveIndex}function Ug(t){Ht.lFrame.currentDirectiveIndex=t}function ak(t){let i=Ht.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Hg(){return Ht.lFrame.currentQueryIndex}function wp(t){Ht.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ht.lFrame=sk();return n.currentTNode=i,n.lView=t,!0}function Wg(t){let i=sk(),e=t[mt];Ht.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function sk(){let t=Ht.lFrame,i=t===null?null:t.child;return i===null?lk(t):i}function lk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function ck(){let t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=ck;function $g(){let t=ck();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dk(t){return(Ht.lFrame.contextLView=QI(t,Ht.lFrame.contextLView))[Di]}function xa(){return Ht.lFrame.selectedIndex}function Tl(t){Ht.lFrame.selectedIndex=t}function gu(){let t=Ht.lFrame;return Lg(t.tView,t.selectedIndex)}function Gn(){Ht.lFrame.currentNamespace=gx}function wa(){Az()}function Az(){Ht.lFrame.currentNamespace=null}function Nx(){return Ht.lFrame.currentNamespace}var uk=!0;function Gg(){return uk}function Dp(t){uk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||yo,zI(t)],a;return new kc(r,i||cu(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new dp;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Dg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>KI(e,i)}};function Rz(){return new Dg(lt())}var Lx=!1,mk=new L(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(mk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(rs,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Sg(...t){}function Vx(t){let i,e;function n(){t=Sg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pk(t){return queueMicrotask(()=>t()),()=>{t=Sg}}var Bx="isAngularZone",mp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Sg,Sg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[mp]:e,[mp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return AI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),RI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return AI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),RI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function AI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RI(t){t._nesting--,jx(t)}var pp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return hk(t,"__ignore_ng_zone__")}function Vz(t){return hk(t,"__scheduler_tick__")}function hk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),fk={provide:As,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=qg.bind(r),r}function qg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var _u=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new _u(lt(),ki())}var ha=class{},vu=new L("",{factory:()=>!0});var Yg=new L(""),bu=(()=>{class t{internalPendingTasks=p(rs);scheduler=p(ha);errorHandler=p(Zo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Qg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Eg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Ns(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(_u,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Uz(r.view,a,t),n instanceof Dg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Qg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Eg(o)}var gk=Ze(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=up(!1);try{bC(this)}finally{up(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ze(G({},gk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ze(G({},gk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[xl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=_k(n,e),t[xl]??=new Set,t[xl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=_k(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function _k(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Np(t){return{toString:t}.toString()}function Jk(t){let i=Co.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function eA(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var a_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>tA;return t.ngInherit=!0,t})();function tA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=iA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=iA(t)||Jz(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new a_(u&&u.currentValue,e,l===_a),eA(t,i,o,e)}var nA="__ngSimpleChanges__";function iA(t){return t[nA]||null}function Jz(t,i){return t[nA]=i}var vk=[];var Un=function(t,i=null,e){for(let n=0;n=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,bk(s,r)):bk(s,r)}var Cu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function l_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function c_(t){let i=Zx;return Zx=t,i}var sU=256,lA=sU-1,cA=5,lU=0,as={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&lA,r=1<>cA)]|=r}function d_(t,i){let e=dA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(sA(o)){let a=s_(o),s=l_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=fA(o),n===null)return Cu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Cu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Tp(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=c_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&ko(g),c_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&lA:pU:i}function Ck(t,i,e){let n=1<>cA)]&n)}function xk(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return pA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Np(()=>{let i=t.prototype.constructor,e=i[cp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[cp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:Cl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!pu(a);){let s=hA(r,a,e,n|2,as);if(s!==as)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,as,n&-5);if(h!==as)return h}l=fA(a),a=a[Oc]}r=l}return o}function fA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Fp(t){return dU(ki(),t)}function fU(){return Mu(ki(),lt())}function Mu(t,i){return new se(zr(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function gA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var fr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=VI(i);(this._changesDetected=!LI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function _A(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),vA=new Map,_U=0;function vU(){return _U++}function bU(t){vA.set(t[Os],t)}function ew(t){vA.delete(t[Os])}var wk="__ngContext__";function wu(t,i){Ps(i)?(t[wk]=i[Os],bU(i)):t[wk]=i}function bA(t){return CA(t[uu])}function yA(t){return CA(t[Br])}function CA(t){for(;t!==null&&!ya(t);)t=t[Br];return t}var tw;function Vw(t){tw=t}function xA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Al=new L("",{factory:()=>yU}),yU="ng";var w_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Rl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var wA="r";var DA="di";var Bw=new L(""),SA=!1,EA=new L("",{factory:()=>SA});var D_=new L("");var Dk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=Dk.get(t);e||(e=new WeakSet,Dk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function S_(t){return(t.flags&32)===32}var DU=()=>null;function MA(t,i,e=!1){return DU(t,i,e)}function TA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Kg}function E_(t){return SU()?.createHTML(t)||t}var Zg;function IA(){if(Zg===void 0&&(Zg=null,Co.trustedTypes))try{Zg=Co.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function Sk(t){return IA()?.createHTML(t)||t}function Ek(t){return IA()?.createScriptURL(t)||t}var Fs=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mg})`}},iw=class extends Fs{getTypeName(){return"HTML"}},ow=class extends Fs{getTypeName(){return"Style"}},rw=class extends Fs{getTypeName(){return"Script"}},aw=class extends Fs{getTypeName(){return"URL"}},sw=class extends Fs{getTypeName(){return"ResourceURL"}};function gr(t){return t instanceof Fs?t.changingThisBreaksApplicationSecurity:t}function ls(t,i){let e=kA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Mg})`)}return e===i}function kA(t){return t instanceof Fs&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(E_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=E_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(E_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Ls(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Vp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var AA=Ls("area,br,col,hr,img,wbr"),RA=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OA=Ls("rp,rt"),IU=Vp(OA,RA),kU=Vp(RA,Ls("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")),AU=Vp(OA,Ls("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")),Mk=Vp(AA,kU,AU,IU),PA=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Ls("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"),OU=Ls("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"),PU=Vp(PA,RU,OU),NU=Ls("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Tk(i).toLowerCase();if(!Mk.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Tk(i).toLowerCase();Mk.hasOwnProperty(e)&&!AA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Ik(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw NA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw NA(i);return i}function Tk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function NA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Ik(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Xg;function M_(t,i){let e=null;try{Xg=Xg||EU(t);let n=i?String(i):"";e=Xg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Xg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(kk(e)||e);return E_(s)}finally{if(e){let n=kk(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function kk(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function FA(t,i,e){return t.createElement(i,e)}function u_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function LA(t,i,e){t.appendChild(i,e)}function Ak(t,i,e,n,o){n!==null?u_(t,i,e,n,o):LA(t,i,e)}function VA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function BA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Sk(i.sanitize(Ai.HTML,t)||""):ls(t,"HTML")?Sk(gr(t)):M_(xA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":ls(t,"URL")?gr(t):Lp(ga(t))}function jA(t){let i=qw();if(i)return Ek(i.sanitize(Ai.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return Ek(gr(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?jA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function Bp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function zA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var UA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Rk(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Rk(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Sp.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,I_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(I_||{}),Ta=new L(""),Ok=new Set;function Hr(t){Ok.has(t)||(Ok.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var k_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(I_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ip=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Hr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(k_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(_u,null,{optional:!0}),l=new Ip(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var qA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function YA(t,i,e){let n=t.get(qA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(qA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)YA(t,n.animateFns)}function Pk(t,i,e,n){let o=t?.[El]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function yu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ps(o)&&(u=!0,o=o[va]);let h=jr(o);t===0&&n!==null?(Pk(s,n,r,e),a==null?LA(i,n,h):u_(i,n,h,a||null,!0)):t===1&&n!==null?(Pk(s,n,r,e),u_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[El]?.leave?.has(r.index)&&gH(r,h),Sp.delete(h),Nk(s,r,e,g=>{if(Sp.has(h)){Sp.delete(h);return}VA(i,h,u,g)})):t===3&&(Sp.delete(h),Nk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){QA(t,i),i[va]=null,i[Ro]=null}function xH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,R_(t,n,e,1,o,r)}function QA(t,i){i[ba].changeDetectionScheduler?.notify(9),R_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[uu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ps(i))e=i[uu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[Br]&&i!==t;)Ps(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ps(i)&&Hx(i[mt],i),e=i&&i[Br]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function A_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&R_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[pr]&&hl(i[pr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[Sl];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[ns];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Nk(t,i,e,n){let o=t?.[El];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Os]),YA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[El].running=void 0,zc.delete(t[Os]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[du];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[du]=null);let o=i[ks];if(o!==null){i[ks]=null;for(let a=0;asi&&GA(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Tl(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function O_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function jp(t,i,e=zr){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tR(t,i,e,n,o,r){let a=i[mt];if(P_(t,a,i,e,n)){is(t)&&iR(i,t.index);return}t.type&3&&(e=FH(e)),nR(t,i,e,n,o,r)}function nR(t,i,e,n,o,r){if(t.type&3){let a=zr(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function iR(t,i){let e=Ur(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;is(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||d_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function KH(t){let i=t[pr]??Object.create(ZH);return i.lView=t,i}var ZH=Ze(G({},ul),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=wl(t.lView);for(;i&&!lR(i[mt]);)i=wl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[pr]=this}});function lR(t){return t.type!==2}function cR(t){if(t[xl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[xl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function dR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{up(!0),hw(t,i);let n=0;for(;Cp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{up(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;Wg(i);let s=!0,l=null,u=null;r||(lR(t)?(u=GH(i),l=Ss(u)):Bf()===null?(s=!1,u=KH(i),l=Ss(u)):i[pr]&&(hl(i[pr]),i[pr]=null));try{bx(i),nk(t.bindingStartIndex),e!==null&&eR(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&t_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&n_(i,w,0,null),zx(i,0)}if(a||t5(i),cR(i),uR(i,0),t.contentQueries!==null&&TA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&t_(i,w)}else{let w=t.contentHooks;w!==null&&n_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&pR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&t_(i,w)}else{let w=t.viewHooks;w!==null&&n_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Fg]){for(let w of i[Fg])w();i[Fg]=null}r||(aR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(pl(u,l),s&&YH(u)),$g()}}function uR(t,i){for(let e=bA(t);e!==null;e=yA(e))for(let n=vi;n0&&(t[e-1][Br]=n[Br]);let r=vp(t,vi+i);CH(n[mt],n);let a=r[ns];a!==null&&a.detachView(r[mt]),n[ji]=null,n[Br]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][Br]=i),n-1&&(Ap(i,n),vp(e,n))}this._attachedToViewContainer=!1}A_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){jg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,dR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=pu(this._lView),e=this._lView[Sl];e!==null&&!i&&nD(e,this._lView),QA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=pu(this._lView),n=this._lView[Sl];n!==null&&!e&&_R(n,this._lView),jg(this._lView)}};var un=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=zp(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Il(r)}}return t})();function r5(){return N_(ki(),lt())}function N_(t,i){return t.type&4?new un(i,t,Mu(t,i)):null}function Tu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),ik()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=ek();r.injectorIndex=a===null?-1:a.injectorIndex}return hu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[DA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[wA];for(;enull,m5=()=>null;function m_(t,i){return u5(t,i)}function vR(t,i,e){return m5(t,i,e)}var bR=class{},F_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Hp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Ur(i.index,t);return(Ps(e)?e:t)[Vn]}var yR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var o_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,o_,n);return o!==o_||e===o_?o:this.parentInjector.get(i,e,n)}};function p_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(jr(P[t.index])):t.index;SR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function SR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function zk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);SR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function ER(t){return t.debugInfo?.className||t.type.name||null}var h_=class extends Hp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ts(i);return new kl(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&T_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(yR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=MR(t);return FA(i,e,e==="svg"?gx:e==="math"?GI:null)}function MR(t){return(t.selectors[0][0]||"div").toLowerCase()}var kl=class extends F_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(ER(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=O5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u),g=a?.some(Uk)||r?.some(S=>typeof S!="function"&&S.bindings.some(Uk)),y=Zw(null,l,null,512|WA(s),null,null,i,u,e,null,MA(h,e,!0));y[si]=h,Wg(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);BA(u,h,S),wu(h,y),O_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&N5(S,this.ngContentSelectors,n),w=Ur(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),$g()}return new f_(this.componentType,y,!!g)}};function O5(t,i,e,n){let o=t?["ng-version","21.2.17"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function Uk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var f_=class extends bR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Lg(e[mt],si),this.location=Mu(this._tNode,e),this.instance=Ur(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Il(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=P_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Ur(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function N5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=F5}return t})();function F5(){let t=ki();return TR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Mu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(sA(i)){let e=l_(i,this._hostLView),n=s_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Hk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=m_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Du(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new kl(ts(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ts(h.componentType??{}),w=m_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Du(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(YI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Up(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Hk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);n&&(vp(Wx(this._lContainer),e),A_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Ap(this._lContainer,e);return n&&vp(Wx(this._lContainer),e)!=null?new Il(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Hk(t){return t[yp]}function Wx(t){return t[yp]||(t[yp]=[])}function TR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=hR(n,i,null,t),i[t.index]=e,Xw(i,e)),V5(e,i,t,n),new vw(e,t,i)}function L5(t,i){let e=t[Vn],n=e.createComment(""),o=zr(i,t),r=e.parentNode(o);return u_(e,r,n,e.nextSibling(o),!1),n}var V5=z5,B5=()=>!1;function j5(t,i,e){return B5(t,i,e)}function z5(t,i,e,n){if(t[Ml])return;let o;e.type&8?o=jr(n):o=L5(i,e),t[Ml]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function OR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function q5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function PR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):IR(e,t,n,i)}function NR(t,i,e){let n,o=Xm(()=>{n._dirtyCounter();let r=Y5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return NR(!0,!1,t)}function vD(t){return NR(!0,!0,t)}function FR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Y5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:yo;let o=fD(e,n),r=PR(e,n);return o.reset(r,gA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,Q5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>K5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),Q5.delete(r)}));yield Promise.all(o)})}function LR(){return Dw.size===0}function K5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ss=class{},V_=class{};var Rp=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new h_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=zA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ss,useValue:this},{provide:Hp,useValue:this.componentFactoryResolver},...n],hp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Op=class extends V_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Rp(this.moduleType,i,[])}};function VR(t,i,e){return new Rp(t,i,e,!1)}var __=class extends ss{injector;componentFactoryResolver=new h_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ss,useValue:this},{provide:Hp,useValue:this.componentFactoryResolver}],i.parent||cu(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Iu(t,i,e=null){return new __({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Z5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?Iu([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Np(()=>{let i=jR(t),e=Ze(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(Z5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||yo,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Hr("NgStandalone"),zR(e);let n=t.dependencies;return e.directiveDefs=v_(n,BR),e.pipeDefs=v_(n,nx),e.id=e8(e),e})}function BR(t){return ts(t)||kg(t)}function ue(t){return Np(()=>({type:t.type,bootstrap:t.bootstrap||yo,declarations:t.declarations||yo,imports:t.imports||yo,exports:t.exports||yo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function X5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=T_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function J5(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Np(()=>{let i=jR(t);return zR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||yo,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:X5(t.inputs,i),outputs:J5(t.outputs),debugInfo:null}}function zR(t){t.features?.forEach(i=>i(t))}function v_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function e8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=t8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function t8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=xu(o.hostAttrs,e=xu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===yo?[]:t}function a8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function s8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function l8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function HR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=xu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),hu(t,!1);let l=d8(e,i,t,n);Gg()&&iD(e,i,l,t),wu(l,i);let u=hR(l,i,l,t);i[n+si]=u,Xw(i,u),j5(u,t,i)}function c8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Tu(i,g,4,a||null,s||null),zg()&&CR(i,t,y,hr(i.consts,u),rD),oA(i,y)):y=i.data[g],HR(y,t,i,e,n,o,r,l),mu(y)&&O_(i,t,y),u!=null&&jp(t,y,h),y}function Su(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Tu(i,g,4,a||null,s||null),u!=null){let w=hr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function cs(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return cs(t)&&typeof t.set=="function"}var j_=new L(""),z_=new L(""),Wp=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(xo,{optional:!0})??void 0),xD||($R(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(WR),we(z_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),WR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $R(t){xD=t}var xD;function Bs(t){return!!t&&typeof t.then=="function"}function U_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function H_(t){return Dl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(Bs(r))e.push(r);else if(U_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W_=new L("");function GR(){gC(()=>{let t="";throw new ie(600,t)})}function qR(t){return t.isBoundToModule}var m8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Zo);afterRenderManager=p(k_);zonelessEnabled=p(vu);rootEffectScheduler=p(Qg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof F_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Hp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=qR(l)?void 0:this._injector.get(ss),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(j_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Mp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(I_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++Cp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Mp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(W_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Mp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function ku(t,i){let e=lt(),n=os();if(Po(e,n,i)){let o=$n(),r=gu();if(P_(r,o,e,t,i))is(r)&&iR(e,r.index);else{let s=zr(r,e);oR(e[Vn],s,null,r.value,t,i,null)}}return ku}function me(t,i,e,n){let o=lt(),r=os();if(Po(o,r,i)){let a=$n(),s=gu();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function p8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new b_,r??=qk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)Gk(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new b_,r??=qk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)Gk(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Gk(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var b_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Su(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Su(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Hr("NgControlFlow");let e=lt(),n=os(),o=e[n]!==ao?e[n]:-1,r=o!==-1?y_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&gR(r,a),t!==-1){let l=si+t,u=y_(e,l),h=Aw(e[mt],l),g=vR(u,h,e),y=zp(e,h,i,{dehydratedView:g});Up(u,y,a,Du(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=fR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Hr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Su(w,S,t+1,i,e,n,o,hr(S.consts,r),256),P&&Su(w,S,t+2,l,u,h,g,hr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Up(this.lContainer,e,i,Du(this.templateTNode,n)),h8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,f8(this.lContainer,i),g8(this.lContainer,i)}create(i,e){let n=m_(this.lContainer,this.templateTNode.tView.ssrId);return zp(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){A_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Rs];bH(r,o),zc.delete(n[Os]),o.detachedLeaveAnimationFns=void 0}}function f8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[El]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function g8(t,i){return Ap(t,i)}function _8(t,i){return fR(t,i)}function Aw(t,i){return Lg(t,i)}function b(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();tR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){P_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,zg(),e,n):r.data[a];if(is(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(ER(u),()=>(Yk(t,i,o,s,n),c))}}return Yk(t,i,o,s,n),c}function Yk(t,i,e,n,o){if(aD(n,e,t,i,YR),mu(n)){let r=e[mt];O_(r,e,n),jw(r,n,e)}o!=null&&jp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function cn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,YR),n!=null&&jp(o,s),cn}function mn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),mn}function uo(t,i,e,n){return cn(t,i,e,n),mn(),uo}var YR=(t,i,e,n,o)=>(Dp(!0),FA(i[Vn],n,Nx()));function ds(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,zg(),i,e):o.data[r];if(aD(a,n,t,"ng-container",v8),mu(a)){let s=n[mt];O_(s,n,a),jw(s,a,n)}return e!=null&&jp(n,a),ds}function us(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),us}function Ri(t,i,e){return ds(t,i,e),us(),Ri}var v8=(t,i,e,n,o)=>(Dp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();nR(a,n,t,i,n[Vn],e)}return On}var $p="en-US";var b8=$p;function QR(t){typeof t=="string"&&(b8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return KR(o,n,n[Vn],r,t,i,e),x}function Ol(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&DR(r,o,n,e,n[Vn],t,i,r_(r,n,i)),Ol}function KR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=r_(n,i,r),DR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function x8(t){return(t&2)==2}function w8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Eu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function D8(t){return(t&1)===1}function Pw(t){return t|1}function S8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Eu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||lu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=Jg(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=w8(t[s+1],n)}else t[n+1]=Jg(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=Jg(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Qk(t,h,n,!0),Qk(t,h,n,!1),E8(i,h,t,n,r),a=Jg(s,l),r?i.classBindings=a:i.styleBindings=a}function E8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&lu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Qk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Eu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];M8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Eu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function M8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?lu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T8(t){return t.substring(Sa.key,Sa.keyEnd)}function I8(t){return k8(t),ZR(t,XR(t,0,Sa.textEnd))}function ZR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=A8(t,Sa.key=i,e),XR(t,i,e))}function k8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function XR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return JR(t,i,e,!1),Si}function le(t,i){return JR(t,i,null,!0),le}function Tn(t){O8(B8,R8,t,!0)}function R8(t,i){for(let e=I8(i);e>=0;e=ZR(i,e))Pg(t,T8(i),!0)}function JR(t,i,e,n){let o=lt(),r=$n(),a=xp(2);if(r.firstUpdatePass&&tO(r,t,a,n),i!==ao&&Po(o,a,i)){let s=r.data[xa()];nO(r,s,o,o[Vn],t,o[a+1]=z8(i,e),n,a)}}function O8(t,i,e,n){let o=$n(),r=xp(2);o.firstUpdatePass&&tO(o,null,r,n);let a=lt();if(e!==ao&&Po(a,r,e)){let s=o.data[xa()];if(iO(s,n)&&!eO(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Tg(l,e||"")),Rw(o,s,a,e,n)}else j8(o,s,a,a[Vn],a[r+1],a[r+1]=V8(t,i,e),n,r)}}function eO(t,i){return i>=t.expandoStartIndex}function tO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=eO(t,e);iO(r,n)&&i===null&&!a&&(i=!1),i=P8(o,r,i,n),S8(o,r,i,e,a,n)}}function P8(t,i,e,n){let o=ak(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Pp(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=N8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Pp(l,i.attrs,n),F8(t,i,n,l))}else r=L8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function N8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Eu(n)!==0)return t[Uc(n)]}function F8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function L8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===ao&&(y=g?yo:void 0);let w=g?Ng(y,n):h===n?y:void 0;if(u&&!C_(w)&&(w=Ng(l,n)),C_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Eu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Ng(l,n))}return s}function C_(t){return t!==void 0}function z8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=hp(gr(t)))),t}function iO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Tu(n,o,1,i,null):n.data[o],a=U8(n,e,r,i);e[o]=a,Gg()&&iD(n,e,a,r),hu(r,!1)}var U8=(t,i,e,n)=>(Dp(!0),GU(i[Vn],n));function H8(t,i,e,n=""){return Po(t,os(),e)?i+ga(e)+n:ao}function W8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return xp(2),s?i+ga(e)+n+ga(o)+r:ao}function $8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return xp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:ao}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=H8(n,t,i,e);return o!==ao&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=W8(r,t,i,e,n,o);return a!==ao&&MD(r,xa(),a),No}function Y_(t,i,e,n,o,r,a){let s=lt(),l=$8(s,t,i,e,n,o,r,a);return l!==ao&&MD(s,xa(),l),Y_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=gu();tR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return KR(n,e,e[Vn],o,t,i),te}function Pl(t){return Po(lt(),os(),t)?ga(t):ao}function Zk(t,i,e){let n=$n();n.firstCreatePass&&oO(i,n.data,n.blueprint,Ca(t),e)}function oO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(d_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(d_(s,a),r,l);let F=Y8(o?q8:G8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=rO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=WI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function rO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Zk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Zk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=v_(i,BR),n.pipeDefs=v_(e,nx)}function Gc(t,i){let e=fu()+t,n=lt();return n[e]===ao?pD(n,e,i()):D5(n,e)}function mo(t,i,e){return sO(lt(),fu(),t,i,e)}function ID(t,i,e,n){return lO(lt(),fu(),t,i,e,n)}function aO(t,i){let e=t[i];return e===ao?void 0:e}function sO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):aO(t,a+1)}function lO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):aO(t,s+2)}function Gt(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=Q8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=Cl(n.type,!0)),a,s=ko(D);try{let l=c_(!1),u=r();return c_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function Q8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Vg(o,n);return cO(o,n)?sO(o,fu(),i,r.transform,e,r):r.transform(e)}function Q_(t,i,e,n){let o=t+si,r=lt(),a=Vg(r,o);return cO(r,o)?lO(r,fu(),i,a.transform,e,n,a):a.transform(e,n)}function cO(t,i){return t[mt].data[i].pure}function Gp(t,i){return N_(t,i)}var e_=null;function dO(t){e_!==null&&(t.defaultEncapsulation!==e_.defaultEncapsulation||t.preserveWhitespaces!==e_.preserveWhitespaces)||(e_=t)}var x_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Op(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=zA(o.declarations).reduce((a,s)=>{let l=ts(s);return l&&a.push(new kl(l)),a},[]);return new x_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uO=new L("");var mO=(()=>{class t{applicationErrorHandler=p(Zo);appRef=p(Ui);taskService=p(rs);ngZone=p(be);zonelessEnabled=p(vu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(mp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Yg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?pk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(mp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pO(){return[{provide:ha,useExisting:mO},{provide:be,useClass:pp},{provide:vu,useValue:!0}]}function K8(){return typeof $localize<"u"&&$localize.locale||$p}var Au=new L("",{factory:()=>p(Au,{optional:!0,skipSelf:!0})||K8()});function pn(t){return TI(t)}function Fo(t,i){return Xm(t,i?.equal)}var Z8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,Z8,i?.equal);return hO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return hO(e,t.debugName)}}function hO(t,i){let e=t[xi],n=t;return n.set=o=>EI(e,o),n.update=o=>MI(e,o),n.asReadonly=qg.bind(t),n}var DO=Symbol("InputSignalNode#UNSET"),c6=Ze(G({},Jm),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function SO(t,i){let e=Object.create(c6);e.value=t,e.transformFn=i?.transform;function n(){if(ml(e),e.value===DO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Fp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function fO(t,i){return SO(t,i)}function d6(t){return SO(DO,t)}var MO=(fO.required=d6,fO);function gO(t,i){return _D(i)}function u6(t,i){return vD(i)}var Yp=(gO.required=u6,gO);function _O(t,i){return _D(i)}function m6(t,i){return vD(i)}var TO=(_O.required=m6,_O);function p6(t,i,e){let n=new Op(e);return Promise.resolve(n)}function vO(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var h6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Zo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f6=new L("",{factory:()=>!1});function g6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ze(G({},kO()),{scheduleInRootZone:i})),[{provide:vu,useValue:!1},{provide:be,useFactory:t},{provide:As,multi:!0,useFactory:()=>{let e=p(h6,{optional:!0});return()=>e.initialize()}},{provide:As,multi:!0,useFactory:()=>{let e=p(_6);return()=>{e.initialize()}}},{provide:Yg,useValue:i??Lx}]}function IO(t){let i=t?.scheduleInRootZone,e=g6({ngZoneFactory:()=>{let n=kO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Hr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Dl([{provide:f6,useValue:!0},e])}function kO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var K_=new L(""),v6=new L("");function qp(t){return!t.moduleRef}function b6(t){let i=qp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{qp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),qp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(K_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(K_);a.add(r),t.moduleRef.onDestroy(()=>{Mp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return C6(n,e,()=>{let r=i.get(rs),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Au,$p);if(QR(l||$p),!i.get(v6,!0))return qp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(qp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return AO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var AO;function bO(){AO=y6}function y6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function C6(t,i,e){try{let n=e();return Bs(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var RO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[pO(),...n?.applicationProviders??[],fk],r=VR(e.moduleType,this.injector,o);return bO(),b6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return bO(),p6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(K_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function x6(t){if(HD())throw new ie(400,!1);GR(),zD=t;let i=t.get(RO);return S6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??x6(w6(s,n))}return D6(o)}}function w6(t=[],i){return Te.create({name:i,providers:[{provide:bp,useValue:"platform"},{provide:K_,useValue:new Set([()=>zD=null])},...t]})}function D6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(RO)??null}function S6(t){let i=t.get(w_,null);zi(t,()=>{i?.forEach(e=>e())})}var E6=1e4;var F0e=E6-1e3;var Qe=(()=>{class t{static __NG_ELEMENT_ID__=M6}return t})();function M6(t){return T6(ki(),lt(),(t&16)===16)}function T6(t,i,e){if(is(t)&&!e){let n=Ur(t.index,i);return new Il(n,n)}else if(t.type&175){let n=i[Oo];return new Il(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},I6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||I6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new Z_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Z_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},Z_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function CO(){return new js([new OD])}var js=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:CO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function xO(){return new J_([new LD])}var J_=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:xO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||xO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var OO=UD(null,"core",[]),PO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),NO=new Set,k6=Ze(G({},Jm),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ml(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??NO)e()}finally{hl(i)}}};function FO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(k_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(_u,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function ev(t,i){let e=ts(t),n=i.elementInjector||cu();return new kl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function LO(t){let i=ts(t);if(!i)return null;let e=new kl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var VO=null;function _r(){return VO}function WD(t){VO??=t}var Qp=class{},zs=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(BO),providedIn:"platform"})}return t})(),$D=new L(""),BO=(()=>{class t extends zs{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function tv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function jO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(iv),providedIn:"root"})}return t})(),nv=new L(""),iv=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return tv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(nv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ms=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=O6(jO(zO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(R6(this._basePath,zO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=tv;static stripTrailingSlash=jO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=$({token:t,factory:()=>A6(),providedIn:"root"})}return t})();function A6(){return new ms(we(Aa))}function R6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function zO(t){return t.replace(/\/index\.html$/,"")}function O6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=tv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(nv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,UO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=UO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):UO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Kp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(J_),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Zp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function P6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return pn(()=>i.subscribe({next:e,error:n}))}dispose(i){pn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},N6=new YD,F6=new qD,Xp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Zo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Bs(e))return N6;if(U_(e))return F6;throw P6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Qe,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function L6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=HO;transform(e,n=HO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(L6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(J_,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function HO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function eh(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function WO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ze(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=B6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ze(G({},e),{left:o-a[0],top:r-a[1]}))}};function B6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var th=class{_doc;constructor(i){this._doc=i}manager},ov=(()=>{class t extends th{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),sv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof ov));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof ov);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(sv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function $O(t){for(let i of t)i.remove()}function GO(t,i){let e=i.createElement("style");return e.textContent=t,e}function j6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,j6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,GO);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&($O(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$O(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,GO(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Al),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var YO="%COMP%",z6=`_nghost-${YO}`,U6=`_ngcontent-${YO}`,H6=!0,W6=new L("",{factory:()=>H6});function $6(t){return U6.replace(rS,t)}function G6(t){return z6.replace(rS,t)}function QO(t,i){return i.map(e=>e.replace(rS,t))}var oh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new nh(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof av?o.applyToHost(e):o instanceof ih&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new av(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new rv(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new rv(l,e,n,a,s,this.nonce,g);default:r=new ih(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Al),we(W6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),nh=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function qO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var rv=class extends nh{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=QO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},ih=class extends nh{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?QO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},av=class extends ih{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=$6(u),this.hostAttr=G6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var lv=class t extends Qp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=q6();return e==null?null:Y6(e)}resetBaseElement(){rh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return eh(document.cookie,i)}},rh=null;function q6(){return rh=rh||document.head.querySelector("base"),rh?rh.getAttribute("href"):null}function Y6(t){return new URL(t,document.baseURI).pathname}var cv=class{addToWindow(i){Co.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},Co.getAllAngularTestabilities=()=>i.getAllTestabilities(),Co.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Co.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Co.frameworkStabilizers||(Co.frameworkStabilizers=[]),Co.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Q6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),KO=["alt","control","meta","shift"],K6={"\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"},Z6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ZO=(()=>{class t extends th{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),KO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=K6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),KO.forEach(a=>{if(a!==o){let s=Z6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function X6(){lv.makeCurrent()}function J6(){return new Ao}function eW(){return Vw(document),document}var tW=[{provide:Hc,useValue:XD},{provide:w_,useValue:X6,multi:!0},{provide:ke,useFactory:eW}],aS=UD(OO,"browser",tW);var nW=[{provide:z_,useClass:cv},{provide:j_,useClass:Wp},{provide:Wp,useClass:Wp}],iW=[{provide:bp,useValue:"root"},{provide:Ao,useFactory:J6},{provide:sv,useClass:ov,multi:!0},{provide:sv,useClass:ZO,multi:!0},oh,oS,iS,{provide:bi,useExisting:oh},{provide:Yc,useClass:Q6},[]],ah=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...iW,...nW],imports:[Jp,PO]})}return t})();var Xo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var uv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},mv=class{encodeKey(i){return XO(i)}encodeValue(i){return XO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function oW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var rW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XO(t){return encodeURIComponent(t).replace(rW,(i,e)=>aW[e]??i)}function dv(t){return`${t}`}var Us=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new mv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=oW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(dv):[dv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(dv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(dv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function sW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function JO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eP(t){return typeof Blob<"u"&&t instanceof Blob}function tP(t){return typeof FormData<"u"&&t instanceof FormData}function lW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var nP="Content-Type",iP="Accept",rP="text/plain",aP="application/json",cW=`${aP}, ${rP}, */*`,Ou=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(sW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Xo,this.context??=new uv,!this.params)this.params=new Us,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Nu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Xo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},pv=class t extends Nu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},sh=class t extends Nu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Pu=class extends Nu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},dW=200,uW=204;var mW=new L("");var pW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(iP)||a.setRequestHeader(iP,cW),!e.headers.has(nP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(nP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Xo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new pv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==uW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?dW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(pW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new sh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Pu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Pu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Pu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sP(t,i){return i(t)}function hW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function fW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var lP=new L(""),cS=new L("",{factory:()=>[]}),cP=new L(""),dS=new L("",{factory:()=>!0});function gW(){let t=null;return(i,e)=>{t===null&&(t=(p(lP,{optional:!0})??[]).reduceRight(hW,sP));let n=p(bu);if(p(dS)){let r=n.add();return t(i,e).pipe(yl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var hv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(bu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(cP,[])]));this.chain=n.reduceRight((o,r)=>fW(o,r,this.injector),sP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(yl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(hv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Fu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Ou)r=e;else{let l;o.headers instanceof Xo?l=o.headers:l=new Xo(o.headers);let u;o.params&&(o.params instanceof Us?u=o.params:u=new Us({fromObject:o.params})),r=new Ou(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(bl(l=>this.handler.handle(l)));if(e instanceof Ou||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof sh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Us().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _W=new L("",{factory:()=>!0}),vW="XSRF-TOKEN",bW=new L("",{factory:()=>vW}),yW="X-XSRF-TOKEN",CW=new L("",{factory:()=>yW}),xW=(()=>{class t{cookieName=p(bW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=eh(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(xW),o},providedIn:"root"})}return t})();function wW(t,i){if(!p(_W)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(zs).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(dP).getToken(),n=p(CW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function DW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Fu,hv,{provide:mS,useExisting:hv},{provide:uS,useFactory:()=>p(mW,{optional:!0})??p(lS)},{provide:cS,useValue:wW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var oP=new L("");function fS(){return DW(pS.LegacyInterceptors,[{provide:oP,useFactory:gW},{provide:cS,useExisting:oP,multi:!0}])}var mP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(SW),o},providedIn:"root"})}return t})(),SW=(()=>{class t extends Hs{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return ls(n,"HTML")?gr(n):M_(this._doc,String(n)).toString();case Ai.STYLE:return ls(n,"Style")?gr(n):n;case Ai.SCRIPT:if(ls(n,"Script"))return gr(n);throw new ie(5200,!1);case Ai.URL:return ls(n,"URL")?gr(n):Lp(String(n));case Ai.RESOURCE_URL:if(ls(n,"ResourceURL"))return gr(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",yh=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function yv(t){return new Promise((i,e)=>{t.pipe(Is()).subscribe({next:n=>i(n),error:n=>e(n)})})}function EW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function MW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:Bs(t)?Hn(Promise.resolve(t)):Me(t)}function xP(t){return Dc(t)?yv(t):Promise.resolve(t)}var TW={exact:SP,subset:EP},wP={exact:IW,subset:kW,ignored:()=>!0},DP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pP(t,i,e){return TW[e.paths](t.root,i.root,e.matrixParams)&&wP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function IW(t,i){return ps(t,i)}function SP(t,i,e){if(!Kc(t.segments,i.segments)||!_v(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!SP(t.children[n],i.children[n],e))return!1;return!0}function kW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>CP(t[e],i[e]))}function EP(t,i,e){return MP(t,i,i.segments,e)}function MP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!_v(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!_v(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!EP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!_v(t.segments,o,n)||!t.children[Vt]?!1:MP(t.children[Vt],i,r,n)}}function _v(t,i,e){return i.every((n,o)=>wP[e](t[o].parameters,n.parameters))}var br=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return OW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vv(this)}},Nl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return IP(this)}};function AW(t,i){return Kc(t,i)&&t.every((e,n)=>ps(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function RW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Vl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new $s,providedIn:"root"})}return t})(),$s=class{parse(i){let e=new DS(i);return new br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${ch(i.root,!0)}`,n=FW(i.queryParams),o=typeof i.fragment=="string"?`#${PW(i.fragment)}`:"";return`${e}${n}${o}`}},OW=new $s;function vv(t){return t.segments.map(i=>IP(i)).join("/")}function ch(t,i){if(!t.hasChildren())return vv(t);if(i){let e=t.children[Vt]?ch(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${ch(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=RW(t,(n,o)=>o===Vt?[ch(t.children[Vt],!1)]:[`${o}:${ch(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${vv(t)}/${e[0]}`:`${vv(t)}/(${e.join("//")})`}}function TP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fv(t){return TP(t).replace(/%3B/gi,";")}function PW(t){return encodeURI(t)}function wS(t){return TP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bv(t){return decodeURIComponent(t)}function hP(t){return bv(t.replace(/\+/g,"%20"))}function IP(t){return`${wS(t.path)}${NW(t.parameters)}`}function NW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function FW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${fv(e)}=${fv(o)}`).join("&"):`${fv(e)}=${fv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var LW=/^[^\/()?;#]+/;function _S(t){let i=t.match(LW);return i?i[0]:""}var VW=/^[^\/()?;=#]+/;function BW(t){let i=t.match(VW);return i?i[0]:""}var jW=/^[^=?&#]+/;function zW(t){let i=t.match(jW);return i?i[0]:""}var UW=/^[^&#]+/;function HW(t){let i=t.match(UW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Nl(bv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=BW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[bv(e)]=bv(n)}parseQueryParam(i){let e=zW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=HW(this.remaining);a&&(n=a,this.capture(n))}let o=hP(e),r=hP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function kP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function AP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=AP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return WW(e)}function WW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Fl(t){return t instanceof br}function RP(t,i,e=null,n=null,o=new $s){let r=OP(t);return PP(r,i,e,n,o)}function OP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=kP(n);return i??o}function PP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=$W(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=GW(a,r,t),l=s.processChildren?uh(s.segmentGroup,s.index,a.commands):FP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function Cv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ph(t){return typeof t=="object"&&t!=null&&t.outlets}function fP(t,i,e){t||="\u0275";let n=new br;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>fP(u,g,r)):fP(u,h,r);let s;t===i?s=e:s=NP(t,i,e);let l=kP(AP(s));return new br(l,a,o)}function NP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=NP(r,i,e)}),new In(t.segments,n)}var xv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Cv(n[0]))throw new ie(4003,!1);let o=n.find(ph);if(o&&o!==MW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $W(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new xv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new xv(e,i,n)}var Vu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function GW(t,i,e){if(t.isAbsolute)return new Vu(i,!0,0);if(!e)return new Vu(i,!1,NaN);if(e.parent===null)return new Vu(e,!0,0);let n=Cv(t.commands[0])?0:1,o=e.segments.length-1+n;return qW(e,o,t.numberOfDoubleDots)}function qW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Vu(n,!1,o-r)}function YW(t){return ph(t[0])?t[0].outlets:{[Vt]:t}}function FP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return uh(t,i,e);let n=QW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=uh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=FP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function QW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(ph(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!_P(l,u,a))return r;n+=2}else{if(!_P(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function gP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function _P(t,i,e){return t==e.path&&ps(i,e.parameters)}var Bu="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),yr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ll=class extends yr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jo=class extends yr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wo||{}),zu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(zu||{}),Wr=class extends yr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function LP(t){return t instanceof Wr&&(t.code===wo.Redirect||t.code===wo.SupersededByNewNavigation)}var hs=class extends yr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends yr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},hh=class extends yr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wv=class extends yr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends yr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Sv=class extends yr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ev=class extends yr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Tv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Iv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kv=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Hu=class{},fh=class{},Wu=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function ZW(t){return!(t instanceof Hu)&&!(t instanceof Wu)&&!(t instanceof fh)}var Ov=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Ov(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var vr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Lu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var gh=class extends Pv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function VP(t,i){let e=XW(t,i),n=new on([new Nl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new gh(new vr(l,[]),e)}function XW(t,i){let e={},n={},o={},a=new $u([],e,o,"",n,Vt,t,null,{},i);return new _h("",new vr(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[yh]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&jP(o)&&(n.resolve[yh]=o.title),n}var $u=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[yh]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},_h=class extends Pv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return BP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function BP(t){let i=t.children.length>0?` { ${t.children.map(BP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ps(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ps(i.params,e.params)||t.paramsSubject.next(e.params),EW(i.url,e.url)||t.urlSubject.next(e.url),ps(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=ps(t.params,i.params)&&AW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function jP(t){return typeof t.title=="string"||t.title===null}var zP=new L(""),Ch=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=MO();parentContexts=p(ed);location=p(En);changeDetector=p(Qe);inputBinder=p(xh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===zP?this.outletData:this.parent.get(i,e)}},xh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=bo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=LO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[Ch],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ze(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function JW(t,i,e){let n=vh(t,i._root,e?e._root:void 0);return new gh(n,i)}function vh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=e$(t,i,e);return new vr(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>vh(t,s)),a}}let n=t$(i.value),o=i.children.map(r=>vh(t,r));return new vr(n,o)}}function e$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return vh(t,n,o);return vh(t,n)})}function t$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var Gu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},UP="ngNavigationCancelingError";function Nv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Fl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=HP(!1,wo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function HP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UP]=!0,e.cancellationCode=i,e}function n$(t){return WP(t)&&Fl(t.url)}function WP(t){return!!t&&t[UP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Lu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Lu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Rv(r.value.snapshot))}),i.children.length&&this.forwardEvent(new kv(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Fv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},ju=class{component;route;constructor(i,e){this.component=i,this.route=e}};function i$(t,i,e){let n=t._root,o=i?i._root:null;return dh(n,o,e,[n.value])}function o$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Yu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function dh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Lu(i);return t.children.forEach(a=>{r$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>mh(s,e.getContext(a),o)),o}function r$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=a$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Fv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?dh(t,i,s?s.children:null,n,o):dh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new ju(s.outlet.component,a))}else a&&mh(i,s,o),o.canActivateChecks.push(new Fv(n)),r.component?dh(t,null,s?s.children:null,n,o):dh(t,null,e,n,o);return o}function a$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!ps(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!ps(t.queryParams,i.queryParams);default:return!TS(t,i)}}function mh(t,i,e){let n=Lu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?mh(a,i.children.getContext(r),e):mh(a,null,e):mh(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new ju(i.outlet.component,o)):e.canDeactivateChecks.push(new ju(null,o)):e.canDeactivateChecks.push(new ju(null,o))}function wh(t){return typeof t=="function"}function s$(t){return typeof t=="boolean"}function l$(t){return t&&wh(t.canLoad)}function c$(t){return t&&wh(t.canActivate)}function d$(t){return t&&wh(t.canActivateChild)}function u$(t){return t&&wh(t.canDeactivate)}function m$(t){return t&&wh(t.canMatch)}function $P(t){return t instanceof Es||t?.name==="EmptyError"}var gv=Symbol("INITIAL_VALUE");function qu(){return yn(t=>bo(t.map(i=>i.pipe(bn(1),ln(gv)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===gv)return gv;if(e===!1||p$(e))return e}return!0}),At(i=>i!==gv),bn(1)))}function p$(t){return Fl(t)||t instanceof Gu}function GP(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function qP(t){return Xe(GP(t))}function h$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ze(G({},i),{guardsResult:!0})):f$(r,e,n).pipe(wi(a=>a&&s$(a)?g$(e,o,t):Me(a)),et(a=>Ze(G({},i),{guardsResult:a})))})}function f$(t,i,e){return Hn(t).pipe(wi(n=>C$(n.component,n.route,e,i)),Is(n=>n!==!0,!0))}function g$(t,i,e){return Hn(i).pipe(bl(n=>Ja(v$(n.route.parent,e),_$(n.route,e),y$(t,n.path),b$(t,n.route))),Is(n=>n!==!0,!0))}function _$(t,i){return t!==null&&i&&i(new Av(t)),Me(!0)}function v$(t,i){return t!==null&&i&&i(new Iv(t)),Me(!0)}function b$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>mr(()=>{let r=i._environmentInjector,a=Yu(o,r),s=c$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(Is())}));return Me(n).pipe(qu())}function y$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>o$(r)).filter(r=>r!==null).map(r=>mr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Yu(s,l),h=d$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(Is())});return Me(a).pipe(qu())}));return Me(o).pipe(qu())}function C$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Yu(a,s),u=u$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(Is())});return Me(r).pipe(qu())}function x$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Yu(s,t),u=l$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(qP(o)):h});return Me(a).pipe(qu(),YP(n))}function YP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Nv(t,i)}),et(i=>i===!0))}function w$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Yu(l,t),h=m$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(qP(r))});return Me(s).pipe(qu(),YP(n))}var Ws=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},bh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function D$(t){throw new ie(4e3,!1)}function S$(t){throw HP(!1,wo.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw D$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield E$(e,o,r);if(a instanceof br)throw new bh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new bh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new br(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function E$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return yv(Jc(zi(e,()=>n(i))))}function M$(t,i){return t.providers&&!t._injector&&(t._injector=Iu(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function T$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function I$(t,i,e,n,o,r,a){let s=KP(t,i,e);if(!s.matched)return Me(s);let l=QP(r(s));return n=M$(i,n),w$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:G({},RS)))}function KP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||yP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function vP(t,i,e,n,o){return e.length>0&&R$(t,e,n,o)?{segmentGroup:new In(i,A$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&O$(t,e,n)?{segmentGroup:new In(t.segments,k$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function k$(t,i,e,n){let o={};for(let r of e)if(Vv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return G(G({},n),o)}function A$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function R$(t,i,e,n){return e.some(o=>!Vv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function O$(t,i,e){return e.some(n=>Vv(t,i,n))}function Vv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function P$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function N$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var F$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=vP(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new vr(n,e),r=new _h("",o),a=RP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new $u([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof bh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ws?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof vr?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=T$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=ZP(a);return L$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof Ws||$P(u))continue;throw u}if(P$(n,o,r))return new OS;throw new Ws(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Vv(o,r,n)))throw new Ws(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new Ws(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=KP(e,o,r);if(!l)throw new Ws(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>F$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,QP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new $u(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,B$(e),Ra(e),e.component??e._loadedComponent??null,e,j$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield yv(I$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Ws(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=vP(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new vr(S,ve)}if(u.length===0&&j.length===0)return new vr(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new vr(S,q instanceof vr?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield yv(x$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw S$(e)}return{routes:[],injector:i}})}};function L$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function V$(t){let i=t.value.routeConfig;return i&&i.path===""}function ZP(t){let i=[],e=new Set;for(let n of t){if(!V$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=ZP(n.children);i.push(new vr(n.value,o))}return i.filter(n=>!e.has(n))}function B$(t){return t.data||{}}function j$(t){return t.resolve||{}}function z$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield N$(t,i,e,n,s.extractedUrl,o,r,a);return Ze(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function U$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of XP(s))r.add(l);let a=0;return Hn(r).pipe(bl(s=>o.has(s)?H$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),_g(1),wi(s=>a===r.size?Me(i):hi))})}function XP(t){let i=t.children.map(e=>XP(e)).flat();return[t,...i]}function H$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!jP(n)&&(o[yh]=n.title),mr(()=>(t.data=NS(t,t.parent,e).resolve,W$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function W$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>$$(t[r],i,e).pipe(Is(),fi(a=>{if(a instanceof Gu)throw Nv(new $s,a);o[r]=a}))),_g(1),et(()=>o),Io(r=>$P(r)?hi:wc(r)))}function $$(t,i,e){let n=i._environmentInjector,o=Yu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function bP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[yh]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(JP),providedIn:"root"})}return t})(),JP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(mP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bl=new L("",{factory:()=>({})}),Qu=new L(""),Bv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield xP(zi(e,()=>n.loadComponent())),a=yield nN(tN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield eN(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eN(t,i,e,n){return B(this,null,function*(){let o=yield xP(zi(e,()=>t.loadChildren())),r=yield nN(tN(o)),a;r instanceof V_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Qu,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function G$(t){return t&&typeof t=="object"&&"default"in t}function tN(t){return G$(t)?t.default:t}function nN(t){return B(this,null,function*(){return t})}var jv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(q$),providedIn:"root"})}return t})(),q$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function iN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Y$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Y$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var Q$=()=>{},HS=new L(""),zv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(Bv);environmentInjector=p(Cn);destroyRef=p(xo);urlSerializer=p(Vl);rootContexts=p(ed);location=p(ms);inputBindingEnabled=p(xh,{optional:!0})!==null;titleStrategy=p(jS);options=p(Bl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(jv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Mv(o)),n=o=>this.events.next(new Tv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;pn(()=>{this.transitions?.next(Ze(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ze(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.rawUrl),"",zu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Ll(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),z$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new fh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new hh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Ll(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=VP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ze(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ze(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",zu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new wv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ze(G({},s),{guards:i$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),h$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Nv(this.urlSerializer,s.guardsResult);let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",wo.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(U$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",wo.NoDataFromResolver)}}))}),bP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),bP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=JW(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ze(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Hu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=Q$,l)),this.lastSuccessfulNavigation.set(pn(this.currentNavigation)),this.events.next(new Jo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe(GP(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",wo.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),yl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Io(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(WP(s))this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),n$(s)?this.events.next(new Wu(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof Gu){let{message:h,cancellationCode:g}=Nv(this.urlSerializer,u);this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new Wu(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new Wr(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=pn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K$(t){return t!==Bu}var oN=new L("");var rN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Z$),providedIn:"root"})}return t})(),Lv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},Z$=(()=>{class t extends Lv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Uv=(()=>{class t{urlSerializer=p(Vl);options=p(Bl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ms);urlHandlingStrategy=p(jv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new br;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof br?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=VP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),X$=(()=>{class t extends Uv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Ll?this.updateStateMemento():e instanceof hs?this.commitTransition(n):e instanceof hh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Hu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wr&&!LP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof Jo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hv(t,i){t.events.pipe(At(e=>e instanceof Jo||e instanceof Wr||e instanceof Xc||e instanceof hs),et(e=>e instanceof Jo||e instanceof hs?0:(e instanceof Wr?e.code===wo.Redirect||e.code===wo.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var er=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(B_);stateManager=p(Uv);options=p(Bl,{optional:!0})||{};pendingTasks=p(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(zv);urlSerializer=p(Vl);location=p(ms);urlHandlingStrategy=p(jv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(rN);injectorCleanup=p(oN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Qu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(xh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=pn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Wr&&n.code!==wo.Redirect&&n.code!==wo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Jo)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Wu){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||K$(o.source)},a);this.scheduleNavigation(s,Bu,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ZW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Bu,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ze(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Zo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return pn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=OP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return PP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Fl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Bu,null,n)}navigate(e,n={skipLocationChange:!1}){return J$(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},DP):n===!1?o=G({},xS):o=G(G({},xS),n),Fl(e))return pP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return pP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Hv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function J$(t){for(let i=0;i{class t{router=p(er);stateManager=p(Uv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Vl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Jo&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new br(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return pn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return pn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return pn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return pn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return pn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return pn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return pn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return pn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return pn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return pn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return pn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Zo);options=p(Bl,{optional:!0});reactiveRouterState=p(tG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Fl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return pn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(er),D(tt),Fp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Dh=class{};var aN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof Jo),bl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=Iu(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(vl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(vl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(er),we(Cn),we(Dh),we(Bv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sN=new L(""),nG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Bu;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Vl);zone=p(be);viewportScroller=p(JD);transitions=p(zv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hs&&e.code===zu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Uu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=pn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Uu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function iG(){return p(er).routerState.root}function Sh(t,i){return{\u0275kind:t,\u0275providers:i}}function oG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(er),o=t.get(lN);t.get($S)===1&&n.initialNavigation(),t.get(uN,null,{optional:!0})?.setUpPreloading(),t.get(sN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function cN(){let t=[{provide:D_,useValue:!0},{provide:$S,useValue:0},H_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(er),r=i.get(lN);Hv(o,()=>{n(!0)}),i.get(zv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Sh(2,t)}function dN(){let t=[H_(()=>{p(er).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Sh(3,t)}var uN=new L("");function mN(t){return Sh(0,[{provide:uN,useExisting:aN},{provide:Dh,useExisting:t}])}function pN(){return Sh(8,[LS,{provide:xh,useExisting:LS}])}function hN(t){Hr("NgRouterViewTransitions");let i=[{provide:zS,useValue:iN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Sh(9,i)}var fN=[ms,{provide:Vl,useClass:$s},er,ed,{provide:tt,useFactory:iG},Bv,[]],Wv=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[fN,[],{provide:Qu,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:Bl,useValue:n||{}},n?.useHash?aG():sG(),rG(),n?.preloadingStrategy?mN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?lG(n):[],n?.bindToComponentInputs?pN().\u0275providers:[],n?.enableViewTransitions?hN().\u0275providers:[],cG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Qu,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function rG(){return{provide:sN,useFactory:()=>{let t=p(JD),i=p(Bl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new nG(i)}}}function aG(){return{provide:Aa,useClass:QD}}function sG(){return{provide:Aa,useClass:iv}}function lG(t){return[t.initialNavigation==="disabled"?dN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cN().\u0275providers:[]]}var WS=new L("");function cG(){return[{provide:WS,useFactory:oG},{provide:W_,multi:!0,useExisting:WS}]}var $v=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?WO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function gN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(gN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function $r(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Gv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=Gv.get(n);o||(o={loaders:new Set,refs:[]},Gv.set(n,o),n.onDestroy(()=>{Gv.get(n)?.refs.forEach(r=>r.destroy()),Gv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(ev(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return qv(t)?Number(t):arguments.length===2?i:0}function qv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var dG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),uG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function _N(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?uG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(dG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(_N(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Yv,td;function Qv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Ku(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Yv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Yv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Yv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Yv}var nd=class{};function Eh(t){return t&&typeof t.connect=="function"&&!(t instanceof ep)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Kv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var mG=20,jl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=mG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(ru(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mh=(()=>{class t{elementRef=p(se);scrollDispatcher=p(jl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Ku()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Ku()==Pa.INVERTED?e.left=e.right:Ku()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Qv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Ku()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Ku()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),pG=20,po=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=pG){return e>0?this._change.pipe(ru(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vN=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var Cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Th=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,Cr,pt,Cr]})}return t})();var KS={},zt=class t{_appId=p(Al);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ih=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},tr=class extends Ih{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends Ih{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends Ih{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},zl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof tr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Zu=class extends zl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ss,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=ev(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},yN=(()=>{class t extends Gi{constructor(){let e=p(un),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends zl{_moduleRef=p(ss,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function dn(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var CN=Qv();function Ul(t){return new Zv(t.get(po),t.get(ke))}var Zv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),CN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function TN(t,i){return new Xv(t.get(jl),t.get(be),t.get(po),i)}var Xv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var kh=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function xN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function wr(t,i){return new Jv(t.get(jl),t.get(po),t.get(be),i)}var Jv=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},IN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new kh;close=e=>TN(this._injector,e);block=()=>Ul(this._injector);reposition=e=>wr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new kh;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var eb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var kN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends kN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RN=(()=>{class t extends kN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(wN(s.overlayElement,n)||wN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ON=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{qT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)qT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function qT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var YT=CC("C",void 0,void 0);function QT(t){return CC("E",void 0,t)}function KT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function ZT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=R4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(KT(i),this):this._next(i)}error(i){this.isStopped?wC(QT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(YT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},k4=Function.prototype.bind;function xC(t,i){return k4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ua.useDeprecatedSynchronousErrorHandling?ZT(t):Wf(t)}function A4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Jd.setTimeout(()=>e(t,i))}var R4={closed:!0,next:bc,error:A4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ur(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?ur:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=P4(e)?e:new ma(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=XT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=XT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function XT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function O4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function P4(t){return t&&t instanceof Cc||O4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function JT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return JT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var eI=fl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new eI}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Vr=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;atI(i)&&t()),i},clearImmediate(t){tI(t)}};var{setImmediate:F4,clearImmediate:L4}=nI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||F4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||L4)(t)},delegate:void 0};var Yf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var _l=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends _l{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var pa=new _l(gl),iI=pa;var Zf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends _l{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Xa(t){return eg(AC(t))?t.pop():void 0}function oI(t,i){return typeof AC(t)=="number"?t.pop():i}function aI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function rI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function sI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function lI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof rI=="function"?rI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function V4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=V4();function sg(t){return _t(t?.[ag])}function lg(t){return sI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return B4(t);if(ou(t))return j4(t);if(ng(t))return z4(t);if(og(t))return cI(t);if(sg(t))return U4(t);if(cg(t))return H4(t)}throw rg(t)}function B4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function U4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function cI(t){return new dt(i=>{W4(t,i).catch(e=>i.error(e))})}function H4(t){return cI(lg(t))}function W4(t,i){var e,n,o,r;return aI(this,void 0,void 0,function*(){try{for(e=lI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function vo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>vo(n,t,()=>n.next(o),i),()=>vo(n,t,()=>n.complete(),i),o=>vo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return gn(t).pipe(ug(i),dg(i))}function mI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function pI(t,i){return new dt(e=>{let n;return vo(e,i,()=>{n=t[ag](),vo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{vo(e,i,()=>{let n=t[Symbol.asyncIterator]();vo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hI(t,i){return mg(lg(t),i)}function fI(t,i){if(t!=null){if(ig(t))return dI(t,i);if(ou(t))return mI(t,i);if(ng(t))return uI(t,i);if(og(t))return mg(t,i);if(sg(t))return pI(t,i);if(cg(t))return hI(t,i)}throw rg(t)}function Hn(t,i){return i?fI(t,i):gn(t)}function Me(...t){let i=Xa(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Es=fl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Es)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var $4=fl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=G4,scheduler:r=i??pa,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=vo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function G4(t){throw new $4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:q4}=Array;function Y4(t,i){return q4(i)?t(...i):t(i)}function ru(t){return et(i=>Y4(t,i))}var{isArray:Q4}=Array,{getPrototypeOf:K4,prototype:Z4,keys:X4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Q4(i))return{args:i,keys:null};if(J4(i)){let e=X4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function J4(t){return t&&typeof t=="object"&&K4(t)===Z4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function bo(...t){let i=Xa(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(ez(n,i,o?a=>gg(o,a):ur));return e?r.pipe(ru(e)):r}function ez(t,i,e=ur){return n=>{gI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function gI(t,i,e){t?vo(e,t,i):i()}function _I(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>_I(n,o,t,e)))}function vl(t=1/0){return wi(ur,t)}function vI(){return vl(1)}function Ja(...t){return vI()(Hn(t,Xa(t)))}function mr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var tz=["addListener","removeListener"],nz=["addEventListener","removeEventListener"],iz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=az(t)?nz.map(a=>s=>t[a](i,s,e)):oz(t)?tz.map(bI(t,i)):rz(t)?iz.map(bI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function bI(t,i){return e=>n=>t[e](i,n)}function oz(t){return _t(t.addListener)&&_t(t.removeListener)}function rz(t){return _t(t.on)&&_t(t.off)}function az(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ms(t=0,i,e=iI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=pa){return t<0&&(t=0),Ms(t,t,i)}function rn(...t){let i=Xa(t),e=oI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):vl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function yI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=pa){return yI(()=>Ms(t,i))}function Io(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,Io(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function bl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Ts(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function CI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function xI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function wI(t){return et(()=>t)}function OC(t,i){return i?e=>Ja(i.pipe(bn(1),xI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),wI(e)))}function sp(t,i=pa){let e=Ms(t,i);return OC(()=>e)}function _g(t,i=ur){return t=t??sz,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function sz(t,i){return t===i}function DI(t=lz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function lz(){return new Es}function yl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Is(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):ur,bn(1),e?CI(i):DI(()=>new Es))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Vr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Xa(t);return kt((e,n)=>{(i?Ja(t,e,i):Ja(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):ur}var FC;function Cg(){return FC}function es(t){let i=FC;return FC=t,i}var SI=Symbol("NotFound");function su(t){return t===SI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(cz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),ml(n),n.value===Za)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function EI(t,i){gc(t),_c(t,i),Kd(t)}function MI(t,i){if(gc(t),t.value===Za)throw t.error;zf(t,i),Kd(t)}var cz=Ye($({},ul),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Za,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function TI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function dz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${dz(t)}${i?": "+i:""}`}var Co=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function OI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var uz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(uz)&&t.__forward_ref__===Wn}function G(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return mz(t,kg)}function ZC(t){return gp(t)!==null}function mz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function pz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=G({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),II=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ts(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var PI=Rn({ngErrorCode:Rn}),hz=Rn({ngErrorMessage:Rn}),fz=Rn({ngTokenPath:Rn});function ix(t,i){return NI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function NI(t,i,e){let n=new ie(i,t);return n[PI]=i,n[hz]=t,e&&(n[fz]=e),n}function gz(t){return t[PI]}var jC;function FI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var _z={},Mc=_z,vz="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function bz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=yz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(FI()||bz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function yz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function BI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,jI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return xz(t,i,1)}function xz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&UI(o,r),e}function UI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ts(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&UI(u,i)}if(!s){let u=Cl(o)||(()=>new o);i({provide:o,useFactory:u,deps:yo},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:As,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var wz=Rn({provide:String,useValue:Rn});function HI(t){return t!==null&&typeof t=="object"&&wz in t}function Dz(t){return!!(t&&t.useExisting)}function Sz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function WI(t){return!!t.useClass}var yp=new L(""),xg={},kI={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,yo,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=es(this),n=ko(void 0),o;try{return i()}finally{es(e),ko(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(II))return i[II](this);let o=Tc(n),r,a=es(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=kz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=gz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),es(a)}}resolveInjectorInitializers(){let i=ut(null),e=es(this),n=ko(void 0),o;try{let r=this.get(As,yo,{self:!0});for(let a of r)a()}finally{es(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Mz(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===kI)throw ix("");return e.value===xg&&(e.value=kI,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Iz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:Cl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Ez(t);throw new ie(-204,!1)}function Ez(t){if(t.length>0)throw new ie(-204,!1);let e=pz(t);return e!==null?()=>e.factory(t):()=>new t}function Mz(t){if(HI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return Cl(o)||HC(o)}else if(HI(t))n=()=>Bi(t.useValue);else if(Sz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(Dz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Tz(t))n=()=>new o(...UC(t.deps));else return Cl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Tz(t){return!!t.deps}function Iz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function kz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=es(e),r=ko(void 0);try{return i()}finally{es(o),ko(r)}}function ux(){return FI()!==void 0||Cg()!=null}var va=0,mt=1,Ot=2,ji=3,Br=4,Ro=5,Rc=6,uu=7,Di=8,Rs=9,ba=10,Vn=11,mu=12,mx=13,Oc=14,Oo=15,Sl=16,Pc=17,ns=18,Os=19,px=20,ks=21,Lg=22,xl=23,pr=24,Nc=25,El=26,si=27,$I=1,hx=6,Ml=7,Cp=8,Fc=9,vi=10;function Ps(t){return Array.isArray(t)&&typeof t[$I]=="object"}function ya(t){return Array.isArray(t)&&t[$I]===!0}function fx(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",GI="math";function jr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return jr(i[t])}function zr(t,i){return jr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Ur(t,i){let e=i[t];return Ps(e)?e:e[va]}function qI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function YI(t){return ya(t[ji])}function hr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function QI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[pr]?.dirty)}function zg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=wl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=wl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[ks]===null&&(t[ks]=[]),t[ks].push(i)}function KI(t,i){if(t[ks]===null)return;let e=t[ks].indexOf(i);e!==-1&&t[ks].splice(e,1)}function wl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function ZI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ht={lFrame:lk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function XI(){return Ht.lFrame.elementDepthCount}function JI(){Ht.lFrame.elementDepthCount++}function Dx(){Ht.lFrame.elementDepthCount--}function Ug(){return Ht.bindingsEnabled}function Sx(){return Ht.skipHydrationRootTNode!==null}function Ex(t){return Ht.skipHydrationRootTNode===t}function Mx(){Ht.skipHydrationRootTNode=null}function lt(){return Ht.lFrame.lView}function $n(){return Ht.lFrame.tView}function I(t){return Ht.lFrame.contextLView=t,t[Di]}function k(t){return Ht.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ht.lFrame.currentTNode}function ek(){let t=Ht.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ht.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ht.lFrame.isParent}function kx(){Ht.lFrame.isParent=!1}function tk(){return Ht.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ht.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ht.lFrame.bindingIndex}function nk(t){return Ht.lFrame.bindingIndex=t}function os(){return Ht.lFrame.bindingIndex++}function wp(t){let i=Ht.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ik(){return Ht.lFrame.inI18n}function ok(t,i){let e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function rk(){return Ht.lFrame.currentDirectiveIndex}function Hg(t){Ht.lFrame.currentDirectiveIndex=t}function ak(t){let i=Ht.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ht.lFrame.currentQueryIndex}function Dp(t){Ht.lFrame.currentQueryIndex=t}function Az(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Az(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ht.lFrame=sk();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=sk(),e=t[mt];Ht.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function sk(){let t=Ht.lFrame,i=t===null?null:t.child;return i===null?lk(t):i}function lk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function ck(){let t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=ck;function Gg(){let t=ck();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dk(t){return(Ht.lFrame.contextLView=QI(t,Ht.lFrame.contextLView))[Di]}function xa(){return Ht.lFrame.selectedIndex}function Tl(t){Ht.lFrame.selectedIndex=t}function _u(){let t=Ht.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ht.lFrame.currentNamespace=gx}function wa(){Rz()}function Rz(){Ht.lFrame.currentNamespace=null}function Nx(){return Ht.lFrame.currentNamespace}var uk=!0;function qg(){return uk}function Sp(t){uk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||yo,zI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=G({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Oz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>KI(e,i)}};function Oz(){return new Sg(lt())}var Lx=!1,mk=new L(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(mk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(rs,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Pz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Lz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Nz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Nz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Lz(t){let i=()=>{Fz(t)},e=Pz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Vz(l))return n.invokeTask(r,a,s,l);try{return AI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),RI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return AI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Bz(l)&&i(),RI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function AI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Vz(t){return hk(t,"__ignore_ng_zone__")}function Bz(t){return hk(t,"__scheduler_tick__")}function hk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),fk={provide:As,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=jz}return t})();function jz(){return new vu(lt(),ki())}var ha=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(rs);scheduler=p(ha);errorHandler=p(Zo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Ns(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Hz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Wz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var gk=Ye($({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),zz=Ye($({},gk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Uz=Ye($({},gk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[xl]?.delete(this)}});function Hz(t,i,e){let n=Object.create(Uz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=_k(n,e),t[xl]??=new Set,t[xl].add(n),n.consumerMarkedDirty(n),n}function Wz(t,i,e){let n=Object.create(zz);return n.fn=_k(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function _k(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Jk(t){let i=Co.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zz(t){return typeof t=="function"}function eA(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>tA;return t.ngInherit=!0,t})();function tA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jz),Xz}function Xz(){let t=iA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Jz(t,i,e,n,o){let r=this.declaredInputs[n],a=iA(t)||eU(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===_a),eA(t,i,o,e)}var nA="__ngSimpleChanges__";function iA(t){return t[nA]||null}function eU(t,i){return t[nA]=i}var vk=[];var Un=function(t,i=null,e){for(let n=0;n=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,bk(s,r)):bk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function iU(t){return(t.flags&8)!==0}function oU(t){return(t.flags&16)!==0}function rU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=sU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var lU=256,lA=lU-1,cA=5,cU=0,as={};function dU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=cU++);let o=n&lA,r=1<>cA)]|=r}function u_(t,i){let e=dA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(sA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=fA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){dU(t,i,e)}function uU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&tU(e,a[e],i)}finally{g!==null&&ko(g),d_(l),s.resolving=!1,Px()}}return r}function pU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&lA:hU:i}function Ck(t,i,e){let n=1<>cA)]&n)}function xk(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return pA(this._tNode,this._lView,i,Tc(n),e)}};function hU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:Cl(t)}function fU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=hA(r,a,e,n|2,as);if(s!==as)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,as,n&-5);if(h!==as)return h}l=fA(a),a=a[Oc]}r=l}return o}function fA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Lp(t){return uU(ki(),t)}function gU(){return Tu(ki(),lt())}function Tu(t,i){return new se(zr(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=gU}return t})();function gA(t){return t instanceof se?t.nativeElement:t}function _U(){return this._results[Symbol.iterator]()}var fr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=VI(i);(this._changesDetected=!LI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=_U};function _A(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),vA=new Map,vU=0;function bU(){return vU++}function yU(t){vA.set(t[Os],t)}function ew(t){vA.delete(t[Os])}var wk="__ngContext__";function Du(t,i){Ps(i)?(t[wk]=i[Os],yU(i)):t[wk]=i}function bA(t){return CA(t[mu])}function yA(t){return CA(t[Br])}function CA(t){for(;t!==null&&!ya(t);)t=t[Br];return t}var tw;function Vw(t){tw=t}function xA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Al=new L("",{factory:()=>CU}),CU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Rl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var wA="r";var DA="di";var Bw=new L(""),SA=!1,EA=new L("",{factory:()=>SA});var S_=new L("");var Dk=new WeakMap;function xU(t,i){if(t==null||typeof t!="object")return;let e=Dk.get(t);e||(e=new WeakSet,Dk.set(t,e)),e.add(i)}var wU=(t,i,e,n)=>{};function DU(t,i,e,n){wU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var SU=()=>null;function MA(t,i,e=!1){return SU(t,i,e)}function TA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return EU()?.createHTML(t)||t}var Xg;function IA(){if(Xg===void 0&&(Xg=null,Co.trustedTypes))try{Xg=Co.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Sk(t){return IA()?.createHTML(t)||t}function Ek(t){return IA()?.createScriptURL(t)||t}var Fs=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Fs{getTypeName(){return"HTML"}},ow=class extends Fs{getTypeName(){return"Style"}},rw=class extends Fs{getTypeName(){return"Script"}},aw=class extends Fs{getTypeName(){return"URL"}},sw=class extends Fs{getTypeName(){return"ResourceURL"}};function gr(t){return t instanceof Fs?t.changingThisBreaksApplicationSecurity:t}function ls(t,i){let e=kA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function kA(t){return t instanceof Fs&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function MU(t){let i=new cw(t);return TU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function TU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var IU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(IU)?t:"unsafe:"+t}function Ls(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var AA=Ls("area,br,col,hr,img,wbr"),RA=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OA=Ls("rp,rt"),kU=Bp(OA,RA),AU=Bp(RA,Ls("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")),RU=Bp(OA,Ls("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")),Mk=Bp(AA,AU,RU,kU),PA=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OU=Ls("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"),PU=Ls("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"),NU=Bp(PA,OU,PU),FU=Ls("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=BU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=VU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Tk(i).toLowerCase();if(!Mk.hasOwnProperty(e))return this.sanitizedSomething=!0,!FU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Tk(i).toLowerCase();Mk.hasOwnProperty(e)&&!AA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Ik(i))}};function LU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw NA(i);return i}function BU(t){let i=t.firstChild;if(i&&LU(t,i))throw NA(i);return i}function Tk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function NA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var jU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zU=/([^\#-~ |!])/g;function Ik(t){return t.replace(/&/g,"&").replace(jU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(zU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||MU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(kk(e)||e);return M_(s)}finally{if(e){let n=kk(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function kk(t){return"content"in t&&UU(t)?t.content:null}function UU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var HU=/^>|^->||--!>|)/g,$U="\u200B$1\u200B";function GU(t){return t.replace(HU,i=>i.replace(WU,$U))}function qU(t,i){return t.createText(i)}function YU(t,i,e){t.setValue(i,e)}function QU(t,i){return t.createComment(GU(i))}function FA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function LA(t,i,e){t.appendChild(i,e)}function Ak(t,i,e,n,o){n!==null?m_(t,i,e,n,o):LA(t,i,e)}function VA(t,i,e,n){t.removeChild(null,i,e,n)}function KU(t,i,e){t.setAttribute(i,"style",e)}function ZU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function BA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&rU(t,i,n),o!==null&&ZU(t,i,o),r!==null&&KU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Sk(i.sanitize(Ai.HTML,t)||""):ls(t,"HTML")?Sk(gr(t)):T_(xA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":ls(t,"URL")?gr(t):Vp(ga(t))}function jA(t){let i=qw();if(i)return Ek(i.sanitize(Ai.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return Ek(gr(t));throw new ie(904,!1)}var XU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function JU(t,i){return XU[t.toLowerCase()]?.[i.toLowerCase()]===!0?jA:it}function Gw(t,i,e){return JU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function zA(t){return t instanceof Function?t():t}function eH(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var UA="ng-template";function tH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function oH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Rk(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Rk(r,o)),i}function dH(t){return t.map(cH).join(",")}function uH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function _H(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ta=new L(""),Ok=new Set;function Hr(t){Ok.has(t)||(Ok.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Hr("NgAfterNextRender"),bH(t,e,i,!0)}function vH(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function bH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,vH(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var qA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function YA(t,i,e){let n=t.get(qA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function yH(t,i){let e=t.get(qA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function CH(t,i){for(let[e,n]of i)YA(t,n.animateFns)}function Pk(t,i,e,n){let o=t?.[El]?.enter;i!==null&&o&&o.has(e.index)&&CH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ps(o)&&(u=!0,o=o[va]);let h=jr(o);t===0&&n!==null?(Pk(s,n,r,e),a==null?LA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Pk(s,n,r,e),m_(i,n,h,a||null,!0),gH(r,h)):t===2?(s?.[El]?.leave?.has(r.index)&&_H(r,h),Ep.delete(h),Nk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}VA(i,h,u,g)})):t===3&&(Ep.delete(h),Nk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&RH(i,t,e,l,r,n,a)}}function xH(t,i){QA(t,i),i[va]=null,i[Ro]=null}function wH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,O_(t,n,e,1,o,r)}function QA(t,i){i[ba].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function DH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ps(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[Br]&&i!==t;)Ps(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ps(i)&&Hx(i[mt],i),e=i&&i[Br]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),DH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[pr]&&hl(i[pr]),MH(t,i),EH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[Sl];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[ns];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Nk(t,i,e,n){let o=t?.[El];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Os]),YA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[El].running=void 0,zc.delete(t[Os]),i(!0)});return}i(!1)}function EH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[ks];if(o!==null){i[ks]=null;for(let a=0;asi&&GA(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Tl(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){VH(t,i,e),(e.flags&64)===64&&BH(t,i,e)}function zp(t,i,e=zr){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function LH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){is(t)&&iR(i,t.index);return}t.type&3&&(e=LH(e)),nR(t,i,e,n,o,r)}function nR(t,i,e,n,o,r){if(t.type&3){let a=zr(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function iR(t,i){let e=Ur(i,t);e[Ot]&16||(e[Ot]|=64)}function VH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;is(e)&&hH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function ZH(t){let i=t[pr]??Object.create(XH);return i.lView=t,i}var XH=Ye($({},ul),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=wl(t.lView);for(;i&&!lR(i[mt]);)i=wl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[pr]=this}});function lR(t){return t.type!==2}function cR(t){if(t[xl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[xl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var JH=100;function dR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{e5(t,i)}finally{o||n.end?.()}}function e5(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===JH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function t5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(lR(t)?(u=qH(i),l=Ss(u)):jf()===null?(s=!1,u=ZH(i),l=Ss(u)):i[pr]&&(hl(i[pr]),i[pr]=null));try{bx(i),nk(t.bindingStartIndex),e!==null&&eR(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||n5(i),cR(i),uR(i,0),t.contentQueries!==null&&TA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}o5(t,i);let g=t.components;g!==null&&pR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(aR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(pl(u,l),s&&QH(u)),Gg()}}function uR(t,i){for(let e=bA(t);e!==null;e=yA(e))for(let n=vi;n0&&(t[e-1][Br]=n[Br]);let r=bp(t,vi+i);xH(n[mt],n);let a=r[ns];a!==null&&a.detachView(r[mt]),n[ji]=null,n[Br]=null,n[Ot]&=-129}return n}function r5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][Br]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,dR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[Sl];e!==null&&!i&&nD(e,this._lView),QA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[Sl];n!==null&&!e&&_R(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=a5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Il(r)}}return t})();function a5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=s5(t,i,e,n,o),ik()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=ek();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function s5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=c5(t,s,e,i,n,o);return l5(t,l,r,a),l}function l5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function c5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function d5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[DA]!==void 0?o.push(r):u5(r,n);t[hx]=o}function u5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[wA];for(;enull,p5=()=>null;function p_(t,i){return m5(t,i)}function vR(t,i,e){return p5(t,i,e)}var bR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>h5()}return t})();function h5(){let t=lt(),i=ki(),e=Ur(i.index,t);return(Ps(e)?e:t)[Vn]}var yR=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function x5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(jr(P[t.index])):t.index;SR(S,i,e,r,s,w,!1)}}return u}function M5(t){return t.startsWith("animation")||t.startsWith("transition")}function T5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function SR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function zk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);SR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function ER(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ts(i);return new kl(e,this.ngModule)}};function I5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function k5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function A5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function R5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(yR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function O5(t,i){let e=MR(t);return FA(i,e,e==="svg"?gx:e==="math"?GI:null)}function MR(t){return(t.selectors[0][0]||"div").toLowerCase()}var kl=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=k5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=dH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=A5(l,o||this.ngModule,i),h=R5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(ER(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=P5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?PH(u,o,s.encapsulation,e):O5(s,u),g=a?.some(Uk)||r?.some(S=>typeof S!="function"&&S.bindings.some(Uk)),y=Zw(null,l,null,512|WA(s),null,null,i,u,e,null,MA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);BA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&F5(S,this.ngContentSelectors,n),w=Ur(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function P5(t,i,e,n){let o=t?["ng-version","21.2.17"]:uH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function Uk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends bR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Ur(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Il(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Ur(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function F5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=L5}return t})();function L5(){let t=ki();return TR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(sA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Hk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Zz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new kl(ts(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ts(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(YI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Hk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new Il(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Hk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function TR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=hR(n,i,null,t),i[t.index]=e,Xw(i,e)),B5(e,i,t,n),new vw(e,t,i)}function V5(t,i){let e=t[Vn],n=e.createComment(""),o=zr(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var B5=U5,j5=()=>!1;function z5(t,i,e){return j5(t,i,e)}function U5(t,i,e,n){if(t[Ml])return;let o;e.type&8?o=jr(n):o=V5(i,e),t[Ml]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function OR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function Y5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function PR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):IR(e,t,n,i)}function NR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Q5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return NR(!0,!1,t)}function vD(t){return NR(!0,!0,t)}function FR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Q5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:yo;let o=fD(e,n),r=PR(e,n);return o.reset(r,gA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,K5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>Z5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),K5.delete(r)}));yield Promise.all(o)})}function LR(){return Dw.size===0}function Z5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ss=class{},B_=class{};var Op=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=zA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ss,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function VR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ss{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ss,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var X5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=G({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=jR(t),e=Ye($({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(X5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||yo,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Hr("NgStandalone"),zR(e);let n=t.dependencies;return e.directiveDefs=b_(n,BR),e.pipeDefs=b_(n,nx),e.id=t8(e),e})}function BR(t){return ts(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||yo,declarations:t.declarations||yo,imports:t.imports||yo,exports:t.exports||yo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function J5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function e8(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=jR(t);return zR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||yo,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:J5(t.inputs,i),outputs:e8(t.outputs),debugInfo:null}}function zR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function t8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=n8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function n8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===yo?[]:t}function s8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function l8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function c8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function HR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=u8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=hR(l,i,l,t);i[n+si]=u,Xw(i,u),z5(u,t,i)}function d8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&CR(i,t,y,hr(i.consts,u),rD),oA(i,y)):y=i.data[g],HR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=hr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function cs(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return cs(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(xo,{optional:!0})??void 0),xD||($R(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(WR),we(U_))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),WR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $R(t){xD=t}var xD;function Bs(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Dl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(Bs(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function GR(){gC(()=>{let t="";throw new ie(600,t)})}function qR(t){return t.isBoundToModule}var p8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):$($({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Zo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=qR(l)?void 0:this._injector.get(ss),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=os();if(Po(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))is(r)&&iR(e,r.index);else{let s=zr(r,e);oR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=os();if(Po(o,r,i)){let a=$n(),s=_u();zH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function h8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=qk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)Gk(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=qk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)Gk(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Gk(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Hr("NgControlFlow");let e=lt(),n=os(),o=e[n]!==ao?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&gR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=vR(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=fR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Hr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,hr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,hr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),f8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,g8(this.lContainer,i),_8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Rs];yH(r,o),zc.delete(n[Os]),o.detachedLeaveAnimationFns=void 0}}function g8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[El]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _8(t,i){return Rp(t,i)}function v8(t,i){return fR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(is(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(ER(u),()=>(Yk(t,i,o,s,n),c))}}return Yk(t,i,o,s,n),c}function Yk(t,i,e,n,o){if(aD(n,e,t,i,YR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&oU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?D5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,YR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function uo(t,i,e,n){return dn(t,i,e,n),pn(),uo}var YR=(t,i,e,n,o)=>(Sp(!0),FA(i[Vn],n,Nx()));function ds(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",b8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),ds}function us(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),us}function Ri(t,i,e){return ds(t,i,e),us(),Ri}var b8=(t,i,e,n,o)=>(Sp(!0),QU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();nR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var y8=Gp;function QR(t){typeof t=="string"&&(y8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return KR(o,n,n[Vn],r,t,i,e),x}function Ol(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&DR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Ol}function KR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),DR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function w8(t){return(t&2)==2}function D8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function S8(t){return(t&1)===1}function Pw(t){return t|1}function E8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=D8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Qk(t,h,n,!0),Qk(t,h,n,!1),M8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function M8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Qk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];T8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function T8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(Sa.key,Sa.keyEnd)}function k8(t){return A8(t),ZR(t,XR(t,0,Sa.textEnd))}function ZR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=R8(t,Sa.key=i,e),XR(t,i,e))}function A8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function XR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return JR(t,i,e,!1),Si}function le(t,i){return JR(t,i,null,!0),le}function Tn(t){P8(j8,O8,t,!0)}function O8(t,i){for(let e=k8(i);e>=0;e=ZR(i,e))Ng(t,I8(i),!0)}function JR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&tO(r,t,a,n),i!==ao&&Po(o,a,i)){let s=r.data[xa()];nO(r,s,o,o[Vn],t,o[a+1]=U8(i,e),n,a)}}function P8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&tO(o,null,r,n);let a=lt();if(e!==ao&&Po(a,r,e)){let s=o.data[xa()];if(iO(s,n)&&!eO(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else z8(o,s,a,a[Vn],a[r+1],a[r+1]=B8(t,i,e),n,r)}}function eO(t,i){return i>=t.expandoStartIndex}function tO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=eO(t,e);iO(r,n)&&i===null&&!a&&(i=!1),i=N8(o,r,i,n),E8(o,r,i,e,a,n)}}function N8(t,i,e,n){let o=ak(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=F8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),L8(t,i,n,l))}else r=V8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function F8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function L8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function V8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===ao&&(y=g?yo:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function U8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(gr(t)))),t}function iO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=H8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var H8=(t,i,e,n)=>(Sp(!0),qU(i[Vn],n));function W8(t,i,e,n=""){return Po(t,os(),e)?i+ga(e)+n:ao}function $8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+ga(e)+n+ga(o)+r:ao}function G8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=E5(t,l,e,o,a);return wp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:ao}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=W8(n,t,i,e);return o!==ao&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=$8(r,t,i,e,n,o);return a!==ao&&MD(r,xa(),a),No}function Q_(t,i,e,n,o,r,a){let s=lt(),l=G8(s,t,i,e,n,o,r,a);return l!==ao&&MD(s,xa(),l),Q_}function MD(t,i,e){let n=_x(i,t);YU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return KR(n,e,e[Vn],o,t,i),te}function Pl(t){return Po(lt(),os(),t)?ga(t):ao}function Zk(t,i,e){let n=$n();n.firstCreatePass&&oO(i,n.data,n.blueprint,Ca(t),e)}function oO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Q8(o?Y8:q8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=rO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=WI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function rO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Zk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Zk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,BR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===ao?pD(n,e,i()):S5(n,e)}function mo(t,i,e){return sO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return lO(lt(),gu(),t,i,e,n)}function aO(t,i){let e=t[i];return e===ao?void 0:e}function sO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):aO(t,a+1)}function lO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):aO(t,s+2)}function Gt(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=K8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=Cl(n.type,!0)),a,s=ko(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function K8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return cO(o,n)?sO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return cO(r,o)?lO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function cO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function dO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=zA(o.declarations).reduce((a,s)=>{let l=ts(s);return l&&a.push(new kl(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uO=new L("");var mO=(()=>{class t{applicationErrorHandler=p(Zo);appRef=p(Ui);taskService=p(rs);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?pk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pO(){return[{provide:ha,useExisting:mO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function Z8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||Z8()});function hn(t){return TI(t)}function Fo(t,i){return Jm(t,i?.equal)}var X8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,X8,i?.equal);return hO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return hO(e,t.debugName)}}function hO(t,i){let e=t[xi],n=t;return n.set=o=>EI(e,o),n.update=o=>MI(e,o),n.asReadonly=Yg.bind(t),n}var DO=Symbol("InputSignalNode#UNSET"),d6=Ye($({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function SO(t,i){let e=Object.create(d6);e.value=t,e.transformFn=i?.transform;function n(){if(ml(e),e.value===DO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function fO(t,i){return SO(t,i)}function u6(t){return SO(DO,t)}var MO=(fO.required=u6,fO);function gO(t,i){return _D(i)}function m6(t,i){return vD(i)}var Qp=(gO.required=m6,gO);function _O(t,i){return _D(i)}function p6(t,i){return vD(i)}var TO=(_O.required=p6,_O);function h6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function vO(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var f6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Zo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g6=new L("",{factory:()=>!1});function _6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye($({},kO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:As,multi:!0,useFactory:()=>{let e=p(f6,{optional:!0});return()=>e.initialize()}},{provide:As,multi:!0,useFactory:()=>{let e=p(v6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function IO(t){let i=t?.scheduleInRootZone,e=_6({ngZoneFactory:()=>{let n=kO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Hr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Dl([{provide:g6,useValue:!0},e])}function kO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var v6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),b6=new L("");function Yp(t){return!t.moduleRef}function y6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return x6(n,e,()=>{let r=i.get(rs),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(QR(l||Gp),!i.get(b6,!0))return Yp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return AO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var AO;function bO(){AO=C6}function C6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function x6(t,i,e){try{let n=e();return Bs(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var RO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[pO(),...n?.applicationProviders??[],fk],r=VR(e.moduleType,this.injector,o);return bO(),y6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return bO(),h6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function w6(t){if(HD())throw new ie(400,!1);GR(),zD=t;let i=t.get(RO);return E6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??w6(D6(s,n))}return S6(o)}}function D6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function S6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(RO)??null}function E6(t){let i=t.get(D_,null);zi(t,()=>{i?.forEach(e=>e())})}var M6=1e4;var V0e=M6-1e3;var Ke=(()=>{class t{static __NG_ELEMENT_ID__=T6}return t})();function T6(t){return I6(ki(),lt(),(t&16)===16)}function I6(t,i,e){if(is(t)&&!e){let n=Ur(t.index,i);return new Il(n,n)}else if(t.type&175){let n=i[Oo];return new Il(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},k6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||k6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function CO(){return new js([new OD])}var js=(()=>{class t{factories;static \u0275prov=G({token:t,providedIn:"root",factory:CO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function xO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:xO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||xO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var OO=UD(null,"core",[]),PO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),NO=new Set,A6=Ye($({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ml(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??NO)e()}finally{hl(i)}}};function FO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(A_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ts(t),n=i.elementInjector||du();return new kl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function LO(t){let i=ts(t);if(!i)return null;let e=new kl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var VO=null;function _r(){return VO}function WD(t){VO??=t}var Kp=class{},zs=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(BO),providedIn:"platform"})}return t})(),$D=new L(""),BO=(()=>{class t extends zs{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function jO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(iv,8))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ms=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=P6(jO(zO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(O6(this._basePath,zO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=nv;static stripTrailingSlash=jO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=G({token:t,factory:()=>R6(),providedIn:"root"})}return t})();function R6(){return new ms(we(Aa))}function O6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function zO(t){return t.replace(/\/index\.html$/,"")}function P6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(iv,8))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,UO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=UO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):UO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function N6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},F6=new YD,L6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Zo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Bs(e))return F6;if(H_(e))return L6;throw N6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ke,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function V6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=HO;transform(e,n=HO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(V6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function HO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function WO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye($({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=j6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye($({},e),{left:o-a[0],top:r-a[1]}))}};function j6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function $O(t){for(let i of t)i.remove()}function GO(t,i){let e=i.createElement("style");return e.textContent=t,e}function z6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,z6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,GO);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&($O(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$O(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,GO(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Al),we(Wc,8),we(Hc))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var YO="%COMP%",U6=`_nghost-${YO}`,H6=`_ngcontent-${YO}`,W6=!0,$6=new L("",{factory:()=>W6});function G6(t){return H6.replace(rS,t)}function q6(t){return U6.replace(rS,t)}function QO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Al),we($6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function qO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=QO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?QO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=G6(u),this.hostAttr=q6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Y6();return e==null?null:Q6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function Y6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Q6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){Co.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},Co.getAllAngularTestabilities=()=>i.getAllTestabilities(),Co.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Co.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Co.frameworkStabilizers||(Co.frameworkStabilizers=[]),Co.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},K6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),KO=["alt","control","meta","shift"],Z6={"\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"},X6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ZO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),KO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=Z6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),KO.forEach(a=>{if(a!==o){let s=X6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function J6(){cv.makeCurrent()}function eW(){return new Ao}function tW(){return Vw(document),document}var nW=[{provide:Hc,useValue:XD},{provide:D_,useValue:J6,multi:!0},{provide:ke,useFactory:tW}],aS=UD(OO,"browser",nW);var iW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],oW=[{provide:yp,useValue:"root"},{provide:Ao,useFactory:eW},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:ZO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:K6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...oW,...iW],imports:[eh,PO]})}return t})();var Xo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return XO(i)}encodeValue(i){return XO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function rW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var aW=/%(\d[a-f0-9])/gi,sW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XO(t){return encodeURIComponent(t).replace(aW,(i,e)=>sW[e]??i)}function uv(t){return`${t}`}var Us=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=rW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function lW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function JO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eP(t){return typeof Blob<"u"&&t instanceof Blob}function tP(t){return typeof FormData<"u"&&t instanceof FormData}function cW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var nP="Content-Type",iP="Accept",rP="text/plain",aP="application/json",dW=`${aP}, ${rP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(lW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Xo,this.context??=new mv,!this.params)this.params=new Us,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Xo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},uW=200,mW=204;var pW=new L("");var hW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(iP)||a.setRequestHeader(iP,dW),!e.headers.has(nP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(nP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Xo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==mW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?uW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(hW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sP(t,i){return i(t)}function fW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function gW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var lP=new L(""),cS=new L("",{factory:()=>[]}),cP=new L(""),dS=new L("",{factory:()=>!0});function _W(){let t=null;return(i,e)=>{t===null&&(t=(p(lP,{optional:!0})??[]).reduceRight(fW,sP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(yl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(cP,[])]));this.chain=n.reduceRight((o,r)=>gW(o,r,this.injector),sP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(yl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Xo?l=o.headers:l=new Xo(o.headers);let u;o.params&&(o.params instanceof Us?u=o.params:u=new Us({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(bl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Us().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vW=new L("",{factory:()=>!0}),bW="XSRF-TOKEN",yW=new L("",{factory:()=>bW}),CW="X-XSRF-TOKEN",xW=new L("",{factory:()=>CW}),wW=(()=>{class t{cookieName=p(yW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(wW),o},providedIn:"root"})}return t})();function DW(t,i){if(!p(vW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(zs).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(dP).getToken(),n=p(xW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function SW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(pW,{optional:!0})??p(lS)},{provide:cS,useValue:DW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var oP=new L("");function fS(){return SW(pS.LegacyInterceptors,[{provide:oP,useFactory:_W},{provide:cS,useExisting:oP,multi:!0}])}var mP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(EW),o},providedIn:"root"})}return t})(),EW=(()=>{class t extends Hs{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return ls(n,"HTML")?gr(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return ls(n,"Style")?gr(n):n;case Ai.SCRIPT:if(ls(n,"Script"))return gr(n);throw new ie(5200,!1);case Ai.URL:return ls(n,"URL")?gr(n):Vp(String(n));case Ai.RESOURCE_URL:if(ls(n,"ResourceURL"))return gr(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(Is()).subscribe({next:n=>i(n),error:n=>e(n)})})}function MW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function TW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:Bs(t)?Hn(Promise.resolve(t)):Me(t)}function xP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var IW={exact:SP,subset:EP},wP={exact:kW,subset:AW,ignored:()=>!0},DP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pP(t,i,e){return IW[e.paths](t.root,i.root,e.matrixParams)&&wP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function kW(t,i){return ps(t,i)}function SP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!SP(t.children[n],i.children[n],e))return!1;return!0}function AW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>CP(t[e],i[e]))}function EP(t,i,e){return MP(t,i,i.segments,e)}function MP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!EP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:MP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>wP[e](t[o].parameters,n.parameters))}var br=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return PW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Nl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return IP(this)}};function RW(t,i){return Kc(t,i)&&t.every((e,n)=>ps(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function OW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Vl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>new $s,providedIn:"root"})}return t})(),$s=class{parse(i){let e=new DS(i);return new br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=LW(i.queryParams),o=typeof i.fragment=="string"?`#${NW(i.fragment)}`:"";return`${e}${n}${o}`}},PW=new $s;function bv(t){return t.segments.map(i=>IP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=OW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function TP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return TP(t).replace(/%3B/gi,";")}function NW(t){return encodeURI(t)}function wS(t){return TP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function hP(t){return yv(t.replace(/\+/g,"%20"))}function IP(t){return`${wS(t.path)}${FW(t.parameters)}`}function FW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function LW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var VW=/^[^\/()?;#]+/;function _S(t){let i=t.match(VW);return i?i[0]:""}var BW=/^[^\/()?;=#]+/;function jW(t){let i=t.match(BW);return i?i[0]:""}var zW=/^[^=?&#]+/;function UW(t){let i=t.match(zW);return i?i[0]:""}var HW=/^[^&#]+/;function WW(t){let i=t.match(HW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Nl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=jW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=UW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=WW(this.remaining);a&&(n=a,this.capture(n))}let o=hP(e),r=hP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function kP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function AP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=AP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return $W(e)}function $W(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Fl(t){return t instanceof br}function RP(t,i,e=null,n=null,o=new $s){let r=OP(t);return PP(r,i,e,n,o)}function OP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=kP(n);return i??o}function PP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=GW(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=qW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):FP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function fP(t,i,e){t||="\u0275";let n=new br;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>fP(u,g,r)):fP(u,h,r);let s;t===i?s=e:s=NP(t,i,e);let l=kP(AP(s));return new br(l,a,o)}function NP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=NP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==TW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function GW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function qW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return YW(e,o,t.numberOfDoubleDots)}function YW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function QW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function FP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=KW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=FP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function KW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!_P(l,u,a))return r;n+=2}else{if(!_P(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function gP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function _P(t,i,e){return t==e.path&&ps(i,e.parameters)}var ju="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),yr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ll=class extends yr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jo=class extends yr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wo||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),Wr=class extends yr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function LP(t){return t instanceof Wr&&(t.code===wo.Redirect||t.code===wo.SupersededByNewNavigation)}var hs=class extends yr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends yr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends yr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends yr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends yr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends yr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends yr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function XW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var vr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function VP(t,i){let e=JW(t,i),n=new on([new Nl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new vr(l,[]),e)}function JW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new vr(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:$($({},i.params),t.params),data:$($({},i.data),t.data),resolve:$($($($({},t.data),i.data),o?.data),t._resolvedData)}:n={params:$({},t.params),data:$({},t.data),resolve:$($({},t.data),t._resolvedData??{})},o&&jP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return BP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function BP(t){let i=t.children.length>0?` { ${t.children.map(BP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ps(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ps(i.params,e.params)||t.paramsSubject.next(e.params),MW(i.url,e.url)||t.urlSubject.next(e.url),ps(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=ps(t.params,i.params)&&RW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function jP(t){return typeof t.title=="string"||t.title===null}var zP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=MO();parentContexts=p(ed);location=p(En);changeDetector=p(Ke);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===zP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=bo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=$($($({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=LO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye($({},t),{children:i}):$({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function e$(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=t$(t,i,e);return new vr(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=n$(i.value),o=i.children.map(r=>bh(t,r));return new vr(n,o)}}function t$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function n$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},UP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Fl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=HP(!1,wo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function HP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UP]=!0,e.cancellationCode=i,e}function i$(t){return WP(t)&&Fl(t.url)}function WP(t){return!!t&&t[UP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function o$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function r$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{a$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function a$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=s$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function s$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!ps(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!ps(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function l$(t){return typeof t=="boolean"}function c$(t){return t&&Dh(t.canLoad)}function d$(t){return t&&Dh(t.canActivate)}function u$(t){return t&&Dh(t.canActivateChild)}function m$(t){return t&&Dh(t.canDeactivate)}function p$(t){return t&&Dh(t.canMatch)}function $P(t){return t instanceof Es||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>bo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||h$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function h$(t){return Fl(t)||t instanceof qu}function GP(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function qP(t){return Xe(GP(t))}function f$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye($({},i),{guardsResult:!0})):g$(r,e,n).pipe(wi(a=>a&&l$(a)?_$(e,o,t):Me(a)),et(a=>Ye($({},i),{guardsResult:a})))})}function g$(t,i,e){return Hn(t).pipe(wi(n=>x$(n.component,n.route,e,i)),Is(n=>n!==!0,!0))}function _$(t,i,e){return Hn(i).pipe(bl(n=>Ja(b$(n.route.parent,e),v$(n.route,e),C$(t,n.path),y$(t,n.route))),Is(n=>n!==!0,!0))}function v$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function b$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function y$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>mr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=d$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(Is())}));return Me(n).pipe(Yu())}function C$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>r$(r)).filter(r=>r!==null).map(r=>mr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=u$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(Is())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function x$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=m$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(Is())});return Me(r).pipe(Yu())}function w$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=c$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(qP(o)):h});return Me(a).pipe(Yu(),YP(n))}function YP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),et(i=>i===!0))}function D$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=p$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(qP(r))});return Me(s).pipe(Yu(),YP(n))}var Ws=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function S$(t){throw new ie(4e3,!1)}function E$(t){throw HP(!1,wo.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw S$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield M$(e,o,r);if(a instanceof br)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new br(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function M$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(zi(e,()=>n(i))))}function T$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function I$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function k$(t,i,e,n,o,r,a){let s=KP(t,i,e);if(!s.matched)return Me(s);let l=QP(r(s));return n=T$(i,n),D$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:$({},RS)))}function KP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?$({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||yP)(e,t,i);if(!o)return $({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?$($({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function vP(t,i,e,n,o){return e.length>0&&O$(t,e,n,o)?{segmentGroup:new In(i,R$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&P$(t,e,n)?{segmentGroup:new In(t.segments,A$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function A$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return $($({},n),o)}function R$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function O$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function P$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function N$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function F$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var L$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=vP(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new vr(n,e),r=new vh("",o),a=RP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ws?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof vr?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=I$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=ZP(a);return V$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof Ws||$P(u))continue;throw u}if(N$(n,o,r))return new OS;throw new Ws(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new Ws(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new Ws(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=KP(e,o,r);if(!l)throw new Ws(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>L$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,QP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,j$(e),Ra(e),e.component??e._loadedComponent??null,e,z$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(k$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Ws(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=vP(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new vr(S,ve)}if(u.length===0&&j.length===0)return new vr(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new vr(S,q instanceof vr?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(w$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw E$(e)}return{routes:[],injector:i}})}};function V$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function B$(t){let i=t.value.routeConfig;return i&&i.path===""}function ZP(t){let i=[],e=new Set;for(let n of t){if(!B$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=ZP(n.children);i.push(new vr(n.value,o))}return i.filter(n=>!e.has(n))}function j$(t){return t.data||{}}function z$(t){return t.resolve||{}}function U$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield F$(t,i,e,n,s.extractedUrl,o,r,a);return Ye($({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function H$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of XP(s))r.add(l);let a=0;return Hn(r).pipe(bl(s=>o.has(s)?W$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function XP(t){let i=t.children.map(e=>XP(e)).flat();return[t,...i]}function W$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!jP(n)&&(o[Ch]=n.title),mr(()=>(t.data=NS(t,t.parent,e).resolve,$$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=$($({},t.data),r),null)))))}function $$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>G$(t[r],i,e).pipe(Is(),fi(a=>{if(a instanceof qu)throw Fv(new $s,a);o[r]=a}))),vg(1),et(()=>o),Io(r=>$P(r)?hi:wc(r)))}function G$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function bP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(JP),providedIn:"root"})}return t})(),JP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(mP))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield xP(zi(e,()=>n.loadComponent())),a=yield nN(tN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield eN(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eN(t,i,e,n){return B(this,null,function*(){let o=yield xP(zi(e,()=>t.loadChildren())),r=yield nN(tN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function q$(t){return t&&typeof t=="object"&&"default"in t}function tN(t){return q$(t)?t.default:t}function nN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(Y$),providedIn:"root"})}return t})(),Y$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function iN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Q$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Q$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var K$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(xo);urlSerializer=p(Vl);rootContexts=p(ed);location=p(ms);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(Bl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye($({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye($({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Ll(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),U$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Ll(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=VP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye($({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye($({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye($({},s),{guards:o$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),f$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",wo.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(H$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",wo.NoDataFromResolver)}}))}),bP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),bP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=e$(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye($({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=K$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new Jo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe(GP(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",wo.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),yl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Io(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(WP(s))this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),i$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new Wr(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z$(t){return t!==ju}var oN=new L("");var rN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},X$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Vl);options=p(Bl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ms);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new br;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof br?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=VP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(J$),providedIn:"root"})}return t})(),J$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Ll?this.updateStateMemento():e instanceof hs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wr&&!LP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof Jo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=$($({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=$($({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?$({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):$({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof Jo||e instanceof Wr||e instanceof Xc||e instanceof hs),et(e=>e instanceof Jo||e instanceof hs?0:(e instanceof Wr?e.code===wo.Redirect||e.code===wo.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var er=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(Bl,{optional:!0})||{};pendingTasks=p(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Vl);location=p(ms);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(rN);injectorCleanup=p(oN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Wr&&n.code!==wo.Redirect&&n.code!==wo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Jo)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=$({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Z$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}XW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye($({},r),{browserUrl:e})),o){let u=$({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Zo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=$($({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=OP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return PP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Fl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return eG(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=$({},DP):n===!1?o=$({},xS):o=$($({},xS),n),Fl(e))return pP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return pP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eG(t){for(let i=0;i{class t{router=p(er);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Vl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Jo&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new br(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Zo);options=p(Bl,{optional:!0});reactiveRouterState=p(nG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Fl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(er),D(tt),Lp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var aN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof Jo),bl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(vl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(vl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(er),we(Cn),we(Sh),we(jv))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sN=new L(""),iG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Vl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function oG(){return p(er).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function rG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(er),o=t.get(lN);t.get($S)===1&&n.initialNavigation(),t.get(uN,null,{optional:!0})?.setUpPreloading(),t.get(sN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function cN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(er),r=i.get(lN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function dN(){let t=[W_(()=>{p(er).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var uN=new L("");function mN(t){return Eh(0,[{provide:uN,useExisting:aN},{provide:Sh,useExisting:t}])}function pN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function hN(t){Hr("NgRouterViewTransitions");let i=[{provide:zS,useValue:iN},{provide:US,useValue:$({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var fN=[ms,{provide:Vl,useClass:$s},er,ed,{provide:tt,useFactory:oG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[fN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:Bl,useValue:n||{}},n?.useHash?sG():lG(),aG(),n?.preloadingStrategy?mN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?cG(n):[],n?.bindToComponentInputs?pN().\u0275providers:[],n?.enableViewTransitions?hN().\u0275providers:[],dG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function aG(){return{provide:sN,useFactory:()=>{let t=p(JD),i=p(Bl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new iG(i)}}}function sG(){return{provide:Aa,useClass:QD}}function lG(){return{provide:Aa,useClass:ov}}function cG(t){return[t.initialNavigation==="disabled"?dN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cN().\u0275providers:[]]}var WS=new L("");function dG(){return[{provide:WS,useFactory:rG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?WO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function gN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(gN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function $r(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var uG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),mG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function _N(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?mG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(uG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(_N(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var pG=20,jl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(jl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Pa.INVERTED?e.left=e.right:Zu()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),hG=20,po=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=hG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vN=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var Cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,Cr,pt,Cr]})}return t})();var KS={},zt=class t{_appId=p(Al);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},tr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},zl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof tr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends zl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ss,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},yN=(()=>{class t extends Gi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends zl{_moduleRef=p(ss,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var CN=Kv();function Ul(t){return new Xv(t.get(po),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),CN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function TN(t,i){return new Jv(t.get(jl),t.get(be),t.get(po),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function xN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function wr(t,i){return new eb(t.get(jl),t.get(po),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},IN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>TN(this._injector,e);block=()=>Ul(this._injector);reposition=e=>wr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var kN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends kN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RN=(()=>{class t extends kN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(wN(s.overlayElement,n)||wN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ON=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -141,7 +141,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),nb=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Xu=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ze(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Gs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},DN="cdk-overlay-connected-position-bounding-box",hG=/([A-Za-z%]+)$/;function Fa(t,i){return new Ju(i,t.get(po),t.get(ke),t.get(Ft),t.get(nb))}var Ju=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(DN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=EN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=SN(this._overlayRef.getConfig().minHeight),s=SN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=EN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:xN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Gs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function SN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(hG);return!e||e==="px"?parseFloat(i):null}return t||null}function EN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function fG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var MN="cdk-global-overlay-wrapper";function fs(t){return new tb}var tb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(MN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(MN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},PN=(()=>{class t{_injector=p(Te);constructor(){}global(){return fs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ah=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(ON);let e=t.get(nb),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Ah,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Xu(new Zu(h,r,t),g,h,l,t.get(be),t.get(AN),n,t.get(ms),t.get(RN),i?.disableAnimations??t.get(Rl,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var NN=(()=>{class t{scrollStrategies=p(IN);_positionBuilder=p(PN);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gG=[{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"}],_G=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),em=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),FN=new L("cdk-connected-overlay-default-config"),ib=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(_G);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(un),n=p(En),o=p(FN,{optional:!0}),r=p(Ah,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gG);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof em?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof em?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[NN],imports:[pt,xr,Th,Th]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Rh;function LN(){if(Rh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Rh=!0}))}finally{Rh=Rh||!1}return Rh}function tm(t){return LN()?t:!!t.capture}var VN=new L("cdk-input-modality-detector-options"),BN={ignoreKeys:[18,17,224,91,16]},jN=650,tE={passive:!0,capture:!0},zN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(VN,{optional:!0});if(this._options=G(G({},BN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(gg()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oh=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Oh||{}),UN=new L("cdk-focus-monitor-default-options"),ob=tm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(zN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(UN,{optional:!0});this._detectionMode=e?.detectionMode||Oh.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Oh.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Oh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ob),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ob)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,ob),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ob),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { +`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=$($({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye($({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Gs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},DN="cdk-overlay-connected-position-bounding-box",fG=/([A-Za-z%]+)$/;function Fa(t,i){return new em(i,t.get(po),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(DN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=EN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=SN(this._overlayRef.getConfig().minHeight),s=SN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=EN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:xN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Gs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function SN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(fG);return!e||e==="px"?parseFloat(i):null}return t||null}function EN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function gG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var MN="cdk-global-overlay-wrapper";function fs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(MN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(MN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},PN=(()=>{class t{_injector=p(Te);constructor(){}global(){return fs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(ON);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(AN),n,t.get(ms),t.get(RN),i?.disableAnimations??t.get(Rl,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var NN=(()=>{class t{scrollStrategies=p(IN);_positionBuilder=p(PN);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_G=[{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"}],vG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),FN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(vG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(FN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_G);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[NN],imports:[pt,xr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function LN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return LN()?t:!!t.capture}var VN=new L("cdk-input-modality-detector-options"),BN={ignoreKeys:[18,17,224,91,16]},jN=650,tE={passive:!0,capture:!0},zN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(VN,{optional:!0});if(this._options=$($({},BN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),UN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(zN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(UN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -160,14 +160,14 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),rb;function vG(){if(rb===void 0&&(rb=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(rb=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return rb}function ad(t){return vG()?.createHTML(t)||t}function HN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var WN=new Set,sd,nm=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bG(t,i){if(!WN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),WN.add(t))}catch(e){console.error(e)}}function yG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(nm);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $N(Gs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=$N(Gs(e)).map(a=>this._registerQuery(a).observable),r=bo(o);return r=Ja(r.pipe(bn(1)),r.pipe(Ec(1),Ts(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(ln(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $N(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function CG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_mutationObserverFactory=p(GN);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!CG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YN=(()=>{class t{_contentObserver=p(qN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ts(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),ab=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[GN]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=xG(AG(e));if(n&&(QN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=QN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return kG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xG(t){try{return t.frameElement}catch(i){return null}}function wG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SG(t){return MG(t)&&t.type=="hidden"}function EG(t){return TG(t)&&t.hasAttribute("href")}function MG(t){return t.nodeName.toLowerCase()=="input"}function TG(t){return t.nodeName.toLowerCase()=="a"}function XN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function QN(t){if(!XN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function IG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function kG(t){return SG(t)?!1:DG(t)||EG(t)||t.hasAttribute("contenteditable")||XN(t)}function AG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},sb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(Gr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(sb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=$r(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),JN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),eF=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),RG=0,Nh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(eF,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Hs);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(JN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:HN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Hl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Hl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Hl.BLACK_ON_WHITE}return Hl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,KN,ZN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Hl.BLACK_ON_WHITE?e.add(nE,KN):n===Hl.WHITE_ON_BLACK&&e.add(nE,ZN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(tF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ab]})}return t})();function OG(t,i){}var Wl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends zl{_elementRef=p(se);_focusTrapFactory=p(sb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Qe);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Wl,{optional:!0})||new Wl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=$r(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=$r();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$r()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,OG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { +`],encapsulation:2,changeDetection:0})}return t})(),ab;function bG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return bG()?.createHTML(t)||t}function HN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var WN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yG(t,i){if(!WN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),WN.add(t))}catch(e){console.error(e)}}function CG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $N(Gs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=$N(Gs(e)).map(a=>this._registerQuery(a).observable),r=bo(o);return r=Ja(r.pipe(bn(1)),r.pipe(Ec(1),Ts(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $N(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_mutationObserverFactory=p(GN);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!xG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YN=(()=>{class t{_contentObserver=p(qN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ts(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[GN]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return DG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=wG(RG(e));if(n&&(QN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=QN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return AG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wG(t){try{return t.frameElement}catch(i){return null}}function DG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function SG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function EG(t){return TG(t)&&t.type=="hidden"}function MG(t){return IG(t)&&t.hasAttribute("href")}function TG(t){return t.nodeName.toLowerCase()=="input"}function IG(t){return t.nodeName.toLowerCase()=="a"}function XN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function QN(t){if(!XN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function AG(t){return EG(t)?!1:SG(t)||MG(t)||t.hasAttribute("contenteditable")||XN(t)}function RG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(Gr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=$r(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),JN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),eF=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),OG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(eF,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Hs);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(JN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:HN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Hl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Hl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Hl.BLACK_ON_WHITE}return Hl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,KN,ZN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Hl.BLACK_ON_WHITE?e.add(nE,KN):n===Hl.WHITE_ON_BLACK&&e.add(nE,ZN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(tF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function PG(t,i){}var Wl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends zl{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ke);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Wl,{optional:!0})||new Wl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=$r(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=$r();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$r()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,PG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } -`],encapsulation:2})}return t})(),Fh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!dn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},PG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),NG=new L("DialogData"),FG=new L("DefaultDialogConfig");function LG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(FG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(nb);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(PG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Wl;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Fh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Wl,useValue:o},{provide:Fh,useValue:n},{provide:Xu,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new tr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof un){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new tr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:NG,useValue:e.data},{provide:Fh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:LG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var nF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[ho,xr,cd,xr]})}return t})();function qr(t){return t!=null&&`${t}`!="false"}function iF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var lb={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 VG=new L("MATERIAL_ANIMATIONS"),oF=null;function cE(){return p(VG,{optional:!0})?.animationsDisabled||p(Rl,{optional:!0})==="NoopAnimations"?"di-disabled":(oF??=p(nm).matchMedia("(prefers-reduced-motion)").matches,oF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var BG=200,cb=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:BG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Ts(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof fr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):cs(i)&&(this._effectRef=Ns(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new cb(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends im{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qs=class extends im{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var sF=" ";function am(t,i,e){let n=mb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(sF)))}function $l(t,i,e){let n=mb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(sF)):t.removeAttribute(i)}function mb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lF="cdk-describedby-message",ub="cdk-describedby-host",uE=0,pb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(Gr),this._id=p(Al)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(aF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${ub}="${this._id}"]`);for(let n=0;no.indexOf(lF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);am(e,"aria-describedby",o.messageElement.id),e.setAttribute(ub,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,$l(e,"aria-describedby",o.messageElement.id),e.removeAttribute(ub)}_isElementDescribedByMessage(e,n){let o=mb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function aF(t,i){t.id||(t.id=`${lF}-${i}-${uE++}`)}function jG(t,i){}var fb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",cF="mdc-dialog--opening",dF="mdc-dialog--closing",zG=150,UG=75,HG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?mF(this._config.enterAnimationDuration)??zG:0;_exitAnimationDuration=this._animationsEnabled?mF(this._config.exitAnimationDuration)??UG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(cF,dF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,jG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { +`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},NG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),FG=new L("DialogData"),LG=new L("DefaultDialogConfig");function VG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(LG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(NG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Wl;n=$($({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Wl,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new tr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=$($({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new tr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:FG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:VG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var nF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[ho,xr,cd,xr]})}return t})();function qr(t){return t!=null&&`${t}`!="false"}function iF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 BG=new L("MATERIAL_ANIMATIONS"),oF=null;function cE(){return p(BG,{optional:!0})?.animationsDisabled||p(Rl,{optional:!0})==="NoopAnimations"?"di-disabled":(oF??=p(im).matchMedia("(prefers-reduced-motion)").matches,oF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var jG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:jG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Ts(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof fr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):cs(i)&&(this._effectRef=Ns(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qs=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var sF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(sF)))}function $l(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(sF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(Gr),this._id=p(Al)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(aF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(lF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,$l(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function aF(t,i){t.id||(t.id=`${lF}-${i}-${uE++}`)}function zG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",cF="mdc-dialog--opening",dF="mdc-dialog--closing",UG=150,HG=75,WG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?mF(this._config.enterAnimationDuration)??UG:0;_exitAnimationDuration=this._animationsEnabled?mF(this._config.exitAnimationDuration)??HG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(cF,dF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,zG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { width: 100%; height: 100%; display: block; @@ -356,8 +356,8 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-dialog-component-host { display: contents; } -`],encapsulation:2})}return t})(),uF="--mat-dialog-transition-duration";function mF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var hb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(hb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Vr(1);_beforeClosed=new Vr(1);_result;_closeFallbackTimeout;_state=hb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!dn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),pF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=hb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=hb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),WG=new L("mat-mdc-dialog-default-options"),$G=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),Bh=(()=>{class t{_defaultOptions=p(WG,{optional:!0});_scrollStrategy=p($G);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=fb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ln(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=HG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new fb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ze(G({},n),{positionStrategy:fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Wl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Bh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=fF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),hF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(Bh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends hF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Mh])]})}return t})(),Dt=(()=>{class t extends hF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function fF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var gF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Bh],imports:[nF,ho,xr,pt]})}return t})();var _F,vF=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bF=[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 sm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var yF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Gl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||YG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=GG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(CF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(CF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` -`;case"o":return String(i.getDate())+qG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(xF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(xF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},GG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},qG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},xF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Gl(pE(o),new Date(i*1e3))}return n},wF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),DF=t=>t===""||t===null||t===void 0,gb=t=>t==="yes"||t===!0||t==="true"||t===1,YG={days:vF,shortDays:yF(vF),months:bF,shortMonths:yF(bF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Kr=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return mg(t.pipe(RC(i)));e=mg(t)}return e},qn=class{static{_F=Symbol.toStringTag}constructor(){this[_F]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var lm,SF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(lm)return lm;if(typeof document!="object"||!document)return lm=new Set(SF),lm;let t=document.createElement("input");return lm=new Set(SF.filter(i=>(t.setAttribute("type",i),t.type===i))),lm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},EF=tm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,EF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,EF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},jh={enterDuration:225,exitDuration:150},QG=800,MF=tm({passive:!0,capture:!0}),TF=["mousedown","touchstart"],IF=["mouseup","mouseleave","touchend","touchcancel"],KG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { +`],encapsulation:2})}return t})(),uF="--mat-dialog-transition-duration";function mF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Vr(1);_beforeClosed=new Vr(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),pF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),$G=new L("mat-mdc-dialog-default-options"),GG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),jh=(()=>{class t{_defaultOptions=p($G,{optional:!0});_scrollStrategy=p(GG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=WG,this._dialogDataToken=bt}open(e,n){let o;n=$($({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye($({},n),{positionStrategy:fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Wl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=fF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),hF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends hF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends hF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function fF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var gF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[nF,ho,xr,pt]})}return t})();var _F,vF=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var yF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Gl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||QG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=qG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(CF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(CF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` +`;case"o":return String(i.getDate())+YG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(xF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(xF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},qG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},YG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},xF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Gl(pE(o),new Date(i*1e3))}return n},wF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),DF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,QG={days:vF,shortDays:yF(vF),months:bF,shortMonths:yF(bF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Kr=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{_F=Symbol.toStringTag}constructor(){this[_F]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,SF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(SF),cm;let t=document.createElement("input");return cm=new Set(SF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},EF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,EF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,EF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},KG=800,MF=nm({passive:!0,capture:!0}),TF=["mousedown","touchstart"],IF=["mouseup","mouseleave","touchend","touchcancel"],ZG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -385,7 +385,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),zh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(KG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},jh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||ZG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},jh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{IF.forEach(e=>{this._triggerElement.addEventListener(e,this,MF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(TF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(IF.forEach(e=>i.removeEventListener(e,this,MF)),this._pointerUpEventsRegistered=!1))}};function ZG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var cm=new L("mat-ripple-global-options"),Dr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(cm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new zh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var XG={capture:!0},JG=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",kF="mat-ripple-loader-centered",_b="mat-ripple-loader-disabled",vb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(cm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>JG.map(n=>e.listen(this._document,n,this._onInteraction,XG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(kF,""),n.disabled&&e.setAttribute(_b,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(_b,""):e.removeAttribute(_b)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??jh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??jh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(_b),rippleConfig:{centered:e.hasAttribute(kF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new zh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(ZG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=$($({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||XG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=$($({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{IF.forEach(e=>{this._triggerElement.addEventListener(e,this,MF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(TF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(IF.forEach(e=>i.removeEventListener(e,this,MF)),this._pointerUpEventsRegistered=!1))}};function XG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Dr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:$($($({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,$($({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,$($({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var JG={capture:!0},e7=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",kF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>e7.map(n=>e.listen(this._document,n,this._onInteraction,JG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(kF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(kF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -411,7 +411,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var e7=["mat-icon-button",""],t7=["*"],n7=new L("MAT_BUTTON_CONFIG");function AF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(n7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(vb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",AF],_tabindex:[2,"tabindex","_tabindex",AF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:e7,ngContentSelectors:t7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),uo(0,"span",0),Ie(1),uo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var t7=["mat-icon-button",""],n7=["*"],i7=new L("MAT_BUTTON_CONFIG");function AF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(i7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",AF],_tabindex:[2,"tabindex","_tabindex",AF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:t7,ngContentSelectors:n7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),uo(0,"span",0),Ie(1),uo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -536,7 +536,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var gs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var i7=["matButton",""],o7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],r7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=a7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?RF.get(this._appearance):null,r=RF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:i7,ngContentSelectors:r7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(o7),uo(0,"span",0),Ie(1),cn(2,"span",1),Ie(3,1),mn(),Ie(4,2),uo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var gs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var o7=["matButton",""],r7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],a7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=s7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?RF.get(this._appearance):null,r=RF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:o7,ngContentSelectors:a7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(r7),uo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),uo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -1080,7 +1080,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function a7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var bb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Hs,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function s7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function l7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Uh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Uh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=rp(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Uh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),Gt(1,"safeHtml"),O(2,"mat-dialog-content",1),Gt(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,s7,4,1,"button",2),A(6,l7,3,1,"button",3),A(7,c7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,bb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Wo=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})(Wo||{}),Hh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var jF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),zF=(()=>{class t extends jF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),$o=new L("");var d7={provide:$o,useExisting:Wn(()=>Wt),multi:!0};function u7(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var m7=new L(""),Wt=(()=>{class t extends jF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!u7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(m7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ye([d7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Ob=new L(""),p7=/^(?=.{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])?)*$/,vs=class{static min(i){return h7(i)}static max(i){return f7(i)}static required(i){return UF(i)}static requiredTrue(i){return g7(i)}static email(i){return _7(i)}static minLength(i){return v7(i)}static maxLength(i){return HF(i)}static pattern(i){return b7(i)}static nullValidator(i){return Cb()}static compose(i){return QF(i)}static composeAsync(i){return KF(i)}};function h7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function UF(t){return wE(t.value)?{required:!0}:null}function g7(t){return t.value===!0?null:{required:!0}}function _7(t){return wE(t.value)||p7.test(t.value)?null:{email:!0}}function v7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function b7(t){if(!t)return Cb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Cb(t){return null}function WF(t){return t!=null}function $F(t){return Bs(t)?Hn(t):t}function GF(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function qF(t,i){return i.map(e=>e(t))}function y7(t){return!t.validate}function YF(t){return t.map(i=>y7(i)?i:e=>i.validate(e))}function QF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){return GF(qF(e,i))}}function SE(t){return t!=null?QF(YF(t)):null}function KF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){let n=qF(e,i).map($F);return op(n).pipe(et(GF))}}function EE(t){return t!=null?KF(YF(t)):null}function PF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZF(t){return t._rawValidators}function XF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function xb(t,i){return Array.isArray(t)?t.includes(i):t===i}function NF(t,i){let e=xE(i);return xE(t).forEach(o=>{xb(e,o)||e.push(o)}),e}function FF(t,i){return xE(i).filter(e=>!xb(t,e))}var wb=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ys=class extends wb{name;get formDirective(){return null}get path(){return null}},nr=class extends wb{_parent=null;name=null;valueAccessor=null},Db=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Db{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(nr,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Pb=(()=>{class t extends Db{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ys,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var Wh="VALID",yb="INVALID",dm="PENDING",$h="DISABLED",ql=class{},Sb=class extends ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},qh=class extends ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Yh=class extends ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},um=class extends ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Eb=class extends ql{source;constructor(i){super(),this.source=i}},Mb=class extends ql{source;constructor(i){super(),this.source=i}};function JF(t){return(Nb(t)?t.validators:t)||null}function C7(t){return Array.isArray(t)?SE(t):t||null}function e2(t,i){return(Nb(i)?i.asyncValidators:t)||null}function x7(t){return Array.isArray(t)?EE(t):t||null}function Nb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function w7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function D7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Tb=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return pn(this.statusReactive)}set status(i){pn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===Wh}get invalid(){return this.status===yb}get pending(){return this.status===dm}get disabled(){return this.status===$h}get enabled(){return this.status!==$h}errors;get pristine(){return pn(this.pristineReactive)}set pristine(i){pn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return pn(this.touchedReactive)}set touched(i){pn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(NF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(FF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(FF(i,this._rawAsyncValidators))}hasValidator(i){return xb(this._rawValidators,i)}hasAsyncValidator(i){return xb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ze(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ze(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new qh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new qh(!0,n))}markAsPending(i={}){this.status=dm;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new um(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ze(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this.errors=null,this._forEachChild(o=>{o.disable(Ze(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Sb(this.value,n)),this._events.next(new um(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ze(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Wh,this._forEachChild(n=>{n.enable(Ze(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ze(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wh||this.status===dm)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Sb(this.value,e)),this._events.next(new um(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ze(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$h:Wh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=dm,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$F(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new um(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?$h:this.errors?yb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dm)?dm:this._anyControlsHaveStatus(yb)?yb:Wh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new qh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Yh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Nb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=C7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=x7(this._rawAsyncValidators)}},Ib=class extends Tb{constructor(i,e,n){super(JF(e),e2(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){D7(this,!0,i),Object.keys(i).forEach(n=>{w7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ze(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Mb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var mm=new L("",{factory:()=>Fb}),Fb="always";function S7(t,i){return[...i.path,t]}function Qh(t,i,e=Fb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),M7(t,i),I7(t,i),T7(t,i),E7(t,i)}function kb(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Rb(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ab(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function E7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=ZF(t);i.validator!==null?t.setValidators(PF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=XF(t);i.asyncValidator!==null?t.setAsyncValidators(PF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Ab(i._rawValidators,o),Ab(i._rawAsyncValidators,o)}function Rb(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=XF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Ab(i._rawValidators,n),Ab(i._rawAsyncValidators,n),e}function M7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&t2(t,i)})}function T7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&t2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function t2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function I7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function n2(t,i){t==null,ME(t,i)}function k7(t,i){return Rb(t,i)}function i2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function A7(t){return Object.getPrototypeOf(t.constructor)===zF}function o2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Wt?e=r:A7(r)?n=r:o=r}),o||n||e||null}function R7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var O7={provide:Ys,useExisting:Wn(()=>Jr)},Gh=Promise.resolve(),Jr=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Ib({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Gh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Qh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Gh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Gh.then(()=>{let n=this._findContainer(e.path),o=new Ib({});n2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Gh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Gh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),o2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Eb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([O7]),We]})}return t})();function LF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Lb=class extends Tb{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(JF(e),e2(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Mb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){LF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){LF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){VF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var P7=t=>t instanceof Lb;var N7={provide:nr,useExisting:Wn(()=>Ke)},BF=Promise.resolve(),Ke=(()=>{class t extends nr{_changeDetectorRef;callSetDisabledState;control=new Lb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=r2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Qh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){BF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);BF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?S7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ys,9),D(Xr,10),D(Ob,10),D($o,10),D(Qe,8),D(mm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ye([N7]),We,Ct]})}return t})();var Vb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),F7={provide:$o,useExisting:Wn(()=>Sr),multi:!0},Sr=(()=>{class t extends zF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ye([F7]),We]})}return t})();var L7=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return pn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Rb(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Qh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){kb(e.control||null,e,!1),R7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,o2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Eb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(kb(n||null,e),P7(o)&&(Qh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);n2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&k7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Rb(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D(mm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var a2=new L(""),V7={provide:nr,useExisting:Wn(()=>TE)},TE=(()=>{class t extends nr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&kb(n,this,!1),Qh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&kb(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Ob,10),D($o,10),D(a2,8),D(mm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ye([V7]),We,Ct]})}return t})();var B7={provide:Ys,useExisting:Wn(()=>Yl)},Yl=(()=>{class t extends L7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ye([B7]),We]})}return t})();function j7(t){return typeof t=="number"?t:parseInt(t,10)}var s2=(()=>{class t{_validator=Cb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Cb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var z7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends s2{required;inputName="required";normalizeInput=K;createValidator=e=>UF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ye([z7]),We]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends s2{maxlength;inputName="maxlength";normalizeInput=e=>j7(e);createValidator=e=>HF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ye([U7]),We]})}return t})();var l2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var c2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mm,useValue:e.callSetDisabledState??Fb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})(),Bb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:mm,useValue:e.callSetDisabledState??Fb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),bg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},jb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function H7(t,i){t&1&&Ie(0)}var W7=["tabListContainer"],$7=["tabList"],G7=["tabListInner"],q7=["nextPaginator"],Y7=["previousPaginator"],Q7=["content"];function K7(t,i){}var Z7=["tabBodyWrapper"],X7=["tabHeader"];function J7(t,i){}function e9(t,i){if(t&1&&xe(0,J7,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function t9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function n9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,e9,1,1,null,12)(7,t9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function i9(t,i){t&1&&Ie(0)}function o9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var r9=new L("MatTabContent"),a9=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ye([{provide:r9,useExisting:t}])]})}return t})(),s9=new L("MatTabLabel"),p2=new L("MAT_TAB"),Yn=(()=>{class t extends yN{_closestTab=p(p2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ye([{provide:s9,useExisting:t}]),We]})}return t})(),h2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(h2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,a9,7,un),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(un,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ye([{provide:p2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Vs(0,H7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",d2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},l9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(d2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(d2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var f2=(()=>{class t extends l9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),u2={passive:!0},c9=650,d9=100,u9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_viewportRuler=p(po);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(jb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),u2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),u2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ts(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(ln(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!dn(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ms(c9,d9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),m9=(()=>{class t extends u9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,f2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at(W7,7)($7,7)(G7,7)(q7,5)(Y7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Dr,YN],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return t})();function s7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Hs,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function l7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function d7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),Gt(1,"safeHtml"),O(2,"mat-dialog-content",1),Gt(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,l7,4,1,"button",2),A(6,c7,3,1,"button",3),A(7,d7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Wo=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})(Wo||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var jF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),zF=(()=>{class t extends jF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),$o=new L("");var u7={provide:$o,useExisting:Wn(()=>Wt),multi:!0};function m7(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p7=new L(""),Wt=(()=>{class t extends jF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!m7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(p7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Qe([u7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),h7=/^(?=.{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])?)*$/,vs=class{static min(i){return f7(i)}static max(i){return g7(i)}static required(i){return UF(i)}static requiredTrue(i){return _7(i)}static email(i){return v7(i)}static minLength(i){return b7(i)}static maxLength(i){return HF(i)}static pattern(i){return y7(i)}static nullValidator(i){return xb()}static compose(i){return QF(i)}static composeAsync(i){return KF(i)}};function f7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function UF(t){return wE(t.value)?{required:!0}:null}function _7(t){return t.value===!0?null:{required:!0}}function v7(t){return wE(t.value)||h7.test(t.value)?null:{email:!0}}function b7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function y7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function WF(t){return t!=null}function $F(t){return Bs(t)?Hn(t):t}function GF(t){let i={};return t.forEach(e=>{i=e!=null?$($({},i),e):i}),Object.keys(i).length===0?null:i}function qF(t,i){return i.map(e=>e(t))}function C7(t){return!t.validate}function YF(t){return t.map(i=>C7(i)?i:e=>i.validate(e))}function QF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){return GF(qF(e,i))}}function SE(t){return t!=null?QF(YF(t)):null}function KF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){let n=qF(e,i).map($F);return rp(n).pipe(et(GF))}}function EE(t){return t!=null?KF(YF(t)):null}function PF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZF(t){return t._rawValidators}function XF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function NF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function FF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ys=class extends Db{name;get formDirective(){return null}get path(){return null}},nr=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(nr,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ys,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",ql=class{},Eb=class extends ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends ql{source;constructor(i){super(),this.source=i}},Tb=class extends ql{source;constructor(i){super(),this.source=i}};function JF(t){return(Fb(t)?t.validators:t)||null}function x7(t){return Array.isArray(t)?SE(t):t||null}function e2(t,i){return(Fb(i)?i.asyncValidators:t)||null}function w7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function D7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function S7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(NF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(FF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(FF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye($({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye($({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye($({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye($({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye($({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye($({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye($({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye($({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$F(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=x7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=w7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(JF(e),e2(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){S7(this,!0,i),Object.keys(i).forEach(n=>{D7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye($({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function E7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),T7(t,i),k7(t,i),I7(t,i),M7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function M7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=ZF(t);i.validator!==null?t.setValidators(PF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=XF(t);i.asyncValidator!==null?t.setAsyncValidators(PF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=XF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function T7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&t2(t,i)})}function I7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&t2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function t2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function k7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function n2(t,i){t==null,ME(t,i)}function A7(t,i){return Ob(t,i)}function i2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function R7(t){return Object.getPrototypeOf(t.constructor)===zF}function o2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Wt?e=r:R7(r)?n=r:o=r}),o||n||e||null}function O7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var P7={provide:Ys,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});n2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),o2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([P7]),We]})}return t})();function LF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(JF(e),e2(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){LF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){LF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){VF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var N7=t=>t instanceof Vb;var F7={provide:nr,useExisting:Wn(()=>Ze)},BF=Promise.resolve(),Ze=(()=>{class t extends nr{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=r2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){BF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);BF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?E7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ys,9),D(Xr,10),D(Pb,10),D($o,10),D(Ke,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Qe([F7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),L7={provide:$o,useExisting:Wn(()=>Sr),multi:!0},Sr=(()=>{class t extends zF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Qe([L7]),We]})}return t})();var V7=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),O7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,o2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),N7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);n2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&A7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var a2=new L(""),B7={provide:nr,useExisting:Wn(()=>TE)},TE=(()=>{class t extends nr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D($o,10),D(a2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Qe([B7]),We,Ct]})}return t})();var j7={provide:Ys,useExisting:Wn(()=>Yl)},Yl=(()=>{class t extends V7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([j7]),We]})}return t})();function z7(t){return typeof t=="number"?t:parseInt(t,10)}var s2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends s2{required;inputName="required";normalizeInput=K;createValidator=e=>UF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Qe([U7]),We]})}return t})();var H7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends s2{maxlength;inputName="maxlength";normalizeInput=e=>z7(e);createValidator=e=>HF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Qe([H7]),We]})}return t})();var l2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var c2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function W7(t,i){t&1&&Ie(0)}var $7=["tabListContainer"],G7=["tabList"],q7=["tabListInner"],Y7=["nextPaginator"],Q7=["previousPaginator"],K7=["content"];function Z7(t,i){}var X7=["tabBodyWrapper"],J7=["tabHeader"];function e9(t,i){}function t9(t,i){if(t&1&&xe(0,e9,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function n9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function i9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,t9,1,1,null,12)(7,n9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function o9(t,i){t&1&&Ie(0)}function r9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var a9=new L("MatTabContent"),s9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Qe([{provide:a9,useExisting:t}])]})}return t})(),l9=new L("MatTabLabel"),p2=new L("MAT_TAB"),Yn=(()=>{class t extends yN{_closestTab=p(p2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Qe([{provide:l9,useExisting:t}]),We]})}return t})(),h2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(h2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,s9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Qe([{provide:p2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Vs(0,W7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",d2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},c9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(d2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(d2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var f2=(()=>{class t extends c9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),u2={passive:!0},d9=650,u9=100,m9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_viewportRuler=p(po);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),u2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),u2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ts(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ms(d9,u9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),p9=(()=>{class t extends m9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,f2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at($7,7)(G7,7)(q7,7)(Y7,5)(Q7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Dr,YN],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -1199,7 +1199,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` color: GrayText; } } -`],encapsulation:2})}return t})(),p9=new L("MAT_TABS_CONFIG"),m2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ln(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Qe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(m2,5)(Q7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,K7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[m2,Mh],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return t})(),h9=new L("MAT_TABS_CONFIG"),m2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ke);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(m2,5)(K7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,Z7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[m2,Th],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -1251,7 +1251,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new fr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(p9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ln(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(Z7,5)(X7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ye([{provide:h2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,n9,8,17,"div",4,De),d(),A(4,i9,1,0),c(5,"div",5,1),fe(7,o9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),ku("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[m9,f2,Ph,Dr,Vo,RE],styles:[`.mdc-tab { +`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new fr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(h9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(X7,5)(J7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Qe([{provide:h2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,i9,8,17,"div",4,De),d(),A(4,o9,1,0),c(5,"div",5,1),fe(7,r9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[p9,f2,Nh,Dr,Vo,RE],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -1472,15 +1472,15 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transition: none !important; animation: none !important; } -`],encapsulation:2})}return t})(),OE=class{index;tab};var g2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function h9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function f9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var zb=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=Wo}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,h9,1,1,"uds-field-text",1)(2,f9,1,1,"uds-field-autocomplete",1)(3,g9,1,1,"uds-field-textbox",1)(4,_9,1,1,"uds-field-numeric",1)(5,v9,1,1,"uds-field-password",1)(6,b9,1,1,"uds-field-hidden",1)(7,y9,1,1,"uds-field-choice",1)(8,C9,1,1,"uds-field-multichoice",1)(9,x9,1,1,"uds-field-editlist",1)(10,w9,1,1,"uds-field-checkbox",1)(11,D9,1,1,"uds-field-imgchoice",1)(12,S9,1,1,"uds-field-date",1)(13,E9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function T9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function I9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function k9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,T9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,I9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function A9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,k9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function R9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function O9(t,i){if(t&1&&(c(0,"div",1),fe(1,R9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var _2=django.gettext("Main"),P9=django.gettext("Advanced"),v2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?_2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===_2?-1:e===P9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,A9,3,2,"mat-tab-group",0)(1,O9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,zb],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}"]})}}return t})();function F9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var b2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),Gt(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,F9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Vb,Pb,Jr,Fe,xt,Dt,wt,Ee,v2,bb],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}"]})}}return t})();var Ub=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Wo.TEXT&&l.gui.lines&&(l.gui.type=Wo.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(b2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===Wo.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("
")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var L9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Hb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Ub(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Uh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Uh.question,warnOnYes:n},disableClose:!0});return Kr(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var Wb={production:!0};var _n=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(_n||{}),Ut=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Ut||{});var NE="provider",FE="service",Kh="pool",V9="authenticator",Zh="user",LE="group",VE="transport",BE="osmanager",$b="calendar",jE="poolgroup",B9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+B9[i]+"",type:Ut.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Kh:this.gotoServicePool(o(0));break;case V9:this.gotoAuthenticator(o(0));break;case Zh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case $b:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function j9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var z9=["label"];function U9(t,i){}var H9=Math.pow(2,31)-1,Xh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,H9))}_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}},y2=new L("MatSnackBarData"),pm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},W9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),C2=(()=>{class t{snackBarRef=p(Xh);data=p(y2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,j9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` -`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,W9,$9,G9],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2})}return t})(),OE=class{index;tab};var g2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function f9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function M9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=Wo}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,f9,1,1,"uds-field-text",1)(2,g9,1,1,"uds-field-autocomplete",1)(3,_9,1,1,"uds-field-textbox",1)(4,v9,1,1,"uds-field-numeric",1)(5,b9,1,1,"uds-field-password",1)(6,y9,1,1,"uds-field-hidden",1)(7,C9,1,1,"uds-field-choice",1)(8,x9,1,1,"uds-field-multichoice",1)(9,w9,1,1,"uds-field-editlist",1)(10,D9,1,1,"uds-field-checkbox",1)(11,S9,1,1,"uds-field-imgchoice",1)(12,E9,1,1,"uds-field-date",1)(13,M9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function I9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function k9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function A9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,I9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,k9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function R9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,A9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function O9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function P9(t,i){if(t&1&&(c(0,"div",1),fe(1,O9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var _2=django.gettext("Main"),N9=django.gettext("Advanced"),v2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?_2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===_2?-1:e===N9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,R9,3,2,"mat-tab-group",0)(1,P9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function L9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var b2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),Gt(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,L9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,v2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Wo.TEXT&&l.gui.lines&&(l.gui.type=Wo.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(b2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===Wo.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var V9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return Kr(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Ut=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Ut||{});var NE="provider",FE="service",Zh="pool",B9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",j9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+j9[i]+"",type:Ut.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case B9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function z9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var U9=["label"];function H9(t,i){}var W9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W9))}_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}},y2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),C2=(()=>{class t{snackBarRef=p(Jh);data=p(y2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,z9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` +`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,$9,G9,q9],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",q9=(()=>{class t extends zl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(pm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(z9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,U9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",Y9=(()=>{class t extends zl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(U9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,H9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1596,7 +1596,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return t})(),Y9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new pm}),HE=(()=>{class t{_live=p(Nh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Y9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=C2;snackBarContainerComponent=q9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:pm,useValue:n}]}),a=new tr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new pm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Xh(a,r);if(e instanceof un){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new tr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(lb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=fs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Xh,useValue:n},{provide:y2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[ho,xr,_s,C2,pt]})}return t})();var Jh=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Au)}),hm="Method not implemented",so=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(hm)}getHours(i){throw new Error(hm)}getMinutes(i){throw new Error(hm)}getSeconds(i){throw new Error(hm)}parseTime(i,e){throw new Error(hm)}addSeconds(i,e){throw new Error(hm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ql=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2})}return t})(),Q9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Q9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=C2;snackBarContainerComponent=Y9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=$($({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new tr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=$($($({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new tr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=fs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:y2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[ho,xr,_s,C2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",so=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ql=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1702,7 +1702,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();var K9=["text"],Z9=[[["mat-icon"]],"*"],X9=["mat-icon","*"];function J9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function tq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var gm=new L("MAT_OPTION_PARENT_COMPONENT"),_m=new L("MatOptgroup");var fm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Qe);_parent=p(gm,{optional:!0});group=p(_m,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._signalDisableRipple=!!this._parent&&cs(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!dn(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new fm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(K9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:X9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(Z9),A(0,J9,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,eq,1,1,"mat-pseudo-checkbox",3),A(6,tq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Gb,Dr],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return t})();var Z9=["text"],X9=[[["mat-icon"]],"*"],J9=["mat-icon","*"];function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function tq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function nq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ke);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._signalDisableRipple=!!this._parent&&cs(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(Z9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:J9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(X9),A(0,eq,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,tq,1,1,"mat-pseudo-checkbox",3),A(6,nq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Dr],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -1823,7 +1823,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})();function ef(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,w2,Mt,pt]})}return t})();var Kl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var nq=["mat-internal-form-field",""],iq=["*"],qb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:nq,ngContentSelectors:iq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,w2,Mt,pt]})}return t})();var Kl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var iq=["mat-internal-form-field",""],oq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:iq,ngContentSelectors:oq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var oq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,rq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends so{_matDateLocale=p(Jh,{optional:!0});constructor(){super();let e=p(Jh,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ze(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(oq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(rq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var sq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var D2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lq()]})}return t})();function lq(t=sq){return[{provide:so,useClass:aq},{provide:Ql,useValue:t}]}var S2="dark-theme",E2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new $v(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Hb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return Wb.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[S2,E2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?S2:E2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Fu),we(er),we(Bh),we(HE),we(Hs),we(so))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var T2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,dq,7,1,"div",2),A(6,uq,7,1,"div",2),A(7,mq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var Xl=3e4,Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),ci=class{constructor(i,e,n){this.api=i,n===void 0&&(n={}),n.base===void 0&&(n.base=e);let o=(r,a)=>r===void 0?a:r;this.id=e,this.paths={base:n.base,get:o(n.get,n.base),log:o(n.log,n.base),put:o(n.put,n.base),test:o(n.test,n.base+"/test"),delete:o(n.delete,n.base),types:o(n.types,n.base+"/types"),gui:o(n.gui,n.base+"/gui"),tableInfo:o(n.tableInfo,n.base+"/tableinfo")},this.headers=new Xo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.paths.log,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.paths.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Kr(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xl).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Xo}:(this.handleError(r),{items:[],headers:new Xo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Kr(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Io(n=>this.handleError(n))),Xl)}delete(i){return Kr(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.paths.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Kr(this.api.http.put(r,a,{headers:this.headers}).pipe(Io(s=>this.handleError(s))),Xl)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Kr(this.api.http.put(e,n,{headers:this.headers}).pipe(Io(o=>this.handleError(o))),Xl)}types(){return this.doGet(this.getPath(this.paths.types))}gui(i){let e=this.getPath(this.paths.gui+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(i,e){return new GE(this,i,e)}invoke(i,e){let n=i+(e?"?"+e:"");return this.typedGet(n)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.paths.base)+"/position/"+i)}getPath(i,e){if(i===void 0)throw new Error("Path is undefined");return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Kr(this.api.http.get(i,{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Kr(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Io(n=>this.handleError(n,!0))),Xl)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.paths.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},Qb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.get(i+"/maintenance")}},Kb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Zb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Xb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"networks"),this.api=i}},e0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.get(i+"/assign/"+e)}},t0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},n0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}actionsList(i){return this.get(i+"/actionsList")}listAssignables(i){return this.get(i+"/listAssignables")}createFromAssignable(i,e,n){return this.get(i+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))}},i0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}},o0=class extends ci{constructor(i){super(i,"config"),this.api=i}},r0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},s0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},l0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Kr(Me([]))}},c0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},d0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},u0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},m0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},p0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},f0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},g0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Kr(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),Xl).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Qb(e),this.serverGroups=new t0(e),this.authenticators=new Kb(e),this.mfas=new h0(e),this.osManagers=new Zb(e),this.transports=new Xb(e),this.networks=new Jb(e),this.tunnels=new e0(e),this.servicesPools=new n0(e),this.metaPools=new i0(e),this.gallery=new r0(e),this.servicesPoolGroups=new a0(e),this.calendars=new d0(e),this.accounts=new u0(e),this.system=new s0(e),this.configuration=new o0(e),this.actorToken=new m0(e),this.serversTokens=new p0(e),this.reports=new l0(e),this.dashboard=new c0(e),this.enterprise=new g0(e),this.notifiers=new f0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var pq=["determinateSpinner"];function hq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var fq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,gq=10,bm=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(fq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-gq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(pq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,hq,2,8,"ng-template",null,0,Gp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Zp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends so{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye($({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var D2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:so,useClass:sq},{provide:Ql,useValue:t}]}var S2="dark-theme",E2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[S2,E2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?S2:E2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(er),we(jh),we(HE),we(Hs),we(so))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var T2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var Xl=3e4,Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),ci=class{constructor(i,e,n){this.api=i,n===void 0&&(n={}),n.base===void 0&&(n.base=e);let o=(r,a)=>r===void 0?a:r;this.id=e,this.paths={base:n.base,get:o(n.get,n.base),log:o(n.log,n.base),put:o(n.put,n.base),test:o(n.test,n.base+"/test"),delete:o(n.delete,n.base),types:o(n.types,n.base+"/types"),gui:o(n.gui,n.base+"/gui"),tableInfo:o(n.tableInfo,n.base+"/tableinfo")},this.headers=new Xo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.paths.log,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.paths.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Kr(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xl).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Xo}:(this.handleError(r),{items:[],headers:new Xo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Kr(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Io(n=>this.handleError(n))),Xl)}delete(i){return Kr(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.paths.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Kr(this.api.http.put(r,a,{headers:this.headers}).pipe(Io(s=>this.handleError(s))),Xl)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Kr(this.api.http.put(e,n,{headers:this.headers}).pipe(Io(o=>this.handleError(o))),Xl)}types(){return this.doGet(this.getPath(this.paths.types))}gui(i){let e=this.getPath(this.paths.gui+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(i,e){return new GE(this,i,e)}invoke(i,e){let n=i+(e?"?"+e:"");return this.typedGet(n)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.paths.base)+"/position/"+i)}getPath(i,e){if(i===void 0)throw new Error("Path is undefined");return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Kr(this.api.http.get(i,{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Kr(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Io(n=>this.handleError(n,!0))),Xl)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.paths.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.get(i+"/maintenance")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.get(i+"/assign/"+e)}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}actionsList(i){return this.get(i+"/actionsList")}listAssignables(i){return this.get(i+"/listAssignables")}createFromAssignable(i,e,n){return this.get(i+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Kr(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Kr(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),Xl).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hq=["determinateSpinner"];function fq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var gq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,_q=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(gq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-_q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(hq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,fq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; @@ -2032,9 +2032,9 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transform: rotate(-265deg); } } -`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var _q="uplot",vq="u-hz",bq="u-vt",yq="u-title",Cq="u-wrap",xq="u-under",wq="u-over",Dq="u-axis",gd="u-off",Sq="u-select",Eq="u-cursor-x",Mq="u-cursor-y",Tq="u-cursor-pt",Iq="u-legend",kq="u-live",Aq="u-inline",Rq="u-series",Oq="u-marker",R2="u-label",Pq="u-value",of="width",rf="height";var O2="bottom",ym="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Nq="resize",Fq="scroll",B2="change",C0="dppxchange",uM="--",Mm=typeof window<"u",eM=Mm?document:null,xm=Mm?window:null,Lq=Mm?navigator:null,kn,_0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,_0&&iM(B2,_0,tM),_0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,_0,tM),xm.dispatchEvent(new CustomEvent(C0)))}function Mr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function La(t,i,e,n){let o=eM.createElement(t);return i!=null&&Mr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return La("div",t,i)}var j2=new WeakMap;function bs(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Mr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Vq=Ze(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Vq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Mm&&tM();function Va(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Tr((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,D0=vL(bL),Bq=vL(yL);function jq(t,i,e,n=0,o=!1){let r=o?Bq:D0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function S0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Ks:CL,s=o==1?Tr:ta,l=r==1?ta:Tr,u=s(a(Zi(t))),h=l(a(Zi(i))),g=wm(e,u),y=wm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=E0(i,y)),[t,i]}function pM(t,i,e,n){let o=S0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},sf={pad:0,soft:null,mode:0},zq={min:sf,max:sf};function x0(t,i,e,n){return M0(e)?G2(t,i,e):(sf.pad=e,sf.soft=n?0:null,sf.mode=n?3:0,G2(t,i,zq))}function wn(t,i){return t??i}function Uq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Ks(w),P=Go(Zi(t),Zi(i)),j=Ks(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Ks(q),oe=wm(10,Tr(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=Go(s,Ce=Le?Le:Ba(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(E0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=Ba(l,ht>Se&&i<=Se?Se:Go(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Hq=new Intl.NumberFormat(Mm?Lq.language:"en-US"),fM=t=>Hq.format(t),Ir=Math,y0=Ir.PI,Zi=Ir.abs,Tr=Ir.floor,Ki=Ir.round,ta=Ir.ceil,Ba=Ir.min,Go=Ir.max,wm=Ir.pow,q2=Ir.sign,Ks=Ir.log10,CL=Ir.log2,Wq=(t,i=1)=>Ir.sinh(t)*i,KE=(t,i=1)=>Ir.asinh(t/i),Kn=1/0;function Y2(t){return(Ks((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return Ba(Go(t,i),e)}function xL(t){return typeof t=="function"}function sn(t){return xL(t)?t:()=>t}var $q=()=>{},wL=t=>t,DL=(t,i)=>i,Gq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,qq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(qq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function E0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Tr(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function cf(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var lf={},gM=[],Dm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Yq=t=>t===void 0;function Z2(t){return typeof t=="string"}function M0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Qq(t){return t!=null&&typeof t=="object"}var Kq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Sm(t,i=M0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function iY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=Go(1,Tr((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var aY=kL.map(AL),sY=IL.map(AL),lY={MMMM:IL,MMM:sY,WWWW:kL,WWW:aY};function nf(t){return(t<10?"0":"")+t}function cY(t){return(t<10?"00":t<100?"0":"")+t}var dY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>nf(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>nf(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>nf(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>nf(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>nf(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>cY(t.getMilliseconds())};function _M(t,i){i=i||lY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?dY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,w0=[1,2,2.5,5],pY=cf(10,-32,0,w0),OL=cf(10,0,32,w0),hY=OL.filter(RL),fd=pY.concat(OL),vM=` -`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",af=vM+NL,v0=af+"/{YY}",FL="{aa}",fY="{h}:{mm}",Cm=fY+FL,J2=vM+Cm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?cf(10,0,3,w0).filter(RL):cf(10,-3,0,w0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,v0,Fn,af,Fn,Fn,Fn,1],[e,Cm,v0,Fn,af,Fn,Fn,Fn,1],[i,eL,v0+" "+Cm,Fn,af+" "+Cm,Fn,J2,Fn,1],[t,eL+".{fff}",v0+" "+Cm,Fn,af+" "+Cm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Tr(S)-Tr(Ce),Se=Je+ht+E0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Tr(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[gY,_Y,vY]=LL(1),[bY,yY,CY]=LL(.001);cf(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function xY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var wY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function DY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function SY(t,i){return t.series[i].fill(t,i)}var EY={show:!0,live:!0,isolate:!1,mount:$q,markers:{show:!0,width:2,stroke:DY,fill:SY,dash:"solid"},idx:null,idxs:null,values:[]};function MY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,of,o),di(n,rf,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function TY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function IY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function kY(t,i){return t.series[i].points.size}var XE=[0,0];function AY(t,i,e){return XE[0]=i,XE[1]=e,XE}function b0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var RY={show:!0,x:!0,y:!0,lock:!1,move:AY,points:{one:!1,show:MY,size:kY,width:0,stroke:IY,fill:TY},bind:{mousedown:b0,mouseup:b0,click:b0,dblclick:b0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},OY="Value",PY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function NY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function FY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(E0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Ks:CL,h=Tr(u(e));o=wm(l,h),l==10&&(o=fd[Va(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Va(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Va(y,fd)]));while(g<=n);return s}function LY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,Go(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,Go(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,VY=/[12357]/,BY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function jY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?VY:l(5,a)-h>=u?BY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:WY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function $Y(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},GY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Tm:Im,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function T0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?A0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function YY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?I0:k0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=Ba(u,s/2,l/2),h=Ba(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var I0=(t,i,e)=>{t.moveTo(i,e)},k0=(t,i,e)=>{t.moveTo(e,i)},Tm=(t,i,e)=>{t.lineTo(i,e)},Im=(t,i,e)=>{t.lineTo(e,i)},A0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=I0,oe=YL):(ve=k0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;A0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,y0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Em|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var QY=JL(Tm),KY=JL(Im);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=D0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Tm,Ne=QY):(oe=Im,Ne=KY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=T0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Zs(e,n,o,r,Je,-1),Zs(e,n,o,r,Je,1)]:Zs(e,n,o,r,Je,Tt)),Le})}function ZY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=D0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Tm:Im,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Em},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=T0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Zs(r,a,s,l,Se,-1),Zs(r,a,s,l,Se,1)]:Zs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?A0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Od,ac,$a,sc)=>{h(Pe,ei,Vi,ac,Od,sc,$a)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Yo=!1,xs=null,Rr=null,rl=null,kd=null;g!=null&&(jn==0||y!=null)&&(Yo=!0,xs=g.values(w,S,P,j),Rr=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Rr.set(Pe,new Path2D)}),jn>0&&(rl=y.values(w,S,P,j),kd=new Map,new Set(rl).forEach(Pe=>{Pe!=null&&kd.set(Pe,new Path2D)})));let{x0:Ad,size:Um}=u;if(Ad!=null&&Um!=null){qe=1,q=Ad.values(w,S,P,j),Ad.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Um.values(w,S,P,j);Um.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Mf=Li>0,oc=Jn-Li-(Mf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Mf?jn/2:0));let So={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Rd=Yo?null:new Path2D,ws=null;if(ft!=null)ws=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),ws=Pe.values(w,S,P,j))}let rc=ae*Rt,$t=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(ws!=null){let Qo=ws[Pe]??0;if(ei-Qo==0)continue;Ji=Le(Qo,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Od=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),$a=Tt(Od-Xn),sc=Tt(Go(ac,Ji)),sr=Tt(Ba(ac,Ji)),Or=sc-sr;if(ei!=null){let Qo=ei<0?$t:rc,sa=ei<0?rc:$t;Yo?(jn>0&&rl[Pe]!=null&>(kd.get(rl[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),xs[Pe]!=null&>(Rr.get(xs[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa)):gt(Rd,$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),Qt(w,S,Pe,$a-jn/2,sr,Rt+jn,Or)}}return jn>0?So.stroke=Yo?kd:Rd:Yo||(So._fill=F.width==0?F._fill:F._stroke??F._fill,So.width=0),So.fill=Yo?Rr:Rd,So})}function JY(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=D0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=I0,Le=Tm,Ce=KL):(Ne=k0,Le=Im,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Em},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=T0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Zs(n,o,r,a,It,-1),Zs(n,o,r,a,It,1)]:Zs(n,o,r,a,It,pe)),qe})}function eQ(t){return JY(tQ,t)}function tQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var nQ=eV(),iQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function oQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Dm:[i,e]}var rQ=tV;function aQ(t,i,e){return i==null?Dm:x0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Dm:S0(i,e,t.scales[n].log,!1)}var sQ=nV;function iV(t,i,e,n){return i==null?Dm:pM(i,e,t.scales[n].log,!1)}var lQ=iV;function cQ(t,i,e,n,o){let r=Go(Y2(t),Y2(i)),a=i-t,s=Va(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function dQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(_q);if(t.id!=null&&(u.id=t.id),Mr(u,t.class),t.title){let v=ea(yq,u);v.textContent=t.title}let h=La("canvas"),g=n.ctx=h.getContext("2d"),y=ea(Cq,u);_d("click",y,v=>{v.target===S&&(oi!=Wd||ui!=$d)&&co.click(n,v)},!0);let w=n.under=ea(xq,y);y.appendChild(h);let S=n.over=ea(wq,y);t=Sm(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):oQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=sn(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Ks(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||lf)[v]||lf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:GY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&M0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Dm:x0(ye,Ae,re)}C.range=sn(N||(M?rQ:v==Ce?C.distr==3?sQ:C.distr==4?lQ:tV:C.distr==3?nV:C.distr==4?iV:aQ)),C.auto=sn(U?!1:C.auto),C.clamp=sn(C.clamp||$Y),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Mr(u,vq),qe=r,It=a):(Mr(u,bq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?vY(pe):CY(pe),nt=nL(pe,tL(F==1?_Y:yY,ae)),gt=oL(pe,iL(wY,ae)),Qt=[],ft=n.legend=Ni({},EY,t.legend),Ve=n.cursor=Ni({},RY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=sn(Xn.width),Xn.dash=sn(Xn.dash),Xn.stroke=sn(Xn.stroke),Xn.fill=sn(Xn.fill);let Rt,Li,Jn,jn=[],Yo=[],xs,Rr=!1,rl={};if(ft.live){let v=q[1]?q[1].values:null;Rr=v!=null,xs=Rr?v(n,1,0):{_:0};for(let C in xs)rl[C]=uM}if(jt)if(Rt=La("table",Iq,u),Jn=La("tbody",null,Rt),ft.mount(n,Rt),Rr){Li=La("thead",null,Rt,Jn);let v=La("tr",null,Li);La("th",null,v);for(var kd in xs)La("th",R2,v).textContent=kd}else Mr(Rt,Aq),ft.live&&Mr(Rt,kq);let Ad={show:!0},Um={show:!1};function Mf(v,C){if(C==0&&(Rr||!ft.live||o==2))return Dm;let E=[],M=La("tr",Rq,Jn,Jn.childNodes[C]);Mr(M,v.class),v.show||Mr(M,gd);let N=La("th",null,M);if(Xn.show){let he=ea(Oq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),So("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&qa(Be,Ae?Be==ye?Ad:Um:Ad,!0,Ii.setSeries)})}else qa(ye,{show:!v.show},!0,Ii.setSeries)},!1),Nd&&So(F2,N,he=>{Ve._lock||(cc(he),qa(q.indexOf(v),qd,!0,Ii.setSeries))},!1));for(var re in xs){let he=La("td",Pq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function So(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Rd(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let ws=0,rc=0,$t=0,Pe=0,ei=0,Vi=0,Od=ei,ac=Vi,$a=$t,sc=Pe,sr=0,Or=0,Qo=0,sa=0;n.bbox={};let Uy=!1,Tf=!1,Pd=!1,lc=!1,If=!1,Pr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&sT(v,C),jd(!1),Pd=!0,Tf=!0,zd()}function sT(v,C){n.width=ws=$t=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;sr=E.left=hd(ei*kn,.5),Or=E.top=hd(Vi*kn,.5),Qo=E.width=hd($t*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(sT(n.width,n.height),Tf=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?($t-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,$t-=al[1]+al[3],ei+=al[3],Pe-=al[2]+al[0],Vi+=al[0]}function qj(){let v=ei+$t,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=sn(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let go=Ve.points;go.show=sn(go.show),go.size=sn(go.size),go.stroke=sn(go.stroke),go.width=sn(go.width),go.fill=sn(go.fill);let Ga=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Nd=Ga.prox>=0,Fd=Nd&&go.one,Nr=[],Ld=[],Vd=[];function lT(v,C){let E=go.show(n,C);if(E instanceof HTMLElement)return Mr(E,Tq),Mr(E,v.class),bs(E,-10,-10,$t,Pe),S.insertBefore(E,Nr[C]),E}function cT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||UY,v.label=v.label||(E?PY:OY)}if(Fd||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||nQ||Gq,v.fillTo=sn(v.fillTo||qY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=sn(v.stroke||null),v.fill=sn(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=HY(Go(1,v.width),1),M=v.points=Ni({},{size:E,width:Go(1,E*.2),stroke:v.stroke,space:E*2,paths:iQ,_stroke:null,_fill:null},v.points);M.show=sn(M.show),M.filter=sn(M.filter),M.fill=sn(M.fill),M.stroke=sn(M.stroke),M.paths=sn(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Mf(v,C);jn.splice(C,0,E[0]),Yo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Fd?C==0&&(E=lT(v,C)):C>0&&(E=lT(v,C)),Nr.splice(C,0,E),Ld.splice(C,0,0),Vd.splice(C,0,0)}oo("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),cT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Yo.splice(v,1);let C=jn.splice(v,1)[0];Rd(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Nr.splice(v,1)[0].remove(),Ld.splice(v,1),Vd.splice(v,1)),oo("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=sn(v.size),v.space=sn(v.space),v.rotate=sn(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=sn(v.incrs||(M.distr==2?hY:N?F==1?gY:bY:fd)),v.splits=sn(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?LY:FY)),v.stroke=sn(v.stroke),v.grid.stroke=sn(v.grid.stroke),v.ticks.stroke=sn(v.ticks.stroke),v.border.stroke=sn(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?sn(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?xY(pe,U):U||nt:U||NY,v.filter=sn(v.filter||(M.distr>=3&&M.log==10?jY:M.distr==3&&M.log==2?zY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Dq,y))}}function Hm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let dT=n.padding=(t.padding||[Hm,Hm,Hm,Hm]).map(v=>sn(wn(v,Hm))),al=n._padding=dT.map((v,C)=>v(n,C,dc,0)),lo,eo=null,to=null,kf=o==1?q[0].idxs:null,la=null,Wm=!1;function uT(v,C){if(i=v??[],n.data=n._data=i,o==2){lo=0;for(let E=1;E=0,Pr=!0,zd()}}n.setData=uT;function Wy(){Wm=!0;let v,C;o==1&&(lo>0?(eo=kf[0]=0,to=kf[1]=lo-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=S0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=x0(v,C,hM,!0))):(eo=kf[0]=v=null,to=kf[1]=C=null)),ll(Ce,v,C)}let Af,Bd,$y,Gy,qy,Yy,Qy,Ky,Zy,Ko;function mT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Af&&(g.strokeStyle=Af=v),N!=Bd&&(g.fillStyle=Bd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function pT(v,C,E,M){C!=Bd&&(g.fillStyle=Bd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,Wm)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?jq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=Ba(v.min,E.min=he[0]),v.max=Go(v.max,E.max=he[1])}}let hT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,Wm))&&(ot[M]=hT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=hT)}ot[Ce]!=null&&jd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Sm(oe[M],Qq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(lo==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(lo>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Va(he.min,i[0]),to=Va(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Ks(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Ks(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Pd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Pr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(eo-1,0,lo-1),E=oM(to+1,0,lo-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Ko!=Ga.alpha;v&&(g.globalAlpha=Ko=Ga.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(fT(E,!1),fT(E,!0),C._paths==null)){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Ko!=M&&(g.globalAlpha=Ko=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha),C._paths!=null&&gT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),gT(E,!0))}Ko!=M&&(g.globalAlpha=Ko=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Ko=1)}}function fT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function gT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=sr-Ae/2,vn=Or-Ae/2,tn=Qo+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||lf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Uq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let _T=Em|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){mT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&_T)==_T?(g.clip(Be),Oe&&g.clip(Oe),Of(N,re),Rf(v,U,C)):he&sM?(Of(N,re),g.clip(Be),Rf(v,U,C)):he&Em&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Of(N,re),g.restore(),Rf(v,U,C)):(Of(N,re),Rf(v,U,C)),(ye||Ae||Be)&&g.restore()}function Rf(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Af=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Of(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=Bd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=cQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),mT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,jd(!1));return}else E._show||(C=!1,E._show=!0,jd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?$t:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return dT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=al[M]&&(C=!1),al[M]=N}),C}function o4(){for(let v=0;vla[Mo]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-y0/180,_i=j(C._pos*kn),lr=(gi+ro)*he,Eo=_i+lr;U=M==0?Eo:0,N=M==1?Eo:0;let Fr=C.font[0],ca=C.align==1?ym:C.align==2?qE:zn>0?ym:zn<0?qE:M==0?"center":E==3?qE:ym,Qa=zn||M==1?"middle":E==2?"top":O2;pT(Fr,re,ca,Qa);let cr=C.font[1]*C.lineGap,Lr=Dn.map(Mo=>j(s(Mo,Oe,Be,Lt))),da=C._values;for(let Mo=0;Mo{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Pf=!1,tC=!1,$m=[];function r4(){tC=!1;for(let v=0;v<$m.length;v++)oo(...$m[v]);$m.length=0}function zd(){Pf||(nY(vT),Pf=!0)}function a4(v,C=!1){Pf=!0,tC=C,v(n),vT(),C&&$m.length>0&&queueMicrotask(r4)}n.batch=a4;function vT(){if(Uy&&(Zj(),Uy=!1),Pd&&(Wj(),Pd=!1),Tf){if(di(w,ym,ei),di(w,"top",Vi),di(w,of,$t),di(w,rf,Pe),di(S,ym,ei),di(S,"top",Vi),di(S,of,$t),di(S,rf,Pe),di(y,of,ws),di(y,rf,rc),h.width=Ki(ws*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:$t),nM(v,gd)}else Mr(v,gd)}),Af=Bd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Ko=1,Ym(!0),ei!=Od||Vi!=ac||$t!=$a||Pe!=sc){jd(!1);let v=$t/$a,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Ud&&bs(Ud,Ki(Ve.left),0,$t,Pe),Hd&&bs(Hd,0,Ki(Ve.top),$t,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(Gd,E,ri[E])}Od=ei,ac=Vi,$a=$t,sc=Pe}oo("setSize"),Tf=!1}ws>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&If&&(Nf(ri),If=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Pr&&(rC(),Pr=!1),l||(l=!0,n.status=1,oo("ready")),Wm=!1,Pf=!1}n.redraw=(v,C)=>{Pd=C||!1,v!==!1?ll(Ce,Se.min,Se.max):zd()};function nC(v,C){let E=oe[v];if(E.from==null){if(lo==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(lo>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&lo>0&&(C.min=Va(C.min,i[0]),C.max=Va(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,zd()}}n.setScale=nC;let iC,oC,Ud,Hd,bT,yT,Wd,$d,CT,xT,oi,ui,sl=!1,co=Ve.drag,no=co.x,io=co.y;Ji&&(Ve.x&&(iC=ea(Eq,S)),Ve.y&&(oC=ea(Mq,S)),Se.ori==0?(Ud=iC,Hd=oC):(Ud=oC,Hd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),Gd=ri.show?ea(Sq,ri.over?S:w):null;function Nf(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(Gd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Nf;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Mr(jn[v],gd),Ji){let E=Fd?Nr[0]:Nr[v];E!=null&&bs(E,-10,-10,$t,Pe)}}function ll(v,C,E){nC(v,{min:C,max:E})}function qa(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(ll(N.facets[0].scale,null,null),ll(N.facets[1].scale,null,null)):ll(N.scale,null,null),zd())}),E!==!1&&oo("setSeries",v,C),M&&Qm("setSeries",n,v,C)}n.setSeries=qa;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=sn(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,Ji&&Nr[v]!=null&&(Nr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ds,cl,uc,qd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=Ga.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:Ga.alpha)}}),uc=v,E&&zd()}}jt&&Nd&&So(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&qa(null,qd,!0,Ii.setSeries))});function Ya(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=$t;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?wm(10,ye):Ae==4?Wq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Ya(v,Ce,C);return Va(E,i[0],eo,to)}n.valToIdx=v=>Va(v,i[0]),n.posToIdx=p4,n.posToVal=Ya,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Qo:$t,E?sr:0):a(v,oe[C],E?sa:Pe,E?Or:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function wT(v,C){di(Gd,ym,ri.left=v),di(Gd,of,ri.width=C)}function DT(v,C){di(Gd,"top",ri.top=v),di(Gd,rf,ri.height=C)}let Gm=Se.ori==0?wT:DT,qm=Se.ori==1?wT:DT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Yq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Rr)&&f4(E,Qt[E]);h4()}Pr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Rr?N=E.values(n,v,C)??rl:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?rl:{_:N}),ft.values[v]=N}function mc(v,C,E){CT=oi,xT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Ud&&bs(Ud,Ki(oi),0,$t,Pe),Hd&&bs(Hd,0,Ki(ui),$t,Pe));let M,N=eo>to;Ds=Kn,cl=null;let U=Se.ori==0?$t:Pe,re=Se.ori==1?$t:Pe;if(oi<0||lo==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let lr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Eo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Nd&&_i!=null){let Fr=Se.ori==1?oi:ui,ca=Zi(Ga.dist(n,rt,zn,Eo,Fr));if(ca=0?1:-1,da=cr>=0?1:-1;da==Lr&&(da==1?Qa==1?_i>=cr:_i<=cr:Qa==1?_i<=cr:_i>=cr)&&(Ds=ca,cl=rt)}else Ds=ca,cl=rt}}if(Pr||Fd){let Fr,ca;Se.ori==0?(Fr=lr,ca=Eo):(Fr=Eo,ca=lr);let Qa,cr,Lr,da,Ka,Mo,dr=!0,pc=go.bbox;if(pc!=null){dr=!1;let To=pc(n,rt);Lr=To.left,da=To.top,Qa=To.width,cr=To.height}else Lr=Fr,da=ca,Qa=cr=go.size(n,rt);if(Mo=go.fill(n,rt),Ka=go.stroke(n,rt),Fd)rt==cl&&Ds<=Ga.prox&&(Oe=Lr,Be=da,Lt=Qa,Dn=cr,vn=dr,tn=Mo,St=Ka);else{let To=Nr[rt];To!=null&&(Ld[rt]=Lr,Vd[rt]=da,W2(To,Qa,cr,dr),U2(To,Mo,Ka),bs(To,ta(Lr),ta(da),$t,Pe))}}}}if(Fd){let rt=Ga.prox,ai=uc==null?Ds<=rt:Ds>rt||cl!=uc;if(Pr||ai){let gi=Nr[0];gi!=null&&(Ld[0]=Oe,Vd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),bs(gi,ta(Oe),ta(Be),$t,Pe))}}}if(ri.show&&sl)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,lr,Eo,Fr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Fr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],lr=qe(gi(ro,Be),_i,U,0),Eo=qe(gi(ro+zn,Be),_i,U,0),Gm(Ba(lr,Eo),Zi(Eo-lr))):Gm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],lr=It(gi(ro,Lt),_i,re,0),Eo=It(gi(ro+zn,Lt),_i,re,0),qm(Ba(lr,Eo),Zi(Eo-lr))):qm(0,re)}else lC()}else{let he=Zi(CT-bT),ye=Zi(xT-yT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=co.x&&he>=co.dist,io=co.y&&ye>=co.dist;let Ae=co.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):co.x&&co.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),Gm(Ba(Oe,Be),Zi(Be-Oe)),io||qm(0,re)),io&&(Se.ori==1?(Oe=Wd,Be=oi):(Oe=$d,Be=ui),qm(Ba(Oe,Be),Zi(Be-Oe)),no||Gm(0,U)),!no&&!io&&(Gm(0,0),qm(0,0))}if(co._x=no,co._y=io,v==null){if(E){if(NT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Ya(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Ya(Se.ori==1?oi:ui,ye):null}Qm(YE,n,oi,ui,$t,Pe,M)}if(Nd){let he=E&&Ii.setSeries,ye=Ga.prox;uc==null?Ds<=ye&&qa(cl,qd,!0,he):Ds>ye?qa(null,qd,!0,he):cl!=uc&&qa(cl,qd,!0,he)}}Pr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let dl=null;Object.defineProperty(n,"rect",{get(){return dl==null&&Ym(!1),dl}});function Ym(v=!1){v?dl=null:(dl=S.getBoundingClientRect(),oo("syncRect",dl))}function ST(v,C,E,M,N,U,re){Ve._lock||sl&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(dl==null&&Ym(!1),cc(v),v!=null)E=v.clientX-dl.left,M=v.clientY-dl.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?$t:Pe,ro=Se.ori==1?$t:Pe,zn=ai?U:N,_i=ai?N:U,lr=ai?M:E,Eo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(lr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Eo/_i),Se.ori==1){let Fr=E;E=M,M=Fr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=$t-1)&&(E=hd(E,$t)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(bT=E,yT=M,[Wd,$d]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Nf(sC,!1)}let ET,MT,TT,IT;function kT(v,C,E,M,N,U,re){sl=!0,no=io=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(So(QE,eM,AT,!1),Qm(N2,n,Wd,$d,$t,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ET=he,MT=ye,TT=Ae,IT=Oe}function AT(v,C,E,M,N,U,re){sl=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ET!=he||MT!=ye||TT!=Ae||IT!=Oe;if(Be&&Lt&&Nf(ri),co.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&ll(Ce,Ya(Dn,Ce),Ya(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&ll(rt,Ya(tn+St,rt),Ya(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Rd(QE,eM),Qm(QE,n,oi,ui,$t,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=sl;if(sl){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=$t-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi{let N=Ii.match[2];E=N(n,C,E),E!=-1&&qa(E,M,!0,!1)},Ji&&(So(N2,S,kT),So(YE,S,ST),So(F2,S,v=>{cc(v),Ym(!1)}),So(L2,S,g4),So(V2,S,RT),lM.add(n),n.syncRect=Ym);let Ff=n.hooks=t.hooks||{};function oo(v,C,E){tC?$m.push([v,C,E]):v in Ff&&Ff[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Ff[C]=(Ff[C]||[]).concat(v.hooks[C])});let PT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,PT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(PT),Ve.sync=Ii;let NT=Ii.key,cC=GL(NT);function Qm(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Yd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(C0,xm,OT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=v4;function dC(){oo("init",t,i),uT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),If=ri.show&&(ri.width>0||ri.height>0),lc=Pr=!0,Hy(t.width,t.height)}return q.forEach(cT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=x0;Ti.rangeLog=S0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=tY;Ti.fmtDate=_M,Ti.tzDate=mY;Ti.sync=GL;{Ti.addGap=YY,Ti.clipGaps=T0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=ZY,t.bars=XY,t.spline=eQ}var uQ=["host"],mQ=["donut"],oV=(t,i)=>i.name;function pQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function hQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,pQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function fQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function gQ(t,i){if(t&1&&(c(0,"div",10),fe(1,fQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function _Q(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Y_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function vQ(t,i){if(t&1&&(c(0,"div",3),A(1,gQ,3,0,"div",10),O(2,"div",11,0),A(4,_Q,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var R0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function bQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ze(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[bQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:R0[r%R0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=R0[P%R0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(uQ,5)(mQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,hQ,8,0,"div",2)(1,vQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var CQ=(t,i)=>i.value,xQ=(t,i)=>i.user;function wQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function DQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function SQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function MQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function TQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,SQ,6,1)(2,EQ,9,2)(3,MQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function IQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function kQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function AQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",30)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",30)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",31)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",32)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",30)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function RQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function OQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function PQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function NQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function FQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function LQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function VQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function BQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function jQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function zQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function UQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function HQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function WQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function $Q(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function GQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function qQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function YQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function QQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function KQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function ZQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function XQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function JQ(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",33)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,XQ,11,5,"tr",null,xQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function eK(t,i){if(t&1&&(c(0,"div",25)(1,"div",34),O(2,"img",35),c(3,"div",36)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",37)(10,"a",38)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function tK(t,i){if(t&1&&(A(0,AQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,RQ,1,1,"uds-uplot-chart",19)(7,OQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,PQ,1,1,"uds-uplot-chart",19)(13,NQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,FQ,1,1,"uds-uplot-chart",19)(19,LQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,VQ,1,1,"uds-uplot-chart",19)(25,BQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,jQ,1,1,"uds-uplot-chart",19)(31,zQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,UQ,1,1,"uds-uplot-chart",19)(37,HQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,WQ,1,1,"uds-uplot-chart",19)(43,$Q,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,GQ,1,1,"uds-uplot-chart",19)(49,qQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,YQ,1,1,"uds-uplot-chart",19)(55,QQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,KQ,1,1,"uds-uplot-chart",19)(61,ZQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,JQ,25,0,"div",23),c(74,"div",24),A(75,eK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var DM=null,aV=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){DM===null&&(DM=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return DM||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(T2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,wQ,2,3,"button",3,CQ),d(),c(5,"div",4),A(6,DQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,TQ,4,5,"div",8),A(11,IQ,2,2,"div",9),d()(),A(12,kQ,5,0,"div",10)(13,tK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,bm,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function iK(t,i){t&1&&O(0,"uds-dashboard")}function oK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,iK,1,0,"uds-dashboard")(3,oK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var ys=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var O0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var rK=["notch"],aK=["matFormFieldNotchedOutline",""],sK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],lK=["textField"],cK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function uK(t,i){t&1&&O(0,"span",21)}function mK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,uK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function pK(t,i){if(t&1&&A(0,mK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function hK(t,i){t&1&&O(0,"div",7)}function fK(t,i){}function gK(t,i){if(t&1&&xe(0,fK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function _K(t,i){if(t&1&&(c(0,"div",9),A(1,gK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function vK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function bK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function yK(t,i){}function CK(t,i){if(t&1&&xe(0,yK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function xK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function wK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function DK(t,i){t&1&&O(0,"div",16)}function SK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function EK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function MK(t,i){if(t&1&&(c(0,"div",19),A(1,EK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var SM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var EM=new L("MatSuffix"),kr=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ye([{provide:EM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(jb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return TK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function TK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",P0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(P0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(P0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(P0);e.propertyName==="opacity"&&o&&n.remove(pV,P0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(rK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:aK,ngContentSelectors:sK,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&&(vt(),uo(0,"div",1),cn(1,"div",2,0),Ie(3),mn(),uo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),N0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",IK="auto",_V="fixed",kK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(N0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Yp("iconPrefixContainer");_textPrefixContainerSignal=Yp("textPrefixContainer");_iconSuffixContainerSignal=Yp("iconSuffixContainer");_textSuffixContainerSignal=Yp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=TO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=qr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||IK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ns(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(ln([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),vg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){FO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${kK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&($_(r,o._labelChild,st,5),Mn(r,Xs,5)(r,bV,5)(r,EM,5)(r,vV,5)(r,SM,5)),n&2){q_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(G_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(lK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){q_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ye([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:dK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(cK),xe(0,pK,1,1,"ng-template",null,0,Gp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,hK,1,0,"div",7),c(5,"div",8),A(6,_K,2,2,"div",9),A(7,vK,3,0,"div",10),A(8,bK,3,0,"div",11),c(9,"div",12),A(10,CK,1,1,null,13),Ie(11),d(),A(12,xK,3,0,"div",14),A(13,wK,3,0,"div",15),d(),A(14,DK,1,0,"div",16),d(),c(15,"div",17),A(16,SK,2,0,"div",18)(17,MK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Zp,hV,SM],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vq="uplot",bq="u-hz",yq="u-vt",Cq="u-title",xq="u-wrap",wq="u-under",Dq="u-over",Sq="u-axis",gd="u-off",Eq="u-select",Mq="u-cursor-x",Tq="u-cursor-y",Iq="u-cursor-pt",kq="u-legend",Aq="u-live",Rq="u-inline",Oq="u-series",Pq="u-marker",R2="u-label",Nq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Fq="resize",Lq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Vq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Mr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function La(t,i,e,n){let o=eM.createElement(t);return i!=null&&Mr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return La("div",t,i)}var j2=new WeakMap;function bs(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Mr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Bq=Ye($({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Bq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Va(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Tr((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),jq=vL(yL);function zq(t,i,e,n=0,o=!1){let r=o?jq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Ks:CL,s=o==1?Tr:ta,l=r==1?ta:Tr,u=s(a(Zi(t))),h=l(a(Zi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Uq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Uq))}function wn(t,i){return t??i}function Hq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Ks(w),P=Go(Zi(t),Zi(i)),j=Ks(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Ks(q),oe=Dm(10,Tr(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=Go(s,Ce=Le?Le:Ba(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=Ba(l,ht>Se&&i<=Se?Se:Go(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Wq=new Intl.NumberFormat(Tm?Vq.language:"en-US"),fM=t=>Wq.format(t),Ir=Math,C0=Ir.PI,Zi=Ir.abs,Tr=Ir.floor,Ki=Ir.round,ta=Ir.ceil,Ba=Ir.min,Go=Ir.max,Dm=Ir.pow,q2=Ir.sign,Ks=Ir.log10,CL=Ir.log2,$q=(t,i=1)=>Ir.sinh(t)*i,KE=(t,i=1)=>Ir.asinh(t/i),Kn=1/0;function Y2(t){return(Ks((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return Ba(Go(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var Gq=()=>{},wL=t=>t,DL=(t,i)=>i,qq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Yq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Yq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Tr(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Qq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Kq(t){return t!=null&&typeof t=="object"}var Zq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function oY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=Go(1,Tr((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var sY=kL.map(AL),lY=IL.map(AL),cY={MMMM:IL,MMM:lY,WWWW:kL,WWW:sY};function of(t){return(t<10?"0":"")+t}function dY(t){return(t<10?"00":t<100?"0":"")+t}var uY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>dY(t.getMilliseconds())};function _M(t,i){i=i||cY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?uY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],hY=df(10,-32,0,D0),OL=df(10,0,32,D0),fY=OL.filter(RL),fd=hY.concat(OL),vM=` +`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",gY="{h}:{mm}",xm=gY+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Tr(S)-Tr(Ce),Se=Je+ht+M0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Tr(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[_Y,vY,bY]=LL(1),[yY,CY,xY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function wY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var DY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function SY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function EY(t,i){return t.series[i].fill(t,i)}var MY={show:!0,live:!0,isolate:!1,mount:Gq,markers:{show:!0,width:2,stroke:SY,fill:EY,dash:"solid"},idx:null,idxs:null,values:[]};function TY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function IY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function kY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function AY(t,i){return t.series[i].points.size}var XE=[0,0];function RY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var OY={show:!0,x:!0,y:!0,lock:!1,move:RY,points:{one:!1,show:TY,size:AY,width:0,stroke:kY,fill:IY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},PY="Value",NY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function FY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function LY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Ks:CL,h=Tr(u(e));o=Dm(l,h),l==10&&(o=fd[Va(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Va(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Va(y,fd)]));while(g<=n);return s}function VY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,Go(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,Go(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,BY=/[12357]/,jY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function zY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?BY:l(5,a)-h>=u?jY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:$Y,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function GY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},qY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function QY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=Ba(u,s/2,l/2),h=Ba(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var KY=JL(Im),ZY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=KY):(oe=km,Ne=ZY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Zs(e,n,o,r,Je,-1),Zs(e,n,o,r,Je,1)]:Zs(e,n,o,r,Je,Tt)),Le})}function XY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Zs(r,a,s,l,Se,-1),Zs(r,a,s,l,Se,1)]:Zs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,$a,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,$a)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Yo=!1,xs=null,Rr=null,rl=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Yo=!0,xs=g.values(w,S,P,j),Rr=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Rr.set(Pe,new Path2D)}),jn>0&&(rl=y.values(w,S,P,j),Ad=new Map,new Set(rl).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let So={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Yo?null:new Path2D,ws=null;if(ft!=null)ws=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),ws=Pe.values(w,S,P,j))}let rc=ae*Rt,$t=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(ws!=null){let Qo=ws[Pe]??0;if(ei-Qo==0)continue;Ji=Le(Qo,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),$a=Tt(Pd-Xn),sc=Tt(Go(ac,Ji)),sr=Tt(Ba(ac,Ji)),Or=sc-sr;if(ei!=null){let Qo=ei<0?$t:rc,sa=ei<0?rc:$t;Yo?(jn>0&&rl[Pe]!=null&>(Ad.get(rl[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),xs[Pe]!=null&>(Rr.get(xs[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa)):gt(Od,$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),Qt(w,S,Pe,$a-jn/2,sr,Rt+jn,Or)}}return jn>0?So.stroke=Yo?Ad:Od:Yo||(So._fill=F.width==0?F._fill:F._stroke??F._fill,So.width=0),So.fill=Yo?Rr:Od,So})}function eQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Zs(n,o,r,a,It,-1),Zs(n,o,r,a,It,1)]:Zs(n,o,r,a,It,pe)),qe})}function tQ(t){return eQ(nQ,t)}function nQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var iQ=eV(),oQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function rQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var aQ=tV;function sQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var lQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var cQ=iV;function dQ(t,i,e,n,o){let r=Go(Y2(t),Y2(i)),a=i-t,s=Va(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function uQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(vq);if(t.id!=null&&(u.id=t.id),Mr(u,t.class),t.title){let v=ea(Cq,u);v.textContent=t.title}let h=La("canvas"),g=n.ctx=h.getContext("2d"),y=ea(xq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&co.click(n,v)},!0);let w=n.under=ea(wq,y);y.appendChild(h);let S=n.over=ea(Dq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):rQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:r4,series:e4},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Ks(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:qY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?aQ:v==Ce?C.distr==3?lQ:C.distr==4?cQ:tV:C.distr==3?nV:C.distr==4?iV:sQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||GY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Mr(u,bq),qe=r,It=a):(Mr(u,yq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?bY(pe):xY(pe),nt=nL(pe,tL(F==1?vY:CY,ae)),gt=oL(pe,iL(DY,ae)),Qt=[],ft=n.legend=Ni({},MY,t.legend),Ve=n.cursor=Ni({},OY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Yo=[],xs,Rr=!1,rl={};if(ft.live){let v=q[1]?q[1].values:null;Rr=v!=null,xs=Rr?v(n,1,0):{_:0};for(let C in xs)rl[C]=uM}if(jt)if(Rt=La("table",kq,u),Jn=La("tbody",null,Rt),ft.mount(n,Rt),Rr){Li=La("thead",null,Rt,Jn);let v=La("tr",null,Li);La("th",null,v);for(var Ad in xs)La("th",R2,v).textContent=Ad}else Mr(Rt,Rq),ft.live&&Mr(Rt,Aq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Rr||!ft.live||o==2))return Sm;let E=[],M=La("tr",Oq,Jn,Jn.childNodes[C]);Mr(M,v.class),v.show||Mr(M,gd);let N=La("th",null,M);if(Xn.show){let he=ea(Pq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),So("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&qa(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else qa(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&So(F2,N,he=>{Ve._lock||(cc(he),qa(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in xs){let he=La("td",Nq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function So(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let ws=0,rc=0,$t=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,$a=$t,sc=Pe,sr=0,Or=0,Qo=0,sa=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Pr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&sT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function sT(v,C){n.width=ws=$t=v,n.height=rc=Pe=C,ei=Vi=0,qj(),Yj();let E=n.bbox;sr=E.left=hd(ei*kn,.5),Or=E.top=hd(Vi*kn,.5),Qo=E.width=hd($t*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Wj=3;function $j(){let v=!1,C=0;for(;!v;){C++;let E=i4(C),M=o4(C);v=C==Wj||E&&M,v||(sT(n.width,n.height),If=!0)}}function Gj({width:v,height:C}){Hy(v,C)}n.setSize=Gj;function qj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?($t-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,$t-=al[1]+al[3],ei+=al[3],Pe-=al[2]+al[0],Vi+=al[0]}function Yj(){let v=ei+$t,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let go=Ve.points;go.show=ln(go.show),go.size=ln(go.size),go.stroke=ln(go.stroke),go.width=ln(go.width),go.fill=ln(go.fill);let Ga=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=Ga.prox>=0,Ld=Fd&&go.one,Nr=[],Vd=[],Bd=[];function lT(v,C){let E=go.show(n,C);if(E instanceof HTMLElement)return Mr(E,Iq),Mr(E,v.class),bs(E,-10,-10,$t,Pe),S.insertBefore(E,Nr[C]),E}function cT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||HY,v.label=v.label||(E?NY:PY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||iQ||qq,v.fillTo=ln(v.fillTo||YY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=WY(Go(1,v.width),1),M=v.points=Ni({},{size:E,width:Go(1,E*.2),stroke:v.stroke,space:E*2,paths:oQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Yo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=lT(v,C)):C>0&&(E=lT(v,C)),Nr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}oo("addSeries",C)}function Qj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),cT(q[C],C)}n.addSeries=Qj;function Kj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Yo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Nr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),oo("delSeries",v)}n.delSeries=Kj;let dc=[!1,!1,!1,!1];function Zj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?fY:N?F==1?_Y:yY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?VY:LY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?wY(pe,U):U||nt:U||FY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?zY:M.distr==3&&M.log==2?UY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Sq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let dT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),al=n._padding=dT.map((v,C)=>v(n,C,dc,0)),lo,eo=null,to=null,Af=o==1?q[0].idxs:null,la=null,$m=!1;function uT(v,C){if(i=v??[],n.data=n._data=i,o==2){lo=0;for(let E=1;E=0,Pr=!0,Ud()}}n.setData=uT;function Wy(){$m=!0;let v,C;o==1&&(lo>0?(eo=Af[0]=0,to=Af[1]=lo-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=w0(v,C,hM,!0))):(eo=Af[0]=v=null,to=Af[1]=C=null)),ll(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Ko;function mT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function pT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?zq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=Ba(v.min,E.min=he[0]),v.max=Go(v.max,E.max=he[1])}}let hT={min:null,max:null};function Xj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=hT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=hT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Kq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(lo==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(lo>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Va(he.min,i[0]),to=Va(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Ks(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Ks(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Pr=!0)}for(let M in ot)ot[M]=null}function Jj(v){let C=oM(eo-1,0,lo-1),E=oM(to+1,0,lo-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Ko!=Ga.alpha;v&&(g.globalAlpha=Ko=Ga.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(fT(E,!1),fT(E,!0),C._paths==null)){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha);let N=o==2?[0,i[E][0].length-1]:Jj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Ko!=M&&(g.globalAlpha=Ko=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha),C._paths!=null&&gT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),gT(E,!0))}Ko!=M&&(g.globalAlpha=Ko=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Ko=1)}}function fT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function gT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=sr-Ae/2,vn=Or-Ae/2,tn=Qo+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):t4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function t4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Hq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let _T=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){mT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&_T)==_T?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function n4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=dQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),mT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=n4(M,he,ye,re==0?$t:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function o4(v){let C=!0;return dT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=al[M]&&(C=!1),al[M]=N}),C}function r4(){for(let v=0;vla[Mo]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),lr=(gi+ro)*he,Eo=_i+lr;U=M==0?Eo:0,N=M==1?Eo:0;let Fr=C.font[0],ca=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Qa=zn||M==1?"middle":E==2?"top":O2;pT(Fr,re,ca,Qa);let cr=C.font[1]*C.lineGap,Lr=Dn.map(Mo=>j(s(Mo,Oe,Be,Lt))),da=C._values;for(let Mo=0;Mo{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function a4(){tC=!1;for(let v=0;v0&&queueMicrotask(a4)}n.batch=s4;function vT(){if(Uy&&(Xj(),Uy=!1),Nd&&($j(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,$t),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,$t),di(S,af,Pe),di(y,rf,ws),di(y,af,rc),h.width=Ki(ws*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:$t),nM(v,gd)}else Mr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Ko=1,Qm(!0),ei!=Pd||Vi!=ac||$t!=$a||Pe!=sc){zd(!1);let v=$t/$a,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&bs(Hd,Ki(Ve.left),0,$t,Pe),Wd&&bs(Wd,0,Ki(Ve.top),$t,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,$a=$t,sc=Pe}oo("setSize"),If=!1}ws>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&kf&&(Ff(ri),kf=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Pr&&(rC(),Pr=!1),l||(l=!0,n.status=1,oo("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?ll(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(lo==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(lo>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&lo>0&&(C.min=Va(C.min,i[0]),C.max=Va(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,bT,yT,$d,Gd,CT,xT,oi,ui,sl=!1,co=Ve.drag,no=co.x,io=co.y;Ji&&(Ve.x&&(iC=ea(Mq,S)),Ve.y&&(oC=ea(Tq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ea(Eq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Ff;function l4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Mr(jn[v],gd),Ji){let E=Ld?Nr[0]:Nr[v];E!=null&&bs(E,-10,-10,$t,Pe)}}function ll(v,C,E){nC(v,{min:C,max:E})}function qa(v,C,E,M){C.focus!=null&&p4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,l4(U),o==2?(ll(N.facets[0].scale,null,null),ll(N.facets[1].scale,null,null)):ll(N.scale,null,null),Ud())}),E!==!1&&oo("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=qa;function c4(v,C){Ni(Ne[v],C)}function d4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function u4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=d4,n.setBand=c4,n.delBand=u4;function m4(v,C){q[v].alpha=C,Ji&&Nr[v]!=null&&(Nr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ds,cl,uc,Yd={focus:!0};function p4(v){if(v!=uc){let C=v==null,E=Ga.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&m4(N,U?1:Ga.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&So(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&qa(null,Yd,!0,Ii.setSeries))});function Ya(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=$t;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?$q(ye,M.asinh):Ae==100?M.bwd(ye):ye}function h4(v,C){let E=Ya(v,Ce,C);return Va(E,i[0],eo,to)}n.valToIdx=v=>Va(v,i[0]),n.posToIdx=h4,n.posToVal=Ya,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Qo:$t,E?sr:0):a(v,oe[C],E?sa:Pe,E?Or:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function wT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function DT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?wT:DT,Ym=Se.ori==1?wT:DT;function f4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Qq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Rr)&&g4(E,Qt[E]);f4()}Pr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function g4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Rr?N=E.values(n,v,C)??rl:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?rl:{_:N}),ft.values[v]=N}function mc(v,C,E){CT=oi,xT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Hd&&bs(Hd,Ki(oi),0,$t,Pe),Wd&&bs(Wd,0,Ki(ui),$t,Pe));let M,N=eo>to;Ds=Kn,cl=null;let U=Se.ori==0?$t:Pe,re=Se.ori==1?$t:Pe;if(oi<0||lo==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let lr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Eo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Fr=Se.ori==1?oi:ui,ca=Zi(Ga.dist(n,rt,zn,Eo,Fr));if(ca=0?1:-1,da=cr>=0?1:-1;da==Lr&&(da==1?Qa==1?_i>=cr:_i<=cr:Qa==1?_i<=cr:_i>=cr)&&(Ds=ca,cl=rt)}else Ds=ca,cl=rt}}if(Pr||Ld){let Fr,ca;Se.ori==0?(Fr=lr,ca=Eo):(Fr=Eo,ca=lr);let Qa,cr,Lr,da,Ka,Mo,dr=!0,pc=go.bbox;if(pc!=null){dr=!1;let To=pc(n,rt);Lr=To.left,da=To.top,Qa=To.width,cr=To.height}else Lr=Fr,da=ca,Qa=cr=go.size(n,rt);if(Mo=go.fill(n,rt),Ka=go.stroke(n,rt),Ld)rt==cl&&Ds<=Ga.prox&&(Oe=Lr,Be=da,Lt=Qa,Dn=cr,vn=dr,tn=Mo,St=Ka);else{let To=Nr[rt];To!=null&&(Vd[rt]=Lr,Bd[rt]=da,W2(To,Qa,cr,dr),U2(To,Mo,Ka),bs(To,ta(Lr),ta(da),$t,Pe))}}}}if(Ld){let rt=Ga.prox,ai=uc==null?Ds<=rt:Ds>rt||cl!=uc;if(Pr||ai){let gi=Nr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),bs(gi,ta(Oe),ta(Be),$t,Pe))}}}if(ri.show&&sl)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,lr,Eo,Fr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Fr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],lr=qe(gi(ro,Be),_i,U,0),Eo=qe(gi(ro+zn,Be),_i,U,0),qm(Ba(lr,Eo),Zi(Eo-lr))):qm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],lr=It(gi(ro,Lt),_i,re,0),Eo=It(gi(ro+zn,Lt),_i,re,0),Ym(Ba(lr,Eo),Zi(Eo-lr))):Ym(0,re)}else lC()}else{let he=Zi(CT-bT),ye=Zi(xT-yT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=co.x&&he>=co.dist,io=co.y&&ye>=co.dist;let Ae=co.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):co.x&&co.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(Ba(Oe,Be),Zi(Be-Oe)),io||Ym(0,re)),io&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(Ba(Oe,Be),Zi(Be-Oe)),no||qm(0,U)),!no&&!io&&(qm(0,0),Ym(0,0))}if(co._x=no,co._y=io,v==null){if(E){if(NT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Ya(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Ya(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,$t,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=Ga.prox;uc==null?Ds<=ye&&qa(cl,Yd,!0,he):Ds>ye?qa(null,Yd,!0,he):cl!=uc&&qa(cl,Yd,!0,he)}}Pr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let dl=null;Object.defineProperty(n,"rect",{get(){return dl==null&&Qm(!1),dl}});function Qm(v=!1){v?dl=null:(dl=S.getBoundingClientRect(),oo("syncRect",dl))}function ST(v,C,E,M,N,U,re){Ve._lock||sl&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(dl==null&&Qm(!1),cc(v),v!=null)E=v.clientX-dl.left,M=v.clientY-dl.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?$t:Pe,ro=Se.ori==1?$t:Pe,zn=ai?U:N,_i=ai?N:U,lr=ai?M:E,Eo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(lr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Eo/_i),Se.ori==1){let Fr=E;E=M,M=Fr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=$t-1)&&(E=hd(E,$t)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(bT=E,yT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ET,MT,TT,IT;function kT(v,C,E,M,N,U,re){sl=!0,no=io=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(So(QE,eM,AT,!1),Km(N2,n,$d,Gd,$t,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ET=he,MT=ye,TT=Ae,IT=Oe}function AT(v,C,E,M,N,U,re){sl=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ET!=he||MT!=ye||TT!=Ae||IT!=Oe;if(Be&&Lt&&Ff(ri),co.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&ll(Ce,Ya(Dn,Ce),Ya(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&ll(rt,Ya(tn+St,rt),Ya(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,$t,Pe,null))}function _4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=sl;if(sl){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=$t-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:$t),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&qa(E,M,!0,!1)},Ji&&(So(N2,S,kT),So(YE,S,ST),So(F2,S,v=>{cc(v),Qm(!1)}),So(L2,S,_4),So(V2,S,RT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function oo(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let PT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,PT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(PT),Ve.sync=Ii;let NT=Ii.key,cC=GL(NT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function v4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=v4;function b4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,OT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=b4;function dC(){oo("init",t,i),uT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Pr=!0,Hy(t.width,t.height)}return q.forEach(cT),ve.forEach(Zj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=nY;Ti.fmtDate=_M,Ti.tzDate=pY;Ti.sync=GL;{Ti.addGap=QY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=XY,t.bars=JY,t.spline=tQ}var mQ=["host"],pQ=["donut"],oV=(t,i)=>i.name;function hQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function fQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,hQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function gQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function _Q(t,i){if(t&1&&(c(0,"div",10),fe(1,gQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function vQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function bQ(t,i){if(t&1&&(c(0,"div",3),A(1,_Q,3,0,"div",10),O(2,"div",11,0),A(4,vQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function yQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye($({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[yQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(mQ,5)(pQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,fQ,8,0,"div",2)(1,bQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var xQ=(t,i)=>i.value,wQ=(t,i)=>i.user;function DQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function SQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function TQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function IQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,EQ,6,1)(2,MQ,9,2)(3,TQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function kQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function AQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function RQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function OQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function PQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function QQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function KQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function ZQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function XQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function JQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function eK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,JQ,11,5,"tr",null,wQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function tK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function nK(t,i){if(t&1&&(A(0,RQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,OQ,1,1,"uds-uplot-chart",19)(7,PQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,NQ,1,1,"uds-uplot-chart",19)(13,FQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,LQ,1,1,"uds-uplot-chart",19)(19,VQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,BQ,1,1,"uds-uplot-chart",19)(25,jQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,zQ,1,1,"uds-uplot-chart",19)(31,UQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,HQ,1,1,"uds-uplot-chart",19)(37,WQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,$Q,1,1,"uds-uplot-chart",19)(43,GQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,qQ,1,1,"uds-uplot-chart",19)(49,YQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,QQ,1,1,"uds-uplot-chart",19)(55,KQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,ZQ,1,1,"uds-uplot-chart",19)(61,XQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,eK,25,0,"div",23),c(74,"div",24),A(75,tK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var DM=null,aV=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){DM===null&&(DM=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return DM||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(T2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,DQ,2,3,"button",3,xQ),d(),c(5,"div",4),A(6,SQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,IQ,4,5,"div",8),A(11,kQ,2,2,"div",9),d()(),A(12,AQ,5,0,"div",10)(13,nK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function oK(t,i){t&1&&O(0,"uds-dashboard")}function rK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,oK,1,0,"uds-dashboard")(3,rK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var ys=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var aK=["notch"],sK=["matFormFieldNotchedOutline",""],lK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],cK=["textField"],dK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mK(t,i){t&1&&O(0,"span",21)}function pK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,mK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hK(t,i){if(t&1&&A(0,pK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function fK(t,i){t&1&&O(0,"div",7)}function gK(t,i){}function _K(t,i){if(t&1&&xe(0,gK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function vK(t,i){if(t&1&&(c(0,"div",9),A(1,_K,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function bK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function yK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function CK(t,i){}function xK(t,i){if(t&1&&xe(0,CK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function wK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function DK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function SK(t,i){t&1&&O(0,"div",16)}function EK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function MK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function TK(t,i){if(t&1&&(c(0,"div",19),A(1,MK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var SM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var EM=new L("MatSuffix"),kr=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Qe([{provide:EM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return IK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function IK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(aK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:sK,ngContentSelectors:lK,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&&(vt(),uo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),uo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",kK="auto",_V="fixed",AK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=TO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=qr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||kK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ns(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){FO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${AK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Xs,5)(r,bV,5)(r,EM,5)(r,vV,5)(r,SM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(cK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Qe([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:uK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(dK),xe(0,hK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,fK,1,0,"div",7),c(5,"div",8),A(6,vK,2,2,"div",9),A(7,bK,3,0,"div",10),A(8,yK,3,0,"div",11),c(9,"div",12),A(10,xK,1,1,null,13),Ie(11),d(),A(12,wK,3,0,"div",14),A(13,DK,3,0,"div",15),d(),A(14,SK,1,0,"div",16),d(),c(15,"div",17),A(16,EK,2,0,"div",18)(17,TK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,SM],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -2983,7 +2983,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ab,ze,pt]})}return t})();var AK=["trigger"],RK=["panel"],OK=[[["mat-select-trigger"]],"*"],PK=["mat-select-trigger","*"];function NK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function FK(t,i){t&1&&Ie(0)}function LK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function VK(t,i){if(t&1&&(c(0,"span",5),A(1,FK,1,0)(2,LK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function BK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var jK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),zK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),MM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(po);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(nr,{self:!0,optional:!0});_liveAnnouncer=p(Nh);_defaultOptions=p(zK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=ef(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=tf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MM(this,e)}_scrollStrategyFactory=p(jK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=mr(()=>{let e=this.options;return e?e.changes.pipe(ln(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Yl,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Ah,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Kl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ys(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(ln(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!dn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!dn(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!dn(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof em?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(AK,5)(RK,5)(ib,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ye([{provide:Xs,useExisting:t},{provide:gm,useExisting:t}]),Ct],ngContentSelectors:PK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(OK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,NK,2,1,"span",4)(5,VK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,BK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[em,ib],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var RK=["trigger"],OK=["panel"],PK=[[["mat-select-trigger"]],"*"],NK=["mat-select-trigger","*"];function FK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function LK(t,i){t&1&&Ie(0)}function VK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function BK(t,i){if(t&1&&(c(0,"span",5),A(1,LK,1,0)(2,VK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function jK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var zK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),UK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),MM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(po);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(nr,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(UK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MM(this,e)}_scrollStrategyFactory=p(zK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=mr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Yl,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Kl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ys(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(RK,5)(OK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Qe([{provide:Xs,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:NK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(PK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,FK,2,1,"span",4)(5,BK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,jK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -3172,7 +3172,7 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return t})(),F0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ye([{provide:CV,useExisting:t}])]})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,pt,Cr,yd,vm]})}return t})();var UK=["tooltip"],HK=20;var WK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t,{scrollThrottle:HK})}}),$K=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",GK={passive:!0},qK=8,YK=8,QK=24,KK=200,qo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(pb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(nm);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p($K,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=qr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=qr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=qK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 tr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(jl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(WK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=YK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,GK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!dn(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>QK&&e.width>=KK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(UK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(cn(0,"div",1,0),Ol("animationend",function(a){return o._handleAnimationEnd(a)}),cn(2,"div",2),f(3),mn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { +`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Qe([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,bm,pt,Cr,yd,bm]})}return t})();var HK=["tooltip"],WK=20;var $K=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t,{scrollThrottle:WK})}}),GK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",qK={passive:!0},YK=8,QK=8,KK=24,ZK=200,qo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(GK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=qr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=qr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=YK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 tr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(jl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get($K)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset($($({},o.main),r.main)),this._addOffset($($({},o.fallback),r.fallback))])}_addOffset(e){let n=QK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,qK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>KK&&e.width>=ZK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(HK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Ol("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -3277,7 +3277,7 @@ div.mat-mdc-select-panel { .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return t})();var V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,ho,pt,Cr]})}return t})();function ZK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function XK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,ZK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),ku("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function JK(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function eZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,XK,6,7,"mat-form-field",14),A(4,JK,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function tZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var df=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(df);_changeDetectorRef=p(Qe);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Vr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(oZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,eZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,tZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,nZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,qo],styles:[`.mat-mdc-paginator { +`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,ho,pt,Cr]})}return t})();function XK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function JK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,XK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function eZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function tZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,JK,6,7,"mat-form-field",14),A(4,eZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ke);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Vr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(rZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,tZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,nZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,iZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,qo],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3378,10 +3378,10 @@ div.mat-mdc-select-panel { transform: translate(-50%, -50%); cursor: pointer; } -`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,L0,V0,Js]})}return t})();var rZ=[[["caption"]],[["colgroup"],["col"]],"*"],aZ=["caption","colgroup, col","*"];function sZ(t,i){t&1&&Ie(0,2)}function lZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function cZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var ja=new L("CDK_TABLE");var U0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),H0=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(un);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,U0,5)(r,H0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),z0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends z0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends z0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var IM=(()=>{class t{template=p(un);_differs=p(js);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof mf?e.headerCell.template:this instanceof kM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),mf=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),kM=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(un),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),W0=(()=>{class t extends IM{_table=p(ja,{optional:!0});when;constructor(){super(p(un),p(js))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var RM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(un);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],TM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&dZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var uf=new L("STICKY_POSITIONING_LISTENER");var OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),FM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),LM=(()=>{class t{_differs=p(js);_changeDetectorRef=p(Qe);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(po);_injector=p(Te);_virtualScrollViewport=p(vN,{optional:!0,host:!0});_positionListener=p(uf,{optional:!0})||p(uf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Kv:new O0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Eh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),j0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=j0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=j0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=j0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Eh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Eh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=bo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new TM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Xf:Qf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(ru(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),bo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,W0,5)(r,mf,5)(r,kM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ye([{provide:ja,useExisting:t},{provide:uf,useValue:null}])],ngContentSelectors:aZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(rZ),Ie(0),Ie(1,1),A(2,sZ,1,0),A(3,lZ,7,0)(4,cZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.cdk-table-fixed-layout { +`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,V0,B0,Js]})}return t})();var aZ=[[["caption"]],[["colgroup"],["col"]],"*"],sZ=["caption","colgroup, col","*"];function lZ(t,i){t&1&&Ie(0,2)}function cZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function dZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var ja=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var IM=(()=>{class t{template=p(mn);_differs=p(js);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof kM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),kM=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends IM{_table=p(ja,{optional:!0});when;constructor(){super(p(mn),p(js))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var RM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],TM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&uZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function uZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),FM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),LM=(()=>{class t{_differs=p(js);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(po);_injector=p(Te);_virtualScrollViewport=p(vN,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=bo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new TM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),bo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,kM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Qe([{provide:ja,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:sZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(aZ),Ie(0),Ie(1,1),A(2,lZ,1,0),A(3,cZ,7,0)(4,dZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.cdk-table-fixed-layout { table-layout: fixed; } -`],encapsulation:2})}return t})();function j0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Th]})}return t})();var uZ=["mat-sort-header",""],mZ=["*",[["","matSortHeaderIcon",""]]],pZ=["*","[matSortHeaderIcon]"];function hZ(t,i){t&1&&(Gn(),cn(0,"svg",3),uo(1,"path",4),mn())}function fZ(t,i){t&1&&(cn(0,"div",2),Ie(1,1,null,hZ,2,0),mn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),el=(()=>{class t{_defaultOptions;_initializedStream=new Vr(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=gZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function gZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var $0=(()=>{class t{_sort=p(el,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Qe);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(pb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:uZ,ngContentSelectors:pZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(mZ),cn(0,"div",0)(1,"div",1),Ie(2),mn(),A(3,fZ,3,0,"div",2),mn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { +`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var mZ=["mat-sort-header",""],pZ=["*",[["","matSortHeaderIcon",""]]],hZ=["*","[matSortHeaderIcon]"];function fZ(t,i){t&1&&(Gn(),dn(0,"svg",3),uo(1,"path",4),pn())}function gZ(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,fZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),el=(()=>{class t{_defaultOptions;_initializedStream=new Vr(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=_Z(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function _Z(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(el,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ke);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:mZ,ngContentSelectors:hZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(pZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,gZ,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { cursor: pointer; } @@ -3480,7 +3480,7 @@ div.mat-mdc-select-panel { .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { margin: 0 6px 0 0; } -`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var _Z=["input"],vZ=["label"],bZ=["*"],VM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},yZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>VM}),Do=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Do||{}),BM=class{source;checked},pf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_ngZone=p(be);_animationsDisabled=Bt();_options=p(yZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new BM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Do.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||VM,this.color=this._options.color||VM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Do.Indeterminate):this._transitionCheckState(this.checked?Do.Checked:Do.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Do.Checked:Do.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Do.Init:if(n===Do.Checked)return this._animationClasses.uncheckedToChecked;if(n==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return n===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return n===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return n===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(_Z,5)(vZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:bZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Dr,qb],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vZ=["input"],bZ=["label"],yZ=["*"],VM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},CZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>VM}),Do=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Do||{}),BM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_animationsDisabled=Bt();_options=p(CZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new BM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Do.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||VM,this.color=this._options.color||VM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Do.Indeterminate):this._transitionCheckState(this.checked?Do.Checked:Do.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Do.Checked:Do.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Do.Init:if(n===Do.Checked)return this._animationClasses.uncheckedToChecked;if(n==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return n===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return n===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return n===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(vZ,5)(bZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:yZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Dr,Yb],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -3953,7 +3953,7 @@ div.mat-mdc-select-panel { .mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pf,pt]})}return t})();var G0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=qr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=qr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { +`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[hf,pt]})}return t})();var q0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=qr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=qr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { display: block; margin: 0; border-top-style: solid; @@ -3973,7 +3973,7 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function wZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var tl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new tl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new tl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new tl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new tl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(q0(o)):this._loadSvgIconFromConfig(new tl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>q0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(q0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>q0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Io(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return op(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),yl(()=>this._inProgressUrlFetches.delete(a)),sp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],TZ=HV.map(t=>`[${t}]`).join(", "),IZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(MZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(EZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(TZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(IZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:SZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function DZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var tl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new tl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new tl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new tl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new tl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new tl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Io(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),yl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],IZ=HV.map(t=>`[${t}]`).join(", "),kZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(TZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(MZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(IZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(kZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:EZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -4009,8 +4009,8 @@ div.mat-mdc-select-panel { .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})();var kZ=["searchSelectInput"],AZ=["innerSelectSearch"],RZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],OZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function PZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function NZ(t,i){t&1&&O(0,"mat-spinner",7)}function FZ(t,i){t&1&&Ie(0,1)}function LZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function VZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function BZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,FZ,1,0)(2,LZ,1,1,"mat-icon",12)(3,VZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function jZ(t,i){t&1&&Ie(0,2)}function zZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function UZ(t,i){if(t&1&&(c(0,"div",9),A(1,jZ,1,0)(2,zZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var HZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),WZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],$Z=new L("mat-selectsearch-default-options"),GZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),jM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),ln(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Lb("",{nonNullable:!0});_showNoEntriesFound$=bo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of WZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(ap(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Qe),D(po),D(Mt,8),D(ze,8),D($Z,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,HZ,5)(r,GZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(kZ,7,se)(AZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:OZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(RZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,PZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,NZ,1,0,"mat-spinner",7),A(8,BZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,UZ,3,1,"div",9),Gt(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Xp,Bb,Wt,$e,TE,pf,G0,qo,bm,WV,_s,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[jM]})}return t})();function YZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,YZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ke,Mt,jM],encapsulation:2})}}return t})();function QZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function ZZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,QZ,2,0,"uds-translate")(2,KZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,ZZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,XZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,JZ,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var eX=(t,i)=>[t,i];function tX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function nX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,tX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,nX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,eX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var iX="text/csv",YV=",",QV=`\r -`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Y0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case _n.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case _n.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case _n.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case _n.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:iX});sm(n,t.title+".csv")});var Q0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var zM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new zM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var rX=["mat-menu-item",""],aX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],sX=["mat-icon, [matMenuItemIcon]","*"];function lX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var cX=["*"];function dX(t,i){if(t&1){let e=W();cn(0,"div",0),Ol("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),cn(1,"div",1),Ie(2),mn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var HM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(HM,{optional:!0});_changeDetectorRef=p(Qe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(un);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Qe);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Zu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ye([{provide:JV,useExisting:t}])]})}return t})(),uX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),UM="_mat-menu-enter",K0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new fr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(uX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(ln(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:dn(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ze(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===K0;(n||e===UM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===UM||e===K0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(K0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?UM:K0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(ln(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(un,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ye([{provide:HM,useExisting:t}])],ngContentSelectors:cX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Vs(0,dX,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return t})();var AZ=["searchSelectInput"],RZ=["innerSelectSearch"],OZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],PZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function NZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function FZ(t,i){t&1&&O(0,"mat-spinner",7)}function LZ(t,i){t&1&&Ie(0,1)}function VZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function BZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function jZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,LZ,1,0)(2,VZ,1,1,"mat-icon",12)(3,BZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function zZ(t,i){t&1&&Ie(0,2)}function UZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function HZ(t,i){if(t&1&&(c(0,"div",9),A(1,zZ,1,0)(2,UZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var WZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),$Z=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],GZ=new L("mat-selectsearch-default-options"),qZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),jM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=bo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of $Z)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ke),D(po),D(Mt,8),D(ze,8),D(GZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,WZ,5)(r,qZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(AZ,7,se)(RZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:PZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(OZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,NZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,FZ,1,0,"mat-spinner",7),A(8,jZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,HZ,3,1,"div",9),Gt(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Wt,$e,TE,hf,q0,qo,ym,WV,_s,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[jM]})}return t})();function QZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,QZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ze,Mt,jM],encapsulation:2})}}return t})();function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,KZ,2,0,"uds-translate")(2,ZZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,XZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,JZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,eX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var tX=(t,i)=>[t,i];function nX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function iX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,nX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,iX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,tX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var oX="text/csv",YV=",",QV=`\r +`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:oX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var zM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new zM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var aX=["mat-menu-item",""],sX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lX=["mat-icon, [matMenuItemIcon]","*"];function cX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var dX=["*"];function uX(t,i){if(t&1){let e=W();dn(0,"div",0),Ol("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var HM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(HM,{optional:!0});_changeDetectorRef=p(Ke);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ke);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Qe([{provide:JV,useExisting:t}])]})}return t})(),mX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),UM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new fr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=$({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(mX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye($({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===UM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===UM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?UM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Qe([{provide:HM,useExisting:t}])],ngContentSelectors:dX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Vs(0,uX,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -4202,7 +4202,7 @@ div.mat-mdc-select-panel { position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return t})(),mX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}});var km=new WeakMap,pX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(mX);_changeDetectorRef=p(Qe);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(HM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&km.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=km.get(n);km.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),km.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&km.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return km.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),Z0=(()=>{class t extends pX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,ho,pt,Cr]})}return t})();var hX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { +`],encapsulation:2,changeDetection:0})}return t})(),pX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}});var Am=new WeakMap,hX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(pX);_changeDetectorRef=p(Ke);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(HM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends hX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,ho,pt,Cr]})}return t})();var fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { resize: none; } @@ -4228,7 +4228,7 @@ textarea.cdk-textarea-autosize-measuring-firefox { .cdk-text-field-autofill-monitored:not(:-webkit-autofill) { animation: cdk-text-field-autofill-end 0s 1ms; } -`],encapsulation:2,changeDetection:0})}return t})(),fX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(hX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,fX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var X0=new L("MAT_INPUT_VALUE_ACCESSOR");var gX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],_X=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(nr,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(_X,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=qr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=qr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=qr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd),r=p(X0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?cs(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ns(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){gX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ye([{provide:Xs,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var vX=[[["caption"]],[["colgroup"],["col"]],"*"],bX=["caption","colgroup, col","*"];function yX(t,i){t&1&&Ie(0,2)}function CX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function xX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ey=(()=>{class t extends LM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ye([{provide:LM,useExisting:t},{provide:ja,useExisting:t},{provide:uf,useValue:null}]),We],ngContentSelectors:bX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(vX),Ie(0),Ie(1,1),A(2,yX,1,0),A(3,CX,7,0)(4,xX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.mat-mdc-table-sticky { +`],encapsulation:2,changeDetection:0})}return t})(),gX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(fX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,gX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var _X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(nr,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(vX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=qr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=qr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=qr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?cs(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ns(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_X.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Qe([{provide:Xs,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var bX=[[["caption"]],[["colgroup"],["col"]],"*"],yX=["caption","colgroup, col","*"];function CX(t,i){t&1&&Ie(0,2)}function xX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function wX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends LM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Qe([{provide:LM,useExisting:t},{provide:ja,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:yX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(bX),Ie(0),Ie(1,1),A(2,CX,1,0),A(3,xX,7,0)(4,wX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.mat-mdc-table-sticky { position: sticky !important; } @@ -4405,9 +4405,9 @@ mat-cell.mat-mdc-cell, mat-footer-cell.mat-mdc-footer-cell { align-self: stretch; } -`],encapsulation:2})}return t})(),ty=(()=>{class t extends U0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ye([{provide:U0,useExisting:t}]),We]})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ye([{provide:H0,useExisting:t}]),We]})}return t})();var iy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ye([{provide:tc,useExisting:t}]),We]})}return t})(),oy=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ry=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var ay=(()=>{class t extends mf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ye([{provide:mf,useExisting:t}]),We]})}return t})();var sy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ye([{provide:W0,useExisting:t}]),We]})}return t})(),ly=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ye([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var cy=(()=>{class t extends RM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ye([{provide:RM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),wX=9007199254740991,J0=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(qv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=bo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=bo([o,i]).pipe(et(([s])=>this._orderData(s))),a=bo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var SX=["trigger"],EX=()=>[5,10,25,100,1e3];function MX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function TX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function IX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,TX,1,1,"button",43,De),Gt(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(Q_(6,3,e.value,"name"))}}function kX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,IX,7,6,null,null,De),Gt(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function AX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function RX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,AX,1,1,"button",45,De),Gt(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Q_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function OX(t,i){if(t&1&&(A(0,kX,13,4),A(1,RX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function PX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function NX(t,i){if(t&1&&(A(0,OX,2,2),A(1,PX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function FX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function BX(t,i){if(t&1&&fe(0,VX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function jX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function zX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function UX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function HX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function WX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function $X(t,i){t&1&&(ds(0,26),xe(1,HX,2,2,"mat-header-cell",54)(2,WX,2,1,"mat-cell",55),us())}function GX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function qX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function YX(t,i){if(t&1&&(ds(0,27),xe(1,GX,2,5,"mat-header-cell",59)(2,qX,2,2,"mat-cell",60),us()),t&2){let e=i.$implicit;b("matColumnDef",Pl(e.name))}}function QX(t,i){t&1&&O(0,"mat-header-row")}function KX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function ZX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function XX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function iJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function oJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function rJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,oJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function aJ(t,i){if(t&1&&(A(0,XX,5,0,"button",65),A(1,JX,5,0,"button",65),A(2,eJ,5,0,"button",65),A(3,tJ,5,0,"button",65),fe(4,nJ,1,2,"button",66,De),A(6,iJ,5,0,"button",67),A(7,rJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new ys(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new Q0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new ys(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=rp(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=_n.ALPHANUMERIC,s("10rem");break;case _n.DATE:case _n.DATETIME:case _n.TIME:case _n.DATETIMESEC:s("13rem");break;case _n.IMAGE:case _n.BOOLEAN:s("6.5rem");break;case _n.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?_n.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ONLY_MENU&&e.type!==Ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Ut.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case _n.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case _n.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case _n.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case _n.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case _n.TIME:o=qi("TIME_FORMAT",o);break;case _n.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case _n.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case _n.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Ut.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Ut.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Ut.ALWAYS||(e.type===Ut.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Y0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl),D(ZV),D(Qe))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(SX,7)(Js,7)(el,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,MX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,NX,2,2),A(11,FX,6,1,"a",12),A(12,LX,6,1,"a",12),A(13,BX,2,0),A(14,jX,6,0,"a",13),A(15,zX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,UX,3,0,"button",18),Gt(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,$X,3,0,"ng-container",26),fe(34,YX,3,2,"ng-container",27,De),xe(36,QX,1,0,"mat-header-row",28)(37,KX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,ZX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,aJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,EX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Kp,Wt,$e,Ke,Fe,yi,nc,xd,e3,Z0,ze,st,kr,Yt,ey,ny,ay,iy,ty,sy,oy,ry,ly,cy,Js,el,$0,bm,pf,G0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",sJ='pause'+django.gettext("Exit maintenance mode")+"",lJ='pause'+django.gettext("Enter maintenance mode")+"",WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=sJ:this.customButtons[0].html=lJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var cJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function dJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(cJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function uJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?_n.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>dJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(uJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Xo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var mJ=()=>[5,10,25,100,1e3];function pJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function hJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function fJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function gJ(t,i){if(t&1&&(ds(0,20),xe(1,hJ,2,1,"mat-header-cell",25)(2,fJ,2,1,"mat-cell",26),us()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function _J(t,i){t&1&&O(0,"mat-header-row")}function vJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var or=(()=>{class t{constructor(e){this.api=e,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 J0([]),this.selection=new ys}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 e of this.displayedColumns){let n=e==="date"?_n.DATETIMESEC:_n.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=wF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Y0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(Js,7)(el,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,pJ,3,0,"button",13),Gt(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,gJ,3,1,"ng-container",20,De),xe(35,_J,1,0,"mat-header-row",21)(36,vJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,mJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Wt,$e,Ke,Fe,yi,ze,kr,Yt,ey,ny,ay,iy,ty,sy,oy,ry,ly,cy,Js,el,$0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function bJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var CJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Kh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ir(django.gettext("Service pools"),e,CJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,bJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,yJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` -`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or],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}"]})}}return t})();var xJ=(t,i)=>i.tab;function wJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function DJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,wJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var SJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||SJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==Wo.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case Wo.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Wo.PASSWORD:n.value=django.gettext("(hidden)");break;case Wo.CHOICE:{let r=Hh.locateChoice(o,n);n.value=r.text;break}case Wo.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Wo.IMAGECHOICE:{let r=Hh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case Wo.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,DJ,6,1,"div",1,xJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var EJ=t=>["/services","providers",t];function MJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function TJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function IJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function RJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,MJ,2,0,"ng-template",8),c(5,"div",9),A(6,TJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,IJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,kJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,AJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var $M=(()=>{class t{constructor(e,n,o){this.route=e,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 e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,RJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,EJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa],encapsulation:2})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Wt,$e,Ke,Fe,qo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var OJ=t=>["/services","servers",t];function PJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function FJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,PJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,NJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",LJ='pause'+django.gettext("Exit maintenance mode")+"",VJ='pause'+django.gettext("Enter maintenance mode")+"",BJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:BJ,type:Ut.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=LJ:this.customButtons[0].html=VJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,FJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,OJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var YM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var jJ=["panel"],zJ=["*"];function UJ(t,i){if(t&1&&(cn(0,"div",1,0),Ie(2),mn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var QM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Rm=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new QM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,_m,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(un,7)(jJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ye([{provide:gm,useExisting:t}])],ngContentSelectors:zJ,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&&(vt(),Vs(0,UJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { +`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Qe([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Qe([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Qe([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Qe([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Qe([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Qe([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends RM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Qe([{provide:RM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),DX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=bo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=bo([o,i]).pipe(et(([s])=>this._orderData(s))),a=bo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var EX=["trigger"],MX=()=>[5,10,25,100,1e3];function TX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function IX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function kX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,IX,1,1,"button",43,De),Gt(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function AX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,kX,7,6,null,null,De),Gt(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function RX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function OX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,RX,1,1,"button",45,De),Gt(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function PX(t,i){if(t&1&&(A(0,AX,13,4),A(1,OX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function NX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function FX(t,i){if(t&1&&(A(0,PX,2,2),A(1,NX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function jX(t,i){if(t&1&&fe(0,BX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function zX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function UX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function HX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function WX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $X(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function GX(t,i){t&1&&(ds(0,26),xe(1,WX,2,2,"mat-header-cell",54)(2,$X,2,1,"mat-cell",55),us())}function qX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function YX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function QX(t,i){if(t&1&&(ds(0,27),xe(1,qX,2,5,"mat-header-cell",59)(2,YX,2,2,"mat-cell",60),us()),t&2){let e=i.$implicit;b("matColumnDef",Pl(e.name))}}function KX(t,i){t&1&&O(0,"mat-header-row")}function ZX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function XX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function oJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function rJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function aJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,rJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function sJ(t,i){if(t&1&&(A(0,JX,5,0,"button",65),A(1,eJ,5,0,"button",65),A(2,tJ,5,0,"button",65),A(3,nJ,5,0,"button",65),fe(4,iJ,1,2,"button",66,De),A(6,oJ,5,0,"button",67),A(7,aJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new ys(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new ys(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ONLY_MENU&&e.type!==Ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Ut.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=qi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Ut.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Ut.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Ut.ALWAYS||(e.type===Ut.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl),D(ZV),D(Ke))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(EX,7)(Js,7)(el,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,TX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,FX,2,2),A(11,LX,6,1,"a",12),A(12,VX,6,1,"a",12),A(13,jX,2,0),A(14,zX,6,0,"a",13),A(15,UX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,HX,3,0,"button",18),Gt(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,GX,3,0,"ng-container",26),fe(34,QX,3,2,"ng-container",27,De),xe(36,KX,1,0,"mat-header-row",28)(37,ZX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,XX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,sJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,MX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Wt,$e,Ze,Fe,yi,nc,xd,e3,X0,ze,st,kr,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,Js,el,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",lJ='pause'+django.gettext("Exit maintenance mode")+"",cJ='pause'+django.gettext("Enter maintenance mode")+"",WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=lJ:this.customButtons[0].html=cJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var dJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function uJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(dJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function mJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>uJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(mJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Xo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var pJ=()=>[5,10,25,100,1e3];function hJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function fJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function gJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function _J(t,i){if(t&1&&(ds(0,20),xe(1,fJ,2,1,"mat-header-cell",25)(2,gJ,2,1,"mat-cell",26),us()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function vJ(t,i){t&1&&O(0,"mat-header-row")}function bJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var or=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new ys}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=wF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(Js,7)(el,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,hJ,3,0,"button",13),Gt(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,_J,3,1,"ng-container",20,De),xe(35,vJ,1,0,"mat-header-row",21)(36,bJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,pJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Wt,$e,Ze,Fe,yi,ze,kr,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,Js,el,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var xJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ir(django.gettext("Service pools"),e,xJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,yJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,CJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` +`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or],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}"]})}}return t})();var wJ=(t,i)=>i.tab;function DJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function SJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,DJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var EJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||EJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==Wo.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case Wo.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Wo.PASSWORD:n.value=django.gettext("(hidden)");break;case Wo.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case Wo.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Wo.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case Wo.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,SJ,6,1,"div",1,wJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var MJ=t=>["/services","providers",t];function TJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function IJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function OJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,TJ,2,0,"ng-template",8),c(5,"div",9),A(6,IJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,kJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,AJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,RJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var $M=(()=>{class t{constructor(e,n,o){this.route=e,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 e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,OJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,MJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa],encapsulation:2})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Wt,$e,Ze,Fe,qo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var PJ=t=>["/services","servers",t];function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function LJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,NJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,FJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",VJ='pause'+django.gettext("Exit maintenance mode")+"",BJ='pause'+django.gettext("Enter maintenance mode")+"",jJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:jJ,type:Ut.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=VJ:this.customButtons[0].html=BJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,LJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,PJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var YM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var zJ=["panel"],UJ=["*"];function HJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var QM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new QM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(zJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Qe([{provide:_m,useExisting:t}])],ngContentSelectors:UJ,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&&(vt(),Vs(0,HJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { width: 100%; max-height: 256px; visibility: hidden; @@ -4461,11 +4461,11 @@ div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, mat-autocomplete { display: none; } -`],encapsulation:2,changeDetection:0})}return t})();var HJ={provide:$o,useExisting:Wn(()=>Dd),multi:!0};var WJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Qe);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(po);_scrollStrategy=p(WJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=Gs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&$l(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof fm?e:null))}optionSelections=mr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(ln(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=dn(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return $r()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),ap(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;am(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(lb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!dn(e)||e.keyCode===38&&dn(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),am(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ye([HJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,vm,Cr,vm,pt]})}return t})();function $J(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function GJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function qJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function YJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function QJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,YJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function XJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,$J,4,1,"div")(2,GJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,qJ,4,3,"mat-form-field"),A(6,QJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,KJ,4,2,"mat-form-field"),A(43,ZJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,XJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Rm,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function JJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function tee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function nee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function iee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,nee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function oee(t,i){if(t&1&&(A(0,tee,4,3,"mat-form-field"),A(1,iee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function ree(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function aee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function see(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,aee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function lee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function cee(t,i){if(t&1&&A(0,lee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function dee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,cee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var XM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,JJ,4,1,"div")(2,eee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,oee,2,2)(6,ree,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,see,7,1,"mat-form-field")(35,dee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Rm,Dd,Ee],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}"]})}}return t})();function uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,uee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function hee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,pee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function gee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,fee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function _ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var vee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],bee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new ir(django.gettext("Groups"),e,vee,this.user.id+"infogrp"),this.servicesPools=new ir(django.gettext("Services Pools"),n,bee,this.user.id+"infopool"),this.userServices=new ir(django.gettext("Assigned services"),o,yee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,mee,3,2,"mat-tab"),Gt(7,"notEmpty"),A(8,hee,3,2,"mat-tab"),Gt(9,"notEmpty"),A(10,gee,3,2,"mat-tab"),Gt(11,"notEmpty"),c(12,"mat-tab"),xe(13,_ee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` -`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Cee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function xee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Cee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Dee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,wee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function See(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Eee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,See,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Mee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Tee=[{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:_n.DATETIME}],Iee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/servicesPools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new ir(django.gettext("Service pools"),n,Mee,this.data.group.id+"infopls"),this.users=new ir(django.gettext("Users"),o,Tee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new ir(django.gettext("Groups"),r,Iee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,xee,3,2,"mat-tab"),Gt(6,"notEmpty"),A(7,Dee,3,2,"mat-tab"),Gt(8,"notEmpty"),A(9,Eee,3,2,"mat-tab"),Gt(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var kee=t=>["/authenticators",t];function Aee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Ree(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Oee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Pee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Vee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Aee,2,0,"ng-template",8),c(5,"div",9),A(6,Ree,1,2,"uds-information",10),Gt(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Oee,2,0,"ng-template",8),c(10,"div",9),A(11,Pee,1,6,"uds-table",11),A(12,Nee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Fee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Lee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var dy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{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},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){ZM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){ZM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){XM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){XM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Vee,21,16,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,kee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function Bee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,Bee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var jee=t=>["/connectivity","tunnels",t];function zee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Hee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,zee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Uee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onMaintenance(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3='pause'+django.gettext("Maintenance")+"",Wee='pause'+django.gettext("Exit maintenance mode")+"",$ee='pause'+django.gettext("Enter maintenance mode")+"",C3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:y3,type:Ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=y3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=Wee:this.customButtons[0].html=$ee}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Hee,11,9,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,jee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var i1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var uy=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,Gee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,qee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Zee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Xee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Zee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Yee,2,0,"uds-translate"),A(2,Qee,2,0,"uds-translate"),A(3,Kee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Xee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` -`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ete(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function tte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ete,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Jee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,tte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function nte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ite(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,nte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ite,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.reason))},dependencies:[Wt,$e,Ke,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var D3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ote=["switch"],rte=["*"];function ate(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ste=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),py=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nl=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Qe);defaults=p(ste);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new py(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 py(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ote,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ye([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:rte,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ate,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Dr,qb],styles:[`.mdc-switch { +`],encapsulation:2,changeDetection:0})}return t})();var WJ={provide:$o,useExisting:Wn(()=>Dd),multi:!0};var $J=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(po);_scrollStrategy=p($J);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=Gs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&$l(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof gm?e:null))}optionSelections=mr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return $r()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Qe([WJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,bm,Cr,bm,pt]})}return t})();function GJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function qJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function YJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function QJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,QJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function JJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,GJ,4,1,"div")(2,qJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,YJ,4,3,"mat-form-field"),A(6,KJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,ZJ,4,2,"mat-form-field"),A(43,XJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,JJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function eee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function tee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function nee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function iee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,iee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function ree(t,i){if(t&1&&(A(0,nee,4,3,"mat-form-field"),A(1,oee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function aee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function see(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function lee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,see,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function cee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function dee(t,i){if(t&1&&A(0,cee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function uee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,dee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var XM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,eee,4,1,"div")(2,tee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,ree,2,2)(6,aee,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,lee,7,1,"mat-form-field")(35,uee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function pee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,mee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function fee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,hee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function gee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function _ee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,gee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var bee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Cee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new ir(django.gettext("Groups"),e,bee,this.user.id+"infogrp"),this.servicesPools=new ir(django.gettext("Services Pools"),n,yee,this.user.id+"infopool"),this.userServices=new ir(django.gettext("Assigned services"),o,Cee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,pee,3,2,"mat-tab"),Gt(7,"notEmpty"),A(8,fee,3,2,"mat-tab"),Gt(9,"notEmpty"),A(10,_ee,3,2,"mat-tab"),Gt(11,"notEmpty"),c(12,"mat-tab"),xe(13,vee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` +`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function xee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function wee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,xee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function Dee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function See(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Dee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Eee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Tee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Iee=[{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:sn.DATETIME}],kee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/servicesPools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new ir(django.gettext("Service pools"),n,Tee,this.data.group.id+"infopls"),this.users=new ir(django.gettext("Users"),o,Iee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new ir(django.gettext("Groups"),r,kee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,wee,3,2,"mat-tab"),Gt(6,"notEmpty"),A(7,See,3,2,"mat-tab"),Gt(8,"notEmpty"),A(9,Mee,3,2,"mat-tab"),Gt(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Aee=t=>["/authenticators",t];function Ree(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Oee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Bee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ree,2,0,"ng-template",8),c(5,"div",9),A(6,Oee,1,2,"uds-information",10),Gt(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Pee,2,0,"ng-template",8),c(10,"div",9),A(11,Nee,1,6,"uds-table",11),A(12,Fee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Lee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Vee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{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},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){ZM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){ZM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){XM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){XM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Bee,21,16,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Aee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,jee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var zee=t=>["/connectivity","tunnels",t];function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Wee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Uee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Hee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onMaintenance(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3='pause'+django.gettext("Maintenance")+"",$ee='pause'+django.gettext("Exit maintenance mode")+"",Gee='pause'+django.gettext("Enter maintenance mode")+"",C3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:y3,type:Ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=y3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=$ee:this.customButtons[0].html=Gee}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Wee,11,9,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,zee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var i1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Yee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,qee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,Yee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Zee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Xee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Jee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Xee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Qee,2,0,"uds-translate"),A(2,Kee,2,0,"uds-translate"),A(3,Zee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Jee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` +`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ete(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function tte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function nte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,tte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,ete,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,nte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ite(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ote(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ite,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ote,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.reason))},dependencies:[Wt,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var D3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var rte=["switch"],ate=["*"];function ste(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var lte=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nl=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ke);defaults=p(lte);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(rte,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:ate,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ste,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Dr,Yb],styles:[`.mdc-switch { align-items: center; background: none; border: none; @@ -4893,12 +4893,12 @@ mat-autocomplete { right: 50%; transform: translate(50%, -50%); } -`],encapsulation:2,changeDetection:0})}return t})(),S3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[nl,pt]})}return t})();var lte=()=>["transport","group","bool"];function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function hte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,pte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,fte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,gte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function vte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function bte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var o1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,cte,2,0,"uds-translate")(2,dte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,ute,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,mte,2,2,"mat-option",4,De),d()(),A(30,hte,8,2,"mat-form-field"),A(31,_te,15,3),A(32,vte,5,2,"div",8),A(33,bte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,lte).includes(o.parameter.type)?33:-1))},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var hf=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` -`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,or],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var E3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,yte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,Cte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,xte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ke,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var wte=["chart"],M3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(wte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ste=t=>["/pools","service-pools",t];function Ete(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Mte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Tte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Ite(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Tte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Rte(t,i){if(t&1&&(A(0,kte,3,0,"span"),A(1,Ate,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Ote(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Rte,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Pte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Nte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Pte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Fte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Lte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Fte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Vte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Bte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Vte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Ute(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,zte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Hte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Wte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Hte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function $te(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Gte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ete,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Mte,1,2,"uds-information",12),d()(),A(11,Ite,4,8,"mat-tab"),A(12,Ote,4,9,"mat-tab"),A(13,Nte,4,7,"mat-tab"),A(14,Lte,4,7,"mat-tab"),A(15,Bte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,jte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Ute,4,8,"mat-tab"),A(21,Wte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,$te,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var fy='event'+django.gettext("Logs")+"",qte='computer'+django.gettext("VNC")+"",Yte='schedule'+django.gettext("Launch now")+"",r1='perm_identity'+django.gettext("Change owner")+"",Qte='perm_identity'+django.gettext("Assign service")+"",Kte='cancel'+django.gettext("Cancel")+"",Zte='event'+django.gettext("Changelog")+"",T3='perm_identity'+django.gettext("Fallback: Allow")+"",Xte='perm_identity'+django.gettext("Fallback: Deny")+"",gy=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Yte,type:Ut.SINGLE_SELECT},Pi.getGotoButton($b,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:T3,type:Ut.ALWAYS},Pi.getGotoButton($b,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:fy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Zh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:fy,type:Ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Kte,type:Ut.SINGLE_SELECT},{id:"changelog",html:Zte,type:Ut.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:qte,type:Ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Qte,type:Ut.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] +`],encapsulation:2,changeDetection:0})}return t})(),S3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[nl,pt]})}return t})();var cte=()=>["transport","group","bool"];function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function fte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,hte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function vte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,gte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,_te,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function bte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function yte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var o1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,dte,2,0,"uds-translate")(2,ute,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,mte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,pte,2,2,"mat-option",4,De),d()(),A(30,fte,8,2,"mat-form-field"),A(31,vte,15,3),A(32,bte,5,2,"div",8),A(33,yte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,cte).includes(o.parameter.type)?33:-1))},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` +`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,or],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function wte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var E3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,Cte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,xte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,wte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Dte=["chart"],M3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(Dte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ete=t=>["/pools","service-pools",t];function Mte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Tte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Ite(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function kte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ite,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Rte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ote(t,i){if(t&1&&(A(0,Ate,3,0,"span"),A(1,Rte,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Pte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ote,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Vte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Lte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function jte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Bte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function Ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Hte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ute,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Wte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function $te(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Wte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Gte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function qte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Mte,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Tte,1,2,"uds-information",12),d()(),A(11,kte,4,8,"mat-tab"),A(12,Pte,4,9,"mat-tab"),A(13,Fte,4,7,"mat-tab"),A(14,Vte,4,7,"mat-tab"),A(15,jte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,zte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Hte,4,8,"mat-tab"),A(21,$te,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,Gte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",Yte='computer'+django.gettext("VNC")+"",Qte='schedule'+django.gettext("Launch now")+"",r1='perm_identity'+django.gettext("Change owner")+"",Kte='perm_identity'+django.gettext("Assign service")+"",Zte='cancel'+django.gettext("Cancel")+"",Xte='event'+django.gettext("Changelog")+"",T3='perm_identity'+django.gettext("Fallback: Allow")+"",Jte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Qte,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:T3,type:Ut.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:gy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Zte,type:Ut.SINGLE_SELECT},{id:"changelog",html:Xte,type:Ut.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:Yte,type:Ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Kte,type:Ut.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});sm(o,e.ip+".vnc")}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield uy.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?hf.launch(this.api,n,this.assignedServices,this.servicePool?.name):e.param.id==="assign-service"?(yield E3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage():e.param.id==="vnc"&&this.vnc(n)})}onCustomCached(e){let n=e.table.selection.selected[0];e.param.id==="log"&&this.cache&&hf.launch(this.api,n,this.cache,this.servicePool?.name)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}onDeleteAssigned(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}checkLocked(){return B(this,null,function*(){return this.servicePool.state==="Q"?(this.api.gui.alert(django.gettext("Service pool is locked"),django.gettext("Service pool is locked, no changes allowed")),!0):!1})}onNewGroup(e){return B(this,null,function*(){(yield this.checkLocked())||(yield my.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return B(this,null,function*(){(yield this.checkLocked())||(yield x3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return B(this,null,function*(){(yield w3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return B(this,null,function*(){e.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))})}onCustomPublication(e){return B(this,null,function*(){e.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&D3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=T3:this.customButtonAccessCalendars[0].html=Xte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Gte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,Ste,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,qo,Yn,Qn,ii,Ee,Ge,or,oa,M3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var I3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:_n.DATETIME},{field:"role",title:django.gettext("Role")}],Jte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],_y=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Jte],users:[()=>this.users(),I3],"users-with-services":[()=>this.usersWithServices(),I3]},[s,l]=a[r.list];this.selectedRest=new ir(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ze(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var a1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function ene(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function nne(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function ine(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var s1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ene,2,0,"uds-translate"),A(2,tne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,nne,1,0,"uds-cond-select-search"),fe(16,ine,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Wt,Sr,$e,Ke,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var one=t=>["/pools","meta-pools",t];function rne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function ane(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function mne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,rne,2,0,"ng-template",8),c(5,"div",9),A(6,ane,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,sne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,lne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,cne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,dne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,une,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Kh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:fy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Zh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield uy.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&hf.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){gy.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield my.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,mne,27,31,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,one,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var c1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var pne=["mat-calendar-body",""];function hne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function fne(t,i){if(t&1&&(cn(0,"tr",0)(1,"td",3),f(2),mn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function gne(t,i){if(t&1&&(cn(0,"td",3),f(1),mn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function _ne(t,i){if(t&1){let e=W();cn(0,"td",6)(1,"button",7),Ol("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),cn(2,"span",8),f(3),mn(),uo(4,"span",9),mn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function vne(t,i){if(t&1&&(cn(0,"tr",1),A(1,gne,2,6,"td",4),fe(2,_ne,5,49,"td",5,L3),mn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function bne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var yne=["*"];function Cne(t,i){}function xne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function wne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){}var Ene=["button"],Mne=[[["","matDatepickerToggleIcon",""]]],Tne=["[matDatepickerToggleIcon]"];function Ine(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Nm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kne=0,gf=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=kne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Ane={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Pm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Nm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Ane),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return m1(e,this.startValue,this.endValue)}_isRangeEnd(e){return p1(e,this.startValue,this.endValue)}_isInRange(e){return h1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return p1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return h1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return m1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return p1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return h1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),u1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=u1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=u1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:pne,decls:11,vars:11,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","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&&(A(0,fne,3,6,"tr",0),fe(1,vne,4,1,"tr",1,hne,!0),cn(3,"span",2),f(4),mn(),cn(5,"span",2),f(6),mn(),cn(7,"span",2),f(8),mn(),cn(9,"span",2),f(10),mn()),n&2&&(R(o._firstRowOffset{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&D3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=T3:this.customButtonAccessCalendars[0].html=Jte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,qte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,Ete,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,qo,Yn,Qn,ii,Ee,Ge,or,oa,M3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var I3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],ene=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],tne=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],k3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),ene],users:[()=>this.users(),I3],"users-with-services":[()=>this.usersWithServices(),I3],"user-services":[()=>this.userServices(!0),k3],"assigned-services":[()=>this.userServices(!1),k3],"restrained-pools":[()=>this.pools(!0),tne]},[s,l]=a[r.list];this.selectedRest=new ir(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye($({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye($({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var a1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function ine(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function one(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function rne(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var s1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,nne,2,0,"uds-translate"),A(2,ine,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,one,1,0,"uds-cond-select-search"),fe(16,rne,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Wt,Sr,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var ane=t=>["/pools","meta-pools",t];function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function lne(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function mne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function pne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function hne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,sne,2,0,"ng-template",8),c(5,"div",9),A(6,lne,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,cne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,dne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,une,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,mne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,pne,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var A3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:gy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,hne,27,31,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,ane,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var c1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var fne=["mat-calendar-body",""];function gne(t,i){return this._trackRow(i)}var V3=(t,i)=>i.id;function _ne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function vne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function bne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Ol("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),uo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function yne(t,i){if(t&1&&(dn(0,"tr",1),A(1,vne,2,6,"td",4),fe(2,bne,5,49,"td",5,V3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function Cne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var xne=["*"];function wne(t,i){}function Dne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Sne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ene(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Mne(t,i){}var Tne=["button"],Ine=[[["","matDatepickerToggleIcon",""]]],kne=["[matDatepickerToggleIcon]"];function Ane(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rne=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=Rne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},One={passive:!1,capture:!0},vy={passive:!0,capture:!0},R3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,One),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,R3),e.listen(o,"touchstart",this._mousedownHandler,R3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return m1(e,this.startValue,this.endValue)}_isRangeEnd(e){return p1(e,this.startValue,this.endValue)}_isInRange(e){return h1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return p1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return h1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return m1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return p1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return h1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=O3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),u1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=u1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=O3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=u1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:fne,decls:11,vars:11,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","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&&(A(0,_ne,3,6,"tr",0),fe(1,yne,4,1,"tr",1,gne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset=i&&t===e}function h1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},_f=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Rne=(()=>{class t extends _f{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(so))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:_f,useFactory:()=>p(_f,{optional:!0,skipSelf:!0})||new Rne(p(so))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var f1=7,One=0,O3=(()=>{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(Gr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!dn(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((f1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%f1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:One++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Pm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,bne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Pm],encapsulation:2,changeDetection:0})}return t})(),Ar=24,g1=4,P3=(()=>{class t{_changeDetectorRef=p(Qe);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-g1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,g1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ar-ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Ar*10:-Ar);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ar*10:Ar);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ff(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new gf(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Qe);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ln(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new gf(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Nm);calendar=p(_1);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(Gr);let e=p(Qe);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Ar))}nextClicked(){this.nextEnabled()&&(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:Ar))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-ff(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Ar-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:yne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,qo],encapsulation:2,changeDetection:0})}return t})(),_1=(()=>{class t{_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_changeDetectorRef=p(Qe);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Nm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new tr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains($r())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ye([V3]),Ct],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&&(xe(0,Cne,0,0,"ng-template",0),c(1,"div",1),A(2,xne,1,11,"mat-month-view",2)(3,wne,1,6,"mat-year-view",3)(4,Dne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Ph,O3,N3,P3],styles:[`.mat-calendar { +`],encapsulation:2,changeDetection:0})}return t})();function d1(t){return t?.nodeName==="TD"}function u1(t){let i;return d1(t)?i=t:d1(t.parentNode)?i=t.parentNode:d1(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function m1(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function h1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function O3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),Pne=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(so))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var B3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new Pne(p(so))};var j3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var f1=7,Nne=0,P3=(()=>{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(j3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(Gr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((f1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%f1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Nne++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,Cne,5,2,"th",2,V3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Ar=24,g1=4,N3=(()=>{class t{_changeDetectorRef=p(Ke);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),z3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-g1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,g1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ar-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Ar*10:-Ar);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ar*10:Ar);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(_1);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(Gr);let e=p(Ke);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Ar))}nextClicked(){this.nextEnabled()&&(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:Ar))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):z3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Ar-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:xne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,qo],encapsulation:2,changeDetection:0})}return t})(),_1=(()=>{class t{_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_changeDetectorRef=p(Ke);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new tr(this.headerComponent||H3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains($r())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(P3,5)(F3,5)(N3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Qe([B3]),Ct],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&&(xe(0,wne,0,0,"ng-template",0),c(1,"div",1),A(2,Dne,1,11,"mat-month-view",2)(3,Sne,1,6,"mat-year-view",3)(4,Ene,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Nh,P3,F3,N3],styles:[`.mat-calendar { display: block; line-height: normal; font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); @@ -5291,7 +5291,7 @@ port=5900 .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),Nne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Qe);_globalModel=p(_f);_dateAdapter=p(so);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(Gr),this._closeButtonText=p(Nm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(_1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Sne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,_1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { +`],encapsulation:2,changeDetection:0})}return t})(),Lne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),W3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ke);_globalModel=p(vf);_dateAdapter=p(so);_ngZone=p(be);_rangeSelectionStrategy=p(j3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(Gr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(_1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Mne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,_1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { from { opacity: 0; transform: scaleY(0.8); @@ -5394,7 +5394,7 @@ port=5900 height: 115vw; } } -`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_model=p(_f);_animationsDisabled=Bt();_scrollStrategy=p(Nne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=iF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Qe);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Ju&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=$r(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new tr(H3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ul(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return fs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!dn(o)||this.datepickerInput&&dn(o,"altKey")&&o.keyCode===38&&n.every(r=>!dn(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ye([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Om=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Fne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Om(this,this._elementRef.nativeElement)),this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Lne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];dn(e,"altKey")&&e.keyCode===40&&n.every(r=>!dn(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Om(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Om(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Lne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Vne={provide:$o,useExisting:Wn(()=>Fm),multi:!0},Bne={provide:Xr,useExisting:Wn(()=>Fm),multi:!0},Fm=(()=>{class t extends Fne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=vs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Ye([Vne,Bne,{provide:X0,useExisting:t}]),We]})}return t})(),jne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),vf=(()=>{class t{_intl=p(Nm);_changeDetectorRef=p(Qe);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,jne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Ene,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Tne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Mne),c(0,"button",1,0),A(2,Ine,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { +`],encapsulation:2,changeDetection:0})}return t})(),L3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Lne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=iF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ke);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=$r(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new tr(W3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ul(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return fs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends L3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Qe([B3,{provide:L3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Vne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Bne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Bne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var jne={provide:$o,useExisting:Wn(()=>Lm),multi:!0},zne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Vne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=vs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Qe([jne,zne,{provide:J0,useExisting:t}]),We]})}return t})(),Une=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ke);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Une,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Tne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:kne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Ine),c(0,"button",1,0),A(2,Ane,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { pointer-events: auto; color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); } @@ -5411,7 +5411,7 @@ port=5900 color: CanvasText; } } -`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Nm],imports:[_s,ho,cd,xr,H3,vf,U3,pt,Cr]})}return t})();function zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Hne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,$ne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},b1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Gl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Gl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,zne,2,0,"uds-translate"),Gt(2,"notEmpty"),A(3,Une,2,0,"uds-translate"),Gt(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Hne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Wne,2,2,"mat-option",9,De),d()(),A(63,Gne,7,1,"mat-form-field",10),A(64,qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Wt,Sr,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,kr,Yt,en,Mt,by,Fm,vf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Yne=t=>["/pools","calendars",t];function Qne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Kne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Qne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){b1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){b1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Kne,7,7,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Yne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Zne='event'+django.gettext("Set time mark")+"",y1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Zne,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Xne=t=>["/pools","accounts",t];function Jne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function eie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Jne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,eie,7,6,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Xne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var C1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,tie,2,0,"uds-translate"),A(2,nie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Kp,Wt,$e,Ke,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var x1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){C1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){C1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var iie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:iie,type:Ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function oie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function rie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function cie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,cie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function mie(t,i){}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1&&A(0,rie,5,4,"div")(1,aie,5,3,"div")(2,sie,5,3,"div")(3,lie,4,3,"div")(4,die,7,3,"div")(5,uie,5,3,"div")(6,mie,0,0)(7,pie,5,3,"div")(8,hie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function gie(t,i){if(t&1&&(c(0,"div",10),A(1,fie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function _ie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,oie,1,1,"ng-template",8),c(2,"div",9),fe(3,gie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function vie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,_ie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,vie,9,1,"div",3),Gt(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Wt,Sr,$e,Ke,Fe,qo,ze,st,Yt,en,Mt,Yn,Qn,ii,nl,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var bie=[{path:"",canActivate:[M2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:_y,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:_y,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:_y,data:{list:"users",icon:"users",title:"Users"}},{path:"services/providers",component:WM},{path:"services/providers/:provider/detail",component:$M},{path:"services/providers/:provider",component:WM},{path:"services/providers/:provider/detail/:service",component:$M},{path:"services/servers",component:GM},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:GM},{path:"authenticators",component:qM},{path:"authenticators/:authenticator/detail",component:dy},{path:"authenticators/:authenticator",component:qM},{path:"authenticators/:authenticator/detail/groups/:group",component:dy},{path:"authenticators/:authenticator/detail/users/:user",component:dy},{path:"mfas",component:YM},{path:"mfas/:mfa",component:YM},{path:"osmanagers",component:JM},{path:"osmanagers/:osmanager",component:JM},{path:"connectivity/transports",component:e1},{path:"connectivity/transports/:transport",component:e1},{path:"connectivity/networks",component:t1},{path:"connectivity/networks/:network",component:t1},{path:"connectivity/tunnels",component:n1},{path:"connectivity/tunnels/:tunnel",component:n1},{path:"connectivity/tunnels/:tunnel/detail",component:C3},{path:"pools/service-pools",component:i1},{path:"pools/service-pools/:pool",component:i1},{path:"pools/service-pools/:pool/detail",component:gy},{path:"pools/meta-pools",component:a1},{path:"pools/meta-pools/:metapool",component:a1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:l1},{path:"pools/pool-groups/:poolgroup",component:l1},{path:"pools/calendars",component:c1},{path:"pools/calendars/:calendar",component:c1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:y1},{path:"pools/accounts/:account",component:y1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:x1},{path:"tools/gallery/:image",component:x1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[Wv.forRoot(bie,{}),Wv]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ua="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function w1(t){return{type:Jt.Style,styles:t,offset:null}}var il=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Lm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},bf="!";function aB(t){return new ie(3e3,!1)}function yie(){return new ie(3100,!1)}function Cie(){return new ie(3101,!1)}function xie(t){return new ie(3001,!1)}function wie(t){return new ie(3003,!1)}function Die(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Sie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function ol(t){switch(t.length){case 0:return new il;case 1:return t[0];default:return new Lm(t)}}function M1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case bf:P=e.get(w);break;case Ua:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Sie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&D1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&D1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&D1(e,"destroy",t)));break}}function D1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function T1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Eie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Eie?null:i}function Mie(t){return t.substring(1,6)=="ebkit"}var Ed=null,sB=!1;function OB(t){Ed||(Ed=Tie()||{},sB=Ed.style?"WebkitAppearance"in Ed.style:!1);let i=!0;return Ed.style&&!Mie(t)&&(i=t in Ed.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ed.style)),i}function Tie(){return typeof document<"u"?document.body:null}function I1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function k1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Iie=1e3,A1="{{",kie="}}",R1="ng-enter",Sy="ng-leave",yf="ng-trigger",Cf=".ng-trigger",O1="ng-animating",Ey=".ng-animating";function Cs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:S1(parseFloat(i[1]),i[2])}function S1(t,i){return i==="s"?t*Iie:t}function xf(t,i,e){return t.hasOwnProperty("duration")?t:Rie(t,i,e)}var Aie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Rie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Aie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=S1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=S1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(yie()),a=!0),o<0&&(i.push(Cie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ha(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Vm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=P1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(xie(r))})}var E1=new RegExp(`${A1}\\s*(.+?)\\s*${kie}`,"g");function P1(t){let i=[];if(typeof t=="string"){let e;for(;e=E1.exec(t);)i.push(e[1]);E1.lastIndex=0}return i}function Bm(t,i,e){let n=`${t}`,o=n.replace(E1,(r,a)=>{let s=i[a];return s==null&&(e.push(wie(a)),s=""),s.toString()});return o==n?t:o}var Oie=/-+([a-z0-9])/g;function My(t){return t.replace(Oie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function ar(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Die(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var Z1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return I1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return k1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new il(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Td=class{static NOOP=new Z1},Id=class{};var Pie=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"]),Oy=class extends Id{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Pie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Nie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Fie(n,e,i)):e.push(t),e}function Fie(t,i,e){if(t[0]==":"){let l=Lie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Lie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Vie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new j1(t).build(i,e,n)}var BB="",j1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new z1(e);return this._resetContextStyleTimingState(o),ar(this,Vm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{P1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ar(this,Vm(i.animation),e),o=Nie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Md(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>ar(this,n,e)),options:Md(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Md(i.options)}}visitAnimate(i,e){let n=Uie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:w1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=w1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ua?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(A1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:zie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:ar(this,Vm(i.animation),e),options:Md(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Md(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Md(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=Bie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);let s=ar(this,Vm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Md(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:xf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:ar(this,Vm(i.animation),e),timings:n,options:null}}};function Bie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Vie,"")),t=t.replace(/@\*/g,Cf).replace(/@\w+/g,e=>Cf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function jie(t){return t?G({},t):null}var z1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function zie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Uie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=xf(t,i).duration;return N1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=N1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=xf(e,i);return N1(o.duration,o.delay,o.easing)}function Md(t){return t?(t=G({},t),t.params&&(t.params=jie(t.params))):t={},t}function N1(t,i,e){return{duration:t,delay:i,easing:e}}function X1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Df=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Hie=1,Wie=":enter",$ie=new RegExp(Wie,"g"),Gie=":leave",qie=new RegExp(Gie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new U1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var U1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Df;let g=new H1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?Cs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),ar(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[X1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:Cs(Bm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Cs(n.duration):null,s=n.delay!=null?Cs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ar(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=Cs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?Bm(n,e.params,e.errors):n;return xf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?Cs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),ar(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;ar(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},H1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=Cs(n.duration)),n.delay!=null&&(o.delay=Cs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=Bm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new W1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace($ie,"."+this._enterClassName),i=i.replace(qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Hie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ua),this._currentKeyframe.set(e,Ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Yie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=Bm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===bf?i.add(g):h===Ua&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return X1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},W1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return X1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Yie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ua)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var F1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Qie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||F1,w=s&&s.params||F1,S=this.buildStyles(n,w,g),P=l&&l.params||F1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=rr(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=rr(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Qie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var $1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=Bm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Kie(t,i,e){return new G1(t,i,e)}var G1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new $1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Zie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Zie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Xie=new Df,q1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=M1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,R1,Sy,new Map,new Map,n,Xie,o),a.forEach(h=>{let g=rr(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ua))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=ol(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",Jie=".ng-animate-queued",L1="ng-animate-disabled",eoe=".ng-animate-disabled",toe="ng-star-inserted",noe=".ng-star-inserted",ioe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ooe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wa="__ng_removed",Sf=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=aoe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},wf="void",V1=new Sf(wf),Y1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!soe(n))throw IB(n,e);let r=rr(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=rr(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,yf),aa(i,yf+"-"+e),s.set(e,V1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Ef(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,yf),aa(i,yf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Sf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V1),!(u.value===wf)&&l.value===u.value){if(!doe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Ha(i,F)})}return}let y=rr(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,HB),a.onStart(()=>{jm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,Cf,!0);n.forEach(o=>{if(o[Wa])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,wf,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ol(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||V1,h=new Sf(wf),g=new Ef(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[Wa];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Q1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new Y1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[Wa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,L1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),jm(i,L1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[Wa]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,Cf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ol(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Wa];if(e&&e.setForRemoval){if(i[Wa]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(L1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,eoe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?ol(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Df,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,Jie,!0);for(let He=0;He{let He=R1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>jm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>jm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[Wa];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>rr(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{rr(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ua).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,bf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Ha(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=ol(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Ha(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=ol(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?loe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==wf;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=rr(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[Wa];if(j&&j.removedBeforeQueried)return new il(S.duration,S.delay);let F=P!==l,q=coe((n.get(P)||ioe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=M1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Ef(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{rr(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>roe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,O1));let w=ol(y);return w.onDestroy(()=>{h.forEach(S=>jm(S,O1)),Ha(l,e.toStyles)}),g.forEach(S=>{rr(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new il(i.duration,i.delay)}},Ef=class{namespaceId;triggerName;element;_player=new il;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){rr(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function roe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function aoe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function soe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[Wa]=ooe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function jm(t,i){t.classList?.remove(i)}function loe(t,i,e){ol(e).onDone(()=>t.processLeaveNode(i))}function coe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var zm=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Q1(i.body,e,n),this._timelineEngine=new q1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Kie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=T1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=T1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function uoe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=B1(i[0]),i.length>1&&(n=B1(i[i.length-1]))):i instanceof Map&&(e=B1(i)),e||n?new moe(t,e,n):null}var moe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}return t})();function B1(t){let i=null;return t.forEach((e,n)=>{poe(n)&&(i=i||new Map,i.set(n,e))}),i}function poe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return I1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return k1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=uoe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},K1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=hoe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=foe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function hoe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function foe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new K1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var _oe=(()=>{class t extends zm{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Td),we(Id))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function voe(){return new Oy}function boe(){return new zy(p(oh),p(zm),p(be))}var nj=[{provide:Id,useFactory:voe},{provide:zm,useClass:_oe},{provide:bi,useFactory:boe}],yoe=[{provide:Td,useClass:Z1},{provide:Rl,useValue:"NoopAnimations"},...nj],tj=[{provide:Td,useFactory:()=>new By},{provide:Rl,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?yoe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[ah]})}return t})();var Coe=["button"],xoe=["*"];function woe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Doe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Soe=new L("MatButtonToggleGroup");var J1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Eoe=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Soe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Doe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 J1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(Coe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:xoe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,woe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Dr,Gb],styles:[`.mat-button-toggle-standalone, +`],encapsulation:2,changeDetection:0})}return t})();var $3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[_s,ho,cd,xr,W3,bf,H3,pt,Cr]})}return t})();function Hne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Wne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function qne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Yne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,qne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function Qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},q3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Y3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(q3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Q3=t=>{t.frequency==="WEEKDAYS"?t.interval=Y3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},b1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=q3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+Y3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Gl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Gl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Hne,2,0,"uds-translate"),Gt(2,"notEmpty"),A(3,Wne,2,0,"uds-translate"),Gt(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,$ne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Gne,2,2,"mat-option",9,De),d()(),A(63,Yne,7,1,"mat-form-field",10),A(64,Qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,kr,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Kne=t=>["/pools","calendars",t];function Zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Xne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Zne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){b1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){b1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Q3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Xne,7,7,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Kne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Jne='event'+django.gettext("Set time mark")+"",y1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Jne,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var eie=t=>["/pools","accounts",t];function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function nie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,tie,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var Z3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,nie,7,6,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,eie,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function iie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function oie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var C1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,iie,2,0,"uds-translate"),A(2,oie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var x1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){C1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){C1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var rie='assessment'+django.gettext("Generate report")+"",X3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:rie,type:Ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function aie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function cie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function uie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function mie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,uie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){}function fie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function gie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function _ie(t,i){if(t&1&&A(0,sie,5,4,"div")(1,lie,5,3,"div")(2,cie,5,3,"div")(3,die,4,3,"div")(4,mie,7,3,"div")(5,pie,5,3,"div")(6,hie,0,0)(7,fie,5,3,"div")(8,gie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function vie(t,i){if(t&1&&(c(0,"div",10),A(1,_ie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function bie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,aie,1,1,"ng-template",8),c(2,"div",9),fe(3,vie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function yie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,bie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var eB=["UDS","Security"],tB=["UDS ID"],nB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!eB.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,eB),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&tB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,tB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,yie,9,1,"div",3),Gt(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Wt,Sr,$e,Ze,Fe,qo,ze,st,Yt,en,Mt,Yn,Qn,ii,nl,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var oB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var Cie=[{path:"",canActivate:[M2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:WM},{path:"services/providers/:provider/detail",component:$M},{path:"services/providers/:provider",component:WM},{path:"services/providers/:provider/detail/:service",component:$M},{path:"services/servers",component:GM},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:GM},{path:"authenticators",component:qM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:qM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:YM},{path:"mfas/:mfa",component:YM},{path:"osmanagers",component:JM},{path:"osmanagers/:osmanager",component:JM},{path:"connectivity/transports",component:e1},{path:"connectivity/transports/:transport",component:e1},{path:"connectivity/networks",component:t1},{path:"connectivity/networks/:network",component:t1},{path:"connectivity/tunnels",component:n1},{path:"connectivity/tunnels/:tunnel",component:n1},{path:"connectivity/tunnels/:tunnel/detail",component:C3},{path:"pools/service-pools",component:i1},{path:"pools/service-pools/:pool",component:i1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:a1},{path:"pools/meta-pools/:metapool",component:a1},{path:"pools/meta-pools/:metapool/detail",component:A3},{path:"pools/pool-groups",component:l1},{path:"pools/pool-groups/:poolgroup",component:l1},{path:"pools/calendars",component:c1},{path:"pools/calendars/:calendar",component:c1},{path:"pools/calendars/:calendar/detail",component:K3},{path:"pools/accounts",component:y1},{path:"pools/accounts/:account",component:y1},{path:"pools/accounts/:account/detail",component:Z3},{path:"tools/gallery",component:x1},{path:"tools/gallery/:image",component:x1},{path:"tools/reports",component:X3},{path:"tools/notifiers",component:J3},{path:"tools/tokens/actor",component:iB},{path:"tools/tokens/server",component:oB},{path:"tools/configuration",component:nB}]}],rB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(Cie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ua="*";function aB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function w1(t){return{type:Jt.Style,styles:t,offset:null}}var il=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function sB(t){return new ie(3e3,!1)}function xie(){return new ie(3100,!1)}function wie(){return new ie(3101,!1)}function Die(t){return new ie(3001,!1)}function Sie(t){return new ie(3003,!1)}function Eie(t){return new ie(3004,!1)}function cB(t,i){return new ie(3005,!1)}function dB(){return new ie(3006,!1)}function uB(){return new ie(3007,!1)}function mB(t,i){return new ie(3008,!1)}function pB(t){return new ie(3002,!1)}function hB(t,i,e,n,o){return new ie(3010,!1)}function fB(){return new ie(3011,!1)}function gB(){return new ie(3012,!1)}function _B(){return new ie(3200,!1)}function vB(){return new ie(3202,!1)}function bB(){return new ie(3013,!1)}function yB(t){return new ie(3014,!1)}function CB(t){return new ie(3015,!1)}function xB(t){return new ie(3016,!1)}function wB(t,i){return new ie(3404,!1)}function Mie(t){return new ie(3502,!1)}function DB(t){return new ie(3503,!1)}function SB(){return new ie(3300,!1)}function EB(t){return new ie(3504,!1)}function MB(t){return new ie(3301,!1)}function TB(t,i){return new ie(3302,!1)}function IB(t){return new ie(3303,!1)}function kB(t,i){return new ie(3400,!1)}function AB(t){return new ie(3401,!1)}function RB(t){return new ie(3402,!1)}function OB(t,i){return new ie(3505,!1)}function ol(t){switch(t.length){case 0:return new il;case 1:return t[0];default:return new Vm(t)}}function M1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ua:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Mie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&D1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&D1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&D1(e,"destroy",t)));break}}function D1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function T1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Tie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Tie?null:i}function Iie(t){return t.substring(1,6)=="ebkit"}var Md=null,lB=!1;function PB(t){Md||(Md=kie()||{},lB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Iie(t)&&(i=t in Md.style,!i&&lB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function kie(){return typeof document<"u"?document.body:null}function I1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function k1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Aie=1e3,A1="{{",Rie="}}",R1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",O1="ng-animating",Ey=".ng-animating";function Cs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:S1(parseFloat(i[1]),i[2])}function S1(t,i){return i==="s"?t*Aie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Pie(t,i,e)}var Oie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Oie);if(a===null)return i.push(sB(t)),{duration:0,delay:0,easing:""};n=S1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=S1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(xie()),a=!0),o<0&&(i.push(wie()),a=!0),a&&i.splice(s,0,sB(t))}return{duration:n,delay:o,easing:r}}function NB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ha(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:aB(t):t}function FB(t,i,e){let n=i.params||{},o=P1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(Die(r))})}var E1=new RegExp(`${A1}\\s*(.+?)\\s*${Rie}`,"g");function P1(t){let i=[];if(typeof t=="string"){let e;for(;e=E1.exec(t);)i.push(e[1]);E1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(E1,(r,a)=>{let s=i[a];return s==null&&(e.push(Sie(a)),s=""),s.toString()});return o==n?t:o}var Nie=/-+([a-z0-9])/g;function My(t){return t.replace(Nie,(...i)=>i[1].toUpperCase())}function LB(t,i){return t===0||i===0}function VB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function ar(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Eie(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var Z1=(()=>{class t{validateStyleProperty(e){return PB(e)}containsElement(e,n){return I1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return k1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new il(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new Z1},kd=class{};var Fie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Fie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(cB(i,n))}return a+r}};var Py="*";function Lie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Vie(n,e,i)):e.push(t),e}function Vie(t,i,e){if(t[0]==":"){let l=Bie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(CB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(BB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(BB(a,o))}function Bie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function BB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var QB=":self",jie=new RegExp(`s*${QB}s*,?`,"g");function KB(t,i,e,n){return new j1(t).build(i,e,n)}var jB="",j1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new z1(e);return this._resetContextStyleTimingState(o),ar(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=jB,i.collectedStyles=new Map,i.collectedStyles.set(jB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(dB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(uB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{P1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(mB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ar(this,Bm(i.animation),e),o=Lie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>ar(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Wie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:w1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=w1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ua?n.push(s):e.errors.push(pB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(A1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(hB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&FB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(fB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:Hie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:ar(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=zie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);let s=ar(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(bB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:ar(this,Bm(i.animation),e),timings:n,options:null}}};function zie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==QB);return i&&(t=t.replace(jie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function Uie(t){return t?$({},t):null}var z1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Hie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Wie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return N1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=N1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return N1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=$({},t),t.params&&(t.params=Uie(t.params))):t={},t}function N1(t,i,e){return{duration:t,delay:i,easing:e}}function X1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},$ie=1,Gie=":enter",qie=new RegExp(Gie,"g"),Yie=":leave",Qie=new RegExp(Yie,"g");function ZB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new U1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var U1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new H1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?Cs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),ar(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[X1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:Cs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Cs(n.duration):null,s=n.delay!=null?Cs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ar(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=Cs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?Cs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),ar(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;ar(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},H1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=Cs(n.duration)),n.delay!=null&&(o.delay=Cs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new W1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(qie,"."+this._enterClassName),i=i.replace(Qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(yB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=$ie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ua),this._currentKeyframe.set(e,Ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Kie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ua&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return X1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},W1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",zB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",zB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return X1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function zB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Kie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ua)}else for(let[r,a]of o)e.set(r,a)}),e}function UB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var F1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Zie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||F1,w=s&&s.params||F1,S=this.buildStyles(n,w,g),P=l&&l.params||F1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:XB(P,y),delay:this.ast.options?.delay},Ce=h?[]:ZB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?UB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=rr(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=rr(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),UB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Zie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function XB(t,i){let e=$({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var $1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=XB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Xie(t,i,e){return new G1(t,i,e)}var G1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new $1(o.style,r,n))}),HB(this.states,"true","1"),HB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Jie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Jie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function HB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var eoe=new Sf,q1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=KB(this._driver,e,n,o);if(n.length)throw DB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=M1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=ZB(this._driver,e,r,R1,Sy,new Map,new Map,n,eoe,o),a.forEach(h=>{let g=rr(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(SB()),a=[]),o.length)throw EB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ua))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=ol(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw MB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},WB="ng-animate-queued",toe=".ng-animate-queued",L1="ng-animate-disabled",noe=".ng-animate-disabled",ioe="ng-star-inserted",ooe=".ng-star-inserted",roe=[],JB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aoe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wa="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=loe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",V1=new Ef(Df),Y1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw TB(n,e);if(n==null||n.length==0)throw IB(e);if(!coe(n))throw kB(n,e);let r=rr(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=rr(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,Cf),aa(i,Cf+"-"+e),s.set(e,V1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw AB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,Cf),aa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V1),!(u.value===Df)&&l.value===u.value){if(!moe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Ha(i,F)})}return}let y=rr(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,WB),a.onStart(()=>{zm(i,WB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[Wa])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ol(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||V1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[Wa];(!r||r===JB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Q1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new Y1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[Wa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,L1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,L1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[Wa]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ol(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Wa];if(e&&e.setForRemoval){if(i[Wa]=JB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(L1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,noe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?ol(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw RB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,toe,!0);for(let He=0;He{let He=R1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=qB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[Wa];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>rr(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(OB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{rr(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>YB(pe,l,u)),ht=new Map;GB(ht,this.driver,q,u,Ua).forEach(pe=>{YB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{GB(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Ha(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=ol(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Ha(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=ol(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?doe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=rr(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[Wa];if(j&&j.removedBeforeQueried)return new il(S.duration,S.delay);let F=P!==l,q=uoe((n.get(P)||roe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=M1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{rr(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>soe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,O1));let w=ol(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,O1)),Ha(l,e.toStyles)}),g.forEach(S=>{rr(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new il(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new il;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){rr(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function soe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function loe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function coe(t){return t=="start"||t=="done"}function $B(t,i){let e=t.style.display;return t.style.display=i??"none",e}function GB(t,i,e,n,o){let r=[];e.forEach(l=>r.push($B(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[Wa]=aoe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>$B(l,r[s++])),a}function qB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function doe(t,i,e){ol(e).onDone(()=>t.processLeaveNode(i))}function uoe(t){let i=[];return ej(t,i),i}function ej(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Q1(i.body,e,n),this._timelineEngine=new q1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=KB(this._driver,r,l,u);if(l.length)throw wB(o,l);s=Xie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=T1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=T1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function poe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=B1(i[0]),i.length>1&&(n=B1(i[i.length-1]))):i instanceof Map&&(e=B1(i)),e||n?new hoe(t,e,n):null}var hoe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}return t})();function B1(t){let i=null;return t.forEach((e,n)=>{foe(n)&&(i=i||new Map,i.set(n,e))}),i}function foe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return I1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return k1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);LB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=NB(e).map(w=>new Map(w));g=VB(i,g,u);let y=poe(i,g);return new Vy(i,g,l,y)}};var Ry="@",tj="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==tj?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},K1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==tj?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=goe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=_oe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function goe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _oe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new K1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var boe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function yoe(){return new Oy}function Coe(){return new zy(p(rh),p(Um),p(be))}var ij=[{provide:kd,useFactory:yoe},{provide:Um,useClass:boe},{provide:bi,useFactory:Coe}],xoe=[{provide:Id,useClass:Z1},{provide:Rl,useValue:"NoopAnimations"},...ij],nj=[{provide:Id,useFactory:()=>new By},{provide:Rl,useFactory:()=>"BrowserAnimations"},...ij],oj=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xoe:nj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:nj,imports:[sh]})}return t})();var woe=["button"],Doe=["*"];function Soe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Eoe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Moe=new L("MatButtonToggleGroup");var J1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Toe=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Moe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Eoe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 J1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(woe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Doe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,Soe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Dr,qb],styles:[`.mat-button-toggle-standalone, .mat-button-toggle-group { position: relative; display: inline-flex; @@ -5686,7 +5686,7 @@ port=5900 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); } -`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,Eoe,pt]})}return t})();var Toe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ioe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function koe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Aoe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Roe=`.mdc-evolution-chip, +`],encapsulation:2,changeDetection:0})}return t})(),rj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,Toe,pt]})}return t})();var koe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Aoe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Roe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Ooe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Poe=`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6234,7 +6234,7 @@ port=5900 img.mdc-evolution-chip__icon { min-height: 0; } -`,Ooe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Poe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Noe(t,i){t&1&&O(0,"span",0)}function Foe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Loe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Voe(t,i){t&1&&Ie(0,2)}function Boe(t,i){t&1&&O(0,"span",7)}function joe(t,i){if(t&1&&A(0,Voe,1,0)(1,Boe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function zoe(t,i){t&1&&Ie(0,3)}function Uoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Hoe=`.mat-mdc-chip-set { +`,Noe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Foe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Loe(t,i){t&1&&O(0,"span",0)}function Voe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Boe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function joe(t,i){t&1&&Ie(0,2)}function zoe(t,i){t&1&&O(0,"span",7)}function Uoe(t,i){if(t&1&&A(0,joe,1,0)(1,zoe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Hoe(t,i){t&1&&Ie(0,3)}function Woe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var cj=["*"],$oe=`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6302,7 +6302,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),tT=new L("MatChipRemove"),oT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(oT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),rT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends rT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Ye([{provide:tT,useExisting:t}]),We]})}return t})(),nT=(()=>{class t{_changeDetectorRef=p(Qe);_elementRef=p(se);_tagName=p(EO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(cm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(vb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,tT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,tT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(rT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ye([{provide:oT,useExisting:t}])],ngContentSelectors:Ioe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Toe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,koe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Aoe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, +`,dj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),aj=new L("MatChipAvatar"),sj=new L("MatChipTrailingIcon"),lj=new L("MatChipEdit"),tT=new L("MatChipRemove"),oT=new L("MatChip"),uj=(()=>{class t{_elementRef=p(se);_parentChip=p(oT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),rT=(()=>{class t extends uj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var mj=(()=>{class t extends rT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Qe([{provide:tT,useExisting:t}]),We]})}return t})(),nT=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_tagName=p(EO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aj,5)(r,lj,5)(r,sj,5)(r,tT,5)(r,aj,5)(r,sj,5)(r,lj,5)(r,tT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(rT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Qe([{provide:oT,useExisting:t}])],ngContentSelectors:Aoe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(koe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,Roe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Ooe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[uj],styles:[`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6850,7 +6850,7 @@ input.mat-mdc-chip-input { img.mdc-evolution-chip__icon { min-height: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var eT=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),aT=(()=>{class t extends nT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,eT,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(eT,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ye([{provide:nT,useExisting:t},{provide:oT,useExisting:t}]),We],ngContentSelectors:Poe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Ooe),A(0,Noe,1,0,"span",0),A(1,Foe,2,0,"span",1),c(2,"span",2),A(3,Loe,2,0,"span",3),c(4,"span",4),A(5,joe,2,1)(6,zoe,1,0),O(7,"span",5),d()(),A(8,Uoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[rT,eT],styles:[Roe],encapsulation:2,changeDetection:0})}return t})(),Woe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Qe);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new fr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(ln(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(ln(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new qs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(ln(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,nT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[`.mat-mdc-chip-set { +`],encapsulation:2,changeDetection:0})}return t})();var eT=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),aT=(()=>{class t extends nT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,eT,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(eT,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Qe([{provide:nT,useExisting:t},{provide:oT,useExisting:t}]),We],ngContentSelectors:Foe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Noe),A(0,Loe,1,0,"span",0),A(1,Voe,2,0,"span",1),c(2,"span",2),A(3,Boe,2,0,"span",3),c(4,"span",4),A(5,Uoe,2,1)(6,Hoe,1,0),O(7,"span",5),d()(),A(8,Woe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[rT,eT],styles:[Poe],encapsulation:2,changeDetection:0})}return t})(),Goe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new fr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new qs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,nT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6918,7 +6918,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var iT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends Woe{ngControl=p(nr,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&dn(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new iT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ye([{provide:Xs,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),cn(0,"div",0),Ie(1),mn())},styles:[Hoe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?dn(e,...r):!dn(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[gs,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,xr,pt]})}return t})();var Goe=["*",[["mat-toolbar-row"]]],qoe=["*","mat-toolbar-row"],Yoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Goe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { +`],encapsulation:2,changeDetection:0})}return t})();var iT=class{source;value;constructor(i,e){this.source=i,this.value=e}},pj=(()=>{class t extends Goe{ngControl=p(nr,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new iT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Qe([{provide:Xs,useExisting:t}]),We],ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[$oe],encapsulation:2,changeDetection:0})}return t})(),hj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(dj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:dj,useValue:{separatorKeyCodes:[13]}}],imports:[gs,pt]})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var _j=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gj,xr,pt]})}return t})();var Yoe=["*",[["mat-toolbar-row"]]],Qoe=["*","mat-toolbar-row"],Koe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),vj=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Koe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Yoe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); } @@ -6983,5 +6983,5 @@ input.mat-mdc-chip-input { min-height: var(--mat-toolbar-mobile-height, 56px); } } -`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:N0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Jh,useValue:udsData.language}],imports:[Jp,c2,Bb,vj,_s,t3,V0,gj,gF,yd,r3,L0,W3,D2,a3,DV,PV,k2,FV,g2,hj,oj,S3,g3,x2,LV,XV,$V]})}}return t})();function Koe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Zoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function nre(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ire(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function ore(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,nre,3,1,"a",22),A(4,ire,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function rre(t,i){t&1&&A(0,ore,7,3,"div",20),t&2&&R(i.title?0:-1)}function are(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Koe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Zoe,2,0,"uds-translate")(18,Xoe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,Joe,2,0,"uds-translate")(30,ere,2,0,"uds-translate"),d(),A(31,tre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,rre,1,1),Gt(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,are,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Pl(o.api.config.urls.change_language),it),m(),b("name",Pl(o.api.csrfField))("value",Pl(o.api.csrfToken)),m(),b("value",Pl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Vb,Pb,Jr,_j,Fe,yi,nc,xd,Z0,Ee,Xp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function cre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function dre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof Jo)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(er))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,cre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,dre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},Bp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function pre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,pre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var fre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(fre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},Bp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[Ch,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends df{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function _re(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,_re,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Wt,$e,Yi,md,Ke,ze,st,Yt,Mt,Rm,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Wt,Sr,$e,Yi,Ke,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Wt,$e,Yi,Ke,yi,ze,st,kr,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ke,ze,st,Yt],encapsulation:2})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,vre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,F0,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,yre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` -`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Wt,$e,Ke,Fe,yi,xt,Dt,wt,ze,kr,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){DF(this.field.value)?this.field.value=gb(this.field.gui.default):this.field.value=gb(this.field.value)}getValue(){return gb(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ke,nl],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function Cre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function xre(t,i){if(t&1&&(c(0,"div"),A(1,Cre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function wre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,xre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,wre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ke,ze,st,en,F0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Gl("%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=Gl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Gl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Wt,$e,Ke,ze,st,kr,Yt,by,Fm,vf],encapsulation:2})}}return t})();function Dre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Dre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,aT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:df,useClass:Mj},hS(fS())],imports:[ah,oB,ij,bj]})}}return t})();TD(zb,[qo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);Wb.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[IO()]}).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();var bj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var yj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,c2,jb,bj,_s,t3,B0,_j,gF,yd,r3,V0,$3,D2,a3,DV,PV,k2,FV,g2,fj,rj,S3,g3,x2,LV,XV,$V]})}}return t})();function Xoe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function nre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function ire(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function ore(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function rre(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function are(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,ore,3,1,"a",22),A(4,rre,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function sre(t,i){t&1&&A(0,are,7,3,"div",20),t&2&&R(i.title?0:-1)}function lre(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var Cj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Xoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Joe,2,0,"uds-translate")(18,ere,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,tre,2,0,"uds-translate")(30,nre,2,0,"uds-translate"),d(),A(31,ire,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,sre,1,1),Gt(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,lre,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Pl(o.api.config.urls.change_language),it),m(),b("name",Pl(o.api.csrfField))("value",Pl(o.api.csrfToken)),m(),b("value",Pl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,vj,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var xj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function ure(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function mre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var wj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof Jo)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(er))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,ure,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,mre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var Dj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function fre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Sj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,fre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var _re=["backgroundThumbnail"],Ej=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(_re,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Mj=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,Cj,xj,wj,Dj,Sj,Ej],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Tj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ze,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var kj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,bre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Wt,$e,Yi,md,Ze,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Wt,Sr,$e,Yi,Ze,ze,st,Yt],encapsulation:2})}}return t})();var Rj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Wt,$e,Yi,Ze,yi,ze,st,kr,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Pj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ze,ze,st,Yt],encapsulation:2})}}return t})();function yre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,yre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function Cre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Fj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,Cre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function xre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Lj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,xre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` +`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Wt,$e,Ze,Fe,yi,xt,Dt,wt,ze,kr,Yt,Ee],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}"]})}}return t})();var Vj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Lj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Bj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){DF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ze,nl],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function wre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function Dre(t,i){if(t&1&&(c(0,"div"),A(1,wre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function Sre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var jj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,Dre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,Sre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Gl("%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=Gl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Gl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Wt,$e,Ze,ze,st,kr,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Ere(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var Uj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Ere,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,pj,hj,mj,aT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Hj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Mj]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Tj},hS(fS())],imports:[sh,rB,oj,yj]})}}return t})();TD(Ub,[qo,Ij,Aj,Rj,Oj,Pj,Nj,Fj,Vj,Bj,jj,zj,Uj,kj],[]);$b.production&&void 0;aS().bootstrapModule(Hj,{applicationProviders:[IO()]}).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index d2c76ba2d..51b3bc70c 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -1,36 +1,5 @@ // "Fake" javascript file for translations // Typescript -gettext("Error saving element"); -gettext("Error handling your request"); -gettext("Search"); -gettext("No entries found"); -gettext(", (%i more items)"); -gettext("Yes"); -gettext("No"); -gettext("Search"); -gettext("No entries found"); -gettext("Select"); -gettext("Main"); -gettext("Advanced"); -gettext("Filter"); -gettext("No entries found"); -gettext("Main"); -gettext("Yes"); -gettext("No"); -gettext("(hidden)"); -gettext("Selected items :"); -gettext("Error"); -gettext("Please, fill in require fields: "); -gettext("Remove"); -gettext("Confirm revokation of permission"); -gettext("Read only"); -gettext("Full Access"); -gettext("User"); -gettext("Group"); -gettext("Authenticator"); -gettext("Permission"); -gettext("Sorting is not available for this column"); -gettext("Close"); gettext("Test"); gettext("Loading data..."); gettext("dismiss"); @@ -49,22 +18,42 @@ gettext("dismiss"); gettext("Are you sure do you want to delete the following items?"); gettext("Deletion finished"); gettext("dismiss"); +gettext("seconds"); +gettext("Main"); +gettext("Advanced"); +gettext(", (%i more items)"); +gettext("Search"); +gettext("No entries found"); +gettext("Search"); +gettext("No entries found"); +gettext("Select"); +gettext("Yes"); +gettext("No"); +gettext("Error"); +gettext("Please, fill in require fields: "); +gettext("Sorting is not available for this column"); +gettext("Close"); +gettext("Read only"); +gettext("Full Access"); +gettext("User"); +gettext("Group"); +gettext("Authenticator"); +gettext("Permission"); +gettext("Remove"); +gettext("Confirm revokation of permission"); +gettext("Filter"); +gettext("No entries found"); +gettext("Main"); +gettext("Yes"); +gettext("No"); +gettext("(hidden)"); +gettext("Selected items :"); gettext("Cache flushed"); gettext("dismiss"); -gettext("seconds"); -gettext("provider"); -gettext("service"); -gettext("service pool"); -gettext("authenticator"); -gettext("MFA"); -gettext("user"); -gettext("group"); -gettext("transport"); -gettext("OS manager"); -gettext("calendar"); -gettext("pool group"); -gettext("Go to"); -gettext("Items per page"); +gettext("yes"); +gettext("no"); +gettext("Error saving element"); +gettext("Error handling your request"); gettext("Sunday"); gettext("Monday"); gettext("Tuesday"); @@ -85,90 +74,47 @@ gettext("October"); gettext("November"); gettext("December"); gettext("Never"); -gettext("yes"); -gettext("no"); -gettext("Maintenance"); -gettext("Exit maintenance mode"); -gettext("Enter maintenance mode"); -gettext("New provider"); -gettext("Edit provider"); -gettext("Delete provider"); -gettext("Exit maintenance mode?"); -gettext("Enter maintenance mode?"); -gettext("Maintenance mode for"); +gettext("provider"); +gettext("service"); +gettext("service pool"); +gettext("authenticator"); +gettext("MFA"); +gettext("user"); +gettext("group"); +gettext("transport"); +gettext("OS manager"); +gettext("calendar"); +gettext("pool group"); +gettext("Go to"); +gettext("Items per page"); +gettext("New Transport"); +gettext("Edit Transport"); +gettext("Delete Transport"); +gettext("New Network"); +gettext("Edit Network"); +gettext("Delete Network"); +gettext("New tunnel"); +gettext("Edit tunnel"); +gettext("Delete tunnel"); gettext("In Maintenance"); gettext("Active"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Service pools"); -gettext("Information"); -gettext("New service"); -gettext("Edit service"); -gettext("Delete service"); -gettext("Delete user service"); +gettext("Error"); +gettext("Please, select a valid server"); gettext("Maintenance"); gettext("Exit maintenance mode"); gettext("Enter maintenance mode"); -gettext("Import CSV"); gettext("Exit maintenance mode?"); gettext("Enter maintenance mode?"); gettext("Maintenance mode for"); -gettext("Import Servers"); -gettext("New server"); -gettext("Edit server"); -gettext("Remove server from server group"); -gettext("New server"); -gettext("Edit server"); -gettext("Delete server"); -gettext("In Maintenance"); -gettext("Active"); -gettext("User"); -gettext("Name"); -gettext("Authenticator"); -gettext("State"); -gettext("Last access"); -gettext("Role"); -gettext("Group"); -gettext("Authenticator"); -gettext("Comments"); -gettext("State"); -gettext("Last 7 days"); -gettext("Last 30 days"); -gettext("Last 90 days"); -gettext("Last year"); -gettext("Assigned services"); -gettext("Services in use"); -gettext("Peak sessions"); -gettext("Saturation %"); -gettext("Hits"); -gettext("Misses"); -gettext("Opens"); -gettext("Closes"); -gettext("Hours"); -gettext("Sessions"); -gettext("Errors"); -gettext("Failed attempts"); -gettext("No data for this period"); +gettext("Error"); +gettext("This tunnel already has all the tunnel servers available"); +gettext("Remove member from tunnel"); +gettext("New OS Manager"); +gettext("Edit OS Manager"); +gettext("Delete OS Manager"); gettext("New Authenticator"); gettext("Edit Authenticator"); gettext("Delete Authenticator"); -gettext("Match mode"); -gettext("Any"); -gettext("All"); -gettext("Group"); -gettext("Comments"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Unique ID"); -gettext("Friendly Name"); -gettext("In Use"); -gettext("IP"); -gettext("Services Pool"); -gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned services"); gettext("Information"); gettext("Information"); gettext("Clean related (mfa,...)"); @@ -200,12 +146,46 @@ gettext("Blocked"); gettext("Service pools"); gettext("Users"); gettext("Groups"); +gettext("Group"); +gettext("Comments"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Unique ID"); +gettext("Friendly Name"); +gettext("In Use"); +gettext("IP"); +gettext("Services Pool"); +gettext("Groups"); +gettext("Services Pools"); +gettext("Assigned services"); +gettext("Match mode"); +gettext("Any"); +gettext("All"); gettext("New MFA"); gettext("Edit MFA"); gettext("Delete MFA"); -gettext("New pool group"); -gettext("Edit pool group"); -gettext("Delete pool group"); +gettext("New Notifier"); +gettext("Edit Notifier"); +gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); +gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"); +gettext("Generate report"); +gettext("Generate report"); +gettext("Generating report..."); +gettext("Report finished"); +gettext("dismiss"); +gettext("Delete image"); +gettext("Error"); +gettext("Image is too big (max. upload size is 256Kb)"); +gettext("Error"); +gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"); +gettext("Error"); +gettext("Please, provide a name and a image"); +gettext("Successfully saved"); +gettext("dismiss"); +gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); +gettext("Configuration saved"); +gettext("dismiss"); gettext("Delete account usage"); gettext("Set time mark"); gettext("New account"); @@ -215,50 +195,15 @@ gettext("Time mark"); gettext("Set time mark for $NAME to current date/time?"); gettext("Time mark stablished"); gettext("dismiss"); -gettext("New calendar"); -gettext("Edit calendar"); -gettext("Delete calendar"); -gettext("day"); -gettext("days"); -gettext("Daily"); -gettext("week"); -gettext("weeks"); -gettext("Weekly"); -gettext("month"); -gettext("months"); -gettext("Monthly"); -gettext("year"); -gettext("years"); -gettext("Yearly"); -gettext("Weekdays"); -gettext("Never"); -gettext("Minutes"); -gettext("Hours"); -gettext("Days"); -gettext("Weeks"); -gettext("Sunday"); -gettext("Monday"); -gettext("Tuesday"); -gettext("Wednesday"); -gettext("Thursday"); -gettext("Friday"); -gettext("Saturday"); -gettext("(no days)"); -gettext("Forever"); -gettext("Start date/time"); -gettext("End date"); -gettext("Interval"); -gettext("Week days"); -gettext("Invalid or incomplete rule. Please, fix field $FIELD"); -gettext("This rule will be valid every"); -gettext("of any week"); -gettext("from"); -gettext("until"); -gettext("onwards"); -gettext("starting at"); -gettext("and every event will be active for"); -gettext("with no duration"); -gettext("Delete calendar rule"); +gettext("Error"); +gettext("Please, select a valid service pool"); +gettext("Remove member pool"); +gettext("Delete assigned service"); +gettext("Delete assigned group"); +gettext("Delete calendar access rule"); +gettext("New meta pool"); +gettext("Edit meta pool"); +gettext("Delete meta pool"); gettext("(This service does not requires an OS Manager)"); gettext("New service Pool"); gettext("Service Pool is locked"); @@ -266,13 +211,11 @@ gettext("This service pool is locked and cannot be edited"); gettext("Edit Service Pool"); gettext("Delete service pool"); gettext("Error"); -gettext("Please, select a valid transport"); -gettext("Error"); gettext("Please, select a valid user"); gettext("Error"); -gettext("Please, select a valid user"); +gettext("Please, select a valid transport"); gettext("Error"); -gettext("Please, select a valid group"); +gettext("Please, select a valid user"); gettext("Logs"); gettext("VNC"); gettext("Launch now"); @@ -302,72 +245,157 @@ gettext("Delete calendar access rule"); gettext("Cached"); gettext("Assigned"); gettext("In use"); -gettext("Remove member pool"); -gettext("Delete assigned service"); -gettext("Delete assigned group"); -gettext("Delete calendar access rule"); gettext("Error"); -gettext("Please, select a valid service pool"); -gettext("New meta pool"); -gettext("Edit meta pool"); -gettext("Delete meta pool"); -gettext("New tunnel"); -gettext("Edit tunnel"); -gettext("Delete tunnel"); +gettext("Please, select a valid group"); +gettext("day"); +gettext("days"); +gettext("Daily"); +gettext("week"); +gettext("weeks"); +gettext("Weekly"); +gettext("month"); +gettext("months"); +gettext("Monthly"); +gettext("year"); +gettext("years"); +gettext("Yearly"); +gettext("Weekdays"); +gettext("Never"); +gettext("Minutes"); +gettext("Hours"); +gettext("Days"); +gettext("Weeks"); +gettext("Sunday"); +gettext("Monday"); +gettext("Tuesday"); +gettext("Wednesday"); +gettext("Thursday"); +gettext("Friday"); +gettext("Saturday"); +gettext("(no days)"); +gettext("Forever"); +gettext("Start date/time"); +gettext("End date"); +gettext("Interval"); +gettext("Week days"); +gettext("Invalid or incomplete rule. Please, fix field $FIELD"); +gettext("This rule will be valid every"); +gettext("of any week"); +gettext("from"); +gettext("until"); +gettext("onwards"); +gettext("starting at"); +gettext("and every event will be active for"); +gettext("with no duration"); +gettext("Delete calendar rule"); +gettext("New calendar"); +gettext("Edit calendar"); +gettext("Delete calendar"); +gettext("New pool group"); +gettext("Edit pool group"); +gettext("Delete pool group"); +gettext("Dashboard"); +gettext("Maintenance"); +gettext("Exit maintenance mode"); +gettext("Enter maintenance mode"); +gettext("Import CSV"); +gettext("Exit maintenance mode?"); +gettext("Enter maintenance mode?"); +gettext("Maintenance mode for"); +gettext("Import Servers"); +gettext("New server"); +gettext("Edit server"); +gettext("Remove server from server group"); +gettext("New server"); +gettext("Edit server"); +gettext("Delete server"); gettext("In Maintenance"); gettext("Active"); -gettext("Error"); -gettext("Please, select a valid server"); gettext("Maintenance"); gettext("Exit maintenance mode"); gettext("Enter maintenance mode"); +gettext("New provider"); +gettext("Edit provider"); +gettext("Delete provider"); gettext("Exit maintenance mode?"); gettext("Enter maintenance mode?"); gettext("Maintenance mode for"); -gettext("Error"); -gettext("This tunnel already has all the tunnel servers available"); -gettext("Remove member from tunnel"); -gettext("New Network"); -gettext("Edit Network"); -gettext("Delete Network"); -gettext("New Transport"); -gettext("Edit Transport"); -gettext("Delete Transport"); -gettext("New OS Manager"); -gettext("Edit OS Manager"); -gettext("Delete OS Manager"); -gettext("Configuration saved"); -gettext("dismiss"); -gettext("New Notifier"); -gettext("Edit Notifier"); -gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); -gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); -gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"); -gettext("Error"); -gettext("Image is too big (max. upload size is 256Kb)"); -gettext("Error"); -gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"); -gettext("Error"); -gettext("Please, provide a name and a image"); -gettext("Successfully saved"); -gettext("dismiss"); -gettext("Delete image"); -gettext("Generate report"); -gettext("Generate report"); -gettext("Generating report..."); -gettext("Report finished"); -gettext("dismiss"); -gettext("Dashboard"); +gettext("In Maintenance"); +gettext("Active"); +gettext("Information"); +gettext("New service"); +gettext("Edit service"); +gettext("Delete service"); +gettext("Delete user service"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Service pools"); +gettext("Last 7 days"); +gettext("Last 30 days"); +gettext("Last 90 days"); +gettext("Last year"); +gettext("Assigned services"); +gettext("Services in use"); +gettext("Peak sessions"); +gettext("Saturation %"); +gettext("Hits"); +gettext("Misses"); +gettext("Opens"); +gettext("Closes"); +gettext("Hours"); +gettext("Sessions"); +gettext("Errors"); +gettext("Failed attempts"); +gettext("No data for this period"); +gettext("User"); +gettext("Name"); +gettext("Authenticator"); +gettext("State"); +gettext("Last access"); +gettext("Role"); +gettext("Group"); +gettext("Authenticator"); +gettext("Comments"); +gettext("State"); +gettext("Name"); +gettext("State"); +gettext("User services"); +gettext("In preparation"); +gettext("Usage"); +gettext("Pool group"); +gettext("Name"); +gettext("Service pool"); +gettext("Unique ID"); +gettext("State"); +gettext("IP"); +gettext("In use"); // HTML -gettext("User mode"); -gettext("Light theme"); -gettext("Dark theme"); -gettext("Logout"); -gettext("Light theme"); -gettext("Dark theme"); +gettext("Close"); +gettext("Yes"); +gettext("No"); gettext("Remove all"); gettext("Cancel"); gettext("Ok"); +gettext("Discard & close"); +gettext("Save"); +gettext("Logs"); +gettext("Export"); +gettext("Filter"); +gettext("New"); +gettext("New"); +gettext("New"); +gettext("Edit"); +gettext("Permissions"); +gettext("Export CSV"); +gettext("Delete"); +gettext("Filter"); +gettext("Selected items"); +gettext("Copy"); +gettext("Detail"); +gettext("Edit"); +gettext("Permissions"); +gettext("Delete"); gettext("CVS Import options for"); gettext("Header"); gettext("CSV contains header line"); @@ -380,8 +408,6 @@ gettext("Use tab"); gettext("File"); gettext("Ok"); gettext("Cancel"); -gettext("Discard & close"); -gettext("Save"); gettext("Permissions for"); gettext("Users"); gettext("Groups"); @@ -391,23 +417,12 @@ gettext("New user permission for"); gettext("New group permission for"); gettext("Cancel"); gettext("Ok"); -gettext("Logs"); -gettext("Export"); -gettext("Filter"); -gettext("New"); -gettext("New"); -gettext("New"); -gettext("Edit"); -gettext("Permissions"); -gettext("Export CSV"); -gettext("Delete"); -gettext("Filter"); -gettext("Selected items"); -gettext("Copy"); -gettext("Detail"); -gettext("Edit"); -gettext("Permissions"); -gettext("Delete"); +gettext("User mode"); +gettext("Light theme"); +gettext("Dark theme"); +gettext("Logout"); +gettext("Light theme"); +gettext("Dark theme"); gettext("Summary"); gettext("Services"); gettext("Providers"); @@ -435,69 +450,38 @@ gettext("Actor"); gettext("Servers"); gettext("Configuration"); gettext("Flush Cache"); -gettext("Close"); -gettext("Yes"); -gettext("No"); -gettext("Summary"); -gettext("Services"); -gettext("Usage"); -gettext("Logs"); -gettext("Information for"); -gettext("Services pools"); -gettext("Logs"); +gettext("Assign new server to tunnel group"); +gettext("Tunnel"); +gettext("Cancel"); gettext("Ok"); gettext("Summary"); -gettext("Servers"); -gettext("License information"); -gettext("UDS ID"); -gettext("Brand"); -gettext("Support level"); -gettext("Licensed users"); -gettext("Model"); -gettext("Total users"); -gettext("Users with services"); -gettext("Assigned services"); -gettext("Start date"); -gettext("End date"); -gettext("Close"); -gettext("Updated"); -gettext("License expired"); -gettext("License expires in"); -gettext("days"); -gettext("License valid until"); -gettext("Loading dashboard data..."); -gettext("Users"); -gettext("Groups"); -gettext("Service pools"); -gettext("User services"); -gettext("Assigned services"); -gettext("Users with services"); -gettext("Authenticators"); -gettext("Restrained pools"); -gettext("Peak concurrent sessions per pool"); -gettext("Pool saturation (% of capacity)"); -gettext("Cache hits / misses per pool"); -gettext("Tunnel sessions per pool"); -gettext("Client platforms"); -gettext("Client browsers"); -gettext("Session duration distribution"); -gettext("User services in error per pool"); -gettext("Failed logins per user"); -gettext("Top users by session time"); -gettext("Assigned services chart"); -gettext("In use services chart"); -gettext("Top users detail"); +gettext("Tunnel servers"); +gettext("Edit user"); +gettext("New user"); +gettext("Real name"); +gettext("Comments"); +gettext("State"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Role"); +gettext("Admin"); +gettext("Staff member"); gettext("User"); -gettext("Sessions"); -gettext("Pools used"); -gettext("Hours"); -gettext("Avg hours/session"); -gettext("restrained services"); -gettext("View service pools"); -gettext("Summary"); +gettext("MFA"); +gettext("Groups"); +gettext("Cancel"); +gettext("Ok"); +gettext("Information for"); +gettext("Services Pools"); gettext("Users"); gettext("Groups"); +gettext("Ok"); +gettext("Information for"); +gettext("Groups"); +gettext("Services Pools"); +gettext("Assigned Services"); gettext("Logs"); +gettext("Ok"); gettext("Edit group"); gettext("New group"); gettext("Meta group name"); @@ -515,135 +499,107 @@ gettext("All groups"); gettext("Selected Groups"); gettext("Cancel"); gettext("Ok"); -gettext("Information for"); +gettext("Summary"); +gettext("Users"); gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned Services"); gettext("Logs"); -gettext("Ok"); -gettext("Edit user"); -gettext("New user"); -gettext("Real name"); -gettext("Comments"); -gettext("State"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Role"); -gettext("Admin"); -gettext("Staff member"); -gettext("User"); -gettext("MFA"); -gettext("Groups"); +gettext("New image for"); +gettext("Edit for"); +gettext("Image name"); +gettext("Image (click to change)"); +gettext("For optimal results, use \"squared\" images."); +gettext("The image will be resized on upload to"); gettext("Cancel"); gettext("Ok"); -gettext("Information for"); -gettext("Services Pools"); -gettext("Users"); -gettext("Groups"); -gettext("Ok"); +gettext("UDS Configuration"); +gettext("Save"); gettext("Account usage"); -gettext("Rules"); -gettext("Edit rule"); -gettext("New rule"); -gettext("Name"); -gettext("Comments"); -gettext("Event"); -gettext("Start time"); -gettext("Duration"); -gettext("Duration units"); -gettext("Start date"); -gettext("Repeat until date"); -gettext("Frequency"); -gettext("Week days"); -gettext("Repeat every"); -gettext("Summary"); -gettext("Cancel"); -gettext("Ok"); -gettext("Edit action for"); -gettext("New action for"); -gettext("Calendar"); -gettext("Events offset (minutes)"); -gettext("At the beginning of the interval?"); -gettext("Action"); -gettext("Transport"); -gettext("Authenticator"); -gettext("Group"); -gettext("Cancel"); -gettext("Ok"); gettext("Summary"); +gettext("Service pools"); gettext("Assigned services"); -gettext("Cache"); -gettext("Servers"); gettext("Groups"); -gettext("Transports"); -gettext("Publications"); -gettext("Scheduled actions"); gettext("Access calendars"); -gettext("Charts"); gettext("Logs"); -gettext("New transport for"); -gettext("Transport"); +gettext("New member pool"); +gettext("Edit member pool"); +gettext("Priority"); +gettext("Service pool"); +gettext("Enabled?"); gettext("Cancel"); gettext("Ok"); -gettext("Logs of"); -gettext("Ok"); gettext("Assign service to user manually"); gettext("Service"); gettext("Authenticator"); gettext("User"); gettext("Cancel"); gettext("Ok"); -gettext("Changelog of"); +gettext("New transport for"); +gettext("Transport"); +gettext("Cancel"); gettext("Ok"); -gettext("Change owner of assigned service"); -gettext("Authenticator"); -gettext("User"); +gettext("New access rule for"); +gettext("Edit access rule for"); +gettext("Default fallback access for"); +gettext("Priority"); +gettext("Calendar"); +gettext("Action"); gettext("Cancel"); gettext("Ok"); gettext("New publication for"); gettext("Comments"); gettext("Cancel"); gettext("Ok"); -gettext("New group for"); +gettext("Logs of"); +gettext("Ok"); +gettext("Changelog of"); +gettext("Ok"); +gettext("Change owner of assigned service"); gettext("Authenticator"); -gettext("Group"); +gettext("User"); gettext("Cancel"); gettext("Ok"); -gettext("New access rule for"); -gettext("Edit access rule for"); -gettext("Default fallback access for"); -gettext("Priority"); +gettext("Edit action for"); +gettext("New action for"); gettext("Calendar"); +gettext("Events offset (minutes)"); +gettext("At the beginning of the interval?"); gettext("Action"); -gettext("Cancel"); -gettext("Ok"); -gettext("New member pool"); -gettext("Edit member pool"); -gettext("Priority"); -gettext("Service pool"); -gettext("Enabled?"); +gettext("Transport"); +gettext("Authenticator"); +gettext("Group"); gettext("Cancel"); gettext("Ok"); gettext("Summary"); -gettext("Service pools"); gettext("Assigned services"); +gettext("Cache"); +gettext("Servers"); gettext("Groups"); +gettext("Transports"); +gettext("Publications"); +gettext("Scheduled actions"); gettext("Access calendars"); +gettext("Charts"); gettext("Logs"); -gettext("Summary"); -gettext("Tunnel servers"); -gettext("Assign new server to tunnel group"); -gettext("Tunnel"); +gettext("New group for"); +gettext("Authenticator"); +gettext("Group"); gettext("Cancel"); gettext("Ok"); -gettext("UDS Configuration"); -gettext("Save"); -gettext("New image for"); -gettext("Edit for"); -gettext("Image name"); -gettext("Image (click to change)"); -gettext("For optimal results, use \"squared\" images."); -gettext("The image will be resized on upload to"); +gettext("Rules"); +gettext("Edit rule"); +gettext("New rule"); +gettext("Name"); +gettext("Comments"); +gettext("Event"); +gettext("Start time"); +gettext("Duration"); +gettext("Duration units"); +gettext("Start date"); +gettext("Repeat until date"); +gettext("Frequency"); +gettext("Week days"); +gettext("Repeat every"); +gettext("Summary"); gettext("Cancel"); gettext("Ok"); gettext("UDS Administration"); @@ -651,3 +607,59 @@ gettext("You are accessing UDS Administration as staff member."); gettext("This means that you have restricted access to elements."); gettext("In order to increase your access privileges, please contact your local UDS administrator."); gettext("Thank you."); +gettext("Summary"); +gettext("Servers"); +gettext("Information for"); +gettext("Services pools"); +gettext("Logs"); +gettext("Ok"); +gettext("Summary"); +gettext("Services"); +gettext("Usage"); +gettext("Logs"); +gettext("License information"); +gettext("UDS ID"); +gettext("Brand"); +gettext("Support level"); +gettext("Licensed users"); +gettext("Model"); +gettext("Total users"); +gettext("Users with services"); +gettext("Assigned services"); +gettext("Start date"); +gettext("End date"); +gettext("Close"); +gettext("Updated"); +gettext("License expired"); +gettext("License expires in"); +gettext("days"); +gettext("License valid until"); +gettext("Loading dashboard data..."); +gettext("Users"); +gettext("Groups"); +gettext("Service pools"); +gettext("User services"); +gettext("Assigned services"); +gettext("Users with services"); +gettext("Authenticators"); +gettext("Restrained pools"); +gettext("Peak concurrent sessions per pool"); +gettext("Pool saturation (% of capacity)"); +gettext("Cache hits / misses per pool"); +gettext("Tunnel sessions per pool"); +gettext("Client platforms"); +gettext("Client browsers"); +gettext("Session duration distribution"); +gettext("User services in error per pool"); +gettext("Failed logins per user"); +gettext("Top users by session time"); +gettext("Assigned services chart"); +gettext("In use services chart"); +gettext("Top users detail"); +gettext("User"); +gettext("Sessions"); +gettext("Pools used"); +gettext("Hours"); +gettext("Avg hours/session"); +gettext("restrained services"); +gettext("View service pools"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 7a9cda7bf..fab00e054 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + From dcfe87d12731dafda33425332e6b71da918083a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janier=20Rodr=C3=ADguez?= Date: Tue, 21 Jul 2026 12:41:20 +0200 Subject: [PATCH 04/14] fix(admin): rebuild bundle to prevent white flash on navigation Rebuilt admin static bundle carrying the theme backstop fix (uds-admin-gui master-fix-admin-white-flash). --- src/uds/static/admin/styles.css | 2 +- src/uds/templates/uds/admin/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uds/static/admin/styles.css b/src/uds/static/admin/styles.css index 118da5e9f..c332f116c 100644 --- a/src/uds/static/admin/styles.css +++ b/src/uds/static/admin/styles.css @@ -1 +1 @@ -.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--mat-sys-on-surface: initial}.mat-app-background{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-option-selected-state-label-text-color: #1976d2;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-accent{--mat-option-selected-state-label-text-color: #40c4ff;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}html{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #1976d2;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #1976d2;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #f44336;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #f44336;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mat-card-elevated-container-shape: 4px;--mat-card-outlined-container-shape: 4px;--mat-card-filled-container-shape: 4px;--mat-card-outlined-outline-width: 1px}html{--mat-card-elevated-container-color: white;--mat-card-elevated-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-card-outlined-container-color: white;--mat-card-outlined-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-outlined-outline-color: rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54);--mat-card-filled-container-color: white;--mat-card-filled-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html{--mat-card-title-text-font: Roboto, sans-serif;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Roboto, sans-serif;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mat-progress-bar-active-indicator-height: 4px;--mat-progress-bar-track-height: 4px;--mat-progress-bar-track-shape: 0}.mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #1976d2;--mat-progress-bar-track-color: rgba(25, 118, 210, .25)}.mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #40c4ff;--mat-progress-bar-track-color: rgba(64, 196, 255, .25)}.mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #f44336;--mat-progress-bar-track-color: rgba(244, 67, 54, .25)}html{--mat-tooltip-container-shape: 4px;--mat-tooltip-supporting-text-line-height: 16px}html{--mat-tooltip-container-color: #424242;--mat-tooltip-supporting-text-color: white}html{--mat-tooltip-supporting-text-font: Roboto, sans-serif;--mat-tooltip-supporting-text-size: 12px;--mat-tooltip-supporting-text-weight: 400;--mat-tooltip-supporting-text-tracking: .0333333333em}html{--mat-form-field-filled-active-indicator-height: 1px;--mat-form-field-filled-focus-active-indicator-height: 2px;--mat-form-field-filled-container-shape: 4px;--mat-form-field-outlined-outline-width: 1px;--mat-form-field-outlined-focus-outline-width: 2px;--mat-form-field-outlined-container-shape: 4px}html{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-filled-caret-color: #1976d2;--mat-form-field-filled-focus-active-indicator-color: #1976d2;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-outlined-caret-color: #1976d2;--mat-form-field-outlined-focus-outline-color: #1976d2;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .12;--mat-form-field-filled-container-color: #f6f6f6;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-form-field-filled-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-color: rgba(0, 0, 0, .87);--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, .54);--mat-form-field-filled-error-hover-label-text-color: #f44336;--mat-form-field-filled-error-focus-label-text-color: #f44336;--mat-form-field-filled-error-label-text-color: #f44336;--mat-form-field-filled-error-caret-color: #f44336;--mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, .87);--mat-form-field-filled-error-active-indicator-color: #f44336;--mat-form-field-filled-error-focus-active-indicator-color: #f44336;--mat-form-field-filled-error-hover-active-indicator-color: #f44336;--mat-form-field-outlined-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, .54);--mat-form-field-outlined-error-caret-color: #f44336;--mat-form-field-outlined-error-focus-label-text-color: #f44336;--mat-form-field-outlined-error-label-text-color: #f44336;--mat-form-field-outlined-error-hover-label-text-color: #f44336;--mat-form-field-outlined-outline-color: rgba(0, 0, 0, .38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-error-focus-outline-color: #f44336;--mat-form-field-outlined-error-hover-outline-color: #f44336;--mat-form-field-outlined-error-outline-color: #f44336}.mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-filled-caret-color: #40c4ff;--mat-form-field-filled-focus-active-indicator-color: #40c4ff;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-outlined-caret-color: #40c4ff;--mat-form-field-outlined-focus-outline-color: #40c4ff;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent)}.mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-filled-caret-color: #f44336;--mat-form-field-filled-focus-active-indicator-color: #f44336;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-outlined-caret-color: #f44336;--mat-form-field-outlined-focus-outline-color: #f44336;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400;--mat-form-field-filled-label-text-font: Roboto, sans-serif;--mat-form-field-filled-label-text-size: 16px;--mat-form-field-filled-label-text-tracking: .03125em;--mat-form-field-filled-label-text-weight: 400;--mat-form-field-outlined-label-text-font: Roboto, sans-serif;--mat-form-field-outlined-label-text-size: 16px;--mat-form-field-outlined-label-text-tracking: .03125em;--mat-form-field-outlined-label-text-weight: 400}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #1976d2;--mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #40c4ff;--mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #f44336;--mat-select-invalid-arrow-color: #f44336}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color: white}html{--mat-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html{--mat-dialog-container-color: white;--mat-dialog-subhead-color: rgba(0, 0, 0, .87);--mat-dialog-supporting-text-color: rgba(0, 0, 0, .54)}html{--mat-dialog-subhead-font: Roboto, sans-serif;--mat-dialog-subhead-line-height: 32px;--mat-dialog-subhead-size: 20px;--mat-dialog-subhead-weight: 500;--mat-dialog-subhead-tracking: .0125em;--mat-dialog-supporting-text-font: Roboto, sans-serif;--mat-dialog-supporting-text-line-height: 24px;--mat-dialog-supporting-text-size: 16px;--mat-dialog-supporting-text-weight: 400;--mat-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip{--mat-chip-container-shape-radius: 16px;--mat-chip-disabled-container-opacity: .4;--mat-chip-disabled-outline-color: transparent;--mat-chip-flat-selected-outline-width: 0;--mat-chip-focus-outline-color: transparent;--mat-chip-hover-state-layer-opacity: .04;--mat-chip-outline-color: transparent;--mat-chip-outline-width: 0;--mat-chip-selected-hover-state-layer-opacity: .04;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-with-avatar-avatar-shape-radius: 14px;--mat-chip-with-avatar-avatar-size: 28px;--mat-chip-with-avatar-disabled-avatar-opacity: 1;--mat-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-with-icon-icon-size: 18px;--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}.mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #1976d2;--mat-chip-elevated-disabled-container-color: #1976d2;--mat-chip-elevated-selected-container-color: #1976d2;--mat-chip-flat-disabled-selected-container-color: #1976d2;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: #40c4ff;--mat-chip-elevated-disabled-container-color: #40c4ff;--mat-chip-elevated-selected-container-color: #40c4ff;--mat-chip-flat-disabled-selected-container-color: #40c4ff;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #f44336;--mat-chip-elevated-disabled-container-color: #f44336;--mat-chip-elevated-selected-container-color: #f44336;--mat-chip-flat-disabled-selected-container-color: #f44336;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mat-chip-container-height: 32px}.mat-mdc-standard-chip{--mat-chip-label-text-font: Roboto, sans-serif;--mat-chip-label-text-line-height: 20px;--mat-chip-label-text-size: 14px;--mat-chip-label-text-tracking: .0178571429em;--mat-chip-label-text-weight: 400}html{--mat-slide-toggle-disabled-handle-opacity: .38;--mat-slide-toggle-disabled-selected-handle-opacity: .38;--mat-slide-toggle-disabled-selected-icon-opacity: .38;--mat-slide-toggle-disabled-track-opacity: .12;--mat-slide-toggle-disabled-unselected-handle-opacity: .38;--mat-slide-toggle-disabled-unselected-icon-opacity: .38;--mat-slide-toggle-disabled-unselected-track-outline-color: transparent;--mat-slide-toggle-disabled-unselected-track-outline-width: 1px;--mat-slide-toggle-handle-height: 20px;--mat-slide-toggle-handle-shape: 10px;--mat-slide-toggle-handle-width: 20px;--mat-slide-toggle-hidden-track-opacity: 1;--mat-slide-toggle-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-slide-toggle-pressed-handle-size: 20px;--mat-slide-toggle-selected-focus-state-layer-opacity: .12;--mat-slide-toggle-selected-handle-horizontal-margin: 0;--mat-slide-toggle-selected-handle-size: 20px;--mat-slide-toggle-selected-hover-state-layer-opacity: .04;--mat-slide-toggle-selected-icon-size: 18px;--mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0;--mat-slide-toggle-selected-pressed-state-layer-opacity: .12;--mat-slide-toggle-selected-track-outline-color: transparent;--mat-slide-toggle-selected-track-outline-width: 1px;--mat-slide-toggle-selected-with-icon-handle-horizontal-margin: 0;--mat-slide-toggle-track-height: 14px;--mat-slide-toggle-track-outline-color: transparent;--mat-slide-toggle-track-outline-width: 1px;--mat-slide-toggle-track-shape: 7px;--mat-slide-toggle-track-width: 36px;--mat-slide-toggle-unselected-focus-state-layer-opacity: .12;--mat-slide-toggle-unselected-handle-horizontal-margin: 0;--mat-slide-toggle-unselected-handle-size: 20px;--mat-slide-toggle-unselected-hover-state-layer-opacity: .12;--mat-slide-toggle-unselected-icon-size: 18px;--mat-slide-toggle-unselected-pressed-handle-horizontal-margin: 0;--mat-slide-toggle-unselected-pressed-state-layer-opacity: .1;--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin: 0;--mat-slide-toggle-visible-track-opacity: 1;--mat-slide-toggle-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-slide-toggle-with-icon-handle-size: 20px;--mat-slide-toggle-touch-target-size: 48px}html{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #1976d2;--mat-slide-toggle-selected-handle-color: #1976d2;--mat-slide-toggle-selected-hover-state-layer-color: #1976d2;--mat-slide-toggle-selected-pressed-state-layer-color: #1976d2;--mat-slide-toggle-selected-focus-handle-color: #1976d2;--mat-slide-toggle-selected-hover-handle-color: #1976d2;--mat-slide-toggle-selected-pressed-handle-color: #1976d2;--mat-slide-toggle-selected-focus-track-color: #64b5f6;--mat-slide-toggle-selected-hover-track-color: #64b5f6;--mat-slide-toggle-selected-pressed-track-color: #64b5f6;--mat-slide-toggle-selected-track-color: #64b5f6;--mat-slide-toggle-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-slide-toggle-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-disabled-selected-handle-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-track-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-handle-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-icon-color: #f6f6f6;--mat-slide-toggle-disabled-unselected-track-color: rgba(0, 0, 0, .87);--mat-slide-toggle-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-handle-surface-color: white;--mat-slide-toggle-label-text-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-handle-color: #424242;--mat-slide-toggle-unselected-focus-handle-color: #424242;--mat-slide-toggle-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-focus-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-icon-color: #f6f6f6;--mat-slide-toggle-unselected-handle-color: rgba(0, 0, 0, .54);--mat-slide-toggle-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-handle-color: #424242;--mat-slide-toggle-unselected-pressed-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-track-color: rgba(0, 0, 0, .12)}.mat-mdc-slide-toggle.mat-accent{--mat-slide-toggle-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-selected-focus-state-layer-color: #40c4ff;--mat-slide-toggle-selected-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-state-layer-color: #40c4ff;--mat-slide-toggle-selected-pressed-state-layer-color: #40c4ff;--mat-slide-toggle-selected-focus-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-handle-color: #40c4ff;--mat-slide-toggle-selected-pressed-handle-color: #40c4ff;--mat-slide-toggle-selected-focus-track-color: #4fc3f7;--mat-slide-toggle-selected-hover-track-color: #4fc3f7;--mat-slide-toggle-selected-pressed-track-color: #4fc3f7;--mat-slide-toggle-selected-track-color: #4fc3f7}.mat-mdc-slide-toggle.mat-warn{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #f44336;--mat-slide-toggle-selected-handle-color: #f44336;--mat-slide-toggle-selected-hover-state-layer-color: #f44336;--mat-slide-toggle-selected-pressed-state-layer-color: #f44336;--mat-slide-toggle-selected-focus-handle-color: #f44336;--mat-slide-toggle-selected-hover-handle-color: #f44336;--mat-slide-toggle-selected-pressed-handle-color: #f44336;--mat-slide-toggle-selected-focus-track-color: #e57373;--mat-slide-toggle-selected-hover-track-color: #e57373;--mat-slide-toggle-selected-pressed-track-color: #e57373;--mat-slide-toggle-selected-track-color: #e57373}html{--mat-slide-toggle-state-layer-size: 40px;--mat-slide-toggle-touch-target-display: block}html,html .mat-mdc-slide-toggle{--mat-slide-toggle-label-text-font: Roboto, sans-serif;--mat-slide-toggle-label-text-line-height: 20px;--mat-slide-toggle-label-text-size: 14px;--mat-slide-toggle-label-text-tracking: .0178571429em;--mat-slide-toggle-label-text-weight: 400}html{--mat-radio-disabled-selected-icon-opacity: .38;--mat-radio-disabled-unselected-icon-opacity: .38;--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-size: 48px}.mat-mdc-radio-button.mat-primary{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}html{--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}html{--mat-radio-label-text-font: Roboto, sans-serif;--mat-radio-label-text-line-height: 20px;--mat-radio-label-text-size: 14px;--mat-radio-label-text-tracking: .0178571429em;--mat-radio-label-text-weight: 400}html{--mat-slider-active-track-height: 6px;--mat-slider-active-track-shape: 9999px;--mat-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-handle-height: 20px;--mat-slider-handle-shape: 50%;--mat-slider-handle-width: 20px;--mat-slider-inactive-track-height: 4px;--mat-slider-inactive-track-shape: 9999px;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-container-transform: translateX(-50%);--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-width: auto;--mat-slider-with-overlap-handle-outline-width: 1px;--mat-slider-with-tick-marks-active-container-opacity: .6;--mat-slider-with-tick-marks-container-shape: 50%;--mat-slider-with-tick-marks-container-size: 2px;--mat-slider-with-tick-marks-inactive-container-opacity: .6;--mat-slider-value-indicator-transform-origin: bottom}html{--mat-slider-active-track-color: #1976d2;--mat-slider-focus-handle-color: #1976d2;--mat-slider-handle-color: #1976d2;--mat-slider-hover-handle-color: #1976d2;--mat-slider-focus-state-layer-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-slider-inactive-track-color: #1976d2;--mat-slider-ripple-color: #1976d2;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #1976d2;--mat-slider-disabled-active-track-color: rgba(0, 0, 0, .87);--mat-slider-disabled-handle-color: rgba(0, 0, 0, .87);--mat-slider-disabled-inactive-track-color: rgba(0, 0, 0, .87);--mat-slider-label-container-color: #424242;--mat-slider-label-label-text-color: white;--mat-slider-value-indicator-opacity: 1;--mat-slider-with-overlap-handle-outline-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-disabled-container-color: rgba(0, 0, 0, .87)}.mat-accent{--mat-slider-active-track-color: #40c4ff;--mat-slider-focus-handle-color: #40c4ff;--mat-slider-handle-color: #40c4ff;--mat-slider-hover-handle-color: #40c4ff;--mat-slider-focus-state-layer-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-slider-inactive-track-color: #40c4ff;--mat-slider-ripple-color: #40c4ff;--mat-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-inactive-container-color: #40c4ff}.mat-warn{--mat-slider-active-track-color: #f44336;--mat-slider-focus-handle-color: #f44336;--mat-slider-handle-color: #f44336;--mat-slider-hover-handle-color: #f44336;--mat-slider-focus-state-layer-color: color-mix(in srgb, #f44336 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #f44336 4%, transparent);--mat-slider-inactive-track-color: #f44336;--mat-slider-ripple-color: #f44336;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #f44336}html{--mat-slider-label-label-text-font: Roboto, sans-serif;--mat-slider-label-label-text-size: 14px;--mat-slider-label-label-text-line-height: 22px;--mat-slider-label-label-text-tracking: .0071428571em;--mat-slider-label-label-text-weight: 500}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400}html{--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px;--mat-list-list-item-container-shape: 0;--mat-list-list-item-leading-avatar-shape: 50%;--mat-list-list-item-container-color: transparent;--mat-list-list-item-selected-container-color: transparent;--mat-list-list-item-leading-avatar-color: transparent;--mat-list-list-item-leading-icon-size: 24px;--mat-list-list-item-leading-avatar-size: 40px;--mat-list-list-item-trailing-icon-size: 24px;--mat-list-list-item-disabled-state-layer-color: transparent;--mat-list-list-item-disabled-state-layer-opacity: 0;--mat-list-list-item-disabled-label-text-opacity: .38;--mat-list-list-item-disabled-leading-icon-opacity: .38;--mat-list-list-item-disabled-trailing-icon-opacity: .38}html{--mat-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mat-list-list-item-leading-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .54);--mat-list-list-item-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-disabled-leading-icon-color: rgba(0, 0, 0, .87);--mat-list-list-item-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-state-layer-opacity: .04;--mat-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-accent{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-warn{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#1976d2}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px;--mat-list-list-item-one-line-container-height: 48px;--mat-list-list-item-two-line-container-height: 64px;--mat-list-list-item-three-line-container-height: 88px}.mdc-list-item__start,.mdc-list-item__end{--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-list-list-item-label-text-font: Roboto, sans-serif;--mat-list-list-item-label-text-line-height: 24px;--mat-list-list-item-label-text-size: 16px;--mat-list-list-item-label-text-tracking: .03125em;--mat-list-list-item-label-text-weight: 400;--mat-list-list-item-supporting-text-font: Roboto, sans-serif;--mat-list-list-item-supporting-text-line-height: 20px;--mat-list-list-item-supporting-text-size: 14px;--mat-list-list-item-supporting-text-tracking: .0178571429em;--mat-list-list-item-supporting-text-weight: 400;--mat-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--mat-list-list-item-trailing-supporting-text-line-height: 20px;--mat-list-list-item-trailing-supporting-text-size: 12px;--mat-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mat-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-page-size-select-width: 84px;--mat-paginator-page-size-select-touch-target-height: 48px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html{--mat-paginator-container-text-font: Roboto, sans-serif;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}html{--mat-tab-container-height: 48px;--mat-tab-divider-color: transparent;--mat-tab-divider-height: 0;--mat-tab-active-indicator-height: 2px;--mat-tab-active-indicator-shape: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #1976d2;--mat-tab-active-ripple-color: #1976d2;--mat-tab-inactive-ripple-color: #1976d2;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #1976d2;--mat-tab-active-hover-label-text-color: #1976d2;--mat-tab-active-focus-indicator-color: #1976d2;--mat-tab-active-hover-indicator-color: #1976d2;--mat-tab-active-indicator-color: #1976d2}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #40c4ff;--mat-tab-active-ripple-color: #40c4ff;--mat-tab-inactive-ripple-color: #40c4ff;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #40c4ff;--mat-tab-active-hover-label-text-color: #40c4ff;--mat-tab-active-focus-indicator-color: #40c4ff;--mat-tab-active-hover-indicator-color: #40c4ff;--mat-tab-active-indicator-color: #40c4ff}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #f44336;--mat-tab-active-ripple-color: #f44336;--mat-tab-inactive-ripple-color: #f44336;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #f44336;--mat-tab-active-hover-label-text-color: #f44336;--mat-tab-active-focus-indicator-color: #f44336;--mat-tab-active-hover-indicator-color: #f44336;--mat-tab-active-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-background-color: #1976d2;--mat-tab-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-background-color: #40c4ff;--mat-tab-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-background-color: #f44336;--mat-tab-foreground-color: white}.mat-mdc-tab-header{--mat-tab-container-height: 48px}.mat-mdc-tab-header{--mat-tab-label-text-font: Roboto, sans-serif;--mat-tab-label-text-size: 14px;--mat-tab-label-text-tracking: .0892857143em;--mat-tab-label-text-line-height: 36px;--mat-tab-label-text-weight: 500}html{--mat-checkbox-disabled-selected-checkmark-color: white;--mat-checkbox-selected-focus-state-layer-opacity: .12;--mat-checkbox-selected-hover-state-layer-opacity: .04;--mat-checkbox-selected-pressed-state-layer-opacity: .12;--mat-checkbox-unselected-focus-state-layer-opacity: .12;--mat-checkbox-unselected-hover-state-layer-opacity: .04;--mat-checkbox-unselected-pressed-state-layer-opacity: .12;--mat-checkbox-touch-target-size: 48px}html{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}html{--mat-checkbox-touch-target-display: block;--mat-checkbox-state-layer-size: 40px}html{--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mat-button-filled-container-shape: 4px;--mat-button-filled-horizontal-padding: 16px;--mat-button-filled-icon-offset: -4px;--mat-button-filled-icon-spacing: 8px;--mat-button-filled-touch-target-size: 48px;--mat-button-outlined-container-shape: 4px;--mat-button-outlined-horizontal-padding: 15px;--mat-button-outlined-icon-offset: -4px;--mat-button-outlined-icon-spacing: 8px;--mat-button-outlined-keep-touch-target: false;--mat-button-outlined-outline-width: 1px;--mat-button-outlined-touch-target-size: 48px;--mat-button-protected-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-button-protected-container-shape: 4px;--mat-button-protected-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-horizontal-padding: 16px;--mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-icon-offset: -4px;--mat-button-protected-icon-spacing: 8px;--mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-button-protected-touch-target-size: 48px;--mat-button-text-container-shape: 4px;--mat-button-text-horizontal-padding: 8px;--mat-button-text-icon-offset: 0;--mat-button-text-icon-spacing: 8px;--mat-button-text-with-icon-horizontal-padding: 8px;--mat-button-text-touch-target-size: 48px;--mat-button-tonal-container-shape: 4px;--mat-button-tonal-horizontal-padding: 16px;--mat-button-tonal-icon-offset: -4px;--mat-button-tonal-icon-spacing: 8px;--mat-button-tonal-touch-target-size: 48px}html{--mat-button-filled-container-color: white;--mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-filled-focus-state-layer-opacity: .12;--mat-button-filled-hover-state-layer-opacity: .04;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-pressed-state-layer-opacity: .12;--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-outlined-focus-state-layer-opacity: .12;--mat-button-outlined-hover-state-layer-opacity: .04;--mat-button-outlined-label-text-color: rgba(0, 0, 0, .87);--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-pressed-state-layer-opacity: .12;--mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-outlined-state-layer-color: rgba(0, 0, 0, .87);--mat-button-protected-container-color: white;--mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-protected-focus-state-layer-opacity: .12;--mat-button-protected-hover-state-layer-opacity: .04;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-pressed-state-layer-opacity: .12;--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-text-focus-state-layer-opacity: .12;--mat-button-text-hover-state-layer-opacity: .04;--mat-button-text-label-text-color: rgba(0, 0, 0, .87);--mat-button-text-pressed-state-layer-opacity: .12;--mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-text-state-layer-color: rgba(0, 0, 0, .87);--mat-button-tonal-container-color: white;--mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-tonal-focus-state-layer-opacity: .12;--mat-button-tonal-hover-state-layer-opacity: .04;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-pressed-state-layer-opacity: .12;--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-button.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-primary,.mat-mdc-outlined-button.mat-primary,.mat-tonal-button.mat-primary{--mat-button-filled-container-color: #1976d2;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #1976d2;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-outlined-state-layer-color: #1976d2;--mat-button-protected-container-color: #1976d2;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #1976d2;--mat-button-text-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-text-state-layer-color: #1976d2;--mat-button-tonal-container-color: #1976d2;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.mat-mdc-button.mat-accent,.mat-mdc-unelevated-button.mat-accent,.mat-mdc-raised-button.mat-accent,.mat-mdc-outlined-button.mat-accent,.mat-tonal-button.mat-accent{--mat-button-filled-container-color: #40c4ff;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-label-text-color: #40c4ff;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-outlined-state-layer-color: #40c4ff;--mat-button-protected-container-color: #40c4ff;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-label-text-color: #40c4ff;--mat-button-text-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-text-state-layer-color: #40c4ff;--mat-button-tonal-container-color: #40c4ff;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-button.mat-warn,.mat-mdc-unelevated-button.mat-warn,.mat-mdc-raised-button.mat-warn,.mat-mdc-outlined-button.mat-warn,.mat-tonal-button.mat-warn{--mat-button-filled-container-color: #f44336;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #f44336;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-outlined-state-layer-color: #f44336;--mat-button-protected-container-color: #f44336;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #f44336;--mat-button-text-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-text-state-layer-color: #f44336;--mat-button-tonal-container-color: #f44336;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}html{--mat-button-filled-container-height: 36px;--mat-button-filled-touch-target-display: block;--mat-button-outlined-container-height: 36px;--mat-button-outlined-touch-target-display: block;--mat-button-protected-container-height: 36px;--mat-button-protected-touch-target-display: block;--mat-button-text-container-height: 36px;--mat-button-text-touch-target-display: block;--mat-button-tonal-container-height: 36px;--mat-button-tonal-touch-target-display: block}html{--mat-button-filled-label-text-font: Roboto, sans-serif;--mat-button-filled-label-text-size: 14px;--mat-button-filled-label-text-tracking: .0892857143em;--mat-button-filled-label-text-transform: none;--mat-button-filled-label-text-weight: 500;--mat-button-outlined-label-text-font: Roboto, sans-serif;--mat-button-outlined-label-text-size: 14px;--mat-button-outlined-label-text-tracking: .0892857143em;--mat-button-outlined-label-text-transform: none;--mat-button-outlined-label-text-weight: 500;--mat-button-protected-label-text-font: Roboto, sans-serif;--mat-button-protected-label-text-size: 14px;--mat-button-protected-label-text-tracking: .0892857143em;--mat-button-protected-label-text-transform: none;--mat-button-protected-label-text-weight: 500;--mat-button-text-label-text-font: Roboto, sans-serif;--mat-button-text-label-text-size: 14px;--mat-button-text-label-text-tracking: .0892857143em;--mat-button-text-label-text-transform: none;--mat-button-text-label-text-weight: 500;--mat-button-tonal-label-text-font: Roboto, sans-serif;--mat-button-tonal-label-text-size: 14px;--mat-button-tonal-label-text-tracking: .0892857143em;--mat-button-tonal-label-text-transform: none;--mat-button-tonal-label-text-weight: 500}html{--mat-icon-button-icon-size: 24px;--mat-icon-button-container-shape: 50%;--mat-icon-button-touch-target-size: 48px}html{--mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: .12;--mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-icon-button-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #1976d2;--mat-icon-button-state-layer-color: #1976d2;--mat-icon-button-ripple-color: color-mix(in srgb, #1976d2 12%, transparent)}.mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #40c4ff;--mat-icon-button-state-layer-color: #40c4ff;--mat-icon-button-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent)}.mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: color-mix(in srgb, #f44336 12%, transparent)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;--mat-icon-button-state-layer-size: 48px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:12px}html{--mat-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-container-shape: 50%;--mat-fab-touch-target-size: 48px;--mat-fab-extended-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-extended-container-height: 48px;--mat-fab-extended-container-shape: 24px;--mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-small-container-shape: 50%;--mat-fab-small-touch-target-size: 48px;--mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mat-fab-container-color: white;--mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-fab-focus-state-layer-opacity: .12;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-container-color: white;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #1976d2;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-fab-small-container-color: #1976d2;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #40c4ff;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-fab-small-container-color: #40c4ff;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}html{--mat-fab-small-touch-target-display: block;--mat-fab-touch-target-display: block}html{--mat-fab-extended-label-text-font: Roboto, sans-serif;--mat-fab-extended-label-text-size: 14px;--mat-fab-extended-label-text-tracking: .0892857143em;--mat-fab-extended-label-text-weight: 500}html{--mat-snack-bar-container-shape: 4px}html{--mat-snack-bar-container-color: #424242;--mat-snack-bar-supporting-text-color: white;--mat-snack-bar-button-color: #64b5f6}html{--mat-snack-bar-supporting-text-font: Roboto, sans-serif;--mat-snack-bar-supporting-text-line-height: 20px;--mat-snack-bar-supporting-text-size: 14px;--mat-snack-bar-supporting-text-weight: 400}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mat-table-header-headline-font: Roboto, sans-serif;--mat-table-header-headline-line-height: 22px;--mat-table-header-headline-size: 14px;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Roboto, sans-serif;--mat-table-row-item-label-text-line-height: 20px;--mat-table-row-item-label-text-size: 14px;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Roboto, sans-serif;--mat-table-footer-supporting-text-line-height: 20px;--mat-table-footer-supporting-text-size: 14px;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}html{--mat-progress-spinner-active-indicator-width: 4px;--mat-progress-spinner-size: 48px}html{--mat-progress-spinner-active-indicator-color: #1976d2}.mat-accent{--mat-progress-spinner-active-indicator-color: #40c4ff}.mat-warn{--mat-progress-spinner-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html{--mat-badge-background-color: #1976d2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-badge-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-badge-accent{--mat-badge-background-color: #40c4ff;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-badge-text-font: Roboto, sans-serif;--mat-badge-line-height: 22px;--mat-badge-text-size: 12px;--mat-badge-text-weight: 600;--mat-badge-small-size-text-size: 9px;--mat-badge-small-size-line-height: 16px;--mat-badge-large-size-text-size: 24px;--mat-badge-large-size-line-height: 28px}html{--mat-bottom-sheet-container-shape: 4px}html{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html{--mat-bottom-sheet-container-text-font: Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height: 20px;--mat-bottom-sheet-container-text-size: 14px;--mat-bottom-sheet-container-text-tracking: .0178571429em;--mat-bottom-sheet-container-text-weight: 400}html{--mat-button-toggle-focus-state-layer-opacity: .12;--mat-button-toggle-hover-state-layer-opacity: .04;--mat-button-toggle-legacy-focus-state-layer-opacity: 1;--mat-button-toggle-legacy-height: 36px;--mat-button-toggle-legacy-shape: 2px;--mat-button-toggle-shape: 4px}html{--mat-button-toggle-background-color: white;--mat-button-toggle-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-disabled-selected-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-disabled-state-background-color: white;--mat-button-toggle-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-divider-color: rgba(0, 0, 0, .12);--mat-button-toggle-legacy-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-disabled-state-background-color: white;--mat-button-toggle-legacy-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-legacy-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-selected-state-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-legacy-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-state-layer-color: rgba(0, 0, 0, .87);--mat-button-toggle-text-color: rgba(0, 0, 0, .87)}html{--mat-button-toggle-height: 48px}html{--mat-button-toggle-label-text-font: Roboto, sans-serif;--mat-button-toggle-label-text-line-height: 24px;--mat-button-toggle-label-text-size: 16px;--mat-button-toggle-label-text-tracking: .03125em;--mat-button-toggle-label-text-weight: 400;--mat-button-toggle-legacy-label-text-font: Roboto, sans-serif;--mat-button-toggle-legacy-label-text-line-height: 24px;--mat-button-toggle-legacy-label-text-size: 16px;--mat-button-toggle-legacy-label-text-tracking: .03125em;--mat-button-toggle-legacy-label-text-weight: 400}html{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #1976d2 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #1976d2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #1976d2 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #1976d2;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent,.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #40c4ff;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #40c4ff 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #40c4ff;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-warn,.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #f44336;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;--mat-icon-button-state-layer-size: 40px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:8px}html{--mat-datepicker-calendar-text-font: Roboto, sans-serif;--mat-datepicker-calendar-text-size: 13px;--mat-datepicker-calendar-body-label-text-size: 14px;--mat-datepicker-calendar-body-label-text-weight: 500;--mat-datepicker-calendar-period-button-text-size: 14px;--mat-datepicker-calendar-period-button-text-weight: 500;--mat-datepicker-calendar-header-text-size: 11px;--mat-datepicker-calendar-header-text-weight: 400}html{--mat-divider-width: 1px}html{--mat-divider-color: rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape: 4px;--mat-expansion-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-expansion-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-expansion-header-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-expansion-header-text-font: Roboto, sans-serif;--mat-expansion-header-text-size: 14px;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Roboto, sans-serif;--mat-expansion-container-text-line-height: 20px;--mat-expansion-container-text-size: 14px;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-grid-list-tile-header-primary-text-size: 14px;--mat-grid-list-tile-header-secondary-text-size: 12px;--mat-grid-list-tile-footer-primary-text-size: 14px;--mat-grid-list-tile-footer-secondary-text-size: 12px}html{--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #1976d2}.mat-icon.mat-accent{--mat-icon-color: #40c4ff}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html{--mat-stepper-header-focus-state-layer-shape: 0;--mat-stepper-header-hover-state-layer-shape: 0}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #1976d2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #1976d2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #1976d2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-stepper-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}.mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #40c4ff;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #40c4ff;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #40c4ff;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}.mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-stepper-container-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-size: 14px;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-weight: 400}html{--mat-sort-arrow-color: rgba(0, 0, 0, .87)}html{--mat-toolbar-container-background-color: white;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #1976d2;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #40c4ff;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html{--mat-toolbar-title-text-font: Roboto, sans-serif;--mat-toolbar-title-text-line-height: 32px;--mat-toolbar-title-text-size: 20px;--mat-toolbar-title-text-tracking: .0125em;--mat-toolbar-title-text-weight: 500}html{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height: 48px}html{--mat-tree-node-text-font: Roboto, sans-serif;--mat-tree-node-text-size: 14px;--mat-tree-node-text-weight: 400}html{--mat-timepicker-container-shape: 4px;--mat-timepicker-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-timepicker-container-background-color: white}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Light.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Regular.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Medium.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/uds/res/admin/fonts/Inter-SemiBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Bold.woff2) format("woff2")}:root{--bg-surface: #ffffff;--bg-accent: #f0f2f5;--text-primary: #121212;--text-secondary: #5f6368;--glass-bg: rgba(255, 255, 255, .4);--glass-hover-bg: rgba(255, 255, 255, .6);--glass-border: rgba(255, 255, 255, .4);--glass-shadow: rgba(0, 0, 0, .12);--glass-backdrop-filter: blur(14px);--warning-color: #d32f2f;--bg-button: linear-gradient(135deg, #1976d2, #1565c0);--glass-header-bg: linear-gradient(135deg, rgba(148, 163, 184, .2), rgba(71, 85, 105, .1));--navbar-height: 70px;--sidebar-full-width: 260px;--sidebar-mini-width: 80px;--sidebar-width: var(--sidebar-full-width)}html,body{margin:0;font-family:Inter,Roboto,Helvetica,Arial,sans-serif;font-size:14px;height:100%;color:var(--text-primary);background-color:transparent!important;transition:all .4s ease}body{background-image:radial-gradient(at 0% 0%,rgba(70,93,156,.15) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(75,82,102,.1) 0px,transparent 50%);background-attachment:fixed}uds-navbar{position:fixed;top:15px;left:15px;right:15px;z-index:1000}uds-navbar .mat-toolbar.uds-nav{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 8px 32px 0 var(--glass-shadow);height:var(--navbar-height)!important;padding:0 10px 0 5px!important;color:var(--text-primary)!important}uds-navbar .udsicon{filter:none!important;height:40px}.sidebar-handle{position:fixed;left:calc(var(--sidebar-full-width) + 15px);top:50%;transform:translateY(-50%);width:28px;height:70px;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:0 16px 16px 0;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:8px 0 32px var(--glass-shadow);color:var(--text-primary)}.sidebar-handle:before{content:"";position:absolute;left:0;top:-50vh;height:200vh;width:1px;background:linear-gradient(to bottom,transparent,var(--glass-border) 20%,var(--glass-border) 80%,transparent);opacity:.4;transition:opacity .4s ease}.sidebar-handle:hover{background:var(--glass-hover-bg);padding-left:6px}.sidebar-handle:hover:before{opacity:1}.sidebar-handle.sidebar-hidden{left:0}.sidebar-handle.sidebar-hidden:before{opacity:.2}.sidebar-handle i{font-size:22px}uds-sidebar{position:fixed;top:calc(var(--navbar-height) + 35px);left:15px;bottom:15px;width:var(--sidebar-full-width);z-index:999;transition:all .4s cubic-bezier(.4,0,.2,1)}uds-sidebar.sidebar-hidden{transform:translate(calc(-100% - 30px));opacity:0;pointer-events:none}uds-sidebar .sidebar{height:100%!important;width:100%!important;background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:24px;box-shadow:0 8px 32px 0 var(--glass-shadow);padding:20px 12px!important;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;color:var(--text-primary)!important;transition:all .4s ease}uds-sidebar .sidebar::-webkit-scrollbar{width:4px}uds-sidebar .sidebar::-webkit-scrollbar-thumb{background:var(--glass-border);border-radius:10px}uds-sidebar .sidebar-link{width:100%;text-align:left!important;justify-content:flex-start!important;border-radius:12px!important;margin-bottom:4px!important;padding:10px 16px!important;height:auto!important;color:var(--text-primary)!important;font-weight:500!important;transition:all .3s ease!important;display:flex;align-items:center}uds-sidebar .sidebar-link span,uds-sidebar .sidebar-link uds-translate{white-space:nowrap;margin-left:12px;font-size:.9rem;opacity:1}uds-sidebar .sidebar-link:hover{background:var(--glass-hover-bg)!important;transform:translate(5px)}uds-sidebar .sidebar-link.active{background:var(--bg-button)!important;color:#fff!important}uds-sidebar .sidebar-link.active .icon{filter:brightness(0) invert(1)}uds-sidebar .sidebar-link .icon{width:20px;height:20px;flex-shrink:0;transition:all .3s ease}uds-sidebar .sidebar-link .material-icons{margin-left:auto;font-size:18px;opacity:.7}uds-sidebar .submenu,uds-sidebar .submenu2{background:#0000000d;border-radius:12px;margin:4px 8px 8px;padding:4px 0}uds-sidebar .submenu .sidebar-link,uds-sidebar .submenu2 .sidebar-link{padding-left:45px!important;font-size:.85rem!important;opacity:.9}uds-sidebar .submenu .sidebar-link:hover,uds-sidebar .submenu2 .sidebar-link:hover{opacity:1}.page{margin-left:calc(var(--sidebar-full-width) + 30px);padding-top:calc(var(--navbar-height) + 35px);min-height:100vh;box-sizing:border-box;transition:all .4s cubic-bezier(.4,0,.2,1)}.page.sidebar-hidden{margin-left:15px}.content{padding:0 20px 40px}.app-loading .logo{width:113px;height:120px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AYht+malUqCnYQcchQnexiRRxLFYtgobQVWnUwufRHaNKQpLg4Cq4FB38Wqw4uzro6uAqC4A+Is4OToouU+F1SaBHjHcc9vPe9L3ffAUKjwlSzKwaommWkE3Exl18RA6/owxDNHkQlZurJzEIWnuPrHj6+30V4lnfdn2NAKZgM8InEMaYbFvE68cympXPeJw6xsqQQnxNRBqVdLNcHAITJcpe83h3b2ff/q1p9e8HsopywPnxfBcAAAGDUExURQAAABkMiRwRhiYRgR4WghwdhyUcgSohcycjeiMkhSkmdSopZy8sYBovjzEzVyUykTE3UyQ3kTM1dTM3ZDU9SDZBQCY/lS9DgD9GLT5DazxKMCNOpEFWG0BWLkVQZSVVoUFXKERYFkJYI0ZZEB1ZqztZQD5ZNUZZGD1ZOjxZRTJZbTtZUzVaXjxaS0dbGTdaZyZboSlapkVeFDBZoEldGyxdmDBdiy9cnCJgrDBekjRehjdeeylfpDNfgVFbXDxjdDllfEFkcUJnakdoYTlpkklqW1RtFzxrh01qVk9sT1VuQ1RuSVZvP1pxN2ByKl5zMGR0EmJ0JGN1HWZ2FUR4gmd3F2l5DWl5GWF9Gk18e259E01/eGJ+T2uBFnGGEWqIFmeFSFaIb1qMZ22KPnKOGXSRL3iTE2OUXnOXF3CaRGqbUHibMn2dEnujGn+mDXmqPISrFoGvGYGwNIazEIO2LIu5HJC8DIy/EJLFG5XHCJbIDZjKEZLMEZvMAJbQGZrTB53VAJ6wE90AAAABdFJOUwBA5thmAAALzklEQVR42tVb/VvbRhJ2gHD56EeSNtyFmGJjJyJAQMLYxjYuAQoJ3wad5JQUSBsfoRcgEOMg7erk/uk3uysZ21qBVoHcc/MreTyvZt6ZeWekRCJfYnXbts6ODg/3Xy8sjEeu2ywTmaZGKaBLNvGZyeHu7uvwRbAxkdHpbjHJOkq/BKnJjGrTsyu1/+qGydHh/u7m+OjUpQZ+JKkUcm1UWITExMuqHCeqVuLPLKJiGFqlmWeney/Hid+2p+Xa42/CwXbQPSxsU3MsjAmCAgghI2T3YVx9uTxS60RESkwBtMyDAORWNsWpj6bDaNqZUFyfcNPJxLjrZbwhob9U8iJdCkGRHyDZ+TxzAyh6u4o8y4lIAyxWF9vq/2jty8WG4B/kgDzJml09AIIEHRkkkwjX/9WbTcRZY8eHYj1Pvzx3nff3G21R0MjI8PPnzzpGxgYcNjZlpG45Ov+gmd3ABwuRBmAaO+9u3du3brV3d3VbLd7UmmwXC6TyRfGhp89jUXbwkCKhRMEA0HosXmJIWNfipLfiD387u6tDmadzLq6Oju6vu3plycVaslkKpvLF4fGRp4PxoAqTTBGvRAwutw7YwAAkOK99/7W1dHlsZvf98utRoDIucLIc8hI/BwDyUNr+G18YegbAE62pShE/5sunnXfT8l8y2bTheHBAYLdRdBCBNO2A7gnAGqV0agE/js6vf4h/VN8/yQj2XSmMBxrikFTNRiWbZiBDOHD8ejAj92c8IN/2ce/i0LODAEEyZsFhJEZEIBdfZ3o/YEH4DL/DEN6bNCtinMEqI7NoAZ9eOHhHc7z3+yRAxhwpPhswM3DhAPAqFumAIL9Z3d4/lNTQRDIipwfdhG4TfHEQCgwAAvVPvzcfaPVfWfX/f5g/kkaMs/dITbKAFSOkUAIELY//tTeBL7tlwObIhefNADQWiztGwIAoB0bHx7d6GwjoIApypCTBKcUSzvHBhZD8PZBR3MMfBuQDwJIgouAAijv1SwkgMCyar/daUJw+/GULGaFWIIBoCxQVf3wTAgBqp++utXRVAGC/pO5wXgzgC11+8gQAQBK7fTn2y6C2/2iAVDSTimyXqRuaYQGIkQ0bOvwp65OtwTEAYz1NQGIaGVNrVSRUAws+8OjThqDm/fFAWQLg1LTUNTKZUJELFiM71gpdAdtgs2Wf5JonokkCdsHZ0IxAHn49sGNLwTgdgK1XFbV7UNBIlq15TugC64CQETb0tTSthgRoR2czHd3dHT39F8BABKD0o4gEbH94afujhAkbAYQZSMZAGglTbAjImx9eBSqDLPFRhW4skgjtVjeP0MiU8Goo3896rgZAsDQ03YAEVXXVLV88FmwHeB3P3T1iDeikVhzI3JCoGtQjEdnIiEgWXj34PvH4q046gEQIQBU0pPF2kG99vbvPaIAck/YhiCNNu8nmg5EhJ4sRETSkH7LK4KCIDcoxb0AyEwAHkApYDEa1N7n+hWxcfw0wQUA/YiWglgMMD79Pd0vFIFMXyLu4QDtBppGp4JYO0Do0++5ZAhFJHmOFTQEVJ4IFuOnNymBJGSH/ACoOnREVa0cm0I0gG3h469ZJTCE9MiAD4CISolYqlRNsVLAgCAwDxqqmHcvoghgKpwJDUaGIBswBEpx0AXAORWBOAEEuiARTfM/6OMbOVA/SCmFvvgFAMqEiCWQJ1gMgYU/vkknlSAAhgacRsi92IFCJKWwK7YukWqEWsgFYaIyFI/7cJBamXXESlUQgYnRpz9+CYAAADgZiPIPlowGIE8EkwAy8fTPN7lkcpLYlO+Qzo5cQAG6LJY0gqAsTERSDJ/+eHnek6a4MDLPLwEQITwEIuoHhjACZJ2dOr/iLwifMQATvgCqB1uqSkrhSEwns2Ko/9X0U8Th5GQLA+TCIAUgTfi8T0HYPtsrkzSUdk5M0RgYyLaM1h9M0WRMNgThWIwB4FchMshrglpFU8loFl0ZqdWR2f6rjBFTDMBwNO7n3zQg6+AfG8c7KkGg7X8WR4Btw/T+9rkkHna0QNTrHuE6PdrC6nkAyxJ0AyCiaDGahmVjbnIdAM8SvAhY2HC8U6lZd5IQiogm8kcwBYo0wZFjn2nqkVvNtdM/326qtB1snyDxLCDb9EEwKRcHE953irsH0HipH/qC7vT9P3Mvlzd12hErVSxORNxeCi4CJVuggrBtEGjblYOaZZFXRnX06f2vvyiPlRerJAKEiLUQpYB9YpBMj9GtqA0A8K28d1QzLHz68d+knSsAdXadhAA04kEIGsCj8BFk2IGqHcAWrOflveMatPKGsEnP0SSIXw7cnshHwORQ2yAgAGA33Xn7Mi03lgyluOgg2KlaYUrB5CKIUQDtg4CoEE3Vl/qbNE1KBhpQIqoVwXXJSQLmMTE6wRuFVIxq+lK2ecFIZmfXdEpEdU/scuDGgFcL8QmeGuICgD16fpMhEFepvlkgalzyaAFouhwAIB4WaRI0SkRxBBYnBPEJCUaxBwDZyjR9NZ9qVdaKQwNV3amGAACl0I4gLiXIxw1xrhDUV1+0bRdKdmadhUAVvKU2RFo7AraU8JWovj7dvt4o6bkN3emIZyE6IrKQEeSzBbYO6GuzacVzzlikLZnt7WYYIgYDQFioby5mPACU4pLeIGKIGNg4YAhIDrTVIufSML1OEajhBiO3FPwA6JvTCueq5vSjkrYfqhtYZpAsUPmhb86leVetRfpXtbQVbjAGowFphrq6yLm5AQ1WzmkQAkHdCJIEtaxDz1mf4ayXijKzxmig7oYR6hgHCwGpA22ee+hIz244NNgLo4+C5YBczHV9KS+neHcdRxuo5YMQtWibgXJACkHfmOOFQJHzS0wihhLqIHiDV+IK9+iopKZXHSLuVE1RbQD7phEwB9COp33OXbPuUKiID0YcsBK3gAWby5kk/8btqBNyuhClQcBWQC72mrYx63PbyS872mD7SDQJ0A0Dz0RdWynIvCQoIFJZEsgpVfSSaQYbCJSH6qs0lwWKPLvGSoHIZMFjrhEwBJSHHmF0rk5UPdQFCwAEKkSmjHRtOcMvhGRmmSEAGiB0HRGAXlBmQ9EnCUWHBuSFP74OALQSYCZN80NAVlbN3VUEkiAAgK4ouraYkX1oML/JJKLQrhK0DNlYJpWwMc9PQirpdAOiDUwU/DO44ACckbA249ORlYKzsmoCRzxsW8EBqOT3dX294EcDZ1dRtcAtGQUch40kUBosFZN+NNhwJvNhwMmMA24nLQg0bZH//kEBdaK6kzlYCIIJEk8MNl7lfPqRSwM92EsFC6OIIACHiLN+/WjaWVlhLl4eA1QX9e+uitr6bJb7JsxdWdXS7uXnI2QJNIG2JOir/BikUo1dZe+ySkB2GP+No806vx0ocmGFffJw2c4M+3ko/+cxKPi8eWHagCYBXVkH8Exmoo9ecN+MJx2JWLrwgwOELSMSGkCZjmZ95UWaw8SUuymUyv7SIHz8XRpQHvCZCC15lVWC77bmdywVbQc+/UBJv2IqWfdZ2r/w+VsQgEJSvC3ZPeXuVDlf4hnYRkbki61MVwVAkPdSMZVly5Kq73NK0bKNK/Dv9ERQiUtFTiXk3Y7sKUVof4YZuRJzsrC5OuMRacncovNex6MMLBEFclkWtmgM9PXZdiK42kTVto9bNDKyw7cf364M43k+3/qtTErOrDgq/aAJAHQfy4hcpWkMgba59KIVgZJd1j0zifyPDRSJXDECes3X1dW5FpWkyMuNdbVRiZZlRq7coCEwLm4sTjdBUORFXXNWNeeLD0j/NfhvTAbalIpARsVphksuAKZPofquOP0eKgITVucyWfL0QIHp1RYA5D0VilyXaU5P0rWNlbminFSSCqgSrQkANP/rc88gbLGC1DdX5menZ+aWmDxnHLCs60p/MxHYGYlWxNqG655VQd0yrci1m+YsLTog0PRzAHtnwU6BV1OQDhvPTS0f2ghHvpIBGdsglOgr/sjXMyjIFgzlneOv6Z5RQXWqkpbAQS3y1U0lZKCmbVUi/xtzLnZq5P/a/gvm8NIms2W1xQAAAABJRU5ErkJggg==)}i.material-icons{vertical-align:middle!important}i.spaced{margin-right:.5rem}.dark-theme{--mat-app-background-color: #303030;--mat-app-text-color: white;--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-label-text-color: #1976d2;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme .mat-accent{--mat-option-selected-state-label-text-color: #40c4ff;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme .mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme{--mat-optgroup-label-text-color: white;--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #1976d2;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #1976d2;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #f44336;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #f44336;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme{--mat-card-elevated-container-color: #424242;--mat-card-elevated-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-card-outlined-container-color: #424242;--mat-card-outlined-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-outlined-outline-color: rgba(255, 255, 255, .12);--mat-card-subtitle-text-color: rgba(255, 255, 255, .7);--mat-card-filled-container-color: #424242;--mat-card-filled-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}.dark-theme .mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #1976d2;--mat-progress-bar-track-color: rgba(25, 118, 210, .25)}.dark-theme .mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #40c4ff;--mat-progress-bar-track-color: rgba(64, 196, 255, .25)}.dark-theme .mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #f44336;--mat-progress-bar-track-color: rgba(244, 67, 54, .25)}.dark-theme{--mat-tooltip-container-color: white;--mat-tooltip-supporting-text-color: rgba(0, 0, 0, .87);--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-filled-caret-color: #1976d2;--mat-form-field-filled-focus-active-indicator-color: #1976d2;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-outlined-caret-color: #1976d2;--mat-form-field-outlined-focus-outline-color: #1976d2;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-state-layer-color: white;--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: rgba(0, 0, 0, .87);--mat-form-field-select-disabled-option-text-color: rgba(0, 0, 0, .38);--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(255, 255, 255, .7);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .12;--mat-form-field-filled-container-color: #4a4a4a;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, white 4%, transparent);--mat-form-field-filled-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-filled-hover-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-filled-input-text-color: white;--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(255, 255, 255, .7);--mat-form-field-filled-error-hover-label-text-color: #f44336;--mat-form-field-filled-error-focus-label-text-color: #f44336;--mat-form-field-filled-error-label-text-color: #f44336;--mat-form-field-filled-error-caret-color: #f44336;--mat-form-field-filled-active-indicator-color: rgba(255, 255, 255, .7);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, white 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: white;--mat-form-field-filled-error-active-indicator-color: #f44336;--mat-form-field-filled-error-focus-active-indicator-color: #f44336;--mat-form-field-filled-error-hover-active-indicator-color: #f44336;--mat-form-field-outlined-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-outlined-hover-label-text-color: white;--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-outlined-input-text-color: white;--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(255, 255, 255, .7);--mat-form-field-outlined-error-caret-color: #f44336;--mat-form-field-outlined-error-focus-label-text-color: #f44336;--mat-form-field-outlined-error-label-text-color: #f44336;--mat-form-field-outlined-error-hover-label-text-color: #f44336;--mat-form-field-outlined-outline-color: rgba(255, 255, 255, .38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, white 12%, transparent);--mat-form-field-outlined-hover-outline-color: white;--mat-form-field-outlined-error-focus-outline-color: #f44336;--mat-form-field-outlined-error-hover-outline-color: #f44336;--mat-form-field-outlined-error-outline-color: #f44336}.dark-theme .mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-filled-caret-color: #40c4ff;--mat-form-field-filled-focus-active-indicator-color: #40c4ff;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-outlined-caret-color: #40c4ff;--mat-form-field-outlined-focus-outline-color: #40c4ff;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent)}.dark-theme .mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-filled-caret-color: #f44336;--mat-form-field-filled-focus-active-indicator-color: #f44336;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-outlined-caret-color: #f44336;--mat-form-field-outlined-focus-outline-color: #f44336;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent)}.dark-theme{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #1976d2;--mat-select-invalid-arrow-color: #f44336}.dark-theme .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #40c4ff;--mat-select-invalid-arrow-color: #f44336}.dark-theme .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #f44336;--mat-select-invalid-arrow-color: #f44336}.dark-theme{--mat-autocomplete-background-color: #424242;--mat-dialog-container-color: #424242;--mat-dialog-subhead-color: white;--mat-dialog-supporting-text-color: rgba(255, 255, 255, .7)}.dark-theme .mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #1976d2;--mat-chip-elevated-disabled-container-color: #1976d2;--mat-chip-elevated-selected-container-color: #1976d2;--mat-chip-flat-disabled-selected-container-color: #1976d2;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: #40c4ff;--mat-chip-elevated-disabled-container-color: #40c4ff;--mat-chip-elevated-selected-container-color: #40c4ff;--mat-chip-flat-disabled-selected-container-color: #40c4ff;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #f44336;--mat-chip-elevated-disabled-container-color: #f44336;--mat-chip-elevated-selected-container-color: #f44336;--mat-chip-flat-disabled-selected-container-color: #f44336;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #1976d2;--mat-slide-toggle-selected-handle-color: #1976d2;--mat-slide-toggle-selected-hover-state-layer-color: #1976d2;--mat-slide-toggle-selected-pressed-state-layer-color: #1976d2;--mat-slide-toggle-selected-focus-handle-color: #1976d2;--mat-slide-toggle-selected-hover-handle-color: #1976d2;--mat-slide-toggle-selected-pressed-handle-color: #1976d2;--mat-slide-toggle-selected-focus-track-color: #1e88e5;--mat-slide-toggle-selected-hover-track-color: #1e88e5;--mat-slide-toggle-selected-pressed-track-color: #1e88e5;--mat-slide-toggle-selected-track-color: #1e88e5;--mat-slide-toggle-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-slide-toggle-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-disabled-selected-handle-color: white;--mat-slide-toggle-disabled-selected-track-color: white;--mat-slide-toggle-disabled-unselected-handle-color: white;--mat-slide-toggle-disabled-unselected-icon-color: #4a4a4a;--mat-slide-toggle-disabled-unselected-track-color: white;--mat-slide-toggle-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-handle-surface-color: #424242;--mat-slide-toggle-label-text-color: white;--mat-slide-toggle-unselected-hover-handle-color: white;--mat-slide-toggle-unselected-focus-handle-color: white;--mat-slide-toggle-unselected-focus-state-layer-color: white;--mat-slide-toggle-unselected-focus-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-icon-color: #4a4a4a;--mat-slide-toggle-unselected-handle-color: rgba(255, 255, 255, .7);--mat-slide-toggle-unselected-hover-state-layer-color: white;--mat-slide-toggle-unselected-hover-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-pressed-handle-color: white;--mat-slide-toggle-unselected-pressed-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-pressed-state-layer-color: white;--mat-slide-toggle-unselected-track-color: rgba(255, 255, 255, .12)}.dark-theme .mat-mdc-slide-toggle.mat-accent{--mat-slide-toggle-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-selected-focus-state-layer-color: #40c4ff;--mat-slide-toggle-selected-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-state-layer-color: #40c4ff;--mat-slide-toggle-selected-pressed-state-layer-color: #40c4ff;--mat-slide-toggle-selected-focus-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-handle-color: #40c4ff;--mat-slide-toggle-selected-pressed-handle-color: #40c4ff;--mat-slide-toggle-selected-focus-track-color: #039be5;--mat-slide-toggle-selected-hover-track-color: #039be5;--mat-slide-toggle-selected-pressed-track-color: #039be5;--mat-slide-toggle-selected-track-color: #039be5}.dark-theme .mat-mdc-slide-toggle.mat-warn{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #f44336;--mat-slide-toggle-selected-handle-color: #f44336;--mat-slide-toggle-selected-hover-state-layer-color: #f44336;--mat-slide-toggle-selected-pressed-state-layer-color: #f44336;--mat-slide-toggle-selected-focus-handle-color: #f44336;--mat-slide-toggle-selected-hover-handle-color: #f44336;--mat-slide-toggle-selected-pressed-handle-color: #f44336;--mat-slide-toggle-selected-focus-track-color: #e53935;--mat-slide-toggle-selected-hover-track-color: #e53935;--mat-slide-toggle-selected-pressed-track-color: #e53935;--mat-slide-toggle-selected-track-color: #e53935}.dark-theme .mat-mdc-radio-button.mat-primary{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-radio-button.mat-accent{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-radio-button.mat-warn{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme{--mat-slider-active-track-color: #1976d2;--mat-slider-focus-handle-color: #1976d2;--mat-slider-handle-color: #1976d2;--mat-slider-hover-handle-color: #1976d2;--mat-slider-focus-state-layer-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-slider-inactive-track-color: #1976d2;--mat-slider-ripple-color: #1976d2;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #1976d2;--mat-slider-disabled-active-track-color: white;--mat-slider-disabled-handle-color: white;--mat-slider-disabled-inactive-track-color: white;--mat-slider-label-container-color: white;--mat-slider-label-label-text-color: rgba(0, 0, 0, .87);--mat-slider-value-indicator-opacity: 1;--mat-slider-with-overlap-handle-outline-color: white;--mat-slider-with-tick-marks-disabled-container-color: white}.dark-theme .mat-accent{--mat-slider-active-track-color: #40c4ff;--mat-slider-focus-handle-color: #40c4ff;--mat-slider-handle-color: #40c4ff;--mat-slider-hover-handle-color: #40c4ff;--mat-slider-focus-state-layer-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-slider-inactive-track-color: #40c4ff;--mat-slider-ripple-color: #40c4ff;--mat-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-inactive-container-color: #40c4ff}.dark-theme .mat-warn{--mat-slider-active-track-color: #f44336;--mat-slider-focus-handle-color: #f44336;--mat-slider-handle-color: #f44336;--mat-slider-hover-handle-color: #f44336;--mat-slider-focus-state-layer-color: color-mix(in srgb, #f44336 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #f44336 4%, transparent);--mat-slider-inactive-track-color: #f44336;--mat-slider-ripple-color: #f44336;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #f44336}.dark-theme{--mat-menu-item-label-text-color: white;--mat-menu-item-icon-color: white;--mat-menu-item-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-menu-container-color: #424242;--mat-menu-divider-color: rgba(255, 255, 255, .12);--mat-list-list-item-label-text-color: white;--mat-list-list-item-supporting-text-color: rgba(255, 255, 255, .7);--mat-list-list-item-leading-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-trailing-supporting-text-color: rgba(255, 255, 255, .7);--mat-list-list-item-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-selected-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-disabled-label-text-color: white;--mat-list-list-item-disabled-leading-icon-color: white;--mat-list-list-item-disabled-trailing-icon-color: white;--mat-list-list-item-hover-label-text-color: white;--mat-list-list-item-hover-leading-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-hover-state-layer-color: white;--mat-list-list-item-hover-state-layer-opacity: .04;--mat-list-list-item-hover-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-focus-label-text-color: white;--mat-list-list-item-focus-state-layer-color: white;--mat-list-list-item-focus-state-layer-opacity: .12}.dark-theme .mdc-list-item__start,.dark-theme .mdc-list-item__end{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-accent .mdc-list-item__start,.dark-theme .mat-accent .mdc-list-item__end{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-warn .mdc-list-item__start,.dark-theme .mat-warn .mdc-list-item__end{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-list-option{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-option.mat-accent{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-option.mat-warn{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#1976d2}.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}.dark-theme{--mat-paginator-container-text-color: white;--mat-paginator-container-background-color: #424242;--mat-paginator-enabled-icon-color: rgba(255, 255, 255, .7);--mat-paginator-disabled-icon-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-mdc-tab-group,.dark-theme .mat-mdc-tab-nav-bar{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #1976d2;--mat-tab-active-ripple-color: #1976d2;--mat-tab-inactive-ripple-color: #1976d2;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #1976d2;--mat-tab-active-hover-label-text-color: #1976d2;--mat-tab-active-focus-indicator-color: #1976d2;--mat-tab-active-hover-indicator-color: #1976d2;--mat-tab-active-indicator-color: #1976d2}.dark-theme .mat-mdc-tab-group.mat-accent,.dark-theme .mat-mdc-tab-nav-bar.mat-accent{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #40c4ff;--mat-tab-active-ripple-color: #40c4ff;--mat-tab-inactive-ripple-color: #40c4ff;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #40c4ff;--mat-tab-active-hover-label-text-color: #40c4ff;--mat-tab-active-focus-indicator-color: #40c4ff;--mat-tab-active-hover-indicator-color: #40c4ff;--mat-tab-active-indicator-color: #40c4ff}.dark-theme .mat-mdc-tab-group.mat-warn,.dark-theme .mat-mdc-tab-nav-bar.mat-warn{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #f44336;--mat-tab-active-ripple-color: #f44336;--mat-tab-inactive-ripple-color: #f44336;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #f44336;--mat-tab-active-hover-label-text-color: #f44336;--mat-tab-active-focus-indicator-color: #f44336;--mat-tab-active-hover-indicator-color: #f44336;--mat-tab-active-indicator-color: #f44336}.dark-theme .mat-mdc-tab-group.mat-background-primary,.dark-theme .mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-background-color: #1976d2;--mat-tab-foreground-color: white}.dark-theme .mat-mdc-tab-group.mat-background-accent,.dark-theme .mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-background-color: #40c4ff;--mat-tab-foreground-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-tab-group.mat-background-warn,.dark-theme .mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-background-color: #f44336;--mat-tab-foreground-color: white}.dark-theme{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme{--mat-button-filled-container-color: #424242;--mat-button-filled-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-filled-focus-state-layer-opacity: .12;--mat-button-filled-hover-state-layer-opacity: .04;--mat-button-filled-label-text-color: white;--mat-button-filled-pressed-state-layer-opacity: .12;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-outlined-focus-state-layer-opacity: .12;--mat-button-outlined-hover-state-layer-opacity: .04;--mat-button-outlined-label-text-color: white;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-pressed-state-layer-opacity: .12;--mat-button-outlined-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-outlined-state-layer-color: white;--mat-button-protected-container-color: #424242;--mat-button-protected-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-protected-focus-state-layer-opacity: .12;--mat-button-protected-hover-state-layer-opacity: .04;--mat-button-protected-label-text-color: white;--mat-button-protected-pressed-state-layer-opacity: .12;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-text-focus-state-layer-opacity: .12;--mat-button-text-hover-state-layer-opacity: .04;--mat-button-text-label-text-color: white;--mat-button-text-pressed-state-layer-opacity: .12;--mat-button-text-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-text-state-layer-color: white;--mat-button-tonal-container-color: #424242;--mat-button-tonal-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-tonal-focus-state-layer-opacity: .12;--mat-button-tonal-hover-state-layer-opacity: .04;--mat-button-tonal-label-text-color: white;--mat-button-tonal-pressed-state-layer-opacity: .12;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme .mat-mdc-button.mat-primary,.dark-theme .mat-mdc-unelevated-button.mat-primary,.dark-theme .mat-mdc-raised-button.mat-primary,.dark-theme .mat-mdc-outlined-button.mat-primary,.dark-theme .mat-tonal-button.mat-primary{--mat-button-filled-container-color: #1976d2;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #1976d2;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-outlined-state-layer-color: #1976d2;--mat-button-protected-container-color: #1976d2;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #1976d2;--mat-button-text-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-text-state-layer-color: #1976d2;--mat-button-tonal-container-color: #1976d2;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme .mat-mdc-button.mat-accent,.dark-theme .mat-mdc-unelevated-button.mat-accent,.dark-theme .mat-mdc-raised-button.mat-accent,.dark-theme .mat-mdc-outlined-button.mat-accent,.dark-theme .mat-tonal-button.mat-accent{--mat-button-filled-container-color: #40c4ff;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-label-text-color: #40c4ff;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-outlined-state-layer-color: #40c4ff;--mat-button-protected-container-color: #40c4ff;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-label-text-color: #40c4ff;--mat-button-text-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-text-state-layer-color: #40c4ff;--mat-button-tonal-container-color: #40c4ff;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-button.mat-warn,.dark-theme .mat-mdc-unelevated-button.mat-warn,.dark-theme .mat-mdc-raised-button.mat-warn,.dark-theme .mat-mdc-outlined-button.mat-warn,.dark-theme .mat-tonal-button.mat-warn{--mat-button-filled-container-color: #f44336;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #f44336;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-outlined-state-layer-color: #f44336;--mat-button-protected-container-color: #f44336;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #f44336;--mat-button-text-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-text-state-layer-color: #f44336;--mat-button-tonal-container-color: #f44336;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme{--mat-icon-button-disabled-icon-color: color-mix(in srgb, white 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: .12;--mat-icon-button-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-icon-button-state-layer-color: white}.dark-theme .mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #1976d2;--mat-icon-button-state-layer-color: #1976d2;--mat-icon-button-ripple-color: color-mix(in srgb, #1976d2 12%, transparent)}.dark-theme .mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #40c4ff;--mat-icon-button-state-layer-color: #40c4ff;--mat-icon-button-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent)}.dark-theme .mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: color-mix(in srgb, #f44336 12%, transparent)}.dark-theme{--mat-fab-container-color: #424242;--mat-fab-disabled-state-container-color: color-mix(in srgb, white 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, white 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-fab-focus-state-layer-opacity: .12;--mat-fab-foreground-color: white;--mat-fab-hover-state-layer-opacity: .04;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-container-color: #424242;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, white 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-foreground-color: white;--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme .mat-mdc-fab.mat-primary,.dark-theme .mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #1976d2;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-fab-small-container-color: #1976d2;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme .mat-mdc-fab.mat-accent,.dark-theme .mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #40c4ff;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-fab-small-container-color: #40c4ff;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-fab.mat-warn,.dark-theme .mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme{--mat-snack-bar-container-color: white;--mat-snack-bar-supporting-text-color: rgba(0, 0, 0, .87);--mat-snack-bar-button-color: #1e88e5;--mat-table-background-color: #424242;--mat-table-header-headline-color: white;--mat-table-row-item-label-text-color: white;--mat-table-row-item-outline-color: rgba(255, 255, 255, .12);--mat-progress-spinner-active-indicator-color: #1976d2}.dark-theme .mat-accent{--mat-progress-spinner-active-indicator-color: #40c4ff}.dark-theme .mat-warn{--mat-progress-spinner-active-indicator-color: #f44336}.dark-theme{--mat-badge-background-color: #1976d2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-badge-disabled-state-text-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-badge-accent{--mat-badge-background-color: #40c4ff;--mat-badge-text-color: rgba(0, 0, 0, .87)}.dark-theme .mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}.dark-theme{--mat-bottom-sheet-container-text-color: white;--mat-bottom-sheet-container-background-color: #424242;--mat-button-toggle-background-color: #424242;--mat-button-toggle-disabled-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-disabled-selected-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-disabled-state-background-color: #424242;--mat-button-toggle-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-divider-color: rgba(255, 255, 255, .12);--mat-button-toggle-legacy-disabled-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-disabled-state-background-color: #424242;--mat-button-toggle-legacy-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-legacy-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-selected-state-text-color: white;--mat-button-toggle-legacy-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-text-color: white;--mat-button-toggle-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-selected-state-text-color: white;--mat-button-toggle-state-layer-color: white;--mat-button-toggle-text-color: white;--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #1976d2 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #1976d2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #1976d2 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #1976d2;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme .mat-datepicker-content.mat-accent,.dark-theme .mat-datepicker-toggle-active.mat-accent{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #40c4ff;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #40c4ff 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #40c4ff;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme .mat-datepicker-content.mat-warn,.dark-theme .mat-datepicker-toggle-active.mat-warn{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #f44336;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme{--mat-divider-color: rgba(255, 255, 255, .12);--mat-expansion-container-background-color: #424242;--mat-expansion-container-text-color: white;--mat-expansion-actions-divider-color: rgba(255, 255, 255, .12);--mat-expansion-header-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-expansion-header-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-expansion-header-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-expansion-header-text-color: white;--mat-expansion-header-description-color: rgba(255, 255, 255, .7);--mat-expansion-header-indicator-color: rgba(255, 255, 255, .7);--mat-icon-color: inherit}.dark-theme .mat-icon.mat-primary{--mat-icon-color: #1976d2}.dark-theme .mat-icon.mat-accent{--mat-icon-color: #40c4ff}.dark-theme .mat-icon.mat-warn{--mat-icon-color: #f44336}.dark-theme{--mat-sidenav-container-divider-color: rgba(255, 255, 255, .12);--mat-sidenav-container-background-color: #424242;--mat-sidenav-container-text-color: white;--mat-sidenav-content-background-color: #303030;--mat-sidenav-content-text-color: white;--mat-sidenav-scrim-color: rgba(255, 255, 255, .6);--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #1976d2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #1976d2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #1976d2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: #424242;--mat-stepper-line-color: rgba(255, 255, 255, .12);--mat-stepper-header-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-stepper-header-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-stepper-header-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-optional-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-selected-state-label-text-color: white;--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(255, 255, 255, .7);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}.dark-theme .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #40c4ff;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #40c4ff;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #40c4ff;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}.dark-theme .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}.dark-theme{--mat-sort-arrow-color: white;--mat-toolbar-container-background-color: #424242;--mat-toolbar-container-text-color: white}.dark-theme .mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #1976d2;--mat-toolbar-container-text-color: white}.dark-theme .mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #40c4ff;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.dark-theme .mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}.dark-theme{--mat-tree-container-background-color: #424242;--mat-tree-node-text-color: white;--mat-timepicker-container-background-color: #424242;--bg-surface: #0f111a;--bg-accent: #1e2235;--text-primary: #ffffff;--text-secondary: #9aa0a6;--glass-bg: rgba(16, 25, 45, .4);--glass-hover-bg: rgba(16, 25, 45, .6);--glass-border: rgba(255, 255, 255, .15);--glass-shadow: rgba(0, 0, 0, .45);--bg-button: linear-gradient(135deg, #3f51b5, #1a237e);--glass-header-bg: linear-gradient(135deg, rgba(100, 116, 139, .3), rgba(30, 41, 59, .2))}.dark-theme body{background-image:radial-gradient(at 0% 0%,rgba(67,56,202,.25) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(88,28,135,.2) 0px,transparent 50%),radial-gradient(at 50% 50%,var(--bg-accent) 0px,var(--bg-surface) 100%)}.dark-theme uds-sidebar .sidebar-link .icon{filter:brightness(0) invert(1)}.card,.detail{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:20px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;margin:60px 0 1.5rem!important;overflow:visible!important;color:var(--text-primary)!important;transition:transform .3s ease,box-shadow .3s ease;position:relative}.card:hover,.detail:hover{transform:translateY(-2px);box-shadow:0 12px 48px 0 var(--glass-shadow)!important}.detail{background:transparent!important;border:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;margin-top:50px!important}.card-header,.detail>.title{background:linear-gradient(135deg,#ffffff1f,#ffffff0d)!important;backdrop-filter:blur(40px) saturate(210%)!important;-webkit-backdrop-filter:blur(40px) saturate(210%)!important;color:var(--text-primary)!important;position:absolute;top:-42px;left:30px;width:auto;min-width:280px;max-width:calc(100% - 60px);z-index:10;border:1px solid rgba(255,255,255,.3)!important;border-top:1.5px solid rgba(255,255,255,.5)!important;border-left:1.5px solid rgba(255,255,255,.5)!important;box-shadow:0 10px 40px #00000040,inset 0 0 0 1px #ffffff1a!important;padding:8px 18px!important;border-radius:12px!important;font-weight:600;letter-spacing:.5px;text-shadow:0 1px 3px rgba(0,0,0,.2);display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:48px}.card-header.title,.detail>.title.title{flex-direction:row!important;align-items:center!important;gap:12px}.card-header img,.detail>.title img{height:24px!important;width:auto!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));vertical-align:middle}.card-header .material-icons,.detail>.title .material-icons{font-size:24px!important;vertical-align:middle!important;opacity:.9}.card-header .card-title,.detail>.title .card-title{display:flex;align-items:center;gap:10px;font-size:1.1rem;white-space:nowrap}.card-header .card-title img,.detail>.title .card-title img{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.card-header .card-subtitle,.detail>.title .card-subtitle{display:block;width:100%;font-size:.8rem;opacity:.8;margin-top:-2px;padding-left:34px}.nav-header>.card-header,.detail>.title{display:none!important}.card,.detail{margin-top:20px!important}.mat-mdc-menu-panel{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;border-radius:16px!important;padding:8px!important}.mat-mdc-menu-item{color:var(--text-primary)!important;border-radius:10px!important;transition:all .2s ease!important}.mat-mdc-menu-item:hover{background-color:var(--glass-hover-bg)!important}.mat-mdc-select-panel{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;border-radius:16px!important}.mat-mdc-option{color:var(--text-primary)!important}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--glass-hover-bg)!important}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:24px!important;box-shadow:0 24px 64px 0 var(--glass-shadow)!important}.mat-mdc-tooltip .mdc-tooltip__surface{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;color:var(--text-primary)!important;border-radius:8px!important}.mat-mdc-tab-group{border-radius:20px!important;background:transparent!important;overflow:visible!important}.mat-mdc-tab-group .mat-mdc-tab-header{background:var(--glass-header-bg)!important;backdrop-filter:blur(25px) saturate(210%)!important;-webkit-backdrop-filter:blur(25px) saturate(210%)!important;border-bottom:1px solid var(--glass-border)!important;border-radius:20px 20px 0 0!important;padding:10px 16px 0!important;margin-bottom:8px!important}.mat-mdc-tab-group .mat-mdc-tab .mdc-tab__text-label{color:var(--text-primary)!important;opacity:.7!important;font-weight:500!important;transition:all .3s ease!important}.mat-mdc-tab-group .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--text-primary)!important;opacity:1!important;font-weight:600!important}.mat-mdc-tab-group .mat-mdc-tab:hover:not(.mdc-tab--active) .mdc-tab__text-label{opacity:1!important}.detail .card .mat-mdc-tab-header{padding-top:28px!important}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-dialog-actions .mat-mdc-button,.mat-actions .mat-mdc-button{background:var(--bg-button)!important;color:#fff!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:0 4px 15px var(--glass-shadow)!important;transition:all .3s cubic-bezier(.4,0,.2,1)!important;font-weight:500!important;letter-spacing:.3px!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.mat-mdc-raised-button:hover,.mat-mdc-unelevated-button:hover,.mat-mdc-dialog-actions .mat-mdc-button:hover,.mat-actions .mat-mdc-button:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 8px 30px var(--glass-shadow)!important;filter:brightness(1.1)}.mat-mdc-raised-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-dialog-actions .mat-mdc-button .mdc-button__label,.mat-actions .mat-mdc-button .mdc-button__label{text-shadow:0 1px 2px rgba(0,0,0,.1)}.mat-mdc-dialog-actions{padding:16px 24px!important;gap:12px!important}.mat-mdc-slide-toggle.mat-primary{--mdc-switch-selected-focus-state-layer-color: #2196f3;--mdc-switch-selected-handle-color: #2196f3;--mdc-switch-selected-hover-state-layer-color: rgba(33, 150, 243, .1);--mdc-switch-selected-pressed-state-layer-color: rgba(33, 150, 243, .2);--mdc-switch-selected-track-color: rgba(33, 150, 243, .4)}.mat-mdc-slide-toggle.mat-primary .mdc-switch__track{background:#0000001a!important;border:1px solid var(--glass-border)!important}.mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__handle{background:#2196f3!important;box-shadow:0 0 10px #2196f380}.mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__track{background:#2196f333!important}.dark-theme .mat-mdc-slide-toggle.mat-primary{--mdc-switch-selected-handle-color: #64b5f6;--mdc-switch-selected-track-color: rgba(100, 181, 246, .4)}.dark-theme .mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__handle{background:#64b5f6!important;box-shadow:0 0 15px #64b5f699}.dark-theme .mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__track{background:#64b5f640!important}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-selected-focus-icon-color: #2196f3;--mdc-checkbox-selected-hover-icon-color: #2196f3;--mdc-checkbox-selected-icon-color: #2196f3;--mdc-checkbox-selected-pressed-icon-color: #2196f3}.dark-theme{scrollbar-color:rgba(255,255,255,.22) transparent;scrollbar-width:thin}.dark-theme *::-webkit-scrollbar{width:10px;height:10px}.dark-theme *::-webkit-scrollbar-track{background:transparent}.dark-theme *::-webkit-scrollbar-thumb{background:#fff3;border-radius:8px;border:2px solid transparent;background-clip:content-box}.dark-theme *::-webkit-scrollbar-thumb:hover{background:#ffffff59;background-clip:content-box} +.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--mat-sys-on-surface: initial}.mat-app-background{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-option-selected-state-label-text-color: #1976d2;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-accent{--mat-option-selected-state-label-text-color: #40c4ff;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}html{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #1976d2;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #1976d2;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #f44336;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #f44336;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mat-card-elevated-container-shape: 4px;--mat-card-outlined-container-shape: 4px;--mat-card-filled-container-shape: 4px;--mat-card-outlined-outline-width: 1px}html{--mat-card-elevated-container-color: white;--mat-card-elevated-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-card-outlined-container-color: white;--mat-card-outlined-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-outlined-outline-color: rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54);--mat-card-filled-container-color: white;--mat-card-filled-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html{--mat-card-title-text-font: Roboto, sans-serif;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Roboto, sans-serif;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mat-progress-bar-active-indicator-height: 4px;--mat-progress-bar-track-height: 4px;--mat-progress-bar-track-shape: 0}.mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #1976d2;--mat-progress-bar-track-color: rgba(25, 118, 210, .25)}.mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #40c4ff;--mat-progress-bar-track-color: rgba(64, 196, 255, .25)}.mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #f44336;--mat-progress-bar-track-color: rgba(244, 67, 54, .25)}html{--mat-tooltip-container-shape: 4px;--mat-tooltip-supporting-text-line-height: 16px}html{--mat-tooltip-container-color: #424242;--mat-tooltip-supporting-text-color: white}html{--mat-tooltip-supporting-text-font: Roboto, sans-serif;--mat-tooltip-supporting-text-size: 12px;--mat-tooltip-supporting-text-weight: 400;--mat-tooltip-supporting-text-tracking: .0333333333em}html{--mat-form-field-filled-active-indicator-height: 1px;--mat-form-field-filled-focus-active-indicator-height: 2px;--mat-form-field-filled-container-shape: 4px;--mat-form-field-outlined-outline-width: 1px;--mat-form-field-outlined-focus-outline-width: 2px;--mat-form-field-outlined-container-shape: 4px}html{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-filled-caret-color: #1976d2;--mat-form-field-filled-focus-active-indicator-color: #1976d2;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-outlined-caret-color: #1976d2;--mat-form-field-outlined-focus-outline-color: #1976d2;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .12;--mat-form-field-filled-container-color: #f6f6f6;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-form-field-filled-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-color: rgba(0, 0, 0, .87);--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, .54);--mat-form-field-filled-error-hover-label-text-color: #f44336;--mat-form-field-filled-error-focus-label-text-color: #f44336;--mat-form-field-filled-error-label-text-color: #f44336;--mat-form-field-filled-error-caret-color: #f44336;--mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, .87);--mat-form-field-filled-error-active-indicator-color: #f44336;--mat-form-field-filled-error-focus-active-indicator-color: #f44336;--mat-form-field-filled-error-hover-active-indicator-color: #f44336;--mat-form-field-outlined-label-text-color: rgba(0, 0, 0, .54);--mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, .54);--mat-form-field-outlined-error-caret-color: #f44336;--mat-form-field-outlined-error-focus-label-text-color: #f44336;--mat-form-field-outlined-error-label-text-color: #f44336;--mat-form-field-outlined-error-hover-label-text-color: #f44336;--mat-form-field-outlined-outline-color: rgba(0, 0, 0, .38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, .87);--mat-form-field-outlined-error-focus-outline-color: #f44336;--mat-form-field-outlined-error-hover-outline-color: #f44336;--mat-form-field-outlined-error-outline-color: #f44336}.mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-filled-caret-color: #40c4ff;--mat-form-field-filled-focus-active-indicator-color: #40c4ff;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-outlined-caret-color: #40c4ff;--mat-form-field-outlined-focus-outline-color: #40c4ff;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent)}.mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-filled-caret-color: #f44336;--mat-form-field-filled-focus-active-indicator-color: #f44336;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-outlined-caret-color: #f44336;--mat-form-field-outlined-focus-outline-color: #f44336;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400;--mat-form-field-filled-label-text-font: Roboto, sans-serif;--mat-form-field-filled-label-text-size: 16px;--mat-form-field-filled-label-text-tracking: .03125em;--mat-form-field-filled-label-text-weight: 400;--mat-form-field-outlined-label-text-font: Roboto, sans-serif;--mat-form-field-outlined-label-text-size: 16px;--mat-form-field-outlined-label-text-tracking: .03125em;--mat-form-field-outlined-label-text-weight: 400}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #1976d2;--mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #40c4ff;--mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color: #f44336;--mat-select-invalid-arrow-color: #f44336}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color: white}html{--mat-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html{--mat-dialog-container-color: white;--mat-dialog-subhead-color: rgba(0, 0, 0, .87);--mat-dialog-supporting-text-color: rgba(0, 0, 0, .54)}html{--mat-dialog-subhead-font: Roboto, sans-serif;--mat-dialog-subhead-line-height: 32px;--mat-dialog-subhead-size: 20px;--mat-dialog-subhead-weight: 500;--mat-dialog-subhead-tracking: .0125em;--mat-dialog-supporting-text-font: Roboto, sans-serif;--mat-dialog-supporting-text-line-height: 24px;--mat-dialog-supporting-text-size: 16px;--mat-dialog-supporting-text-weight: 400;--mat-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip{--mat-chip-container-shape-radius: 16px;--mat-chip-disabled-container-opacity: .4;--mat-chip-disabled-outline-color: transparent;--mat-chip-flat-selected-outline-width: 0;--mat-chip-focus-outline-color: transparent;--mat-chip-hover-state-layer-opacity: .04;--mat-chip-outline-color: transparent;--mat-chip-outline-width: 0;--mat-chip-selected-hover-state-layer-opacity: .04;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-with-avatar-avatar-shape-radius: 14px;--mat-chip-with-avatar-avatar-size: 28px;--mat-chip-with-avatar-disabled-avatar-opacity: 1;--mat-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-with-icon-icon-size: 18px;--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}.mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #1976d2;--mat-chip-elevated-disabled-container-color: #1976d2;--mat-chip-elevated-selected-container-color: #1976d2;--mat-chip-flat-disabled-selected-container-color: #1976d2;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: #40c4ff;--mat-chip-elevated-disabled-container-color: #40c4ff;--mat-chip-elevated-selected-container-color: #40c4ff;--mat-chip-flat-disabled-selected-container-color: #40c4ff;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #f44336;--mat-chip-elevated-disabled-container-color: #f44336;--mat-chip-elevated-selected-container-color: #f44336;--mat-chip-flat-disabled-selected-container-color: #f44336;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mat-chip-container-height: 32px}.mat-mdc-standard-chip{--mat-chip-label-text-font: Roboto, sans-serif;--mat-chip-label-text-line-height: 20px;--mat-chip-label-text-size: 14px;--mat-chip-label-text-tracking: .0178571429em;--mat-chip-label-text-weight: 400}html{--mat-slide-toggle-disabled-handle-opacity: .38;--mat-slide-toggle-disabled-selected-handle-opacity: .38;--mat-slide-toggle-disabled-selected-icon-opacity: .38;--mat-slide-toggle-disabled-track-opacity: .12;--mat-slide-toggle-disabled-unselected-handle-opacity: .38;--mat-slide-toggle-disabled-unselected-icon-opacity: .38;--mat-slide-toggle-disabled-unselected-track-outline-color: transparent;--mat-slide-toggle-disabled-unselected-track-outline-width: 1px;--mat-slide-toggle-handle-height: 20px;--mat-slide-toggle-handle-shape: 10px;--mat-slide-toggle-handle-width: 20px;--mat-slide-toggle-hidden-track-opacity: 1;--mat-slide-toggle-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-slide-toggle-pressed-handle-size: 20px;--mat-slide-toggle-selected-focus-state-layer-opacity: .12;--mat-slide-toggle-selected-handle-horizontal-margin: 0;--mat-slide-toggle-selected-handle-size: 20px;--mat-slide-toggle-selected-hover-state-layer-opacity: .04;--mat-slide-toggle-selected-icon-size: 18px;--mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0;--mat-slide-toggle-selected-pressed-state-layer-opacity: .12;--mat-slide-toggle-selected-track-outline-color: transparent;--mat-slide-toggle-selected-track-outline-width: 1px;--mat-slide-toggle-selected-with-icon-handle-horizontal-margin: 0;--mat-slide-toggle-track-height: 14px;--mat-slide-toggle-track-outline-color: transparent;--mat-slide-toggle-track-outline-width: 1px;--mat-slide-toggle-track-shape: 7px;--mat-slide-toggle-track-width: 36px;--mat-slide-toggle-unselected-focus-state-layer-opacity: .12;--mat-slide-toggle-unselected-handle-horizontal-margin: 0;--mat-slide-toggle-unselected-handle-size: 20px;--mat-slide-toggle-unselected-hover-state-layer-opacity: .12;--mat-slide-toggle-unselected-icon-size: 18px;--mat-slide-toggle-unselected-pressed-handle-horizontal-margin: 0;--mat-slide-toggle-unselected-pressed-state-layer-opacity: .1;--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin: 0;--mat-slide-toggle-visible-track-opacity: 1;--mat-slide-toggle-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-slide-toggle-with-icon-handle-size: 20px;--mat-slide-toggle-touch-target-size: 48px}html{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #1976d2;--mat-slide-toggle-selected-handle-color: #1976d2;--mat-slide-toggle-selected-hover-state-layer-color: #1976d2;--mat-slide-toggle-selected-pressed-state-layer-color: #1976d2;--mat-slide-toggle-selected-focus-handle-color: #1976d2;--mat-slide-toggle-selected-hover-handle-color: #1976d2;--mat-slide-toggle-selected-pressed-handle-color: #1976d2;--mat-slide-toggle-selected-focus-track-color: #64b5f6;--mat-slide-toggle-selected-hover-track-color: #64b5f6;--mat-slide-toggle-selected-pressed-track-color: #64b5f6;--mat-slide-toggle-selected-track-color: #64b5f6;--mat-slide-toggle-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-slide-toggle-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-disabled-selected-handle-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-track-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-handle-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-icon-color: #f6f6f6;--mat-slide-toggle-disabled-unselected-track-color: rgba(0, 0, 0, .87);--mat-slide-toggle-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-handle-surface-color: white;--mat-slide-toggle-label-text-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-handle-color: #424242;--mat-slide-toggle-unselected-focus-handle-color: #424242;--mat-slide-toggle-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-focus-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-icon-color: #f6f6f6;--mat-slide-toggle-unselected-handle-color: rgba(0, 0, 0, .54);--mat-slide-toggle-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-handle-color: #424242;--mat-slide-toggle-unselected-pressed-track-color: rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-track-color: rgba(0, 0, 0, .12)}.mat-mdc-slide-toggle.mat-accent{--mat-slide-toggle-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-selected-focus-state-layer-color: #40c4ff;--mat-slide-toggle-selected-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-state-layer-color: #40c4ff;--mat-slide-toggle-selected-pressed-state-layer-color: #40c4ff;--mat-slide-toggle-selected-focus-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-handle-color: #40c4ff;--mat-slide-toggle-selected-pressed-handle-color: #40c4ff;--mat-slide-toggle-selected-focus-track-color: #4fc3f7;--mat-slide-toggle-selected-hover-track-color: #4fc3f7;--mat-slide-toggle-selected-pressed-track-color: #4fc3f7;--mat-slide-toggle-selected-track-color: #4fc3f7}.mat-mdc-slide-toggle.mat-warn{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #f44336;--mat-slide-toggle-selected-handle-color: #f44336;--mat-slide-toggle-selected-hover-state-layer-color: #f44336;--mat-slide-toggle-selected-pressed-state-layer-color: #f44336;--mat-slide-toggle-selected-focus-handle-color: #f44336;--mat-slide-toggle-selected-hover-handle-color: #f44336;--mat-slide-toggle-selected-pressed-handle-color: #f44336;--mat-slide-toggle-selected-focus-track-color: #e57373;--mat-slide-toggle-selected-hover-track-color: #e57373;--mat-slide-toggle-selected-pressed-track-color: #e57373;--mat-slide-toggle-selected-track-color: #e57373}html{--mat-slide-toggle-state-layer-size: 40px;--mat-slide-toggle-touch-target-display: block}html,html .mat-mdc-slide-toggle{--mat-slide-toggle-label-text-font: Roboto, sans-serif;--mat-slide-toggle-label-text-line-height: 20px;--mat-slide-toggle-label-text-size: 14px;--mat-slide-toggle-label-text-tracking: .0178571429em;--mat-slide-toggle-label-text-weight: 400}html{--mat-radio-disabled-selected-icon-opacity: .38;--mat-radio-disabled-unselected-icon-opacity: .38;--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-size: 48px}.mat-mdc-radio-button.mat-primary{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}html{--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}html{--mat-radio-label-text-font: Roboto, sans-serif;--mat-radio-label-text-line-height: 20px;--mat-radio-label-text-size: 14px;--mat-radio-label-text-tracking: .0178571429em;--mat-radio-label-text-weight: 400}html{--mat-slider-active-track-height: 6px;--mat-slider-active-track-shape: 9999px;--mat-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-handle-height: 20px;--mat-slider-handle-shape: 50%;--mat-slider-handle-width: 20px;--mat-slider-inactive-track-height: 4px;--mat-slider-inactive-track-shape: 9999px;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-container-transform: translateX(-50%);--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-width: auto;--mat-slider-with-overlap-handle-outline-width: 1px;--mat-slider-with-tick-marks-active-container-opacity: .6;--mat-slider-with-tick-marks-container-shape: 50%;--mat-slider-with-tick-marks-container-size: 2px;--mat-slider-with-tick-marks-inactive-container-opacity: .6;--mat-slider-value-indicator-transform-origin: bottom}html{--mat-slider-active-track-color: #1976d2;--mat-slider-focus-handle-color: #1976d2;--mat-slider-handle-color: #1976d2;--mat-slider-hover-handle-color: #1976d2;--mat-slider-focus-state-layer-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-slider-inactive-track-color: #1976d2;--mat-slider-ripple-color: #1976d2;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #1976d2;--mat-slider-disabled-active-track-color: rgba(0, 0, 0, .87);--mat-slider-disabled-handle-color: rgba(0, 0, 0, .87);--mat-slider-disabled-inactive-track-color: rgba(0, 0, 0, .87);--mat-slider-label-container-color: #424242;--mat-slider-label-label-text-color: white;--mat-slider-value-indicator-opacity: 1;--mat-slider-with-overlap-handle-outline-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-disabled-container-color: rgba(0, 0, 0, .87)}.mat-accent{--mat-slider-active-track-color: #40c4ff;--mat-slider-focus-handle-color: #40c4ff;--mat-slider-handle-color: #40c4ff;--mat-slider-hover-handle-color: #40c4ff;--mat-slider-focus-state-layer-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-slider-inactive-track-color: #40c4ff;--mat-slider-ripple-color: #40c4ff;--mat-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-inactive-container-color: #40c4ff}.mat-warn{--mat-slider-active-track-color: #f44336;--mat-slider-focus-handle-color: #f44336;--mat-slider-handle-color: #f44336;--mat-slider-hover-handle-color: #f44336;--mat-slider-focus-state-layer-color: color-mix(in srgb, #f44336 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #f44336 4%, transparent);--mat-slider-inactive-track-color: #f44336;--mat-slider-ripple-color: #f44336;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #f44336}html{--mat-slider-label-label-text-font: Roboto, sans-serif;--mat-slider-label-label-text-size: 14px;--mat-slider-label-label-text-line-height: 22px;--mat-slider-label-label-text-tracking: .0071428571em;--mat-slider-label-label-text-weight: 500}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400}html{--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px;--mat-list-list-item-container-shape: 0;--mat-list-list-item-leading-avatar-shape: 50%;--mat-list-list-item-container-color: transparent;--mat-list-list-item-selected-container-color: transparent;--mat-list-list-item-leading-avatar-color: transparent;--mat-list-list-item-leading-icon-size: 24px;--mat-list-list-item-leading-avatar-size: 40px;--mat-list-list-item-trailing-icon-size: 24px;--mat-list-list-item-disabled-state-layer-color: transparent;--mat-list-list-item-disabled-state-layer-opacity: 0;--mat-list-list-item-disabled-label-text-opacity: .38;--mat-list-list-item-disabled-leading-icon-opacity: .38;--mat-list-list-item-disabled-trailing-icon-opacity: .38}html{--mat-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mat-list-list-item-leading-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .54);--mat-list-list-item-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-disabled-leading-icon-color: rgba(0, 0, 0, .87);--mat-list-list-item-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-list-list-item-hover-state-layer-opacity: .04;--mat-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .54);--mat-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--mat-radio-label-text-color: rgba(0, 0, 0, .87);--mat-radio-ripple-color: rgba(0, 0, 0, .87);--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-accent{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-warn{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#1976d2}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px;--mat-list-list-item-one-line-container-height: 48px;--mat-list-list-item-two-line-container-height: 64px;--mat-list-list-item-three-line-container-height: 88px}.mdc-list-item__start,.mdc-list-item__end{--mat-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-list-list-item-label-text-font: Roboto, sans-serif;--mat-list-list-item-label-text-line-height: 24px;--mat-list-list-item-label-text-size: 16px;--mat-list-list-item-label-text-tracking: .03125em;--mat-list-list-item-label-text-weight: 400;--mat-list-list-item-supporting-text-font: Roboto, sans-serif;--mat-list-list-item-supporting-text-line-height: 20px;--mat-list-list-item-supporting-text-size: 14px;--mat-list-list-item-supporting-text-tracking: .0178571429em;--mat-list-list-item-supporting-text-weight: 400;--mat-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--mat-list-list-item-trailing-supporting-text-line-height: 20px;--mat-list-list-item-trailing-supporting-text-size: 12px;--mat-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mat-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-page-size-select-width: 84px;--mat-paginator-page-size-select-touch-target-height: 48px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html{--mat-paginator-container-text-font: Roboto, sans-serif;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}html{--mat-tab-container-height: 48px;--mat-tab-divider-color: transparent;--mat-tab-divider-height: 0;--mat-tab-active-indicator-height: 2px;--mat-tab-active-indicator-shape: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #1976d2;--mat-tab-active-ripple-color: #1976d2;--mat-tab-inactive-ripple-color: #1976d2;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #1976d2;--mat-tab-active-hover-label-text-color: #1976d2;--mat-tab-active-focus-indicator-color: #1976d2;--mat-tab-active-hover-indicator-color: #1976d2;--mat-tab-active-indicator-color: #1976d2}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #40c4ff;--mat-tab-active-ripple-color: #40c4ff;--mat-tab-inactive-ripple-color: #40c4ff;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #40c4ff;--mat-tab-active-hover-label-text-color: #40c4ff;--mat-tab-active-focus-indicator-color: #40c4ff;--mat-tab-active-hover-indicator-color: #40c4ff;--mat-tab-active-indicator-color: #40c4ff}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-label-text-color: #f44336;--mat-tab-active-ripple-color: #f44336;--mat-tab-inactive-ripple-color: #f44336;--mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--mat-tab-active-focus-label-text-color: #f44336;--mat-tab-active-hover-label-text-color: #f44336;--mat-tab-active-focus-indicator-color: #f44336;--mat-tab-active-hover-indicator-color: #f44336;--mat-tab-active-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-background-color: #1976d2;--mat-tab-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-background-color: #40c4ff;--mat-tab-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-background-color: #f44336;--mat-tab-foreground-color: white}.mat-mdc-tab-header{--mat-tab-container-height: 48px}.mat-mdc-tab-header{--mat-tab-label-text-font: Roboto, sans-serif;--mat-tab-label-text-size: 14px;--mat-tab-label-text-tracking: .0892857143em;--mat-tab-label-text-line-height: 36px;--mat-tab-label-text-weight: 500}html{--mat-checkbox-disabled-selected-checkmark-color: white;--mat-checkbox-selected-focus-state-layer-opacity: .12;--mat-checkbox-selected-hover-state-layer-opacity: .04;--mat-checkbox-selected-pressed-state-layer-opacity: .12;--mat-checkbox-unselected-focus-state-layer-opacity: .12;--mat-checkbox-unselected-hover-state-layer-opacity: .04;--mat-checkbox-unselected-pressed-state-layer-opacity: .12;--mat-checkbox-touch-target-size: 48px}html{--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}html{--mat-checkbox-touch-target-display: block;--mat-checkbox-state-layer-size: 40px}html{--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mat-button-filled-container-shape: 4px;--mat-button-filled-horizontal-padding: 16px;--mat-button-filled-icon-offset: -4px;--mat-button-filled-icon-spacing: 8px;--mat-button-filled-touch-target-size: 48px;--mat-button-outlined-container-shape: 4px;--mat-button-outlined-horizontal-padding: 15px;--mat-button-outlined-icon-offset: -4px;--mat-button-outlined-icon-spacing: 8px;--mat-button-outlined-keep-touch-target: false;--mat-button-outlined-outline-width: 1px;--mat-button-outlined-touch-target-size: 48px;--mat-button-protected-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-button-protected-container-shape: 4px;--mat-button-protected-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-horizontal-padding: 16px;--mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-icon-offset: -4px;--mat-button-protected-icon-spacing: 8px;--mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-button-protected-touch-target-size: 48px;--mat-button-text-container-shape: 4px;--mat-button-text-horizontal-padding: 8px;--mat-button-text-icon-offset: 0;--mat-button-text-icon-spacing: 8px;--mat-button-text-with-icon-horizontal-padding: 8px;--mat-button-text-touch-target-size: 48px;--mat-button-tonal-container-shape: 4px;--mat-button-tonal-horizontal-padding: 16px;--mat-button-tonal-icon-offset: -4px;--mat-button-tonal-icon-spacing: 8px;--mat-button-tonal-touch-target-size: 48px}html{--mat-button-filled-container-color: white;--mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-filled-focus-state-layer-opacity: .12;--mat-button-filled-hover-state-layer-opacity: .04;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-pressed-state-layer-opacity: .12;--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-outlined-focus-state-layer-opacity: .12;--mat-button-outlined-hover-state-layer-opacity: .04;--mat-button-outlined-label-text-color: rgba(0, 0, 0, .87);--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-pressed-state-layer-opacity: .12;--mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-outlined-state-layer-color: rgba(0, 0, 0, .87);--mat-button-protected-container-color: white;--mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-protected-focus-state-layer-opacity: .12;--mat-button-protected-hover-state-layer-opacity: .04;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-pressed-state-layer-opacity: .12;--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-text-focus-state-layer-opacity: .12;--mat-button-text-hover-state-layer-opacity: .04;--mat-button-text-label-text-color: rgba(0, 0, 0, .87);--mat-button-text-pressed-state-layer-opacity: .12;--mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-text-state-layer-color: rgba(0, 0, 0, .87);--mat-button-tonal-container-color: white;--mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-button-tonal-focus-state-layer-opacity: .12;--mat-button-tonal-hover-state-layer-opacity: .04;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-pressed-state-layer-opacity: .12;--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-button.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-primary,.mat-mdc-outlined-button.mat-primary,.mat-tonal-button.mat-primary{--mat-button-filled-container-color: #1976d2;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #1976d2;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-outlined-state-layer-color: #1976d2;--mat-button-protected-container-color: #1976d2;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #1976d2;--mat-button-text-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-text-state-layer-color: #1976d2;--mat-button-tonal-container-color: #1976d2;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.mat-mdc-button.mat-accent,.mat-mdc-unelevated-button.mat-accent,.mat-mdc-raised-button.mat-accent,.mat-mdc-outlined-button.mat-accent,.mat-tonal-button.mat-accent{--mat-button-filled-container-color: #40c4ff;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-label-text-color: #40c4ff;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-outlined-state-layer-color: #40c4ff;--mat-button-protected-container-color: #40c4ff;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-label-text-color: #40c4ff;--mat-button-text-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-text-state-layer-color: #40c4ff;--mat-button-tonal-container-color: #40c4ff;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-button.mat-warn,.mat-mdc-unelevated-button.mat-warn,.mat-mdc-raised-button.mat-warn,.mat-mdc-outlined-button.mat-warn,.mat-tonal-button.mat-warn{--mat-button-filled-container-color: #f44336;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #f44336;--mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-outlined-state-layer-color: #f44336;--mat-button-protected-container-color: #f44336;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #f44336;--mat-button-text-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-text-state-layer-color: #f44336;--mat-button-tonal-container-color: #f44336;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}html{--mat-button-filled-container-height: 36px;--mat-button-filled-touch-target-display: block;--mat-button-outlined-container-height: 36px;--mat-button-outlined-touch-target-display: block;--mat-button-protected-container-height: 36px;--mat-button-protected-touch-target-display: block;--mat-button-text-container-height: 36px;--mat-button-text-touch-target-display: block;--mat-button-tonal-container-height: 36px;--mat-button-tonal-touch-target-display: block}html{--mat-button-filled-label-text-font: Roboto, sans-serif;--mat-button-filled-label-text-size: 14px;--mat-button-filled-label-text-tracking: .0892857143em;--mat-button-filled-label-text-transform: none;--mat-button-filled-label-text-weight: 500;--mat-button-outlined-label-text-font: Roboto, sans-serif;--mat-button-outlined-label-text-size: 14px;--mat-button-outlined-label-text-tracking: .0892857143em;--mat-button-outlined-label-text-transform: none;--mat-button-outlined-label-text-weight: 500;--mat-button-protected-label-text-font: Roboto, sans-serif;--mat-button-protected-label-text-size: 14px;--mat-button-protected-label-text-tracking: .0892857143em;--mat-button-protected-label-text-transform: none;--mat-button-protected-label-text-weight: 500;--mat-button-text-label-text-font: Roboto, sans-serif;--mat-button-text-label-text-size: 14px;--mat-button-text-label-text-tracking: .0892857143em;--mat-button-text-label-text-transform: none;--mat-button-text-label-text-weight: 500;--mat-button-tonal-label-text-font: Roboto, sans-serif;--mat-button-tonal-label-text-size: 14px;--mat-button-tonal-label-text-tracking: .0892857143em;--mat-button-tonal-label-text-transform: none;--mat-button-tonal-label-text-weight: 500}html{--mat-icon-button-icon-size: 24px;--mat-icon-button-container-shape: 50%;--mat-icon-button-touch-target-size: 48px}html{--mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: .12;--mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-icon-button-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #1976d2;--mat-icon-button-state-layer-color: #1976d2;--mat-icon-button-ripple-color: color-mix(in srgb, #1976d2 12%, transparent)}.mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #40c4ff;--mat-icon-button-state-layer-color: #40c4ff;--mat-icon-button-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent)}.mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: color-mix(in srgb, #f44336 12%, transparent)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;--mat-icon-button-state-layer-size: 48px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:12px}html{--mat-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-container-shape: 50%;--mat-fab-touch-target-size: 48px;--mat-fab-extended-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-extended-container-height: 48px;--mat-fab-extended-container-shape: 24px;--mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-small-container-shape: 50%;--mat-fab-small-touch-target-size: 48px;--mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mat-fab-container-color: white;--mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-fab-focus-state-layer-opacity: .12;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-container-color: white;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, .54);--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #1976d2;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-fab-small-container-color: #1976d2;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #40c4ff;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-fab-small-container-color: #40c4ff;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}html{--mat-fab-small-touch-target-display: block;--mat-fab-touch-target-display: block}html{--mat-fab-extended-label-text-font: Roboto, sans-serif;--mat-fab-extended-label-text-size: 14px;--mat-fab-extended-label-text-tracking: .0892857143em;--mat-fab-extended-label-text-weight: 500}html{--mat-snack-bar-container-shape: 4px}html{--mat-snack-bar-container-color: #424242;--mat-snack-bar-supporting-text-color: white;--mat-snack-bar-button-color: #64b5f6}html{--mat-snack-bar-supporting-text-font: Roboto, sans-serif;--mat-snack-bar-supporting-text-line-height: 20px;--mat-snack-bar-supporting-text-size: 14px;--mat-snack-bar-supporting-text-weight: 400}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mat-table-header-headline-font: Roboto, sans-serif;--mat-table-header-headline-line-height: 22px;--mat-table-header-headline-size: 14px;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Roboto, sans-serif;--mat-table-row-item-label-text-line-height: 20px;--mat-table-row-item-label-text-size: 14px;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Roboto, sans-serif;--mat-table-footer-supporting-text-line-height: 20px;--mat-table-footer-supporting-text-size: 14px;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}html{--mat-progress-spinner-active-indicator-width: 4px;--mat-progress-spinner-size: 48px}html{--mat-progress-spinner-active-indicator-color: #1976d2}.mat-accent{--mat-progress-spinner-active-indicator-color: #40c4ff}.mat-warn{--mat-progress-spinner-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html{--mat-badge-background-color: #1976d2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-badge-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-badge-accent{--mat-badge-background-color: #40c4ff;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-badge-text-font: Roboto, sans-serif;--mat-badge-line-height: 22px;--mat-badge-text-size: 12px;--mat-badge-text-weight: 600;--mat-badge-small-size-text-size: 9px;--mat-badge-small-size-line-height: 16px;--mat-badge-large-size-text-size: 24px;--mat-badge-large-size-line-height: 28px}html{--mat-bottom-sheet-container-shape: 4px}html{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html{--mat-bottom-sheet-container-text-font: Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height: 20px;--mat-bottom-sheet-container-text-size: 14px;--mat-bottom-sheet-container-text-tracking: .0178571429em;--mat-bottom-sheet-container-text-weight: 400}html{--mat-button-toggle-focus-state-layer-opacity: .12;--mat-button-toggle-hover-state-layer-opacity: .04;--mat-button-toggle-legacy-focus-state-layer-opacity: 1;--mat-button-toggle-legacy-height: 36px;--mat-button-toggle-legacy-shape: 2px;--mat-button-toggle-shape: 4px}html{--mat-button-toggle-background-color: white;--mat-button-toggle-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-disabled-selected-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-disabled-state-background-color: white;--mat-button-toggle-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-divider-color: rgba(0, 0, 0, .12);--mat-button-toggle-legacy-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-disabled-state-background-color: white;--mat-button-toggle-legacy-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-legacy-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-selected-state-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-legacy-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-button-toggle-state-layer-color: rgba(0, 0, 0, .87);--mat-button-toggle-text-color: rgba(0, 0, 0, .87)}html{--mat-button-toggle-height: 48px}html{--mat-button-toggle-label-text-font: Roboto, sans-serif;--mat-button-toggle-label-text-line-height: 24px;--mat-button-toggle-label-text-size: 16px;--mat-button-toggle-label-text-tracking: .03125em;--mat-button-toggle-label-text-weight: 400;--mat-button-toggle-legacy-label-text-font: Roboto, sans-serif;--mat-button-toggle-legacy-label-text-line-height: 24px;--mat-button-toggle-legacy-label-text-size: 16px;--mat-button-toggle-legacy-label-text-tracking: .03125em;--mat-button-toggle-legacy-label-text-weight: 400}html{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #1976d2 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #1976d2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #1976d2 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #1976d2;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent,.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #40c4ff;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #40c4ff 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #40c4ff;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-warn,.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #f44336;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;--mat-icon-button-state-layer-size: 40px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:8px}html{--mat-datepicker-calendar-text-font: Roboto, sans-serif;--mat-datepicker-calendar-text-size: 13px;--mat-datepicker-calendar-body-label-text-size: 14px;--mat-datepicker-calendar-body-label-text-weight: 500;--mat-datepicker-calendar-period-button-text-size: 14px;--mat-datepicker-calendar-period-button-text-weight: 500;--mat-datepicker-calendar-header-text-size: 11px;--mat-datepicker-calendar-header-text-weight: 400}html{--mat-divider-width: 1px}html{--mat-divider-color: rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape: 4px;--mat-expansion-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-expansion-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-expansion-header-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-expansion-header-text-font: Roboto, sans-serif;--mat-expansion-header-text-size: 14px;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Roboto, sans-serif;--mat-expansion-container-text-line-height: 20px;--mat-expansion-container-text-size: 14px;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-grid-list-tile-header-primary-text-size: 14px;--mat-grid-list-tile-header-secondary-text-size: 12px;--mat-grid-list-tile-footer-primary-text-size: 14px;--mat-grid-list-tile-footer-secondary-text-size: 12px}html{--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #1976d2}.mat-icon.mat-accent{--mat-icon-color: #40c4ff}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html{--mat-stepper-header-focus-state-layer-shape: 0;--mat-stepper-header-hover-state-layer-shape: 0}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #1976d2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #1976d2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #1976d2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-stepper-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}.mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #40c4ff;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #40c4ff;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #40c4ff;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}.mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-stepper-container-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-size: 14px;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-weight: 400}html{--mat-sort-arrow-color: rgba(0, 0, 0, .87)}html{--mat-toolbar-container-background-color: white;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #1976d2;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #40c4ff;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html{--mat-toolbar-title-text-font: Roboto, sans-serif;--mat-toolbar-title-text-line-height: 32px;--mat-toolbar-title-text-size: 20px;--mat-toolbar-title-text-tracking: .0125em;--mat-toolbar-title-text-weight: 500}html{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height: 48px}html{--mat-tree-node-text-font: Roboto, sans-serif;--mat-tree-node-text-size: 14px;--mat-tree-node-text-weight: 400}html{--mat-timepicker-container-shape: 4px;--mat-timepicker-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-timepicker-container-background-color: white}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Light.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Regular.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Medium.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/uds/res/admin/fonts/Inter-SemiBold.woff2) format("woff2")}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/uds/res/admin/fonts/Inter-Bold.woff2) format("woff2")}:root{--bg-surface: #ffffff;--bg-accent: #f0f2f5;--text-primary: #121212;--text-secondary: #5f6368;--glass-bg: rgba(255, 255, 255, .4);--glass-hover-bg: rgba(255, 255, 255, .6);--glass-border: rgba(255, 255, 255, .4);--glass-shadow: rgba(0, 0, 0, .12);--glass-backdrop-filter: blur(14px);--warning-color: #d32f2f;--bg-button: linear-gradient(135deg, #1976d2, #1565c0);--glass-header-bg: linear-gradient(135deg, rgba(148, 163, 184, .2), rgba(71, 85, 105, .1));--navbar-height: 70px;--sidebar-full-width: 260px;--sidebar-mini-width: 80px;--sidebar-width: var(--sidebar-full-width)}html,body{margin:0;font-family:Inter,Roboto,Helvetica,Arial,sans-serif;font-size:14px;height:100%;color:var(--text-primary);transition:all .4s ease}html{background-color:var(--bg-surface)}body{background-color:transparent!important;background-image:radial-gradient(at 0% 0%,rgba(70,93,156,.15) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(75,82,102,.1) 0px,transparent 50%);background-attachment:fixed}uds-navbar{position:fixed;top:15px;left:15px;right:15px;z-index:1000}uds-navbar .mat-toolbar.uds-nav{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 8px 32px 0 var(--glass-shadow);height:var(--navbar-height)!important;padding:0 10px 0 5px!important;color:var(--text-primary)!important}uds-navbar .udsicon{filter:none!important;height:40px}.sidebar-handle{position:fixed;left:calc(var(--sidebar-full-width) + 15px);top:50%;transform:translateY(-50%);width:28px;height:70px;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:0 16px 16px 0;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1001;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:8px 0 32px var(--glass-shadow);color:var(--text-primary)}.sidebar-handle:before{content:"";position:absolute;left:0;top:-50vh;height:200vh;width:1px;background:linear-gradient(to bottom,transparent,var(--glass-border) 20%,var(--glass-border) 80%,transparent);opacity:.4;transition:opacity .4s ease}.sidebar-handle:hover{background:var(--glass-hover-bg);padding-left:6px}.sidebar-handle:hover:before{opacity:1}.sidebar-handle.sidebar-hidden{left:0}.sidebar-handle.sidebar-hidden:before{opacity:.2}.sidebar-handle i{font-size:22px}uds-sidebar{position:fixed;top:calc(var(--navbar-height) + 35px);left:15px;bottom:15px;width:var(--sidebar-full-width);z-index:999;transition:all .4s cubic-bezier(.4,0,.2,1)}uds-sidebar.sidebar-hidden{transform:translate(calc(-100% - 30px));opacity:0;pointer-events:none}uds-sidebar .sidebar{height:100%!important;width:100%!important;background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:24px;box-shadow:0 8px 32px 0 var(--glass-shadow);padding:20px 12px!important;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;color:var(--text-primary)!important;transition:all .4s ease}uds-sidebar .sidebar::-webkit-scrollbar{width:4px}uds-sidebar .sidebar::-webkit-scrollbar-thumb{background:var(--glass-border);border-radius:10px}uds-sidebar .sidebar-link{width:100%;text-align:left!important;justify-content:flex-start!important;border-radius:12px!important;margin-bottom:4px!important;padding:10px 16px!important;height:auto!important;color:var(--text-primary)!important;font-weight:500!important;transition:all .3s ease!important;display:flex;align-items:center}uds-sidebar .sidebar-link span,uds-sidebar .sidebar-link uds-translate{white-space:nowrap;margin-left:12px;font-size:.9rem;opacity:1}uds-sidebar .sidebar-link:hover{background:var(--glass-hover-bg)!important;transform:translate(5px)}uds-sidebar .sidebar-link.active{background:var(--bg-button)!important;color:#fff!important}uds-sidebar .sidebar-link.active .icon{filter:brightness(0) invert(1)}uds-sidebar .sidebar-link .icon{width:20px;height:20px;flex-shrink:0;transition:all .3s ease}uds-sidebar .sidebar-link .material-icons{margin-left:auto;font-size:18px;opacity:.7}uds-sidebar .submenu,uds-sidebar .submenu2{background:#0000000d;border-radius:12px;margin:4px 8px 8px;padding:4px 0}uds-sidebar .submenu .sidebar-link,uds-sidebar .submenu2 .sidebar-link{padding-left:45px!important;font-size:.85rem!important;opacity:.9}uds-sidebar .submenu .sidebar-link:hover,uds-sidebar .submenu2 .sidebar-link:hover{opacity:1}.page{margin-left:calc(var(--sidebar-full-width) + 30px);padding-top:calc(var(--navbar-height) + 35px);min-height:100vh;box-sizing:border-box;transition:all .4s cubic-bezier(.4,0,.2,1)}.page.sidebar-hidden{margin-left:15px}.content{padding:0 20px 40px}.app-loading .logo{width:113px;height:120px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AYht+malUqCnYQcchQnexiRRxLFYtgobQVWnUwufRHaNKQpLg4Cq4FB38Wqw4uzro6uAqC4A+Is4OToouU+F1SaBHjHcc9vPe9L3ffAUKjwlSzKwaommWkE3Exl18RA6/owxDNHkQlZurJzEIWnuPrHj6+30V4lnfdn2NAKZgM8InEMaYbFvE68cympXPeJw6xsqQQnxNRBqVdLNcHAITJcpe83h3b2ff/q1p9e8HsopywPnxfBcAAAGDUExURQAAABkMiRwRhiYRgR4WghwdhyUcgSohcycjeiMkhSkmdSopZy8sYBovjzEzVyUykTE3UyQ3kTM1dTM3ZDU9SDZBQCY/lS9DgD9GLT5DazxKMCNOpEFWG0BWLkVQZSVVoUFXKERYFkJYI0ZZEB1ZqztZQD5ZNUZZGD1ZOjxZRTJZbTtZUzVaXjxaS0dbGTdaZyZboSlapkVeFDBZoEldGyxdmDBdiy9cnCJgrDBekjRehjdeeylfpDNfgVFbXDxjdDllfEFkcUJnakdoYTlpkklqW1RtFzxrh01qVk9sT1VuQ1RuSVZvP1pxN2ByKl5zMGR0EmJ0JGN1HWZ2FUR4gmd3F2l5DWl5GWF9Gk18e259E01/eGJ+T2uBFnGGEWqIFmeFSFaIb1qMZ22KPnKOGXSRL3iTE2OUXnOXF3CaRGqbUHibMn2dEnujGn+mDXmqPISrFoGvGYGwNIazEIO2LIu5HJC8DIy/EJLFG5XHCJbIDZjKEZLMEZvMAJbQGZrTB53VAJ6wE90AAAABdFJOUwBA5thmAAALzklEQVR42tVb/VvbRhJ2gHD56EeSNtyFmGJjJyJAQMLYxjYuAQoJ3wad5JQUSBsfoRcgEOMg7erk/uk3uysZ21qBVoHcc/MreTyvZt6ZeWekRCJfYnXbts6ODg/3Xy8sjEeu2ywTmaZGKaBLNvGZyeHu7uvwRbAxkdHpbjHJOkq/BKnJjGrTsyu1/+qGydHh/u7m+OjUpQZ+JKkUcm1UWITExMuqHCeqVuLPLKJiGFqlmWeney/Hid+2p+Xa42/CwXbQPSxsU3MsjAmCAgghI2T3YVx9uTxS60RESkwBtMyDAORWNsWpj6bDaNqZUFyfcNPJxLjrZbwhob9U8iJdCkGRHyDZ+TxzAyh6u4o8y4lIAyxWF9vq/2jty8WG4B/kgDzJml09AIIEHRkkkwjX/9WbTcRZY8eHYj1Pvzx3nff3G21R0MjI8PPnzzpGxgYcNjZlpG45Ov+gmd3ABwuRBmAaO+9u3du3brV3d3VbLd7UmmwXC6TyRfGhp89jUXbwkCKhRMEA0HosXmJIWNfipLfiD387u6tDmadzLq6Oju6vu3plycVaslkKpvLF4fGRp4PxoAqTTBGvRAwutw7YwAAkOK99/7W1dHlsZvf98utRoDIucLIc8hI/BwDyUNr+G18YegbAE62pShE/5sunnXfT8l8y2bTheHBAYLdRdBCBNO2A7gnAGqV0agE/js6vf4h/VN8/yQj2XSmMBxrikFTNRiWbZiBDOHD8ejAj92c8IN/2ce/i0LODAEEyZsFhJEZEIBdfZ3o/YEH4DL/DEN6bNCtinMEqI7NoAZ9eOHhHc7z3+yRAxhwpPhswM3DhAPAqFumAIL9Z3d4/lNTQRDIipwfdhG4TfHEQCgwAAvVPvzcfaPVfWfX/f5g/kkaMs/dITbKAFSOkUAIELY//tTeBL7tlwObIhefNADQWiztGwIAoB0bHx7d6GwjoIApypCTBKcUSzvHBhZD8PZBR3MMfBuQDwJIgouAAijv1SwkgMCyar/daUJw+/GULGaFWIIBoCxQVf3wTAgBqp++utXRVAGC/pO5wXgzgC11+8gQAQBK7fTn2y6C2/2iAVDSTimyXqRuaYQGIkQ0bOvwp65OtwTEAYz1NQGIaGVNrVSRUAws+8OjThqDm/fFAWQLg1LTUNTKZUJELFiM71gpdAdtgs2Wf5JonokkCdsHZ0IxAHn49sGNLwTgdgK1XFbV7UNBIlq15TugC64CQETb0tTSthgRoR2czHd3dHT39F8BABKD0o4gEbH94afujhAkbAYQZSMZAGglTbAjImx9eBSqDLPFRhW4skgjtVjeP0MiU8Goo3896rgZAsDQ03YAEVXXVLV88FmwHeB3P3T1iDeikVhzI3JCoGtQjEdnIiEgWXj34PvH4q046gEQIQBU0pPF2kG99vbvPaIAck/YhiCNNu8nmg5EhJ4sRETSkH7LK4KCIDcoxb0AyEwAHkApYDEa1N7n+hWxcfw0wQUA/YiWglgMMD79Pd0vFIFMXyLu4QDtBppGp4JYO0Do0++5ZAhFJHmOFTQEVJ4IFuOnNymBJGSH/ACoOnREVa0cm0I0gG3h469ZJTCE9MiAD4CISolYqlRNsVLAgCAwDxqqmHcvoghgKpwJDUaGIBswBEpx0AXAORWBOAEEuiARTfM/6OMbOVA/SCmFvvgFAMqEiCWQJ1gMgYU/vkknlSAAhgacRsi92IFCJKWwK7YukWqEWsgFYaIyFI/7cJBamXXESlUQgYnRpz9+CYAAADgZiPIPlowGIE8EkwAy8fTPN7lkcpLYlO+Qzo5cQAG6LJY0gqAsTERSDJ/+eHnek6a4MDLPLwEQITwEIuoHhjACZJ2dOr/iLwifMQATvgCqB1uqSkrhSEwns2Ko/9X0U8Th5GQLA+TCIAUgTfi8T0HYPtsrkzSUdk5M0RgYyLaM1h9M0WRMNgThWIwB4FchMshrglpFU8loFl0ZqdWR2f6rjBFTDMBwNO7n3zQg6+AfG8c7KkGg7X8WR4Btw/T+9rkkHna0QNTrHuE6PdrC6nkAyxJ0AyCiaDGahmVjbnIdAM8SvAhY2HC8U6lZd5IQiogm8kcwBYo0wZFjn2nqkVvNtdM/326qtB1snyDxLCDb9EEwKRcHE953irsH0HipH/qC7vT9P3Mvlzd12hErVSxORNxeCi4CJVuggrBtEGjblYOaZZFXRnX06f2vvyiPlRerJAKEiLUQpYB9YpBMj9GtqA0A8K28d1QzLHz68d+knSsAdXadhAA04kEIGsCj8BFk2IGqHcAWrOflveMatPKGsEnP0SSIXw7cnshHwORQ2yAgAGA33Xn7Mi03lgyluOgg2KlaYUrB5CKIUQDtg4CoEE3Vl/qbNE1KBhpQIqoVwXXJSQLmMTE6wRuFVIxq+lK2ecFIZmfXdEpEdU/scuDGgFcL8QmeGuICgD16fpMhEFepvlkgalzyaAFouhwAIB4WaRI0SkRxBBYnBPEJCUaxBwDZyjR9NZ9qVdaKQwNV3amGAACl0I4gLiXIxw1xrhDUV1+0bRdKdmadhUAVvKU2RFo7AraU8JWovj7dvt4o6bkN3emIZyE6IrKQEeSzBbYO6GuzacVzzlikLZnt7WYYIgYDQFioby5mPACU4pLeIGKIGNg4YAhIDrTVIufSML1OEajhBiO3FPwA6JvTCueq5vSjkrYfqhtYZpAsUPmhb86leVetRfpXtbQVbjAGowFphrq6yLm5AQ1WzmkQAkHdCJIEtaxDz1mf4ayXijKzxmig7oYR6hgHCwGpA22ee+hIz244NNgLo4+C5YBczHV9KS+neHcdRxuo5YMQtWibgXJACkHfmOOFQJHzS0wihhLqIHiDV+IK9+iopKZXHSLuVE1RbQD7phEwB9COp33OXbPuUKiID0YcsBK3gAWby5kk/8btqBNyuhClQcBWQC72mrYx63PbyS872mD7SDQJ0A0Dz0RdWynIvCQoIFJZEsgpVfSSaQYbCJSH6qs0lwWKPLvGSoHIZMFjrhEwBJSHHmF0rk5UPdQFCwAEKkSmjHRtOcMvhGRmmSEAGiB0HRGAXlBmQ9EnCUWHBuSFP74OALQSYCZN80NAVlbN3VUEkiAAgK4ouraYkX1oML/JJKLQrhK0DNlYJpWwMc9PQirpdAOiDUwU/DO44ACckbA249ORlYKzsmoCRzxsW8EBqOT3dX294EcDZ1dRtcAtGQUch40kUBosFZN+NNhwJvNhwMmMA24nLQg0bZH//kEBdaK6kzlYCIIJEk8MNl7lfPqRSwM92EsFC6OIIACHiLN+/WjaWVlhLl4eA1QX9e+uitr6bJb7JsxdWdXS7uXnI2QJNIG2JOir/BikUo1dZe+ySkB2GP+No806vx0ocmGFffJw2c4M+3ko/+cxKPi8eWHagCYBXVkH8Exmoo9ecN+MJx2JWLrwgwOELSMSGkCZjmZ95UWaw8SUuymUyv7SIHz8XRpQHvCZCC15lVWC77bmdywVbQc+/UBJv2IqWfdZ2r/w+VsQgEJSvC3ZPeXuVDlf4hnYRkbki61MVwVAkPdSMZVly5Kq73NK0bKNK/Dv9ERQiUtFTiXk3Y7sKUVof4YZuRJzsrC5OuMRacncovNex6MMLBEFclkWtmgM9PXZdiK42kTVto9bNDKyw7cf364M43k+3/qtTErOrDgq/aAJAHQfy4hcpWkMgba59KIVgZJd1j0zifyPDRSJXDECes3X1dW5FpWkyMuNdbVRiZZlRq7coCEwLm4sTjdBUORFXXNWNeeLD0j/NfhvTAbalIpARsVphksuAKZPofquOP0eKgITVucyWfL0QIHp1RYA5D0VilyXaU5P0rWNlbminFSSCqgSrQkANP/rc88gbLGC1DdX5menZ+aWmDxnHLCs60p/MxHYGYlWxNqG655VQd0yrci1m+YsLTog0PRzAHtnwU6BV1OQDhvPTS0f2ghHvpIBGdsglOgr/sjXMyjIFgzlneOv6Z5RQXWqkpbAQS3y1U0lZKCmbVUi/xtzLnZq5P/a/gvm8NIms2W1xQAAAABJRU5ErkJggg==)}i.material-icons{vertical-align:middle!important}i.spaced{margin-right:.5rem}.dark-theme{--mat-app-background-color: #303030;--mat-app-text-color: white;--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-label-text-color: #1976d2;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme .mat-accent{--mat-option-selected-state-label-text-color: #40c4ff;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme .mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, white 12%, transparent)}.dark-theme{--mat-optgroup-label-text-color: white;--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #1976d2;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #1976d2;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #40c4ff;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #40c4ff;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #f44336;--mat-pseudo-checkbox-full-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(255, 255, 255, .7);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #303030;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #f44336;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, white 38%, transparent)}.dark-theme{--mat-card-elevated-container-color: #424242;--mat-card-elevated-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-card-outlined-container-color: #424242;--mat-card-outlined-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-outlined-outline-color: rgba(255, 255, 255, .12);--mat-card-subtitle-text-color: rgba(255, 255, 255, .7);--mat-card-filled-container-color: #424242;--mat-card-filled-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}.dark-theme .mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #1976d2;--mat-progress-bar-track-color: rgba(25, 118, 210, .25)}.dark-theme .mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #40c4ff;--mat-progress-bar-track-color: rgba(64, 196, 255, .25)}.dark-theme .mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #f44336;--mat-progress-bar-track-color: rgba(244, 67, 54, .25)}.dark-theme{--mat-tooltip-container-color: white;--mat-tooltip-supporting-text-color: rgba(0, 0, 0, .87);--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-filled-caret-color: #1976d2;--mat-form-field-filled-focus-active-indicator-color: #1976d2;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-outlined-caret-color: #1976d2;--mat-form-field-outlined-focus-outline-color: #1976d2;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #1976d2 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-state-layer-color: white;--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: rgba(0, 0, 0, .87);--mat-form-field-select-disabled-option-text-color: rgba(0, 0, 0, .38);--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(255, 255, 255, .7);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .12;--mat-form-field-filled-container-color: #4a4a4a;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, white 4%, transparent);--mat-form-field-filled-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-filled-hover-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-filled-input-text-color: white;--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(255, 255, 255, .7);--mat-form-field-filled-error-hover-label-text-color: #f44336;--mat-form-field-filled-error-focus-label-text-color: #f44336;--mat-form-field-filled-error-label-text-color: #f44336;--mat-form-field-filled-error-caret-color: #f44336;--mat-form-field-filled-active-indicator-color: rgba(255, 255, 255, .7);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, white 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: white;--mat-form-field-filled-error-active-indicator-color: #f44336;--mat-form-field-filled-error-focus-active-indicator-color: #f44336;--mat-form-field-filled-error-hover-active-indicator-color: #f44336;--mat-form-field-outlined-label-text-color: rgba(255, 255, 255, .7);--mat-form-field-outlined-hover-label-text-color: white;--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-outlined-input-text-color: white;--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, white 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(255, 255, 255, .7);--mat-form-field-outlined-error-caret-color: #f44336;--mat-form-field-outlined-error-focus-label-text-color: #f44336;--mat-form-field-outlined-error-label-text-color: #f44336;--mat-form-field-outlined-error-hover-label-text-color: #f44336;--mat-form-field-outlined-outline-color: rgba(255, 255, 255, .38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, white 12%, transparent);--mat-form-field-outlined-hover-outline-color: white;--mat-form-field-outlined-error-focus-outline-color: #f44336;--mat-form-field-outlined-error-hover-outline-color: #f44336;--mat-form-field-outlined-error-outline-color: #f44336}.dark-theme .mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-filled-caret-color: #40c4ff;--mat-form-field-filled-focus-active-indicator-color: #40c4ff;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent);--mat-form-field-outlined-caret-color: #40c4ff;--mat-form-field-outlined-focus-outline-color: #40c4ff;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #40c4ff 87%, transparent)}.dark-theme .mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-filled-caret-color: #f44336;--mat-form-field-filled-focus-active-indicator-color: #f44336;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent);--mat-form-field-outlined-caret-color: #f44336;--mat-form-field-outlined-focus-outline-color: #f44336;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent)}.dark-theme{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #1976d2;--mat-select-invalid-arrow-color: #f44336}.dark-theme .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #40c4ff;--mat-select-invalid-arrow-color: #f44336}.dark-theme .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: white;--mat-select-disabled-trigger-text-color: color-mix(in srgb, white 38%, transparent);--mat-select-placeholder-text-color: rgba(255, 255, 255, .7);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .7);--mat-select-disabled-arrow-color: color-mix(in srgb, white 38%, transparent);--mat-select-focused-arrow-color: #f44336;--mat-select-invalid-arrow-color: #f44336}.dark-theme{--mat-autocomplete-background-color: #424242;--mat-dialog-container-color: #424242;--mat-dialog-subhead-color: white;--mat-dialog-supporting-text-color: rgba(255, 255, 255, .7)}.dark-theme .mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, white 12%, transparent);--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #1976d2;--mat-chip-elevated-disabled-container-color: #1976d2;--mat-chip-elevated-selected-container-color: #1976d2;--mat-chip-flat-disabled-selected-container-color: #1976d2;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mat-chip-elevated-container-color: #40c4ff;--mat-chip-elevated-disabled-container-color: #40c4ff;--mat-chip-elevated-selected-container-color: #40c4ff;--mat-chip-flat-disabled-selected-container-color: #40c4ff;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.dark-theme .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #f44336;--mat-chip-elevated-disabled-container-color: #f44336;--mat-chip-elevated-selected-container-color: #f44336;--mat-chip-flat-disabled-selected-container-color: #f44336;--mat-chip-focus-state-layer-color: white;--mat-chip-focus-state-layer-opacity: .12;--mat-chip-hover-state-layer-color: white;--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: .12;--mat-chip-selected-focus-state-layer-opacity: .12;--mat-chip-selected-hover-state-layer-color: .04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}.dark-theme{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #1976d2;--mat-slide-toggle-selected-handle-color: #1976d2;--mat-slide-toggle-selected-hover-state-layer-color: #1976d2;--mat-slide-toggle-selected-pressed-state-layer-color: #1976d2;--mat-slide-toggle-selected-focus-handle-color: #1976d2;--mat-slide-toggle-selected-hover-handle-color: #1976d2;--mat-slide-toggle-selected-pressed-handle-color: #1976d2;--mat-slide-toggle-selected-focus-track-color: #1e88e5;--mat-slide-toggle-selected-hover-track-color: #1e88e5;--mat-slide-toggle-selected-pressed-track-color: #1e88e5;--mat-slide-toggle-selected-track-color: #1e88e5;--mat-slide-toggle-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-slide-toggle-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-disabled-selected-handle-color: white;--mat-slide-toggle-disabled-selected-track-color: white;--mat-slide-toggle-disabled-unselected-handle-color: white;--mat-slide-toggle-disabled-unselected-icon-color: #4a4a4a;--mat-slide-toggle-disabled-unselected-track-color: white;--mat-slide-toggle-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-handle-surface-color: #424242;--mat-slide-toggle-label-text-color: white;--mat-slide-toggle-unselected-hover-handle-color: white;--mat-slide-toggle-unselected-focus-handle-color: white;--mat-slide-toggle-unselected-focus-state-layer-color: white;--mat-slide-toggle-unselected-focus-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-icon-color: #4a4a4a;--mat-slide-toggle-unselected-handle-color: rgba(255, 255, 255, .7);--mat-slide-toggle-unselected-hover-state-layer-color: white;--mat-slide-toggle-unselected-hover-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-pressed-handle-color: white;--mat-slide-toggle-unselected-pressed-track-color: rgba(255, 255, 255, .12);--mat-slide-toggle-unselected-pressed-state-layer-color: white;--mat-slide-toggle-unselected-track-color: rgba(255, 255, 255, .12)}.dark-theme .mat-mdc-slide-toggle.mat-accent{--mat-slide-toggle-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-icon-color: rgba(0, 0, 0, .87);--mat-slide-toggle-selected-focus-state-layer-color: #40c4ff;--mat-slide-toggle-selected-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-state-layer-color: #40c4ff;--mat-slide-toggle-selected-pressed-state-layer-color: #40c4ff;--mat-slide-toggle-selected-focus-handle-color: #40c4ff;--mat-slide-toggle-selected-hover-handle-color: #40c4ff;--mat-slide-toggle-selected-pressed-handle-color: #40c4ff;--mat-slide-toggle-selected-focus-track-color: #039be5;--mat-slide-toggle-selected-hover-track-color: #039be5;--mat-slide-toggle-selected-pressed-track-color: #039be5;--mat-slide-toggle-selected-track-color: #039be5}.dark-theme .mat-mdc-slide-toggle.mat-warn{--mat-slide-toggle-selected-icon-color: white;--mat-slide-toggle-disabled-selected-icon-color: white;--mat-slide-toggle-selected-focus-state-layer-color: #f44336;--mat-slide-toggle-selected-handle-color: #f44336;--mat-slide-toggle-selected-hover-state-layer-color: #f44336;--mat-slide-toggle-selected-pressed-state-layer-color: #f44336;--mat-slide-toggle-selected-focus-handle-color: #f44336;--mat-slide-toggle-selected-hover-handle-color: #f44336;--mat-slide-toggle-selected-pressed-handle-color: #f44336;--mat-slide-toggle-selected-focus-track-color: #e53935;--mat-slide-toggle-selected-hover-track-color: #e53935;--mat-slide-toggle-selected-pressed-track-color: #e53935;--mat-slide-toggle-selected-track-color: #e53935}.dark-theme .mat-mdc-radio-button.mat-primary{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-radio-button.mat-accent{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-radio-button.mat-warn{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme{--mat-slider-active-track-color: #1976d2;--mat-slider-focus-handle-color: #1976d2;--mat-slider-handle-color: #1976d2;--mat-slider-hover-handle-color: #1976d2;--mat-slider-focus-state-layer-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-slider-inactive-track-color: #1976d2;--mat-slider-ripple-color: #1976d2;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #1976d2;--mat-slider-disabled-active-track-color: white;--mat-slider-disabled-handle-color: white;--mat-slider-disabled-inactive-track-color: white;--mat-slider-label-container-color: white;--mat-slider-label-label-text-color: rgba(0, 0, 0, .87);--mat-slider-value-indicator-opacity: 1;--mat-slider-with-overlap-handle-outline-color: white;--mat-slider-with-tick-marks-disabled-container-color: white}.dark-theme .mat-accent{--mat-slider-active-track-color: #40c4ff;--mat-slider-focus-handle-color: #40c4ff;--mat-slider-handle-color: #40c4ff;--mat-slider-hover-handle-color: #40c4ff;--mat-slider-focus-state-layer-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-slider-inactive-track-color: #40c4ff;--mat-slider-ripple-color: #40c4ff;--mat-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-inactive-container-color: #40c4ff}.dark-theme .mat-warn{--mat-slider-active-track-color: #f44336;--mat-slider-focus-handle-color: #f44336;--mat-slider-handle-color: #f44336;--mat-slider-hover-handle-color: #f44336;--mat-slider-focus-state-layer-color: color-mix(in srgb, #f44336 12%, transparent);--mat-slider-hover-state-layer-color: color-mix(in srgb, #f44336 4%, transparent);--mat-slider-inactive-track-color: #f44336;--mat-slider-ripple-color: #f44336;--mat-slider-with-tick-marks-active-container-color: white;--mat-slider-with-tick-marks-inactive-container-color: #f44336}.dark-theme{--mat-menu-item-label-text-color: white;--mat-menu-item-icon-color: white;--mat-menu-item-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-menu-container-color: #424242;--mat-menu-divider-color: rgba(255, 255, 255, .12);--mat-list-list-item-label-text-color: white;--mat-list-list-item-supporting-text-color: rgba(255, 255, 255, .7);--mat-list-list-item-leading-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-trailing-supporting-text-color: rgba(255, 255, 255, .7);--mat-list-list-item-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-selected-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-disabled-label-text-color: white;--mat-list-list-item-disabled-leading-icon-color: white;--mat-list-list-item-disabled-trailing-icon-color: white;--mat-list-list-item-hover-label-text-color: white;--mat-list-list-item-hover-leading-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-hover-state-layer-color: white;--mat-list-list-item-hover-state-layer-opacity: .04;--mat-list-list-item-hover-trailing-icon-color: rgba(255, 255, 255, .7);--mat-list-list-item-focus-label-text-color: white;--mat-list-list-item-focus-state-layer-color: white;--mat-list-list-item-focus-state-layer-opacity: .12}.dark-theme .mdc-list-item__start,.dark-theme .mdc-list-item__end{--mat-radio-checked-ripple-color: #1976d2;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #1976d2;--mat-radio-selected-hover-icon-color: #1976d2;--mat-radio-selected-icon-color: #1976d2;--mat-radio-selected-pressed-icon-color: #1976d2;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-accent .mdc-list-item__start,.dark-theme .mat-accent .mdc-list-item__end{--mat-radio-checked-ripple-color: #40c4ff;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #40c4ff;--mat-radio-selected-hover-icon-color: #40c4ff;--mat-radio-selected-icon-color: #40c4ff;--mat-radio-selected-pressed-icon-color: #40c4ff;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-warn .mdc-list-item__start,.dark-theme .mat-warn .mdc-list-item__end{--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-radio-disabled-selected-icon-color: white;--mat-radio-disabled-unselected-icon-color: white;--mat-radio-label-text-color: white;--mat-radio-ripple-color: white;--mat-radio-selected-focus-icon-color: #f44336;--mat-radio-selected-hover-icon-color: #f44336;--mat-radio-selected-icon-color: #f44336;--mat-radio-selected-pressed-icon-color: #f44336;--mat-radio-unselected-focus-icon-color: white;--mat-radio-unselected-hover-icon-color: white;--mat-radio-unselected-icon-color: rgba(255, 255, 255, .7);--mat-radio-unselected-pressed-icon-color: white}.dark-theme .mat-mdc-list-option{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-option.mat-accent{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-option.mat-warn{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.dark-theme .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#1976d2}.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.dark-theme .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}.dark-theme{--mat-paginator-container-text-color: white;--mat-paginator-container-background-color: #424242;--mat-paginator-enabled-icon-color: rgba(255, 255, 255, .7);--mat-paginator-disabled-icon-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-mdc-tab-group,.dark-theme .mat-mdc-tab-nav-bar{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #1976d2;--mat-tab-active-ripple-color: #1976d2;--mat-tab-inactive-ripple-color: #1976d2;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #1976d2;--mat-tab-active-hover-label-text-color: #1976d2;--mat-tab-active-focus-indicator-color: #1976d2;--mat-tab-active-hover-indicator-color: #1976d2;--mat-tab-active-indicator-color: #1976d2}.dark-theme .mat-mdc-tab-group.mat-accent,.dark-theme .mat-mdc-tab-nav-bar.mat-accent{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #40c4ff;--mat-tab-active-ripple-color: #40c4ff;--mat-tab-inactive-ripple-color: #40c4ff;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #40c4ff;--mat-tab-active-hover-label-text-color: #40c4ff;--mat-tab-active-focus-indicator-color: #40c4ff;--mat-tab-active-hover-indicator-color: #40c4ff;--mat-tab-active-indicator-color: #40c4ff}.dark-theme .mat-mdc-tab-group.mat-warn,.dark-theme .mat-mdc-tab-nav-bar.mat-warn{--mat-tab-disabled-ripple-color: rgba(255, 255, 255, .7);--mat-tab-pagination-icon-color: white;--mat-tab-inactive-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-label-text-color: #f44336;--mat-tab-active-ripple-color: #f44336;--mat-tab-inactive-ripple-color: #f44336;--mat-tab-inactive-focus-label-text-color: rgba(255, 255, 255, .7);--mat-tab-inactive-hover-label-text-color: rgba(255, 255, 255, .7);--mat-tab-active-focus-label-text-color: #f44336;--mat-tab-active-hover-label-text-color: #f44336;--mat-tab-active-focus-indicator-color: #f44336;--mat-tab-active-hover-indicator-color: #f44336;--mat-tab-active-indicator-color: #f44336}.dark-theme .mat-mdc-tab-group.mat-background-primary,.dark-theme .mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-background-color: #1976d2;--mat-tab-foreground-color: white}.dark-theme .mat-mdc-tab-group.mat-background-accent,.dark-theme .mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-background-color: #40c4ff;--mat-tab-foreground-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-tab-group.mat-background-warn,.dark-theme .mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-background-color: #f44336;--mat-tab-foreground-color: white}.dark-theme{--mat-checkbox-disabled-label-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-label-text-color: white;--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: rgba(0, 0, 0, .87);--mat-checkbox-selected-focus-icon-color: #40c4ff;--mat-checkbox-selected-hover-icon-color: #40c4ff;--mat-checkbox-selected-icon-color: #40c4ff;--mat-checkbox-selected-pressed-icon-color: #40c4ff;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #40c4ff;--mat-checkbox-selected-hover-state-layer-color: #40c4ff;--mat-checkbox-selected-pressed-state-layer-color: #40c4ff;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #1976d2;--mat-checkbox-selected-hover-icon-color: #1976d2;--mat-checkbox-selected-icon-color: #1976d2;--mat-checkbox-selected-pressed-icon-color: #1976d2;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #1976d2;--mat-checkbox-selected-hover-state-layer-color: #1976d2;--mat-checkbox-selected-pressed-state-layer-color: #1976d2;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme .mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, white 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #f44336;--mat-checkbox-selected-hover-icon-color: #f44336;--mat-checkbox-selected-icon-color: #f44336;--mat-checkbox-selected-pressed-icon-color: #f44336;--mat-checkbox-unselected-focus-icon-color: white;--mat-checkbox-unselected-hover-icon-color: white;--mat-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-checkbox-selected-focus-state-layer-color: #f44336;--mat-checkbox-selected-hover-state-layer-color: #f44336;--mat-checkbox-selected-pressed-state-layer-color: #f44336;--mat-checkbox-unselected-focus-state-layer-color: white;--mat-checkbox-unselected-hover-state-layer-color: white;--mat-checkbox-unselected-pressed-state-layer-color: white}.dark-theme{--mat-button-filled-container-color: #424242;--mat-button-filled-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-filled-focus-state-layer-opacity: .12;--mat-button-filled-hover-state-layer-opacity: .04;--mat-button-filled-label-text-color: white;--mat-button-filled-pressed-state-layer-opacity: .12;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-outlined-focus-state-layer-opacity: .12;--mat-button-outlined-hover-state-layer-opacity: .04;--mat-button-outlined-label-text-color: white;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-pressed-state-layer-opacity: .12;--mat-button-outlined-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-outlined-state-layer-color: white;--mat-button-protected-container-color: #424242;--mat-button-protected-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-protected-focus-state-layer-opacity: .12;--mat-button-protected-hover-state-layer-opacity: .04;--mat-button-protected-label-text-color: white;--mat-button-protected-pressed-state-layer-opacity: .12;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-text-focus-state-layer-opacity: .12;--mat-button-text-hover-state-layer-opacity: .04;--mat-button-text-label-text-color: white;--mat-button-text-pressed-state-layer-opacity: .12;--mat-button-text-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-text-state-layer-color: white;--mat-button-tonal-container-color: #424242;--mat-button-tonal-disabled-container-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-button-tonal-focus-state-layer-opacity: .12;--mat-button-tonal-hover-state-layer-opacity: .04;--mat-button-tonal-label-text-color: white;--mat-button-tonal-pressed-state-layer-opacity: .12;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme .mat-mdc-button.mat-primary,.dark-theme .mat-mdc-unelevated-button.mat-primary,.dark-theme .mat-mdc-raised-button.mat-primary,.dark-theme .mat-mdc-outlined-button.mat-primary,.dark-theme .mat-tonal-button.mat-primary{--mat-button-filled-container-color: #1976d2;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #1976d2;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-outlined-state-layer-color: #1976d2;--mat-button-protected-container-color: #1976d2;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #1976d2;--mat-button-text-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-button-text-state-layer-color: #1976d2;--mat-button-tonal-container-color: #1976d2;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme .mat-mdc-button.mat-accent,.dark-theme .mat-mdc-unelevated-button.mat-accent,.dark-theme .mat-mdc-raised-button.mat-accent,.dark-theme .mat-mdc-outlined-button.mat-accent,.dark-theme .mat-tonal-button.mat-accent{--mat-button-filled-container-color: #40c4ff;--mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--mat-button-outlined-label-text-color: #40c4ff;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-outlined-state-layer-color: #40c4ff;--mat-button-protected-container-color: #40c4ff;--mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--mat-button-text-label-text-color: #40c4ff;--mat-button-text-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-button-text-state-layer-color: #40c4ff;--mat-button-tonal-container-color: #40c4ff;--mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-button.mat-warn,.dark-theme .mat-mdc-unelevated-button.mat-warn,.dark-theme .mat-mdc-raised-button.mat-warn,.dark-theme .mat-mdc-outlined-button.mat-warn,.dark-theme .mat-tonal-button.mat-warn{--mat-button-filled-container-color: #f44336;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #f44336;--mat-button-outlined-outline-color: rgba(255, 255, 255, .12);--mat-button-outlined-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-outlined-state-layer-color: #f44336;--mat-button-protected-container-color: #f44336;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #f44336;--mat-button-text-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-button-text-state-layer-color: #f44336;--mat-button-tonal-container-color: #f44336;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}.dark-theme{--mat-icon-button-disabled-icon-color: color-mix(in srgb, white 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: .12;--mat-icon-button-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-icon-button-state-layer-color: white}.dark-theme .mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #1976d2;--mat-icon-button-state-layer-color: #1976d2;--mat-icon-button-ripple-color: color-mix(in srgb, #1976d2 12%, transparent)}.dark-theme .mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #40c4ff;--mat-icon-button-state-layer-color: #40c4ff;--mat-icon-button-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent)}.dark-theme .mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: color-mix(in srgb, #f44336 12%, transparent)}.dark-theme{--mat-fab-container-color: #424242;--mat-fab-disabled-state-container-color: color-mix(in srgb, white 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, white 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-fab-focus-state-layer-opacity: .12;--mat-fab-foreground-color: white;--mat-fab-hover-state-layer-opacity: .04;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-container-color: #424242;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, white 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(255, 255, 255, .7);--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-foreground-color: white;--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme .mat-mdc-fab.mat-primary,.dark-theme .mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #1976d2;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-fab-small-container-color: #1976d2;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme .mat-mdc-fab.mat-accent,.dark-theme .mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #40c4ff;--mat-fab-foreground-color: rgba(0, 0, 0, .87);--mat-fab-ripple-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-fab-small-container-color: #40c4ff;--mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.dark-theme .mat-mdc-fab.mat-warn,.dark-theme .mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--mat-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}.dark-theme{--mat-snack-bar-container-color: white;--mat-snack-bar-supporting-text-color: rgba(0, 0, 0, .87);--mat-snack-bar-button-color: #1e88e5;--mat-table-background-color: #424242;--mat-table-header-headline-color: white;--mat-table-row-item-label-text-color: white;--mat-table-row-item-outline-color: rgba(255, 255, 255, .12);--mat-progress-spinner-active-indicator-color: #1976d2}.dark-theme .mat-accent{--mat-progress-spinner-active-indicator-color: #40c4ff}.dark-theme .mat-warn{--mat-progress-spinner-active-indicator-color: #f44336}.dark-theme{--mat-badge-background-color: #1976d2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-badge-disabled-state-text-color: color-mix(in srgb, white 38%, transparent)}.dark-theme .mat-badge-accent{--mat-badge-background-color: #40c4ff;--mat-badge-text-color: rgba(0, 0, 0, .87)}.dark-theme .mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}.dark-theme{--mat-bottom-sheet-container-text-color: white;--mat-bottom-sheet-container-background-color: #424242;--mat-button-toggle-background-color: #424242;--mat-button-toggle-disabled-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-disabled-selected-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-disabled-state-background-color: #424242;--mat-button-toggle-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-divider-color: rgba(255, 255, 255, .12);--mat-button-toggle-legacy-disabled-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-disabled-state-background-color: #424242;--mat-button-toggle-legacy-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-button-toggle-legacy-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-selected-state-text-color: white;--mat-button-toggle-legacy-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-legacy-text-color: white;--mat-button-toggle-selected-state-background-color: color-mix(in srgb, white 12%, transparent);--mat-button-toggle-selected-state-text-color: white;--mat-button-toggle-state-layer-color: white;--mat-button-toggle-text-color: white;--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #1976d2 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #1976d2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #1976d2 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #1976d2 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #1976d2 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #1976d2;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme .mat-datepicker-content.mat-accent,.dark-theme .mat-datepicker-toggle-active.mat-accent{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #40c4ff;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #40c4ff 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #40c4ff 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #40c4ff 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #40c4ff;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme .mat-datepicker-content.mat-warn,.dark-theme .mat-datepicker-toggle-active.mat-warn{--mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #40c4ff 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 4%, transparent);--mat-datepicker-toggle-active-state-icon-color: #f44336;--mat-datepicker-toggle-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-navigation-button-icon-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .7);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white}.dark-theme{--mat-divider-color: rgba(255, 255, 255, .12);--mat-expansion-container-background-color: #424242;--mat-expansion-container-text-color: white;--mat-expansion-actions-divider-color: rgba(255, 255, 255, .12);--mat-expansion-header-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-expansion-header-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-expansion-header-disabled-state-text-color: color-mix(in srgb, white 38%, transparent);--mat-expansion-header-text-color: white;--mat-expansion-header-description-color: rgba(255, 255, 255, .7);--mat-expansion-header-indicator-color: rgba(255, 255, 255, .7);--mat-icon-color: inherit}.dark-theme .mat-icon.mat-primary{--mat-icon-color: #1976d2}.dark-theme .mat-icon.mat-accent{--mat-icon-color: #40c4ff}.dark-theme .mat-icon.mat-warn{--mat-icon-color: #f44336}.dark-theme{--mat-sidenav-container-divider-color: rgba(255, 255, 255, .12);--mat-sidenav-container-background-color: #424242;--mat-sidenav-container-text-color: white;--mat-sidenav-content-background-color: #303030;--mat-sidenav-content-text-color: white;--mat-sidenav-scrim-color: rgba(255, 255, 255, .6);--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #1976d2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #1976d2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #1976d2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: #424242;--mat-stepper-line-color: rgba(255, 255, 255, .12);--mat-stepper-header-hover-state-layer-color: color-mix(in srgb, white 4%, transparent);--mat-stepper-header-focus-state-layer-color: color-mix(in srgb, white 12%, transparent);--mat-stepper-header-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-optional-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-selected-state-label-text-color: white;--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(255, 255, 255, .7);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}.dark-theme .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #40c4ff;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #40c4ff;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #40c4ff;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}.dark-theme .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}.dark-theme{--mat-sort-arrow-color: white;--mat-toolbar-container-background-color: #424242;--mat-toolbar-container-text-color: white}.dark-theme .mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #1976d2;--mat-toolbar-container-text-color: white}.dark-theme .mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #40c4ff;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.dark-theme .mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}.dark-theme{--mat-tree-container-background-color: #424242;--mat-tree-node-text-color: white;--mat-timepicker-container-background-color: #424242;--bg-surface: #0f111a;--bg-accent: #1e2235;--text-primary: #ffffff;--text-secondary: #9aa0a6;--glass-bg: rgba(16, 25, 45, .4);--glass-hover-bg: rgba(16, 25, 45, .6);--glass-border: rgba(255, 255, 255, .15);--glass-shadow: rgba(0, 0, 0, .45);--bg-button: linear-gradient(135deg, #3f51b5, #1a237e);--glass-header-bg: linear-gradient(135deg, rgba(100, 116, 139, .3), rgba(30, 41, 59, .2))}.dark-theme body{background-image:radial-gradient(at 0% 0%,rgba(67,56,202,.25) 0px,transparent 50%),radial-gradient(at 100% 100%,rgba(88,28,135,.2) 0px,transparent 50%),radial-gradient(at 50% 50%,var(--bg-accent) 0px,var(--bg-surface) 100%)}.dark-theme uds-sidebar .sidebar-link .icon{filter:brightness(0) invert(1)}.card,.detail{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:20px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;margin:60px 0 1.5rem!important;overflow:visible!important;color:var(--text-primary)!important;transition:transform .3s ease,box-shadow .3s ease;position:relative}.card:hover,.detail:hover{transform:translateY(-2px);box-shadow:0 12px 48px 0 var(--glass-shadow)!important}.detail{background:transparent!important;border:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;margin-top:50px!important}.card-header,.detail>.title{background:linear-gradient(135deg,#ffffff1f,#ffffff0d)!important;backdrop-filter:blur(40px) saturate(210%)!important;-webkit-backdrop-filter:blur(40px) saturate(210%)!important;color:var(--text-primary)!important;position:absolute;top:-42px;left:30px;width:auto;min-width:280px;max-width:calc(100% - 60px);z-index:10;border:1px solid rgba(255,255,255,.3)!important;border-top:1.5px solid rgba(255,255,255,.5)!important;border-left:1.5px solid rgba(255,255,255,.5)!important;box-shadow:0 10px 40px #00000040,inset 0 0 0 1px #ffffff1a!important;padding:8px 18px!important;border-radius:12px!important;font-weight:600;letter-spacing:.5px;text-shadow:0 1px 3px rgba(0,0,0,.2);display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:48px}.card-header.title,.detail>.title.title{flex-direction:row!important;align-items:center!important;gap:12px}.card-header img,.detail>.title img{height:24px!important;width:auto!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));vertical-align:middle}.card-header .material-icons,.detail>.title .material-icons{font-size:24px!important;vertical-align:middle!important;opacity:.9}.card-header .card-title,.detail>.title .card-title{display:flex;align-items:center;gap:10px;font-size:1.1rem;white-space:nowrap}.card-header .card-title img,.detail>.title .card-title img{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.card-header .card-subtitle,.detail>.title .card-subtitle{display:block;width:100%;font-size:.8rem;opacity:.8;margin-top:-2px;padding-left:34px}.nav-header>.card-header,.detail>.title{display:none!important}.card,.detail{margin-top:20px!important}.mat-mdc-menu-panel{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;border-radius:16px!important;padding:8px!important}.mat-mdc-menu-item{color:var(--text-primary)!important;border-radius:10px!important;transition:all .2s ease!important}.mat-mdc-menu-item:hover{background-color:var(--glass-hover-bg)!important}.mat-mdc-select-panel{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;border-radius:16px!important}.mat-mdc-option{color:var(--text-primary)!important}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--glass-hover-bg)!important}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:24px!important;box-shadow:0 24px 64px 0 var(--glass-shadow)!important}.mat-mdc-tooltip .mdc-tooltip__surface{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;color:var(--text-primary)!important;border-radius:8px!important}.mat-mdc-tab-group{border-radius:20px!important;background:transparent!important;overflow:visible!important}.mat-mdc-tab-group .mat-mdc-tab-header{background:var(--glass-header-bg)!important;backdrop-filter:blur(25px) saturate(210%)!important;-webkit-backdrop-filter:blur(25px) saturate(210%)!important;border-bottom:1px solid var(--glass-border)!important;border-radius:20px 20px 0 0!important;padding:10px 16px 0!important;margin-bottom:8px!important}.mat-mdc-tab-group .mat-mdc-tab .mdc-tab__text-label{color:var(--text-primary)!important;opacity:.7!important;font-weight:500!important;transition:all .3s ease!important}.mat-mdc-tab-group .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--text-primary)!important;opacity:1!important;font-weight:600!important}.mat-mdc-tab-group .mat-mdc-tab:hover:not(.mdc-tab--active) .mdc-tab__text-label{opacity:1!important}.detail .card .mat-mdc-tab-header{padding-top:28px!important}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-dialog-actions .mat-mdc-button,.mat-actions .mat-mdc-button{background:var(--bg-button)!important;color:#fff!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:0 4px 15px var(--glass-shadow)!important;transition:all .3s cubic-bezier(.4,0,.2,1)!important;font-weight:500!important;letter-spacing:.3px!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.mat-mdc-raised-button:hover,.mat-mdc-unelevated-button:hover,.mat-mdc-dialog-actions .mat-mdc-button:hover,.mat-actions .mat-mdc-button:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 8px 30px var(--glass-shadow)!important;filter:brightness(1.1)}.mat-mdc-raised-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-dialog-actions .mat-mdc-button .mdc-button__label,.mat-actions .mat-mdc-button .mdc-button__label{text-shadow:0 1px 2px rgba(0,0,0,.1)}.mat-mdc-dialog-actions{padding:16px 24px!important;gap:12px!important}.mat-mdc-slide-toggle.mat-primary{--mdc-switch-selected-focus-state-layer-color: #2196f3;--mdc-switch-selected-handle-color: #2196f3;--mdc-switch-selected-hover-state-layer-color: rgba(33, 150, 243, .1);--mdc-switch-selected-pressed-state-layer-color: rgba(33, 150, 243, .2);--mdc-switch-selected-track-color: rgba(33, 150, 243, .4)}.mat-mdc-slide-toggle.mat-primary .mdc-switch__track{background:#0000001a!important;border:1px solid var(--glass-border)!important}.mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__handle{background:#2196f3!important;box-shadow:0 0 10px #2196f380}.mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__track{background:#2196f333!important}.dark-theme .mat-mdc-slide-toggle.mat-primary{--mdc-switch-selected-handle-color: #64b5f6;--mdc-switch-selected-track-color: rgba(100, 181, 246, .4)}.dark-theme .mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__handle{background:#64b5f6!important;box-shadow:0 0 15px #64b5f699}.dark-theme .mat-mdc-slide-toggle.mat-primary.mat-mdc-slide-toggle-checked .mdc-switch__track{background:#64b5f640!important}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-selected-focus-icon-color: #2196f3;--mdc-checkbox-selected-hover-icon-color: #2196f3;--mdc-checkbox-selected-icon-color: #2196f3;--mdc-checkbox-selected-pressed-icon-color: #2196f3}.dark-theme{scrollbar-color:rgba(255,255,255,.22) transparent;scrollbar-width:thin}.dark-theme *::-webkit-scrollbar{width:10px;height:10px}.dark-theme *::-webkit-scrollbar-track{background:transparent}.dark-theme *::-webkit-scrollbar-thumb{background:#fff3;border-radius:8px;border:2px solid transparent;background-clip:content-box}.dark-theme *::-webkit-scrollbar-thumb:hover{background:#ffffff59;background-clip:content-box} diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index fab00e054..779b1f3b8 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -102,7 +102,7 @@ - + @@ -114,6 +114,6 @@ - + From 01b431a3b654ad028f60a1cd32d0141bd41b4875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janier=20Rodr=C3=ADguez?= Date: Tue, 21 Jul 2026 13:19:42 +0200 Subject: [PATCH 05/14] perf(rest): cache pool user-service and restrained-pool overviews Extend the short-lived overview cache (previously only for authenticator user/group lists) to the remaining slow dashboard drill-down tables: - AssignedUserService.get_items and CachedService.get_items (per-pool, distinct key prefixes so the shared parent pool does not collide) - ServicesPools.get_items (restrained pools), keyed on sumarize + odata Move cached_overview into its own _overview_cache module so user_services can share it without the users_groups <-> user_services import cycle; users_groups re-exports it for existing callers. Keys include parent.uuid and the odata filter; TTL is SHORT_CACHE_TIMEOUT (60s) and flush=1 bypasses, matching the existing behavior. --- src/uds/REST/methods/_overview_cache.py | 67 +++++++++++++++++++++++++ src/uds/REST/methods/services_pools.py | 15 +++++- src/uds/REST/methods/user_services.py | 19 ++++++- src/uds/REST/methods/users_groups.py | 29 ++--------- 4 files changed, 102 insertions(+), 28 deletions(-) create mode 100644 src/uds/REST/methods/_overview_cache.py diff --git a/src/uds/REST/methods/_overview_cache.py b/src/uds/REST/methods/_overview_cache.py new file mode 100644 index 000000000..3ffbea962 --- /dev/null +++ b/src/uds/REST/methods/_overview_cache.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# +# Copyright (c) 2014-2019 Virtual Cable S.L. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +""" +Shared short-lived cache for REST overview (get_items) results. + +The dashboard drill-down hammers several overview endpoints (it asks every +authenticator / every service pool at once) yet the underlying data changes +seldom, so we memoize the assembled list for a short while. flush=1 bypasses it. + +Lives in its own module so both users_groups and user_services can use it +without an import cycle (users_groups imports user_services). +""" +import collections.abc +import typing + +from uds.core import consts +from uds.core.util.cache import Cache + +# Authenticator/pool overviews are hammered by the dashboard drill-down yet change +# seldom, so we memoize the assembled list for a short while. flush=1 bypasses it. +_overview_cache: typing.Final = Cache('UsersGroupsOverview') + +_T = typing.TypeVar('_T') + + +class _SupportsQueryParams(typing.Protocol): + def query_params(self) -> collections.abc.Mapping[str, typing.Any]: ... + + +def cached_overview( + handler: _SupportsQueryParams, + cache_key: str, + builder: collections.abc.Callable[[], list[_T]], +) -> list[_T]: + flush = str(handler.query_params().get('flush', '')).lower() in ('1', 'true', 'yes') + if not flush: + cached = _overview_cache.get(cache_key, consts.cache.CACHE_NOT_FOUND) + if cached is not consts.cache.CACHE_NOT_FOUND: + return typing.cast('list[_T]', cached) + data = builder() + _overview_cache.put(cache_key, data, consts.cache.SHORT_CACHE_TIMEOUT) + return data diff --git a/src/uds/REST/methods/services_pools.py b/src/uds/REST/methods/services_pools.py index 5376e0039..4bb3f5b4b 100644 --- a/src/uds/REST/methods/services_pools.py +++ b/src/uds/REST/methods/services_pools.py @@ -50,6 +50,7 @@ from uds.models import Account, Image, OSManager, Service, ServicePool, ServicePoolGroup, User from uds.REST.model import ModelHandler +from ._overview_cache import cached_overview from .op_calendars import AccessCalendars, ActionsCalendars from .services import Services, ServiceInfo from .user_services import AssignedUserService, CachedService, Changelog, Groups, Publications, Transports @@ -238,10 +239,22 @@ def apply_sort(self, qs: 'QuerySet[typing.Any]') -> 'list[typing.Any] | QuerySet def get_items( self, *args: typing.Any, **kwargs: typing.Any ) -> collections.abc.Generator[ServicePoolItem, None, None]: + sumarize = kwargs.get('sumarize', True) + # Heavy annotated query hammered by the dashboard (restrained pools) yet + # changes seldom: memoize briefly. Key on sumarize (overview vs full list) + # and the odata filter, since both change the result. flush=1 bypasses it. + items = cached_overview( + self, + f'service_pools_overview:{sumarize}:{self._odata}', + lambda: list(self._build_items(sumarize)), + ) + return (item for item in items) + + def _build_items(self, sumarize: bool) -> collections.abc.Generator[ServicePoolItem, None, None]: # Optimized query, due that there is a lot of info needed for theee d = sql_now() - datetime.timedelta(seconds=GlobalConfig.RESTRAINT_TIME.as_int()) return super().get_items( - sumarize=kwargs.get('sumarize', True), + sumarize=sumarize, query=( ServicePool.objects.prefetch_related( 'service', diff --git a/src/uds/REST/methods/user_services.py b/src/uds/REST/methods/user_services.py index 1574e6ed0..c6db5b177 100644 --- a/src/uds/REST/methods/user_services.py +++ b/src/uds/REST/methods/user_services.py @@ -49,6 +49,8 @@ from uds.core.util.model import process_uuid from uds.REST.model import DetailHandler +from ._overview_cache import cached_overview + logger = logging.getLogger(__name__) @@ -224,7 +226,13 @@ def get_qs() -> QuerySet[models.UserService]: @typing.override def get_items(self, parent: 'Model') -> types.rest.ItemsResult['UserServiceItem']: - return self.do_get_items(parent, for_cached=False) + parent = ensure.is_instance(parent, models.ServicePool) + # Per-pool key; odata filter is part of the result so it must be part of the key. + return cached_overview( + self, + f'assigned_userservices:{parent.uuid}:{self._odata}', + lambda: list(self.do_get_items(parent, for_cached=False)), + ) @typing.override def get_item( @@ -360,7 +368,14 @@ def get_item_position(self, parent: Model, item_uuid: str) -> int: @typing.override def get_items(self, parent: 'Model') -> types.rest.ItemsResult['UserServiceItem']: - return self.do_get_items(parent, for_cached=True) + parent = ensure.is_instance(parent, models.ServicePool) + # Distinct prefix from assigned services: CachedService subclasses + # AssignedUserService and shares the same pool, so keys must not collide. + return cached_overview( + self, + f'cached_userservices:{parent.uuid}:{self._odata}', + lambda: list(self.do_get_items(parent, for_cached=True)), + ) @typing.override def get_item( diff --git a/src/uds/REST/methods/users_groups.py b/src/uds/REST/methods/users_groups.py index 88aba8315..1a4a98146 100644 --- a/src/uds/REST/methods/users_groups.py +++ b/src/uds/REST/methods/users_groups.py @@ -62,31 +62,10 @@ # Details of /auth -# Authenticator overviews are hammered by the dashboard drill-down (it asks every -# authenticator at once for users/groups) yet change seldom, so we memoize the -# assembled list for a short while. flush=1 bypasses it. -_overview_cache: typing.Final = Cache('UsersGroupsOverview') - -_T = typing.TypeVar('_T') - - -class _SupportsQueryParams(typing.Protocol): - def query_params(self) -> collections.abc.Mapping[str, typing.Any]: ... - - -def cached_overview( - handler: _SupportsQueryParams, - cache_key: str, - builder: collections.abc.Callable[[], list[_T]], -) -> list[_T]: - flush = str(handler.query_params().get('flush', '')).lower() in ('1', 'true', 'yes') - if not flush: - cached = _overview_cache.get(cache_key, consts.cache.CACHE_NOT_FOUND) - if cached is not consts.cache.CACHE_NOT_FOUND: - return typing.cast('list[_T]', cached) - data = builder() - _overview_cache.put(cache_key, data, consts.cache.SHORT_CACHE_TIMEOUT) - return data +# cached_overview lives in its own module so user_services can share it without an +# import cycle (this module imports user_services). Re-exported here for callers +# (e.g. authenticators) that already import it from users_groups. +from ._overview_cache import cached_overview # noqa: F401 (re-exported) def get_groups_from_metagroup(groups: collections.abc.Iterable[Group]) -> collections.abc.Iterable[Group]: From 1c403d23fb5ebf59eae8b5b31e3223f88f8e63cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janier=20Rodr=C3=ADguez?= Date: Tue, 21 Jul 2026 16:57:32 +0200 Subject: [PATCH 06/14] chore(admin): rebuild static bundle after master merge --- src/uds/static/admin/main.js | 120 ++++++++++---------- src/uds/static/admin/translations-fakejs.js | 6 - src/uds/templates/uds/admin/index.html | 2 +- 3 files changed, 61 insertions(+), 67 deletions(-) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index d5a0f6cb8..e41e388b1 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,8 +1,8 @@ -var y4=Object.defineProperty,C4=Object.defineProperties;var x4=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var VT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var LT=(t,i,e)=>i in t?y4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,$=(t,i)=>{for(var e in i||={})VT.call(i,e)&<(t,e,i[e]);if(Vf)for(var e of Vf(i))BT.call(i,e)&<(t,e,i[e]);return t},Ye=(t,i)=>C4(t,x4(i));var uC=(t,i)=>{var e={};for(var n in t)VT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Vf)for(var n of Vf(t))i.indexOf(n)<0&&BT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var _o=null,Bf=!1,mC=1,w4=null,xi=Symbol("SIGNAL");function ut(t){let i=_o;return _o=t,i}function jf(){return _o}var ul={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ml(t){if(Bf)throw new Error("");if(_o===null)return;_o.consumerOnSignalRead(t);let i=_o.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=_o.recomputing;if(n&&(e=i!==void 0?i.nextProducer:_o.producers,e!==void 0&&e.producer===t)){_o.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===_o&&(!n||S4(o,_o)))return;let r=Xd(_o),a={producer:t,consumer:_o,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};_o.producersTail=a,i!==void 0?i.nextProducer=a:_o.producers=a,r&&HT(t,a)}function jT(){mC++}function gc(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Bf;Bf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||D4(n)}}finally{Bf=i}}function hC(){return _o?.consumerAllowSignalWrites!==!1}function D4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Ss(t){return t&&zT(t),ut(t)}function zT(t){t.producersTail=void 0,t.recomputing=!0}function pl(t,i){ut(i),t&&UT(t)}function UT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function hl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function HT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)HT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){w4?.(t)}function S4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(E4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),ml(e),e.value===Za)throw e.error;return e.value};return n[xi]=e,Zm(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Za=Symbol("ERRORED"),E4=Ye($({},ul),{value:hc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Za&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function M4(){throw new Error}var WT=M4;function $T(t){WT(t)}function gC(t){WT=t}var T4=null;function _C(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>GT(e);return n[xi]=e,Zm(e),[n,a=>_c(e,a),a=>zf(e,a)]}function GT(t){return ml(t),t.value}function _c(t,i){hC()||$T(t),t.equal(t.value,i)||(t.value=i,I4(t))}function zf(t,i){hC()||$T(t),_c(t,i(t.value))}var ep=Ye($({},ul),{equal:Xm,value:void 0,kind:"signal"});function I4(t){t.version++,jT(),pC(t),T4?.(t)}var vC=Ye($({},ul),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Ss(t);try{t.cleanup(),t.fn()}finally{pl(t,i)}}function _t(t){return typeof t=="function"}function fl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Uf=fl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var b4=Object.defineProperty,y4=Object.defineProperties;var C4=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var LT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var FT=(t,i,e)=>i in t?b4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})LT.call(i,e)&&FT(t,e,i[e]);if(Vf)for(var e of Vf(i))VT.call(i,e)&&FT(t,e,i[e]);return t},Ye=(t,i)=>y4(t,C4(i));var uC=(t,i)=>{var e={};for(var n in t)LT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Vf)for(var n of Vf(t))i.indexOf(n)<0&&VT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var vo=null,Bf=!1,mC=1,x4=null,xi=Symbol("SIGNAL");function ut(t){let i=vo;return vo=t,i}function jf(){return vo}var ml={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pl(t){if(Bf)throw new Error("");if(vo===null)return;vo.consumerOnSignalRead(t);let i=vo.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=vo.recomputing;if(n&&(e=i!==void 0?i.nextProducer:vo.producers,e!==void 0&&e.producer===t)){vo.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===vo&&(!n||D4(o,vo)))return;let r=Xd(vo),a={producer:t,consumer:vo,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};vo.producersTail=a,i!==void 0?i.nextProducer=a:vo.producers=a,r&&UT(t,a)}function BT(){mC++}function gc(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Bf;Bf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||w4(n)}}finally{Bf=i}}function hC(){return vo?.consumerAllowSignalWrites!==!1}function w4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Es(t){return t&&jT(t),ut(t)}function jT(t){t.producersTail=void 0,t.recomputing=!0}function hl(t,i){ut(i),t&&zT(t)}function zT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function fl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function UT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)UT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){x4?.(t)}function D4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(S4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),pl(e),e.value===Xa)throw e.error;return e.value};return n[xi]=e,Zm(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Xa=Symbol("ERRORED"),S4=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Xa&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function E4(){throw new Error}var HT=E4;function WT(t){HT(t)}function gC(t){HT=t}var M4=null;function _C(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>$T(e);return n[xi]=e,Zm(e),[n,a=>_c(e,a),a=>zf(e,a)]}function $T(t){return pl(t),t.value}function _c(t,i){hC()||WT(t),t.equal(t.value,i)||(t.value=i,T4(t))}function zf(t,i){hC()||WT(t),_c(t,i(t.value))}var ep=Ye(G({},ml),{equal:Xm,value:void 0,kind:"signal"});function T4(t){t.version++,BT(),pC(t),M4?.(t)}var vC=Ye(G({},ml),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Es(t);try{t.cleanup(),t.fn()}finally{hl(t,i)}}function _t(t){return typeof t=="function"}function gl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Uf=gl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{qT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)qT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function qT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var YT=CC("C",void 0,void 0);function QT(t){return CC("E",void 0,t)}function KT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function ZT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=R4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(KT(i),this):this._next(i)}error(i){this.isStopped?wC(QT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(YT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},k4=Function.prototype.bind;function xC(t,i){return k4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ua.useDeprecatedSynchronousErrorHandling?ZT(t):Wf(t)}function A4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Jd.setTimeout(()=>e(t,i))}var R4={closed:!0,next:bc,error:A4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ur(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?ur:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=P4(e)?e:new ma(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=XT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=XT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function XT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function O4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function P4(t){return t&&t instanceof Cc||O4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function JT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return JT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var eI=fl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new eI}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Vr=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;atI(i)&&t()),i},clearImmediate(t){tI(t)}};var{setImmediate:F4,clearImmediate:L4}=nI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||F4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||L4)(t)},delegate:void 0};var Yf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var _l=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends _l{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var pa=new _l(gl),iI=pa;var Zf=class extends gl{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends _l{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Xa(t){return eg(AC(t))?t.pop():void 0}function oI(t,i){return typeof AC(t)=="number"?t.pop():i}function aI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function rI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function sI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function lI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof rI=="function"?rI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function V4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=V4();function sg(t){return _t(t?.[ag])}function lg(t){return sI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return B4(t);if(ou(t))return j4(t);if(ng(t))return z4(t);if(og(t))return cI(t);if(sg(t))return U4(t);if(cg(t))return H4(t)}throw rg(t)}function B4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function U4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function cI(t){return new dt(i=>{W4(t,i).catch(e=>i.error(e))})}function H4(t){return cI(lg(t))}function W4(t,i){var e,n,o,r;return aI(this,void 0,void 0,function*(){try{for(e=lI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function vo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>vo(n,t,()=>n.next(o),i),()=>vo(n,t,()=>n.complete(),i),o=>vo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return gn(t).pipe(ug(i),dg(i))}function mI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function pI(t,i){return new dt(e=>{let n;return vo(e,i,()=>{n=t[ag](),vo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{vo(e,i,()=>{let n=t[Symbol.asyncIterator]();vo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hI(t,i){return mg(lg(t),i)}function fI(t,i){if(t!=null){if(ig(t))return dI(t,i);if(ou(t))return mI(t,i);if(ng(t))return uI(t,i);if(og(t))return mg(t,i);if(sg(t))return pI(t,i);if(cg(t))return hI(t,i)}throw rg(t)}function Hn(t,i){return i?fI(t,i):gn(t)}function Me(...t){let i=Xa(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Es=fl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Es)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var $4=fl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=G4,scheduler:r=i??pa,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=vo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function G4(t){throw new $4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:q4}=Array;function Y4(t,i){return q4(i)?t(...i):t(i)}function ru(t){return et(i=>Y4(t,i))}var{isArray:Q4}=Array,{getPrototypeOf:K4,prototype:Z4,keys:X4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Q4(i))return{args:i,keys:null};if(J4(i)){let e=X4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function J4(t){return t&&typeof t=="object"&&K4(t)===Z4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function bo(...t){let i=Xa(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(ez(n,i,o?a=>gg(o,a):ur));return e?r.pipe(ru(e)):r}function ez(t,i,e=ur){return n=>{gI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function gI(t,i,e){t?vo(e,t,i):i()}function _I(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>_I(n,o,t,e)))}function vl(t=1/0){return wi(ur,t)}function vI(){return vl(1)}function Ja(...t){return vI()(Hn(t,Xa(t)))}function mr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var tz=["addListener","removeListener"],nz=["addEventListener","removeEventListener"],iz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=az(t)?nz.map(a=>s=>t[a](i,s,e)):oz(t)?tz.map(bI(t,i)):rz(t)?iz.map(bI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function bI(t,i){return e=>n=>t[e](i,n)}function oz(t){return _t(t.addListener)&&_t(t.removeListener)}function rz(t){return _t(t.on)&&_t(t.off)}function az(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ms(t=0,i,e=iI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=pa){return t<0&&(t=0),Ms(t,t,i)}function rn(...t){let i=Xa(t),e=oI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):vl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function yI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=pa){return yI(()=>Ms(t,i))}function Io(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,Io(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function bl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Ts(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function CI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function xI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function wI(t){return et(()=>t)}function OC(t,i){return i?e=>Ja(i.pipe(bn(1),xI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),wI(e)))}function sp(t,i=pa){let e=Ms(t,i);return OC(()=>e)}function _g(t,i=ur){return t=t??sz,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function sz(t,i){return t===i}function DI(t=lz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function lz(){return new Es}function yl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Is(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):ur,bn(1),e?CI(i):DI(()=>new Es))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Vr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Xa(t);return kt((e,n)=>{(i?Ja(t,e,i):Ja(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):ur}var FC;function Cg(){return FC}function es(t){let i=FC;return FC=t,i}var SI=Symbol("NotFound");function su(t){return t===SI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(cz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),ml(n),n.value===Za)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function EI(t,i){gc(t),_c(t,i),Kd(t)}function MI(t,i){if(gc(t),t.value===Za)throw t.error;zf(t,i),Kd(t)}var cz=Ye($({},ul),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Ss(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Za,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Za&&t.equal(i,n)}catch(r){n=Za,t.error=r}finally{pl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function TI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function dz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${dz(t)}${i?": "+i:""}`}var Co=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function OI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var uz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(uz)&&t.__forward_ref__===Wn}function G(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return mz(t,kg)}function ZC(t){return gp(t)!==null}function mz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function pz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=G({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),II=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ts(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var PI=Rn({ngErrorCode:Rn}),hz=Rn({ngErrorMessage:Rn}),fz=Rn({ngTokenPath:Rn});function ix(t,i){return NI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function NI(t,i,e){let n=new ie(i,t);return n[PI]=i,n[hz]=t,e&&(n[fz]=e),n}function gz(t){return t[PI]}var jC;function FI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var _z={},Mc=_z,vz="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function bz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=yz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(FI()||bz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function yz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function BI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,jI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return xz(t,i,1)}function xz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&UI(o,r),e}function UI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ts(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&UI(u,i)}if(!s){let u=Cl(o)||(()=>new o);i({provide:o,useFactory:u,deps:yo},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:As,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var wz=Rn({provide:String,useValue:Rn});function HI(t){return t!==null&&typeof t=="object"&&wz in t}function Dz(t){return!!(t&&t.useExisting)}function Sz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function WI(t){return!!t.useClass}var yp=new L(""),xg={},kI={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,yo,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=es(this),n=ko(void 0),o;try{return i()}finally{es(e),ko(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(II))return i[II](this);let o=Tc(n),r,a=es(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=kz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=gz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),es(a)}}resolveInjectorInitializers(){let i=ut(null),e=es(this),n=ko(void 0),o;try{let r=this.get(As,yo,{self:!0});for(let a of r)a()}finally{es(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Mz(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===kI)throw ix("");return e.value===xg&&(e.value=kI,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Iz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:Cl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Ez(t);throw new ie(-204,!1)}function Ez(t){if(t.length>0)throw new ie(-204,!1);let e=pz(t);return e!==null?()=>e.factory(t):()=>new t}function Mz(t){if(HI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return Cl(o)||HC(o)}else if(HI(t))n=()=>Bi(t.useValue);else if(Sz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(Dz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Tz(t))n=()=>new o(...UC(t.deps));else return Cl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Tz(t){return!!t.deps}function Iz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function kz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=es(e),r=ko(void 0);try{return i()}finally{es(o),ko(r)}}function ux(){return FI()!==void 0||Cg()!=null}var va=0,mt=1,Ot=2,ji=3,Br=4,Ro=5,Rc=6,uu=7,Di=8,Rs=9,ba=10,Vn=11,mu=12,mx=13,Oc=14,Oo=15,Sl=16,Pc=17,ns=18,Os=19,px=20,ks=21,Lg=22,xl=23,pr=24,Nc=25,El=26,si=27,$I=1,hx=6,Ml=7,Cp=8,Fc=9,vi=10;function Ps(t){return Array.isArray(t)&&typeof t[$I]=="object"}function ya(t){return Array.isArray(t)&&t[$I]===!0}function fx(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",GI="math";function jr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return jr(i[t])}function zr(t,i){return jr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Ur(t,i){let e=i[t];return Ps(e)?e:e[va]}function qI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function YI(t){return ya(t[ji])}function hr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function QI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[pr]?.dirty)}function zg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=wl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=wl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[ks]===null&&(t[ks]=[]),t[ks].push(i)}function KI(t,i){if(t[ks]===null)return;let e=t[ks].indexOf(i);e!==-1&&t[ks].splice(e,1)}function wl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function ZI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ht={lFrame:lk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function XI(){return Ht.lFrame.elementDepthCount}function JI(){Ht.lFrame.elementDepthCount++}function Dx(){Ht.lFrame.elementDepthCount--}function Ug(){return Ht.bindingsEnabled}function Sx(){return Ht.skipHydrationRootTNode!==null}function Ex(t){return Ht.skipHydrationRootTNode===t}function Mx(){Ht.skipHydrationRootTNode=null}function lt(){return Ht.lFrame.lView}function $n(){return Ht.lFrame.tView}function I(t){return Ht.lFrame.contextLView=t,t[Di]}function k(t){return Ht.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ht.lFrame.currentTNode}function ek(){let t=Ht.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ht.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ht.lFrame.isParent}function kx(){Ht.lFrame.isParent=!1}function tk(){return Ht.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ht.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ht.lFrame.bindingIndex}function nk(t){return Ht.lFrame.bindingIndex=t}function os(){return Ht.lFrame.bindingIndex++}function wp(t){let i=Ht.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ik(){return Ht.lFrame.inI18n}function ok(t,i){let e=Ht.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function rk(){return Ht.lFrame.currentDirectiveIndex}function Hg(t){Ht.lFrame.currentDirectiveIndex=t}function ak(t){let i=Ht.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ht.lFrame.currentQueryIndex}function Dp(t){Ht.lFrame.currentQueryIndex=t}function Az(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Az(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ht.lFrame=sk();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=sk(),e=t[mt];Ht.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function sk(){let t=Ht.lFrame,i=t===null?null:t.child;return i===null?lk(t):i}function lk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function ck(){let t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=ck;function Gg(){let t=ck();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dk(t){return(Ht.lFrame.contextLView=QI(t,Ht.lFrame.contextLView))[Di]}function xa(){return Ht.lFrame.selectedIndex}function Tl(t){Ht.lFrame.selectedIndex=t}function _u(){let t=Ht.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ht.lFrame.currentNamespace=gx}function wa(){Rz()}function Rz(){Ht.lFrame.currentNamespace=null}function Nx(){return Ht.lFrame.currentNamespace}var uk=!0;function qg(){return uk}function Sp(t){uk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||yo,zI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=G({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Oz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>KI(e,i)}};function Oz(){return new Sg(lt())}var Lx=!1,mk=new L(""),rs=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(mk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(rs,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Pz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Lz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Nz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Nz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Lz(t){let i=()=>{Fz(t)},e=Pz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Vz(l))return n.invokeTask(r,a,s,l);try{return AI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),RI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return AI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Bz(l)&&i(),RI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function AI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Vz(t){return hk(t,"__ignore_ng_zone__")}function Bz(t){return hk(t,"__scheduler_tick__")}function hk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),fk={provide:As,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=jz}return t})();function jz(){return new vu(lt(),ki())}var ha=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(rs);scheduler=p(ha);errorHandler=p(Zo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Ns(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Hz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Wz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var gk=Ye($({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),zz=Ye($({},gk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Uz=Ye($({},gk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(hl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[xl]?.delete(this)}});function Hz(t,i,e){let n=Object.create(Uz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=_k(n,e),t[xl]??=new Set,t[xl].add(n),n.consumerMarkedDirty(n),n}function Wz(t,i,e){let n=Object.create(zz);return n.fn=_k(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function _k(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Jk(t){let i=Co.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zz(t){return typeof t=="function"}function eA(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>tA;return t.ngInherit=!0,t})();function tA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jz),Xz}function Xz(){let t=iA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Jz(t,i,e,n,o){let r=this.declaredInputs[n],a=iA(t)||eU(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===_a),eA(t,i,o,e)}var nA="__ngSimpleChanges__";function iA(t){return t[nA]||null}function eU(t,i){return t[nA]=i}var vk=[];var Un=function(t,i=null,e){for(let n=0;n=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,bk(s,r)):bk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function iU(t){return(t.flags&8)!==0}function oU(t){return(t.flags&16)!==0}function rU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=sU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var lU=256,lA=lU-1,cA=5,cU=0,as={};function dU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=cU++);let o=n&lA,r=1<>cA)]|=r}function u_(t,i){let e=dA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(sA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=fA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){dU(t,i,e)}function uU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&tU(e,a[e],i)}finally{g!==null&&ko(g),d_(l),s.resolving=!1,Px()}}return r}function pU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&lA:hU:i}function Ck(t,i,e){let n=1<>cA)]&n)}function xk(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return pA(this._tNode,this._lView,i,Tc(n),e)}};function hU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:Cl(t)}function fU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=hA(r,a,e,n|2,as);if(s!==as)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,as,n&-5);if(h!==as)return h}l=fA(a),a=a[Oc]}r=l}return o}function fA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Lp(t){return uU(ki(),t)}function gU(){return Tu(ki(),lt())}function Tu(t,i){return new se(zr(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=gU}return t})();function gA(t){return t instanceof se?t.nativeElement:t}function _U(){return this._results[Symbol.iterator]()}var fr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=VI(i);(this._changesDetected=!LI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=_U};function _A(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),vA=new Map,vU=0;function bU(){return vU++}function yU(t){vA.set(t[Os],t)}function ew(t){vA.delete(t[Os])}var wk="__ngContext__";function Du(t,i){Ps(i)?(t[wk]=i[Os],yU(i)):t[wk]=i}function bA(t){return CA(t[mu])}function yA(t){return CA(t[Br])}function CA(t){for(;t!==null&&!ya(t);)t=t[Br];return t}var tw;function Vw(t){tw=t}function xA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Al=new L("",{factory:()=>CU}),CU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Rl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var wA="r";var DA="di";var Bw=new L(""),SA=!1,EA=new L("",{factory:()=>SA});var S_=new L("");var Dk=new WeakMap;function xU(t,i){if(t==null||typeof t!="object")return;let e=Dk.get(t);e||(e=new WeakSet,Dk.set(t,e)),e.add(i)}var wU=(t,i,e,n)=>{};function DU(t,i,e,n){wU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var SU=()=>null;function MA(t,i,e=!1){return SU(t,i,e)}function TA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return EU()?.createHTML(t)||t}var Xg;function IA(){if(Xg===void 0&&(Xg=null,Co.trustedTypes))try{Xg=Co.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Sk(t){return IA()?.createHTML(t)||t}function Ek(t){return IA()?.createScriptURL(t)||t}var Fs=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Fs{getTypeName(){return"HTML"}},ow=class extends Fs{getTypeName(){return"Style"}},rw=class extends Fs{getTypeName(){return"Script"}},aw=class extends Fs{getTypeName(){return"URL"}},sw=class extends Fs{getTypeName(){return"ResourceURL"}};function gr(t){return t instanceof Fs?t.changingThisBreaksApplicationSecurity:t}function ls(t,i){let e=kA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function kA(t){return t instanceof Fs&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function MU(t){let i=new cw(t);return TU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function TU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var IU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(IU)?t:"unsafe:"+t}function Ls(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var AA=Ls("area,br,col,hr,img,wbr"),RA=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OA=Ls("rp,rt"),kU=Bp(OA,RA),AU=Bp(RA,Ls("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")),RU=Bp(OA,Ls("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")),Mk=Bp(AA,AU,RU,kU),PA=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OU=Ls("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"),PU=Ls("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"),NU=Bp(PA,OU,PU),FU=Ls("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=BU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=VU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Tk(i).toLowerCase();if(!Mk.hasOwnProperty(e))return this.sanitizedSomething=!0,!FU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Tk(i).toLowerCase();Mk.hasOwnProperty(e)&&!AA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Ik(i))}};function LU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw NA(i);return i}function BU(t){let i=t.firstChild;if(i&&LU(t,i))throw NA(i);return i}function Tk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function NA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var jU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zU=/([^\#-~ |!])/g;function Ik(t){return t.replace(/&/g,"&").replace(jU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(zU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||MU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(kk(e)||e);return M_(s)}finally{if(e){let n=kk(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function kk(t){return"content"in t&&UU(t)?t.content:null}function UU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var HU=/^>|^->||--!>|)/g,$U="\u200B$1\u200B";function GU(t){return t.replace(HU,i=>i.replace(WU,$U))}function qU(t,i){return t.createText(i)}function YU(t,i,e){t.setValue(i,e)}function QU(t,i){return t.createComment(GU(i))}function FA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function LA(t,i,e){t.appendChild(i,e)}function Ak(t,i,e,n,o){n!==null?m_(t,i,e,n,o):LA(t,i,e)}function VA(t,i,e,n){t.removeChild(null,i,e,n)}function KU(t,i,e){t.setAttribute(i,"style",e)}function ZU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function BA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&rU(t,i,n),o!==null&&ZU(t,i,o),r!==null&&KU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Sk(i.sanitize(Ai.HTML,t)||""):ls(t,"HTML")?Sk(gr(t)):T_(xA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":ls(t,"URL")?gr(t):Vp(ga(t))}function jA(t){let i=qw();if(i)return Ek(i.sanitize(Ai.RESOURCE_URL,t)||"");if(ls(t,"ResourceURL"))return Ek(gr(t));throw new ie(904,!1)}var XU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function JU(t,i){return XU[t.toLowerCase()]?.[i.toLowerCase()]===!0?jA:it}function Gw(t,i,e){return JU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function zA(t){return t instanceof Function?t():t}function eH(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var UA="ng-template";function tH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function oH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Rk(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Rk(r,o)),i}function dH(t){return t.map(cH).join(",")}function uH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function _H(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ta=new L(""),Ok=new Set;function Hr(t){Ok.has(t)||(Ok.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=G({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Hr("NgAfterNextRender"),bH(t,e,i,!0)}function vH(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function bH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,vH(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var qA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function YA(t,i,e){let n=t.get(qA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function yH(t,i){let e=t.get(qA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function CH(t,i){for(let[e,n]of i)YA(t,n.animateFns)}function Pk(t,i,e,n){let o=t?.[El]?.enter;i!==null&&o&&o.has(e.index)&&CH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ps(o)&&(u=!0,o=o[va]);let h=jr(o);t===0&&n!==null?(Pk(s,n,r,e),a==null?LA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Pk(s,n,r,e),m_(i,n,h,a||null,!0),gH(r,h)):t===2?(s?.[El]?.leave?.has(r.index)&&_H(r,h),Ep.delete(h),Nk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}VA(i,h,u,g)})):t===3&&(Ep.delete(h),Nk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&RH(i,t,e,l,r,n,a)}}function xH(t,i){QA(t,i),i[va]=null,i[Ro]=null}function wH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,O_(t,n,e,1,o,r)}function QA(t,i){i[ba].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function DH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ps(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[Br]&&i!==t;)Ps(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ps(i)&&Hx(i[mt],i),e=i&&i[Br]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),DH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[pr]&&hl(i[pr]),MH(t,i),EH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[Sl];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[ns];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Nk(t,i,e,n){let o=t?.[El];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Os]),YA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[El].running=void 0,zc.delete(t[Os]),i(!0)});return}i(!1)}function EH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[ks];if(o!==null){i[ks]=null;for(let a=0;asi&&GA(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Tl(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){VH(t,i,e),(e.flags&64)===64&&BH(t,i,e)}function zp(t,i,e=zr){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function LH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){is(t)&&iR(i,t.index);return}t.type&3&&(e=LH(e)),nR(t,i,e,n,o,r)}function nR(t,i,e,n,o,r){if(t.type&3){let a=zr(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function iR(t,i){let e=Ur(i,t);e[Ot]&16||(e[Ot]|=64)}function VH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;is(e)&&hH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[pr]=this}});function ZH(t){let i=t[pr]??Object.create(XH);return i.lView=t,i}var XH=Ye($({},ul),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=wl(t.lView);for(;i&&!lR(i[mt]);)i=wl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[pr]=this}});function lR(t){return t.type!==2}function cR(t){if(t[xl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[xl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var JH=100;function dR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{e5(t,i)}finally{o||n.end?.()}}function e5(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===JH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function t5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(lR(t)?(u=qH(i),l=Ss(u)):jf()===null?(s=!1,u=ZH(i),l=Ss(u)):i[pr]&&(hl(i[pr]),i[pr]=null));try{bx(i),nk(t.bindingStartIndex),e!==null&&eR(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||n5(i),cR(i),uR(i,0),t.contentQueries!==null&&TA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}o5(t,i);let g=t.components;g!==null&&pR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(aR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(pl(u,l),s&&QH(u)),Gg()}}function uR(t,i){for(let e=bA(t);e!==null;e=yA(e))for(let n=vi;n0&&(t[e-1][Br]=n[Br]);let r=bp(t,vi+i);xH(n[mt],n);let a=r[ns];a!==null&&a.detachView(r[mt]),n[ji]=null,n[Br]=null,n[Ot]&=-129}return n}function r5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][Br]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,dR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[Sl];e!==null&&!i&&nD(e,this._lView),QA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[Sl];n!==null&&!e&&_R(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=a5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Il(r)}}return t})();function a5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=s5(t,i,e,n,o),ik()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=ek();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function s5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=c5(t,s,e,i,n,o);return l5(t,l,r,a),l}function l5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function c5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function d5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[DA]!==void 0?o.push(r):u5(r,n);t[hx]=o}function u5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[wA];for(;enull,p5=()=>null;function p_(t,i){return m5(t,i)}function vR(t,i,e){return p5(t,i,e)}var bR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>h5()}return t})();function h5(){let t=lt(),i=ki(),e=Ur(i.index,t);return(Ps(e)?e:t)[Vn]}var yR=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function x5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(jr(P[t.index])):t.index;SR(S,i,e,r,s,w,!1)}}return u}function M5(t){return t.startsWith("animation")||t.startsWith("transition")}function T5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function SR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function zk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);SR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function ER(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ts(i);return new kl(e,this.ngModule)}};function I5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function k5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function A5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function R5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(yR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function O5(t,i){let e=MR(t);return FA(i,e,e==="svg"?gx:e==="math"?GI:null)}function MR(t){return(t.selectors[0][0]||"div").toLowerCase()}var kl=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=k5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=dH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=A5(l,o||this.ngModule,i),h=R5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(ER(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=P5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?PH(u,o,s.encapsulation,e):O5(s,u),g=a?.some(Uk)||r?.some(S=>typeof S!="function"&&S.bindings.some(Uk)),y=Zw(null,l,null,512|WA(s),null,null,i,u,e,null,MA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);BA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&F5(S,this.ngContentSelectors,n),w=Ur(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function P5(t,i,e,n){let o=t?["ng-version","21.2.17"]:uH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function Uk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends bR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Ur(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Il(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Ur(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function F5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=L5}return t})();function L5(){let t=ki();return TR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(sA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Hk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Zz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new kl(ts(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ts(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(YI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Hk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new Il(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Hk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function TR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=hR(n,i,null,t),i[t.index]=e,Xw(i,e)),B5(e,i,t,n),new vw(e,t,i)}function V5(t,i){let e=t[Vn],n=e.createComment(""),o=zr(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var B5=U5,j5=()=>!1;function z5(t,i,e){return j5(t,i,e)}function U5(t,i,e,n){if(t[Ml])return;let o;e.type&8?o=jr(n):o=V5(i,e),t[Ml]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function OR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function Y5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function PR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):IR(e,t,n,i)}function NR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Q5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return NR(!0,!1,t)}function vD(t){return NR(!0,!0,t)}function FR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Q5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:yo;let o=fD(e,n),r=PR(e,n);return o.reset(r,gA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,K5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>Z5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),K5.delete(r)}));yield Promise.all(o)})}function LR(){return Dw.size===0}function Z5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ss=class{},B_=class{};var Op=class extends ss{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=zA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ss,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function VR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ss{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ss,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var X5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=G({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=jR(t),e=Ye($({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(X5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||yo,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Hr("NgStandalone"),zR(e);let n=t.dependencies;return e.directiveDefs=b_(n,BR),e.pipeDefs=b_(n,nx),e.id=t8(e),e})}function BR(t){return ts(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||yo,declarations:t.declarations||yo,imports:t.imports||yo,exports:t.exports||yo,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function J5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function e8(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=jR(t);return zR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||yo,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:J5(t.inputs,i),outputs:e8(t.outputs),debugInfo:null}}function zR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function t8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=n8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function n8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===yo?[]:t}function s8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function l8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function c8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function HR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=u8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=hR(l,i,l,t);i[n+si]=u,Xw(i,u),z5(u,t,i)}function d8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&CR(i,t,y,hr(i.consts,u),rD),oA(i,y)):y=i.data[g],HR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=hr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function cs(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return cs(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(xo,{optional:!0})??void 0),xD||($R(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(WR),we(U_))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),WR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $R(t){xD=t}var xD;function Bs(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Dl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(Bs(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function GR(){gC(()=>{let t="";throw new ie(600,t)})}function qR(t){return t.isBoundToModule}var p8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):$($({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Zo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(rs);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=qR(l)?void 0:this._injector.get(ss),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=os();if(Po(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))is(r)&&iR(e,r.index);else{let s=zr(r,e);oR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=os();if(Po(o,r,i)){let a=$n(),s=_u();zH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function h8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=qk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)Gk(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=qk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)Gk(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Gk(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Hr("NgControlFlow");let l=lt(),u=$n(),h=hr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Hr("NgControlFlow");let e=lt(),n=os(),o=e[n]!==ao?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&gR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=vR(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=fR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Hr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,hr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,hr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),f8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,g8(this.lContainer,i),_8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Rs];yH(r,o),zc.delete(n[Os]),o.detachedLeaveAnimationFns=void 0}}function g8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[El]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _8(t,i){return Rp(t,i)}function v8(t,i){return fR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(is(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(ER(u),()=>(Yk(t,i,o,s,n),c))}}return Yk(t,i,o,s,n),c}function Yk(t,i,e,n,o){if(aD(n,e,t,i,YR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&oU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?D5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,YR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function uo(t,i,e,n){return dn(t,i,e,n),pn(),uo}var YR=(t,i,e,n,o)=>(Sp(!0),FA(i[Vn],n,Nx()));function ds(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",b8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),ds}function us(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),us}function Ri(t,i,e){return ds(t,i,e),us(),Ri}var b8=(t,i,e,n,o)=>(Sp(!0),QU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();nR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var y8=Gp;function QR(t){typeof t=="string"&&(y8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return KR(o,n,n[Vn],r,t,i,e),x}function Ol(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&DR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Ol}function KR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),DR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function w8(t){return(t&2)==2}function D8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function S8(t){return(t&1)===1}function Pw(t){return t|1}function E8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=D8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Qk(t,h,n,!0),Qk(t,h,n,!1),M8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function M8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Qk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];T8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function T8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(Sa.key,Sa.keyEnd)}function k8(t){return A8(t),ZR(t,XR(t,0,Sa.textEnd))}function ZR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=R8(t,Sa.key=i,e),XR(t,i,e))}function A8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function XR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return JR(t,i,e,!1),Si}function le(t,i){return JR(t,i,null,!0),le}function Tn(t){P8(j8,O8,t,!0)}function O8(t,i){for(let e=k8(i);e>=0;e=ZR(i,e))Ng(t,I8(i),!0)}function JR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&tO(r,t,a,n),i!==ao&&Po(o,a,i)){let s=r.data[xa()];nO(r,s,o,o[Vn],t,o[a+1]=U8(i,e),n,a)}}function P8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&tO(o,null,r,n);let a=lt();if(e!==ao&&Po(a,r,e)){let s=o.data[xa()];if(iO(s,n)&&!eO(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else z8(o,s,a,a[Vn],a[r+1],a[r+1]=B8(t,i,e),n,r)}}function eO(t,i){return i>=t.expandoStartIndex}function tO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=eO(t,e);iO(r,n)&&i===null&&!a&&(i=!1),i=N8(o,r,i,n),E8(o,r,i,e,a,n)}}function N8(t,i,e,n){let o=ak(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=F8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),L8(t,i,n,l))}else r=V8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function F8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function L8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function V8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===ao&&(y=g?yo:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function U8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(gr(t)))),t}function iO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=H8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var H8=(t,i,e,n)=>(Sp(!0),qU(i[Vn],n));function W8(t,i,e,n=""){return Po(t,os(),e)?i+ga(e)+n:ao}function $8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+ga(e)+n+ga(o)+r:ao}function G8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=E5(t,l,e,o,a);return wp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:ao}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=W8(n,t,i,e);return o!==ao&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=$8(r,t,i,e,n,o);return a!==ao&&MD(r,xa(),a),No}function Q_(t,i,e,n,o,r,a){let s=lt(),l=G8(s,t,i,e,n,o,r,a);return l!==ao&&MD(s,xa(),l),Q_}function MD(t,i,e){let n=_x(i,t);YU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=os();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return KR(n,e,e[Vn],o,t,i),te}function Pl(t){return Po(lt(),os(),t)?ga(t):ao}function Zk(t,i,e){let n=$n();n.firstCreatePass&&oO(i,n.data,n.blueprint,Ca(t),e)}function oO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Q8(o?Y8:q8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=rO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=WI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function rO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Zk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Zk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,BR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===ao?pD(n,e,i()):S5(n,e)}function mo(t,i,e){return sO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return lO(lt(),gu(),t,i,e,n)}function aO(t,i){let e=t[i];return e===ao?void 0:e}function sO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):aO(t,a+1)}function lO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):aO(t,s+2)}function Gt(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=K8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=Cl(n.type,!0)),a,s=ko(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function K8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return cO(o,n)?sO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return cO(r,o)?lO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function cO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function dO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=zA(o.declarations).reduce((a,s)=>{let l=ts(s);return l&&a.push(new kl(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uO=new L("");var mO=(()=>{class t{applicationErrorHandler=p(Zo);appRef=p(Ui);taskService=p(rs);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?pk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pO(){return[{provide:ha,useExisting:mO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function Z8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||Z8()});function hn(t){return TI(t)}function Fo(t,i){return Jm(t,i?.equal)}var X8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,X8,i?.equal);return hO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return hO(e,t.debugName)}}function hO(t,i){let e=t[xi],n=t;return n.set=o=>EI(e,o),n.update=o=>MI(e,o),n.asReadonly=Yg.bind(t),n}var DO=Symbol("InputSignalNode#UNSET"),d6=Ye($({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function SO(t,i){let e=Object.create(d6);e.value=t,e.transformFn=i?.transform;function n(){if(ml(e),e.value===DO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function fO(t,i){return SO(t,i)}function u6(t){return SO(DO,t)}var MO=(fO.required=u6,fO);function gO(t,i){return _D(i)}function m6(t,i){return vD(i)}var Qp=(gO.required=m6,gO);function _O(t,i){return _D(i)}function p6(t,i){return vD(i)}var TO=(_O.required=p6,_O);function h6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function vO(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var f6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Zo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g6=new L("",{factory:()=>!1});function _6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye($({},kO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:As,multi:!0,useFactory:()=>{let e=p(f6,{optional:!0});return()=>e.initialize()}},{provide:As,multi:!0,useFactory:()=>{let e=p(v6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function IO(t){let i=t?.scheduleInRootZone,e=_6({ngZoneFactory:()=>{let n=kO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Hr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Dl([{provide:g6,useValue:!0},e])}function kO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var v6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(rs);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),b6=new L("");function Yp(t){return!t.moduleRef}function y6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return x6(n,e,()=>{let r=i.get(rs),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(QR(l||Gp),!i.get(b6,!0))return Yp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return AO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var AO;function bO(){AO=C6}function C6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function x6(t,i,e){try{let n=e();return Bs(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var RO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[pO(),...n?.applicationProviders??[],fk],r=VR(e.moduleType,this.injector,o);return bO(),y6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return bO(),h6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function w6(t){if(HD())throw new ie(400,!1);GR(),zD=t;let i=t.get(RO);return E6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??w6(D6(s,n))}return S6(o)}}function D6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function S6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(RO)??null}function E6(t){let i=t.get(D_,null);zi(t,()=>{i?.forEach(e=>e())})}var M6=1e4;var V0e=M6-1e3;var Ke=(()=>{class t{static __NG_ELEMENT_ID__=T6}return t})();function T6(t){return I6(ki(),lt(),(t&16)===16)}function I6(t,i,e){if(is(t)&&!e){let n=Ur(t.index,i);return new Il(n,n)}else if(t.type&175){let n=i[Oo];return new Il(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},k6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||k6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function CO(){return new js([new OD])}var js=(()=>{class t{factories;static \u0275prov=G({token:t,providedIn:"root",factory:CO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function xO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:xO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||xO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var OO=UD(null,"core",[]),PO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),NO=new Set,A6=Ye($({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ml(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??NO)e()}finally{hl(i)}}};function FO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(A_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ts(t),n=i.elementInjector||du();return new kl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function LO(t){let i=ts(t);if(!i)return null;let e=new kl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var VO=null;function _r(){return VO}function WD(t){VO??=t}var Kp=class{},zs=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(BO),providedIn:"platform"})}return t})(),$D=new L(""),BO=(()=>{class t extends zs{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function jO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(iv,8))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ms=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=P6(jO(zO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(O6(this._basePath,zO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=nv;static stripTrailingSlash=jO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=G({token:t,factory:()=>R6(),providedIn:"root"})}return t})();function R6(){return new ms(we(Aa))}function O6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function zO(t){return t.replace(/\/index\.html$/,"")}function P6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(zs),we(iv,8))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,UO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=UO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):UO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function N6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},F6=new YD,L6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Zo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Bs(e))return F6;if(H_(e))return L6;throw N6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ke,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function V6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=HO;transform(e,n=HO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(V6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function HO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function WO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=G({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye($({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=j6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye($({},e),{left:o-a[0],top:r-a[1]}))}};function j6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function $O(t){for(let i of t)i.remove()}function GO(t,i){let e=i.createElement("style");return e.textContent=t,e}function z6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,z6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,GO);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&($O(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$O(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,GO(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Al),we(Wc,8),we(Hc))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var YO="%COMP%",U6=`_nghost-${YO}`,H6=`_ngcontent-${YO}`,W6=!0,$6=new L("",{factory:()=>W6});function G6(t){return H6.replace(rS,t)}function q6(t){return U6.replace(rS,t)}function QO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Al),we($6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function qO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=QO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?QO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=G6(u),this.hostAttr=q6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Y6();return e==null?null:Q6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function Y6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Q6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){Co.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},Co.getAllAngularTestabilities=()=>i.getAllTestabilities(),Co.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Co.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Co.frameworkStabilizers||(Co.frameworkStabilizers=[]),Co.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},K6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),KO=["alt","control","meta","shift"],Z6={"\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"},X6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ZO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),KO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=Z6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),KO.forEach(a=>{if(a!==o){let s=X6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function J6(){cv.makeCurrent()}function eW(){return new Ao}function tW(){return Vw(document),document}var nW=[{provide:Hc,useValue:XD},{provide:D_,useValue:J6,multi:!0},{provide:ke,useFactory:tW}],aS=UD(OO,"browser",nW);var iW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],oW=[{provide:yp,useValue:"root"},{provide:Ao,useFactory:eW},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:ZO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:K6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...oW,...iW],imports:[eh,PO]})}return t})();var Xo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return XO(i)}encodeValue(i){return XO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function rW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var aW=/%(\d[a-f0-9])/gi,sW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XO(t){return encodeURIComponent(t).replace(aW,(i,e)=>sW[e]??i)}function uv(t){return`${t}`}var Us=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=rW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function lW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function JO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eP(t){return typeof Blob<"u"&&t instanceof Blob}function tP(t){return typeof FormData<"u"&&t instanceof FormData}function cW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var nP="Content-Type",iP="Accept",rP="text/plain",aP="application/json",dW=`${aP}, ${rP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(lW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Xo,this.context??=new mv,!this.params)this.params=new Us,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Xo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},uW=200,mW=204;var pW=new L("");var hW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(iP)||a.setRequestHeader(iP,dW),!e.headers.has(nP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(nP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Xo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==mW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?uW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(hW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sP(t,i){return i(t)}function fW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function gW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var lP=new L(""),cS=new L("",{factory:()=>[]}),cP=new L(""),dS=new L("",{factory:()=>!0});function _W(){let t=null;return(i,e)=>{t===null&&(t=(p(lP,{optional:!0})??[]).reduceRight(fW,sP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(yl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(cP,[])]));this.chain=n.reduceRight((o,r)=>gW(o,r,this.injector),sP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(yl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Xo?l=o.headers:l=new Xo(o.headers);let u;o.params&&(o.params instanceof Us?u=o.params:u=new Us({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(bl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Us().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vW=new L("",{factory:()=>!0}),bW="XSRF-TOKEN",yW=new L("",{factory:()=>bW}),CW="X-XSRF-TOKEN",xW=new L("",{factory:()=>CW}),wW=(()=>{class t{cookieName=p(yW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(wW),o},providedIn:"root"})}return t})();function DW(t,i){if(!p(vW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(zs).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(dP).getToken(),n=p(xW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function SW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(pW,{optional:!0})??p(lS)},{provide:cS,useValue:DW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Dl(i)}var oP=new L("");function fS(){return SW(pS.LegacyInterceptors,[{provide:oP,useFactory:_W},{provide:cS,useExisting:oP,multi:!0}])}var mP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(EW),o},providedIn:"root"})}return t})(),EW=(()=>{class t extends Hs{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return ls(n,"HTML")?gr(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return ls(n,"Style")?gr(n):n;case Ai.SCRIPT:if(ls(n,"Script"))return gr(n);throw new ie(5200,!1);case Ai.URL:return ls(n,"URL")?gr(n):Vp(String(n));case Ai.RESOURCE_URL:if(ls(n,"ResourceURL"))return gr(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(Is()).subscribe({next:n=>i(n),error:n=>e(n)})})}function MW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function TW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:Bs(t)?Hn(Promise.resolve(t)):Me(t)}function xP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var IW={exact:SP,subset:EP},wP={exact:kW,subset:AW,ignored:()=>!0},DP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pP(t,i,e){return IW[e.paths](t.root,i.root,e.matrixParams)&&wP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function kW(t,i){return ps(t,i)}function SP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!SP(t.children[n],i.children[n],e))return!1;return!0}function AW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>CP(t[e],i[e]))}function EP(t,i,e){return MP(t,i,i.segments,e)}function MP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!EP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:MP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>wP[e](t[o].parameters,n.parameters))}var br=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return PW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Nl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return IP(this)}};function RW(t,i){return Kc(t,i)&&t.every((e,n)=>ps(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function OW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Vl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>new $s,providedIn:"root"})}return t})(),$s=class{parse(i){let e=new DS(i);return new br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=LW(i.queryParams),o=typeof i.fragment=="string"?`#${NW(i.fragment)}`:"";return`${e}${n}${o}`}},PW=new $s;function bv(t){return t.segments.map(i=>IP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=OW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function TP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return TP(t).replace(/%3B/gi,";")}function NW(t){return encodeURI(t)}function wS(t){return TP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function hP(t){return yv(t.replace(/\+/g,"%20"))}function IP(t){return`${wS(t.path)}${FW(t.parameters)}`}function FW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function LW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var VW=/^[^\/()?;#]+/;function _S(t){let i=t.match(VW);return i?i[0]:""}var BW=/^[^\/()?;=#]+/;function jW(t){let i=t.match(BW);return i?i[0]:""}var zW=/^[^=?&#]+/;function UW(t){let i=t.match(zW);return i?i[0]:""}var HW=/^[^&#]+/;function WW(t){let i=t.match(HW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Nl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=jW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=UW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=WW(this.remaining);a&&(n=a,this.capture(n))}let o=hP(e),r=hP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function kP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function AP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=AP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return $W(e)}function $W(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Fl(t){return t instanceof br}function RP(t,i,e=null,n=null,o=new $s){let r=OP(t);return PP(r,i,e,n,o)}function OP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=kP(n);return i??o}function PP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=GW(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=qW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):FP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function fP(t,i,e){t||="\u0275";let n=new br;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>fP(u,g,r)):fP(u,h,r);let s;t===i?s=e:s=NP(t,i,e);let l=kP(AP(s));return new br(l,a,o)}function NP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=NP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==TW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function GW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function qW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return YW(e,o,t.numberOfDoubleDots)}function YW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function QW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function FP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=KW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=FP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function KW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!_P(l,u,a))return r;n+=2}else{if(!_P(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function gP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function _P(t,i,e){return t==e.path&&ps(i,e.parameters)}var ju="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),yr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Ll=class extends yr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jo=class extends yr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(wo||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),Wr=class extends yr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function LP(t){return t instanceof Wr&&(t.code===wo.Redirect||t.code===wo.SupersededByNewNavigation)}var hs=class extends yr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends yr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends yr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends yr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends yr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends yr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends yr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function XW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var vr=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function VP(t,i){let e=JW(t,i),n=new on([new Nl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new vr(l,[]),e)}function JW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new vr(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:$($({},i.params),t.params),data:$($({},i.data),t.data),resolve:$($($($({},t.data),i.data),o?.data),t._resolvedData)}:n={params:$({},t.params),data:$({},t.data),resolve:$($({},t.data),t._resolvedData??{})},o&&jP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return BP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function BP(t){let i=t.children.length>0?` { ${t.children.map(BP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ps(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ps(i.params,e.params)||t.paramsSubject.next(e.params),MW(i.url,e.url)||t.urlSubject.next(e.url),ps(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=ps(t.params,i.params)&&RW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function jP(t){return typeof t.title=="string"||t.title===null}var zP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=MO();parentContexts=p(ed);location=p(En);changeDetector=p(Ke);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===zP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=bo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=$($($({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=LO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye($({},t),{children:i}):$({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function e$(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=t$(t,i,e);return new vr(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=n$(i.value),o=i.children.map(r=>bh(t,r));return new vr(n,o)}}function t$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function n$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},UP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Fl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=HP(!1,wo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function HP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UP]=!0,e.cancellationCode=i,e}function i$(t){return WP(t)&&Fl(t.url)}function WP(t){return!!t&&t[UP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function o$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function r$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{a$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function a$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=s$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function s$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!ps(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!ps(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function l$(t){return typeof t=="boolean"}function c$(t){return t&&Dh(t.canLoad)}function d$(t){return t&&Dh(t.canActivate)}function u$(t){return t&&Dh(t.canActivateChild)}function m$(t){return t&&Dh(t.canDeactivate)}function p$(t){return t&&Dh(t.canMatch)}function $P(t){return t instanceof Es||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>bo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||h$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function h$(t){return Fl(t)||t instanceof qu}function GP(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function qP(t){return Xe(GP(t))}function f$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye($({},i),{guardsResult:!0})):g$(r,e,n).pipe(wi(a=>a&&l$(a)?_$(e,o,t):Me(a)),et(a=>Ye($({},i),{guardsResult:a})))})}function g$(t,i,e){return Hn(t).pipe(wi(n=>x$(n.component,n.route,e,i)),Is(n=>n!==!0,!0))}function _$(t,i,e){return Hn(i).pipe(bl(n=>Ja(b$(n.route.parent,e),v$(n.route,e),C$(t,n.path),y$(t,n.route))),Is(n=>n!==!0,!0))}function v$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function b$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function y$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>mr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=d$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(Is())}));return Me(n).pipe(Yu())}function C$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>r$(r)).filter(r=>r!==null).map(r=>mr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=u$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(Is())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function x$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=m$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(Is())});return Me(r).pipe(Yu())}function w$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=c$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(qP(o)):h});return Me(a).pipe(Yu(),YP(n))}function YP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),et(i=>i===!0))}function D$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=p$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(qP(r))});return Me(s).pipe(Yu(),YP(n))}var Ws=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function S$(t){throw new ie(4e3,!1)}function E$(t){throw HP(!1,wo.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw S$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield M$(e,o,r);if(a instanceof br)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new br(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function M$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(zi(e,()=>n(i))))}function T$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function I$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function k$(t,i,e,n,o,r,a){let s=KP(t,i,e);if(!s.matched)return Me(s);let l=QP(r(s));return n=T$(i,n),D$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:$({},RS)))}function KP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?$({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||yP)(e,t,i);if(!o)return $({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?$($({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function vP(t,i,e,n,o){return e.length>0&&O$(t,e,n,o)?{segmentGroup:new In(i,R$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&P$(t,e,n)?{segmentGroup:new In(t.segments,A$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function A$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return $($({},n),o)}function R$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function O$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function P$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function N$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function F$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var L$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=vP(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new vr(n,e),r=new vh("",o),a=RP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ws?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof vr?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=I$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=ZP(a);return V$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof Ws||$P(u))continue;throw u}if(N$(n,o,r))return new OS;throw new Ws(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new Ws(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new Ws(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=KP(e,o,r);if(!l)throw new Ws(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>L$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,QP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,j$(e),Ra(e),e.component??e._loadedComponent??null,e,z$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(k$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new Ws(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=vP(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new vr(S,ve)}if(u.length===0&&j.length===0)return new vr(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new vr(S,q instanceof vr?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(w$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw E$(e)}return{routes:[],injector:i}})}};function V$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function B$(t){let i=t.value.routeConfig;return i&&i.path===""}function ZP(t){let i=[],e=new Set;for(let n of t){if(!B$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=ZP(n.children);i.push(new vr(n.value,o))}return i.filter(n=>!e.has(n))}function j$(t){return t.data||{}}function z$(t){return t.resolve||{}}function U$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield F$(t,i,e,n,s.extractedUrl,o,r,a);return Ye($({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function H$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of XP(s))r.add(l);let a=0;return Hn(r).pipe(bl(s=>o.has(s)?W$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function XP(t){let i=t.children.map(e=>XP(e)).flat();return[t,...i]}function W$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!jP(n)&&(o[Ch]=n.title),mr(()=>(t.data=NS(t,t.parent,e).resolve,$$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=$($({},t.data),r),null)))))}function $$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>G$(t[r],i,e).pipe(Is(),fi(a=>{if(a instanceof qu)throw Fv(new $s,a);o[r]=a}))),vg(1),et(()=>o),Io(r=>$P(r)?hi:wc(r)))}function G$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function bP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(JP),providedIn:"root"})}return t})(),JP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(mP))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield xP(zi(e,()=>n.loadComponent())),a=yield nN(tN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield eN(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eN(t,i,e,n){return B(this,null,function*(){let o=yield xP(zi(e,()=>t.loadChildren())),r=yield nN(tN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function q$(t){return t&&typeof t=="object"&&"default"in t}function tN(t){return q$(t)?t.default:t}function nN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(Y$),providedIn:"root"})}return t})(),Y$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function iN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Q$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Q$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var K$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(xo);urlSerializer=p(Vl);rootContexts=p(ed);location=p(ms);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(Bl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye($({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye($({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Ll(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),U$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Ll(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=VP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye($({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye($({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new hs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye($({},s),{guards:o$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),f$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",wo.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(H$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",wo.NoDataFromResolver)}}))}),bP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),bP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=e$(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye($({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=K$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new Jo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe(GP(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",wo.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),yl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",wo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Io(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(WP(s))this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),i$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new Wr(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new Wr(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z$(t){return t!==ju}var oN=new L("");var rN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},X$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Vl);options=p(Bl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ms);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new br;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof br?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=VP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:()=>p(J$),providedIn:"root"})}return t})(),J$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Ll?this.updateStateMemento():e instanceof hs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wr&&!LP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof Jo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=$($({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=$($({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?$({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):$({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof Jo||e instanceof Wr||e instanceof Xc||e instanceof hs),et(e=>e instanceof Jo||e instanceof hs?0:(e instanceof Wr?e.code===wo.Redirect||e.code===wo.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var er=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(Bl,{optional:!0})||{};pendingTasks=p(rs);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Vl);location=p(ms);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(rN);injectorCleanup=p(oN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Wr&&n.code!==wo.Redirect&&n.code!==wo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Jo)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=$({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Z$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}XW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye($({},r),{browserUrl:e})),o){let u=$({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Zo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=$($({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=OP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return PP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Fl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return eG(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=$({},DP):n===!1?o=$({},xS):o=$($({},xS),n),Fl(e))return pP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return pP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eG(t){for(let i=0;i{class t{router=p(er);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Vl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Jo&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new br(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Zo);options=p(Bl,{optional:!0});reactiveRouterState=p(nG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Fl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(er),D(tt),Lp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var aN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof Jo),bl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(vl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(vl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(er),we(Cn),we(Sh),we(jv))};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sN=new L(""),iG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Vl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ll?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function oG(){return p(er).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function rG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(er),o=t.get(lN);t.get($S)===1&&n.initialNavigation(),t.get(uN,null,{optional:!0})?.setUpPreloading(),t.get(sN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function cN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(er),r=i.get(lN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function dN(){let t=[W_(()=>{p(er).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var uN=new L("");function mN(t){return Eh(0,[{provide:uN,useExisting:aN},{provide:Sh,useExisting:t}])}function pN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function hN(t){Hr("NgRouterViewTransitions");let i=[{provide:zS,useValue:iN},{provide:US,useValue:$({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var fN=[ms,{provide:Vl,useClass:$s},er,ed,{provide:tt,useFactory:oG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[fN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:Bl,useValue:n||{}},n?.useHash?sG():lG(),aG(),n?.preloadingStrategy?mN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?cG(n):[],n?.bindToComponentInputs?pN().\u0275providers:[],n?.enableViewTransitions?hN().\u0275providers:[],dG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function aG(){return{provide:sN,useFactory:()=>{let t=p(JD),i=p(Bl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new iG(i)}}}function sG(){return{provide:Aa,useClass:QD}}function lG(){return{provide:Aa,useClass:ov}}function cG(t){return[t.initialNavigation==="disabled"?dN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cN().\u0275providers:[]]}var WS=new L("");function dG(){return[{provide:WS,useFactory:rG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?WO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function gN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(gN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function $r(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Gs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var uG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),mG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function _N(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?mG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(uG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(_N(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var pG=20,jl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(jl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Pa.INVERTED?e.left=e.right:Zu()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),hG=20,po=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=hG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vN=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var Cr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,Cr,pt,Cr]})}return t})();var KS={},zt=class t{_appId=p(Al);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},tr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},zl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof tr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends zl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ss,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},yN=(()=>{class t extends Gi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends zl{_moduleRef=p(ss,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var CN=Kv();function Ul(t){return new Xv(t.get(po),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),CN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function TN(t,i){return new Jv(t.get(jl),t.get(be),t.get(po),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function xN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function wr(t,i){return new eb(t.get(jl),t.get(po),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},IN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>TN(this._injector,e);block=()=>Ul(this._injector);reposition=e=>wr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var kN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends kN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RN=(()=>{class t extends kN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(wN(s.overlayElement,n)||wN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ON=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{GT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)GT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function GT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var qT=CC("C",void 0,void 0);function YT(t){return CC("E",void 0,t)}function QT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function KT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(QT(i),this):this._next(i)}error(i){this.isStopped?wC(YT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(qT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ua.useDeprecatedSynchronousErrorHandling?KT(t):Wf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Jd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new ma(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ZT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=ZT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ZT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function XT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return XT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var JT=gl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new JT}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Br=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;aeI(i)&&t()),i},clearImmediate(t){eI(t)}};var{setImmediate:N4,clearImmediate:F4}=tI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||F4)(t)},delegate:void 0};var Yf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var vl=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends vl{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var pa=new vl(_l),nI=pa;var Zf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends vl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Ja(t){return eg(AC(t))?t.pop():void 0}function iI(t,i){return typeof AC(t)=="number"?t.pop():i}function rI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function oI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function aI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function sI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof oI=="function"?oI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=L4();function sg(t){return _t(t?.[ag])}function lg(t){return aI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return V4(t);if(ou(t))return B4(t);if(ng(t))return j4(t);if(og(t))return lI(t);if(sg(t))return z4(t);if(cg(t))return U4(t)}throw rg(t)}function V4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function lI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return lI(lg(t))}function H4(t,i){var e,n,o,r;return rI(this,void 0,void 0,function*(){try{for(e=sI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function bo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>bo(n,t,()=>n.next(o),i),()=>bo(n,t,()=>n.complete(),i),o=>bo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function cI(t,i){return gn(t).pipe(ug(i),dg(i))}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function mI(t,i){return new dt(e=>{let n;return bo(e,i,()=>{n=t[ag](),bo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{bo(e,i,()=>{let n=t[Symbol.asyncIterator]();bo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function pI(t,i){return mg(lg(t),i)}function hI(t,i){if(t!=null){if(ig(t))return cI(t,i);if(ou(t))return uI(t,i);if(ng(t))return dI(t,i);if(og(t))return mg(t,i);if(sg(t))return mI(t,i);if(cg(t))return pI(t,i)}throw rg(t)}function Hn(t,i){return i?hI(t,i):gn(t)}function Me(...t){let i=Ja(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Ms=gl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Ms)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var W4=gl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??pa,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=bo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ru(t){return et(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function yo(...t){let i=Ja(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>gg(o,a):mr));return e?r.pipe(ru(e)):r}function J4(t,i,e=mr){return n=>{fI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function fI(t,i,e){t?bo(e,t,i):i()}function gI(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>gI(n,o,t,e)))}function bl(t=1/0){return wi(mr,t)}function _I(){return bl(1)}function es(...t){return _I()(Hn(t,Ja(t)))}function pr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(vI(t,i)):oz(t)?nz.map(vI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function vI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ts(t=0,i,e=nI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=pa){return t<0&&(t=0),Ts(t,t,i)}function rn(...t){let i=Ja(t),e=iI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):bl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function bI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=pa){return bI(()=>Ts(t,i))}function ao(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,ao(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function yl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Is(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function yI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function CI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function xI(t){return et(()=>t)}function OC(t,i){return i?e=>es(i.pipe(bn(1),CI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),xI(e)))}function sp(t,i=pa){let e=Ts(t,i);return OC(()=>e)}function _g(t,i=mr){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function wI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Ms}function Cl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ks(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):mr,bn(1),e?yI(i):wI(()=>new Ms))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Br(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Ja(t);return kt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):mr}var FC;function Cg(){return FC}function ts(t){let i=FC;return FC=t,i}var DI=Symbol("NotFound");function su(t){return t===DI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),pl(n),n.value===Xa)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function SI(t,i){gc(t),_c(t,i),Kd(t)}function EI(t,i){if(gc(t),t.value===Xa)throw t.error;zf(t,i),Kd(t)}var lz=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Xa,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function MI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${cz(t)}${i?": "+i:""}`}var xo=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function RI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return uz(t,kg)}function ZC(t){return gp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),TI=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ns(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var OI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return PI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function PI(t,i,e){let n=new ie(i,t);return n[OI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[OI]}var jC;function NI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function vz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(NI()||vz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function VI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,BI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&zI(o,r),e}function zI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ns(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&zI(u,i)}if(!s){let u=xl(o)||(()=>new o);i({provide:o,useFactory:u,deps:Co},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:Rs,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function UI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function HI(t){return!!t.useClass}var yp=new L(""),xg={},II={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,Co,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=ts(this),n=ko(void 0),o;try{return i()}finally{ts(e),ko(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(TI))return i[TI](this);let o=Tc(n),r,a=ts(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),ts(a)}}resolveInjectorInitializers(){let i=ut(null),e=ts(this),n=ko(void 0),o;try{let r=this.get(Rs,Co,{self:!0});for(let a of r)a()}finally{ts(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===II)throw ix("");return e.value===xg&&(e.value=II,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:xl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(UI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return xl(o)||HC(o)}else if(UI(t))n=()=>Bi(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return xl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=ts(e),r=ko(void 0);try{return i()}finally{ts(o),ko(r)}}function ux(){return NI()!==void 0||Cg()!=null}var va=0,mt=1,Ot=2,ji=3,jr=4,Ro=5,Rc=6,uu=7,Di=8,Os=9,ba=10,Vn=11,mu=12,mx=13,Oc=14,Oo=15,El=16,Pc=17,is=18,Ps=19,px=20,As=21,Lg=22,wl=23,hr=24,Nc=25,Ml=26,si=27,WI=1,hx=6,Tl=7,Cp=8,Fc=9,vi=10;function Ns(t){return Array.isArray(t)&&typeof t[WI]=="object"}function ya(t){return Array.isArray(t)&&t[WI]===!0}function fx(t){return(t.flags&4)!==0}function os(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",$I="math";function zr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return zr(i[t])}function Ur(t,i){return zr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Hr(t,i){let e=i[t];return Ns(e)?e:e[va]}function GI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function qI(t){return ya(t[ji])}function fr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function YI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[hr]?.dirty)}function zg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=Dl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=Dl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[As]===null&&(t[As]=[]),t[As].push(i)}function QI(t,i){if(t[As]===null)return;let e=t[As].indexOf(i);e!==-1&&t[As].splice(e,1)}function Dl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function KI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ut={lFrame:sk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function ZI(){return Ut.lFrame.elementDepthCount}function XI(){Ut.lFrame.elementDepthCount++}function Dx(){Ut.lFrame.elementDepthCount--}function Ug(){return Ut.bindingsEnabled}function Sx(){return Ut.skipHydrationRootTNode!==null}function Ex(t){return Ut.skipHydrationRootTNode===t}function Mx(){Ut.skipHydrationRootTNode=null}function lt(){return Ut.lFrame.lView}function $n(){return Ut.lFrame.tView}function I(t){return Ut.lFrame.contextLView=t,t[Di]}function k(t){return Ut.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ut.lFrame.currentTNode}function JI(){let t=Ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ut.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ut.lFrame.isParent}function kx(){Ut.lFrame.isParent=!1}function ek(){return Ut.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ut.lFrame.bindingIndex}function tk(t){return Ut.lFrame.bindingIndex=t}function rs(){return Ut.lFrame.bindingIndex++}function wp(t){let i=Ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function nk(){return Ut.lFrame.inI18n}function ik(t,i){let e=Ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function ok(){return Ut.lFrame.currentDirectiveIndex}function Hg(t){Ut.lFrame.currentDirectiveIndex=t}function rk(t){let i=Ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ut.lFrame.currentQueryIndex}function Dp(t){Ut.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ut.lFrame=ak();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=ak(),e=t[mt];Ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ak(){let t=Ut.lFrame,i=t===null?null:t.child;return i===null?sk(t):i}function sk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function lk(){let t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=lk;function Gg(){let t=lk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ck(t){return(Ut.lFrame.contextLView=YI(t,Ut.lFrame.contextLView))[Di]}function xa(){return Ut.lFrame.selectedIndex}function Il(t){Ut.lFrame.selectedIndex=t}function _u(){let t=Ut.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ut.lFrame.currentNamespace=gx}function wa(){Az()}function Az(){Ut.lFrame.currentNamespace=null}function Nx(){return Ut.lFrame.currentNamespace}var dk=!0;function qg(){return dk}function Sp(t){dk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||Co,jI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),wo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends wo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>QI(e,i)}};function Rz(){return new Sg(lt())}var Lx=!1,uk=new L(""),as=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(uk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(wo,{optional:!0})??void 0,this.pendingTasks=p(as,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return kI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),AI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return kI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),AI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function kI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return pk(t,"__ignore_ng_zone__")}function Vz(t){return pk(t,"__scheduler_tick__")}function pk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),hk={provide:Rs,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new vu(lt(),ki())}var ha=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(as);scheduler=p(ha);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Fs(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(wo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Uz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var fk=Ye(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ye(G({},fk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ye(G({},fk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[wl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=gk(n,e),t[wl]??=new Set,t[wl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=gk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function gk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Xk(t){let i=xo.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function Jk(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>eA;return t.ngInherit=!0,t})();function eA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=nA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=nA(t)||Jz(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===_a),Jk(t,i,o,e)}var tA="__ngSimpleChanges__";function nA(t){return t[tA]||null}function Jz(t,i){return t[tA]=i}var _k=[];var Un=function(t,i=null,e){for(let n=0;n<_k.length;n++){let o=_k[n];o(t,i,e)}},Sn=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Sn||{});function eU(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=eA(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}function iA(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,vk(s,r)):vk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var sU=256,sA=sU-1,lA=5,lU=0,ss={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&sA,r=1<>lA)]|=r}function u_(t,i){let e=cA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(aA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function cA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&ko(g),d_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&sA:pU:i}function yk(t,i,e){let n=1<>lA)]&n)}function Ck(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return mA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:xl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=pA(r,a,e,n|2,ss);if(s!==ss)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,ss,n&-5);if(h!==ss)return h}l=hA(a),a=a[Oc]}r=l}return o}function hA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Lp(t){return dU(ki(),t)}function fU(){return Tu(ki(),lt())}function Tu(t,i){return new se(Ur(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function fA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var gr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=LI(i);(this._changesDetected=!FI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function gA(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),_A=new Map,_U=0;function vU(){return _U++}function bU(t){_A.set(t[Ps],t)}function ew(t){_A.delete(t[Ps])}var xk="__ngContext__";function Du(t,i){Ns(i)?(t[xk]=i[Ps],bU(i)):t[xk]=i}function vA(t){return yA(t[mu])}function bA(t){return yA(t[jr])}function yA(t){for(;t!==null&&!ya(t);)t=t[jr];return t}var tw;function Vw(t){tw=t}function CA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Rl=new L("",{factory:()=>yU}),yU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Ol=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var wA="di";var Bw=new L(""),DA=!1,SA=new L("",{factory:()=>DA});var S_=new L("");var wk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=wk.get(t);e||(e=new WeakSet,wk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var DU=()=>null;function EA(t,i,e=!1){return DU(t,i,e)}function MA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return SU()?.createHTML(t)||t}var Xg;function TA(){if(Xg===void 0&&(Xg=null,xo.trustedTypes))try{Xg=xo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Dk(t){return TA()?.createHTML(t)||t}function Sk(t){return TA()?.createScriptURL(t)||t}var Ls=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Ls{getTypeName(){return"HTML"}},ow=class extends Ls{getTypeName(){return"Style"}},rw=class extends Ls{getTypeName(){return"Script"}},aw=class extends Ls{getTypeName(){return"URL"}},sw=class extends Ls{getTypeName(){return"ResourceURL"}};function _r(t){return t instanceof Ls?t.changingThisBreaksApplicationSecurity:t}function cs(t,i){let e=IA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function IA(t){return t instanceof Ls&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Vs(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var kA=Vs("area,br,col,hr,img,wbr"),AA=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RA=Vs("rp,rt"),IU=Bp(RA,AA),kU=Bp(AA,Vs("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")),AU=Bp(RA,Vs("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")),Ek=Bp(kA,kU,AU,IU),OA=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Vs("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"),OU=Vs("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"),PU=Bp(OA,RU,OU),NU=Vs("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Mk(i).toLowerCase();if(!Ek.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Mk(i).toLowerCase();Ek.hasOwnProperty(e)&&!kA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Tk(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw PA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw PA(i);return i}function Mk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function PA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Tk(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||EU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(Ik(e)||e);return M_(s)}finally{if(e){let n=Ik(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ik(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function NA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function FA(t,i,e){t.appendChild(i,e)}function kk(t,i,e,n,o){n!==null?m_(t,i,e,n,o):FA(t,i,e)}function LA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function VA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Dk(i.sanitize(Ai.HTML,t)||""):cs(t,"HTML")?Dk(_r(t)):T_(CA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":cs(t,"URL")?_r(t):Vp(ga(t))}function BA(t){let i=qw();if(i)return Sk(i.sanitize(Ai.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return Sk(_r(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?BA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function jA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var zA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Ak(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Ak(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ta=new L(""),Rk=new Set;function Wr(t){Rk.has(t)||(Rk.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Wr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(wo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var GA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function qA(t,i,e){let n=t.get(GA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(GA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)qA(t,n.animateFns)}function Ok(t,i,e,n){let o=t?.[Ml]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ns(o)&&(u=!0,o=o[va]);let h=zr(o);t===0&&n!==null?(Ok(s,n,r,e),a==null?FA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Ok(s,n,r,e),m_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[Ml]?.leave?.has(r.index)&&gH(r,h),Ep.delete(h),Pk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}LA(i,h,u,g)})):t===3&&(Ep.delete(h),Pk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){YA(t,i),i[va]=null,i[Ro]=null}function xH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,O_(t,n,e,1,o,r)}function YA(t,i){i[ba].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ns(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[jr]&&i!==t;)Ns(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ns(i)&&Hx(i[mt],i),e=i&&i[jr]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[hr]&&fl(i[hr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[El];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[is];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Pk(t,i,e,n){let o=t?.[Ml];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Ps]),qA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[Ml].running=void 0,zc.delete(t[Ps]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[As];if(o!==null){i[As]=null;for(let a=0;asi&&$A(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Il(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function zp(t,i,e=Ur){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function eR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){os(t)&&nR(i,t.index);return}t.type&3&&(e=FH(e)),tR(t,i,e,n,o,r)}function tR(t,i,e,n,o,r){if(t.type&3){let a=Ur(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function nR(t,i){let e=Hr(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;os(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function KH(t){let i=t[hr]??Object.create(ZH);return i.lView=t,i}var ZH=Ye(G({},ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Dl(t.lView);for(;i&&!sR(i[mt]);)i=Dl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[hr]=this}});function sR(t){return t.type!==2}function lR(t){if(t[wl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[wl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function cR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(sR(t)?(u=GH(i),l=Es(u)):jf()===null?(s=!1,u=KH(i),l=Es(u)):i[hr]&&(fl(i[hr]),i[hr]=null));try{bx(i),tk(t.bindingStartIndex),e!==null&&JA(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||t5(i),lR(i),dR(i,0),t.contentQueries!==null&&MA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&mR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(rR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(hl(u,l),s&&YH(u)),Gg()}}function dR(t,i){for(let e=vA(t);e!==null;e=bA(e))for(let n=vi;n0&&(t[e-1][jr]=n[jr]);let r=bp(t,vi+i);CH(n[mt],n);let a=r[is];a!==null&&a.detachView(r[mt]),n[ji]=null,n[jr]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][jr]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,cR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[El];e!==null&&!i&&nD(e,this._lView),YA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[El];n!==null&&!e&&gR(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new kl(r)}}return t})();function r5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),nk()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=JI();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[wA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,m5=()=>null;function p_(t,i){return u5(t,i)}function _R(t,i,e){return m5(t,i,e)}var vR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Hr(i.index,t);return(Ns(e)?e:t)[Vn]}var bR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(zr(P[t.index])):t.index;DR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function DR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function jk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);DR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function SR(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ns(i);return new Al(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(bR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=ER(t);return NA(i,e,e==="svg"?gx:e==="math"?$I:null)}function ER(t){return(t.selectors[0][0]||"div").toLowerCase()}var Al=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(SR(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=O5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u),g=a?.some(zk)||r?.some(S=>typeof S!="function"&&S.bindings.some(zk)),y=Zw(null,l,null,512|HA(s),null,null,i,u,e,null,EA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);VA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&N5(S,this.ngContentSelectors,n),w=Hr(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function O5(t,i,e,n){let o=t?["ng-version","21.2.17"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function zk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends vR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Hr(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new kl(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Hr(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function N5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=F5}return t})();function F5(){let t=ki();return MR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(aA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Uk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new Al(ns(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ns(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(qI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Uk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new kl(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Uk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function MR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=pR(n,i,null,t),i[t.index]=e,Xw(i,e)),V5(e,i,t,n),new vw(e,t,i)}function L5(t,i){let e=t[Vn],n=e.createComment(""),o=Ur(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var V5=z5,B5=()=>!1;function j5(t,i,e){return B5(t,i,e)}function z5(t,i,e,n){if(t[Tl])return;let o;e.type&8?o=zr(n):o=L5(i,e),t[Tl]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function RR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function q5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function OR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):TR(e,t,n,i)}function PR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Y5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return PR(!0,!1,t)}function vD(t){return PR(!0,!0,t)}function NR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Y5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:Co;let o=fD(e,n),r=OR(e,n);return o.reset(r,fA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,Q5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>K5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),Q5.delete(r)}));yield Promise.all(o)})}function FR(){return Dw.size===0}function K5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ls=class{},B_=class{};var Op=class extends ls{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=jA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function LR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ls{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Z5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=BR(t),e=Ye(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(Z5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||Co,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wr("NgStandalone"),jR(e);let n=t.dependencies;return e.directiveDefs=b_(n,VR),e.pipeDefs=b_(n,nx),e.id=e8(e),e})}function VR(t){return ns(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||Co,declarations:t.declarations||Co,imports:t.imports||Co,exports:t.exports||Co,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function X5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function J5(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=BR(t);return jR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Co,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:X5(t.inputs,i),outputs:J5(t.outputs),debugInfo:null}}function jR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function e8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=t8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function t8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===Co?[]:t}function a8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function s8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function l8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function UR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=d8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=pR(l,i,l,t);i[n+si]=u,Xw(i,u),j5(u,t,i)}function c8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&yR(i,t,y,fr(i.consts,u),rD),iA(i,y)):y=i.data[g],UR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=fr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function ds(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return ds(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(wo,{optional:!0})??void 0),xD||(WR(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(HR),we(U_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),HR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function WR(t){xD=t}var xD;function js(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Sl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(js(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function $R(){gC(()=>{let t="";throw new ie(600,t)})}function GR(t){return t.isBoundToModule}var m8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=GR(l)?void 0:this._injector.get(ls),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=rs();if(Po(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))os(r)&&nR(e,r.index);else{let s=Ur(r,e);iR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=rs();if(Po(o,r,i)){let a=$n(),s=_u();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function p8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=Gk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)$k(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=Gk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)$k(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function $k(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Gk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Wr("NgControlFlow");let e=lt(),n=rs(),o=e[n]!==so?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&fR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=_R(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=hR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Wr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,fr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,fr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),h8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,f8(this.lContainer,i),g8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Os];bH(r,o),zc.delete(n[Ps]),o.detachedLeaveAnimationFns=void 0}}function f8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[Ml]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function g8(t,i){return Rp(t,i)}function _8(t,i){return hR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(os(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(SR(u),()=>(qk(t,i,o,s,n),c))}}return qk(t,i,o,s,n),c}function qk(t,i,e,n,o){if(aD(n,e,t,i,qR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,qR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function mo(t,i,e,n){return dn(t,i,e,n),pn(),mo}var qR=(t,i,e,n,o)=>(Sp(!0),NA(i[Vn],n,Nx()));function us(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",v8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),us}function ms(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),ms}function Ri(t,i,e){return us(t,i,e),ms(),Ri}var v8=(t,i,e,n,o)=>(Sp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var b8=Gp;function YR(t){typeof t=="string"&&(b8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return QR(o,n,n[Vn],r,t,i,e),x}function Pl(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&wR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Pl}function QR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),wR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function x8(t){return(t&2)==2}function w8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function D8(t){return(t&1)===1}function Pw(t){return t|1}function S8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=w8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Yk(t,h,n,!0),Yk(t,h,n,!1),E8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function E8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Yk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];M8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function M8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T8(t){return t.substring(Sa.key,Sa.keyEnd)}function I8(t){return k8(t),KR(t,ZR(t,0,Sa.textEnd))}function KR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=A8(t,Sa.key=i,e),ZR(t,i,e))}function k8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function ZR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return XR(t,i,e,!1),Si}function le(t,i){return XR(t,i,null,!0),le}function Tn(t){O8(B8,R8,t,!0)}function R8(t,i){for(let e=I8(i);e>=0;e=KR(i,e))Ng(t,T8(i),!0)}function XR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&eO(r,t,a,n),i!==so&&Po(o,a,i)){let s=r.data[xa()];tO(r,s,o,o[Vn],t,o[a+1]=z8(i,e),n,a)}}function O8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&eO(o,null,r,n);let a=lt();if(e!==so&&Po(a,r,e)){let s=o.data[xa()];if(nO(s,n)&&!JR(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else j8(o,s,a,a[Vn],a[r+1],a[r+1]=V8(t,i,e),n,r)}}function JR(t,i){return i>=t.expandoStartIndex}function eO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=JR(t,e);nO(r,n)&&i===null&&!a&&(i=!1),i=P8(o,r,i,n),S8(o,r,i,e,a,n)}}function P8(t,i,e,n){let o=rk(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=N8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),F8(t,i,n,l))}else r=L8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function N8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function F8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function L8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===so&&(y=g?Co:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function z8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(_r(t)))),t}function nO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=U8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var U8=(t,i,e,n)=>(Sp(!0),GU(i[Vn],n));function H8(t,i,e,n=""){return Po(t,rs(),e)?i+ga(e)+n:so}function W8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+ga(e)+n+ga(o)+r:so}function $8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return wp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:so}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=H8(n,t,i,e);return o!==so&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=W8(r,t,i,e,n,o);return a!==so&&MD(r,xa(),a),No}function Q_(t,i,e,n,o,r,a){let s=lt(),l=$8(s,t,i,e,n,o,r,a);return l!==so&&MD(s,xa(),l),Q_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return QR(n,e,e[Vn],o,t,i),te}function Nl(t){return Po(lt(),rs(),t)?ga(t):so}function Kk(t,i,e){let n=$n();n.firstCreatePass&&iO(i,n.data,n.blueprint,Ca(t),e)}function iO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Y8(o?q8:G8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=oO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=HI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function oO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Kk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Kk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,VR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===so?pD(n,e,i()):D5(n,e)}function po(t,i,e){return aO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return sO(lt(),gu(),t,i,e,n)}function rO(t,i){let e=t[i];return e===so?void 0:e}function aO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):rO(t,a+1)}function sO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):rO(t,s+2)}function $t(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=Q8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=xl(n.type,!0)),a,s=ko(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function Q8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return lO(o,n)?aO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return lO(r,o)?sO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function lO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function cO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=jA(o.declarations).reduce((a,s)=>{let l=ns(s);return l&&a.push(new Al(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dO=new L("");var uO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Ui);taskService=p(as);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?mk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mO(){return[{provide:ha,useExisting:uO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function K8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||K8()});function hn(t){return MI(t)}function Fo(t,i){return Jm(t,i?.equal)}var Z8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,Z8,i?.equal);return pO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return pO(e,t.debugName)}}function pO(t,i){let e=t[xi],n=t;return n.set=o=>SI(e,o),n.update=o=>EI(e,o),n.asReadonly=Yg.bind(t),n}var wO=Symbol("InputSignalNode#UNSET"),c6=Ye(G({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function DO(t,i){let e=Object.create(c6);e.value=t,e.transformFn=i?.transform;function n(){if(pl(e),e.value===wO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},SO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function hO(t,i){return DO(t,i)}function d6(t){return DO(wO,t)}var EO=(hO.required=d6,hO);function fO(t,i){return _D(i)}function u6(t,i){return vD(i)}var Qp=(fO.required=u6,fO);function gO(t,i){return _D(i)}function m6(t,i){return vD(i)}var MO=(gO.required=m6,gO);function p6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function _O(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var h6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f6=new L("",{factory:()=>!1});function g6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye(G({},IO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:Rs,multi:!0,useFactory:()=>{let e=p(h6,{optional:!0});return()=>e.initialize()}},{provide:Rs,multi:!0,useFactory:()=>{let e=p(_6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function TO(t){let i=t?.scheduleInRootZone,e=g6({ngZoneFactory:()=>{let n=IO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Wr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Sl([{provide:f6,useValue:!0},e])}function IO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(as);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),v6=new L("");function Yp(t){return!t.moduleRef}function b6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return C6(n,e,()=>{let r=i.get(as),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(YR(l||Gp),!i.get(v6,!0))return Yp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return kO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var kO;function vO(){kO=y6}function y6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function C6(t,i,e){try{let n=e();return js(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var AO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[mO(),...n?.applicationProviders??[],hk],r=LR(e.moduleType,this.injector,o);return vO(),b6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return vO(),p6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function x6(t){if(HD())throw new ie(400,!1);$R(),zD=t;let i=t.get(AO);return S6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??x6(w6(s,n))}return D6(o)}}function w6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function D6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(AO)??null}function S6(t){let i=t.get(D_,null);zi(t,()=>{i?.forEach(e=>e())})}var E6=1e4;var F0e=E6-1e3;var Ke=(()=>{class t{static __NG_ELEMENT_ID__=M6}return t})();function M6(t){return T6(ki(),lt(),(t&16)===16)}function T6(t,i,e){if(os(t)&&!e){let n=Hr(t.index,i);return new kl(n,n)}else if(t.type&175){let n=i[Oo];return new kl(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},I6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||I6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function yO(){return new zs([new OD])}var zs=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:yO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||yO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function CO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:CO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var RO=UD(null,"core",[]),OO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),PO=new Set,k6=Ye(G({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(pl(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??PO)e()}finally{fl(i)}}};function NO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(A_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ns(t),n=i.elementInjector||du();return new Al(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function FO(t){let i=ns(t);if(!i)return null;let e=new Al(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var LO=null;function vr(){return LO}function WD(t){LO??=t}var Kp=class{},Us=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(VO),providedIn:"platform"})}return t})(),$D=new L(""),VO=(()=>{class t extends Us{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function BO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ps=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=O6(BO(jO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(R6(this._basePath,jO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=nv;static stripTrailingSlash=BO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=$({token:t,factory:()=>A6(),providedIn:"root"})}return t})();function A6(){return new ps(we(Aa))}function R6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function jO(t){return t.replace(/\/index\.html$/,"")}function O6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,zO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=zO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):zO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function P6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},N6=new YD,F6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(js(e))return N6;if(H_(e))return F6;throw P6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ke,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function L6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=UO;transform(e,n=UO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(L6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function UO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function HO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=B6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye(G({},e),{left:o-a[0],top:r-a[1]}))}};function B6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function WO(t){for(let i of t)i.remove()}function $O(t,i){let e=i.createElement("style");return e.textContent=t,e}function j6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,j6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,$O);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(WO(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])WO(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,$O(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Rl),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var qO="%COMP%",z6=`_nghost-${qO}`,U6=`_ngcontent-${qO}`,H6=!0,W6=new L("",{factory:()=>H6});function $6(t){return U6.replace(rS,t)}function G6(t){return z6.replace(rS,t)}function YO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Rl),we(W6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(GO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(GO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=vr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function GO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=YO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?YO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=$6(u),this.hostAttr=G6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=q6();return e==null?null:Y6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function q6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Y6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){xo.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},xo.getAllAngularTestabilities=()=>i.getAllTestabilities(),xo.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=xo.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};xo.frameworkStabilizers||(xo.frameworkStabilizers=[]),xo.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?vr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Q6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),QO=["alt","control","meta","shift"],K6={"\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"},Z6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),QO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=K6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),QO.forEach(a=>{if(a!==o){let s=Z6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function X6(){cv.makeCurrent()}function J6(){return new Ao}function eW(){return Vw(document),document}var tW=[{provide:Hc,useValue:XD},{provide:D_,useValue:X6,multi:!0},{provide:ke,useFactory:eW}],aS=UD(RO,"browser",tW);var nW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],iW=[{provide:yp,useValue:"root"},{provide:Ao,useFactory:J6},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:KO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:Q6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...iW,...nW],imports:[eh,OO]})}return t})();var Jo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return ZO(i)}encodeValue(i){return ZO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function oW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var rW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZO(t){return encodeURIComponent(t).replace(rW,(i,e)=>aW[e]??i)}function uv(t){return`${t}`}var Hs=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=oW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function sW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function XO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function JO(t){return typeof Blob<"u"&&t instanceof Blob}function eP(t){return typeof FormData<"u"&&t instanceof FormData}function lW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tP="Content-Type",nP="Accept",oP="text/plain",rP="application/json",cW=`${rP}, ${oP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(sW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Jo,this.context??=new mv,!this.params)this.params=new Hs,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Jo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},dW=200,uW=204;var mW=new L("");var pW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(nP)||a.setRequestHeader(nP,cW),!e.headers.has(tP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(tP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Jo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==uW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?dW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(pW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aP(t,i){return i(t)}function hW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function fW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var sP=new L(""),cS=new L("",{factory:()=>[]}),lP=new L(""),dS=new L("",{factory:()=>!0});function gW(){let t=null;return(i,e)=>{t===null&&(t=(p(sP,{optional:!0})??[]).reduceRight(hW,aP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(Cl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(lP,[])]));this.chain=n.reduceRight((o,r)=>fW(o,r,this.injector),aP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Cl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Jo?l=o.headers:l=new Jo(o.headers);let u;o.params&&(o.params instanceof Hs?u=o.params:u=new Hs({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(yl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Hs().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _W=new L("",{factory:()=>!0}),vW="XSRF-TOKEN",bW=new L("",{factory:()=>vW}),yW="X-XSRF-TOKEN",CW=new L("",{factory:()=>yW}),xW=(()=>{class t{cookieName=p(bW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(xW),o},providedIn:"root"})}return t})();function wW(t,i){if(!p(_W)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(Us).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(cP).getToken(),n=p(CW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function DW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(mW,{optional:!0})??p(lS)},{provide:cS,useValue:wW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var iP=new L("");function fS(){return DW(pS.LegacyInterceptors,[{provide:iP,useFactory:gW},{provide:cS,useExisting:iP,multi:!0}])}var uP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(SW),o},providedIn:"root"})}return t})(),SW=(()=>{class t extends Ws{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return cs(n,"HTML")?_r(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return cs(n,"Style")?_r(n):n;case Ai.SCRIPT:if(cs(n,"Script"))return _r(n);throw new ie(5200,!1);case Ai.URL:return cs(n,"URL")?_r(n):Vp(String(n));case Ai.RESOURCE_URL:if(cs(n,"ResourceURL"))return _r(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(ks()).subscribe({next:n=>i(n),error:n=>e(n)})})}function EW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function MW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:js(t)?Hn(Promise.resolve(t)):Me(t)}function CP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var TW={exact:DP,subset:SP},xP={exact:IW,subset:kW,ignored:()=>!0},wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mP(t,i,e){return TW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function IW(t,i){return hs(t,i)}function DP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!DP(t.children[n],i.children[n],e))return!1;return!0}function kW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yP(t[e],i[e]))}function SP(t,i,e){return EP(t,i,i.segments,e)}function EP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!SP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:EP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var yr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return OW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Fl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return TP(this)}};function AW(t,i){return Kc(t,i)&&t.every((e,n)=>hs(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function RW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Bl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new Gs,providedIn:"root"})}return t})(),Gs=class{parse(i){let e=new DS(i);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=FW(i.queryParams),o=typeof i.fragment=="string"?`#${PW(i.fragment)}`:"";return`${e}${n}${o}`}},OW=new Gs;function bv(t){return t.segments.map(i=>TP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=RW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function MP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return MP(t).replace(/%3B/gi,";")}function PW(t){return encodeURI(t)}function wS(t){return MP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function pP(t){return yv(t.replace(/\+/g,"%20"))}function TP(t){return`${wS(t.path)}${NW(t.parameters)}`}function NW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function FW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var LW=/^[^\/()?;#]+/;function _S(t){let i=t.match(LW);return i?i[0]:""}var VW=/^[^\/()?;=#]+/;function BW(t){let i=t.match(VW);return i?i[0]:""}var jW=/^[^=?&#]+/;function zW(t){let i=t.match(jW);return i?i[0]:""}var UW=/^[^&#]+/;function HW(t){let i=t.match(UW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Fl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=BW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=zW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=HW(this.remaining);a&&(n=a,this.capture(n))}let o=pP(e),r=pP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function IP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function kP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=kP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return WW(e)}function WW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Ll(t){return t instanceof yr}function AP(t,i,e=null,n=null,o=new Gs){let r=RP(t);return OP(r,i,e,n,o)}function RP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=IP(n);return i??o}function OP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=$W(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=GW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):NP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function hP(t,i,e){t||="\u0275";let n=new yr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>hP(u,g,r)):hP(u,h,r);let s;t===i?s=e:s=PP(t,i,e);let l=IP(kP(s));return new yr(l,a,o)}function PP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=PP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==MW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $W(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function GW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return qW(e,o,t.numberOfDoubleDots)}function qW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function YW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function NP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=QW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=NP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function QW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!gP(l,u,a))return r;n+=2}else{if(!gP(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function fP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function gP(t,i,e){return t==e.path&&hs(i,e.parameters)}var ju="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),Cr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Vl=class extends Cr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends Cr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Do=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Do||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),$r=class extends Cr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function FP(t){return t instanceof $r&&(t.code===Do.Redirect||t.code===Do.SupersededByNewNavigation)}var fs=class extends Cr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends Cr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends Cr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends Cr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends Cr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends Cr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends Cr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function ZW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var br=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function LP(t,i){let e=XW(t,i),n=new on([new Fl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new br(l,[]),e)}function XW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new br(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&BP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return VP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function VP(t){let i=t.children.length>0?` { ${t.children.map(VP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),EW(i.url,e.url)||t.urlSubject.next(e.url),hs(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=hs(t.params,i.params)&&AW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function BP(t){return typeof t.title=="string"||t.title===null}var jP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=EO();parentContexts=p(ed);location=p(En);changeDetector=p(Ke);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===jP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=yo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=FO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function JW(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=e$(t,i,e);return new br(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=t$(i.value),o=i.children.map(r=>bh(t,r));return new br(n,o)}}function e$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function t$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},zP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Ll(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=UP(!1,Do.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function UP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[zP]=!0,e.cancellationCode=i,e}function n$(t){return HP(t)&&Ll(t.url)}function HP(t){return!!t&&t[zP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function i$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function o$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{r$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function r$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=a$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function a$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!hs(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function s$(t){return typeof t=="boolean"}function l$(t){return t&&Dh(t.canLoad)}function c$(t){return t&&Dh(t.canActivate)}function d$(t){return t&&Dh(t.canActivateChild)}function u$(t){return t&&Dh(t.canDeactivate)}function m$(t){return t&&Dh(t.canMatch)}function WP(t){return t instanceof Ms||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>yo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||p$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function p$(t){return Ll(t)||t instanceof qu}function $P(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function GP(t){return Xe($P(t))}function h$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye(G({},i),{guardsResult:!0})):f$(r,e,n).pipe(wi(a=>a&&s$(a)?g$(e,o,t):Me(a)),et(a=>Ye(G({},i),{guardsResult:a})))})}function f$(t,i,e){return Hn(t).pipe(wi(n=>C$(n.component,n.route,e,i)),ks(n=>n!==!0,!0))}function g$(t,i,e){return Hn(i).pipe(yl(n=>es(v$(n.route.parent,e),_$(n.route,e),y$(t,n.path),b$(t,n.route))),ks(n=>n!==!0,!0))}function _$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function v$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function b$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>pr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=c$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(ks())}));return Me(n).pipe(Yu())}function y$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>o$(r)).filter(r=>r!==null).map(r=>pr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=d$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(ks())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function C$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=u$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(ks())});return Me(r).pipe(Yu())}function x$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=l$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(GP(o)):h});return Me(a).pipe(Yu(),qP(n))}function qP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),et(i=>i===!0))}function w$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=m$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(GP(r))});return Me(s).pipe(Yu(),qP(n))}var $s=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function D$(t){throw new ie(4e3,!1)}function S$(t){throw UP(!1,Do.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw D$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield E$(e,o,r);if(a instanceof yr)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new yr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function E$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(zi(e,()=>n(i))))}function M$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function T$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function I$(t,i,e,n,o,r,a){let s=QP(t,i,e);if(!s.matched)return Me(s);let l=YP(r(s));return n=M$(i,n),w$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:G({},RS)))}function QP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||bP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function _P(t,i,e,n,o){return e.length>0&&R$(t,e,n,o)?{segmentGroup:new In(i,A$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&O$(t,e,n)?{segmentGroup:new In(t.segments,k$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function k$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return G(G({},n),o)}function A$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function R$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function O$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function P$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function N$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var F$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=_P(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new br(n,e),r=new vh("",o),a=AP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $s?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof br?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=T$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=KP(a);return L$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof $s||WP(u))continue;throw u}if(P$(n,o,r))return new OS;throw new $s(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new $s(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new $s(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=QP(e,o,r);if(!l)throw new $s(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>F$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,YP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,B$(e),Ra(e),e.component??e._loadedComponent??null,e,j$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(I$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new $s(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=_P(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new br(S,ve)}if(u.length===0&&j.length===0)return new br(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new br(S,q instanceof br?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(x$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw S$(e)}return{routes:[],injector:i}})}};function L$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function V$(t){let i=t.value.routeConfig;return i&&i.path===""}function KP(t){let i=[],e=new Set;for(let n of t){if(!V$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=KP(n.children);i.push(new br(n.value,o))}return i.filter(n=>!e.has(n))}function B$(t){return t.data||{}}function j$(t){return t.resolve||{}}function z$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield N$(t,i,e,n,s.extractedUrl,o,r,a);return Ye(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function U$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of ZP(s))r.add(l);let a=0;return Hn(r).pipe(yl(s=>o.has(s)?H$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function ZP(t){let i=t.children.map(e=>ZP(e)).flat();return[t,...i]}function H$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!BP(n)&&(o[Ch]=n.title),pr(()=>(t.data=NS(t,t.parent,e).resolve,W$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function W$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>$$(t[r],i,e).pipe(ks(),fi(a=>{if(a instanceof qu)throw Fv(new Gs,a);o[r]=a}))),vg(1),et(()=>o),ao(r=>WP(r)?hi:wc(r)))}function $$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function vP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(XP),providedIn:"root"})}return t})(),XP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(uP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield CP(zi(e,()=>n.loadComponent())),a=yield tN(eN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield JP(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JP(t,i,e,n){return B(this,null,function*(){let o=yield CP(zi(e,()=>t.loadChildren())),r=yield tN(eN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function G$(t){return t&&typeof t=="object"&&"default"in t}function eN(t){return G$(t)?t.default:t}function tN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(q$),providedIn:"root"})}return t})(),q$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function nN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Y$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Y$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var Q$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(wo);urlSerializer=p(Bl);rootContexts=p(ed);location=p(ps);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(jl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Vl(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),z$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Vl(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=LP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye(G({},s),{guards:i$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),h$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",Do.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(U$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",Do.NoDataFromResolver)}}))}),vP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),vP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=JW(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=Q$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe($P(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",Do.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),Cl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ao(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(HP(s))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),n$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K$(t){return t!==ju}var iN=new L("");var oN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Z$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},Z$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Bl);options=p(jl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ps);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof yr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=LP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),X$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Vl?this.updateStateMemento():e instanceof fs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!FP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof er&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof er||e instanceof $r||e instanceof Xc||e instanceof fs),et(e=>e instanceof er||e instanceof fs?0:(e instanceof $r?e.code===Do.Redirect||e.code===Do.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var tr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(jl,{optional:!0})||{};pendingTasks=p(as);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Bl);location=p(ps);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(oN);injectorCleanup=p(iN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof $r&&n.code!==Do.Redirect&&n.code!==Do.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof er)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||K$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ZW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=RP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return OP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Ll(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return J$(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},wP):n===!1?o=G({},xS):o=G(G({},xS),n),Ll(e))return mP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function J$(t){for(let i=0;i{class t{router=p(tr);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Bl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof er&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new yr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(jl,{optional:!0});reactiveRouterState=p(tG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Ll(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Ll(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(tr),D(tt),Lp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var rN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof er),yl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(bl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(bl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(tr),we(Cn),we(Sh),we(jv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aN=new L(""),nG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Bl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Vl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof er?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function iG(){return p(tr).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function oG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(tr),o=t.get(sN);t.get($S)===1&&n.initialNavigation(),t.get(dN,null,{optional:!0})?.setUpPreloading(),t.get(aN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function lN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(tr),r=i.get(sN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function cN(){let t=[W_(()=>{p(tr).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var dN=new L("");function uN(t){return Eh(0,[{provide:dN,useExisting:rN},{provide:Sh,useExisting:t}])}function mN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function pN(t){Wr("NgRouterViewTransitions");let i=[{provide:zS,useValue:nN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var hN=[ps,{provide:Bl,useClass:Gs},tr,ed,{provide:tt,useFactory:iG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[hN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:jl,useValue:n||{}},n?.useHash?aG():sG(),rG(),n?.preloadingStrategy?uN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?lG(n):[],n?.bindToComponentInputs?mN().\u0275providers:[],n?.enableViewTransitions?pN().\u0275providers:[],cG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function rG(){return{provide:aN,useFactory:()=>{let t=p(JD),i=p(jl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new nG(i)}}}function aG(){return{provide:Aa,useClass:QD}}function sG(){return{provide:Aa,useClass:ov}}function lG(t){return[t.initialNavigation==="disabled"?cN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lN().\u0275providers:[]]}var WS=new L("");function cG(){return[{provide:WS,useFactory:oG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?HO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function fN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(fN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Gr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var dG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),uG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function gN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?uG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(dG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(gN(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var mG=20,zl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=mG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(zl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Pa.INVERTED?e.left=e.right:Zu()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),pG=20,ho=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=pG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _N=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,xr,pt,xr]})}return t})();var KS={},zt=class t{_appId=p(Rl);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},nr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},Ul=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof nr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends Ul{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ls,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},bN=(()=>{class t extends Gi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends Ul{_moduleRef=p(ls,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var yN=Kv();function Hl(t){return new Xv(t.get(ho),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function MN(t,i){return new Jv(t.get(zl),t.get(be),t.get(ho),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function CN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function Dr(t,i){return new eb(t.get(zl),t.get(ho),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},TN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>MN(this._injector,e);block=()=>Hl(this._injector);reposition=e=>Dr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kN=(()=>{class t extends IN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends IN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var RN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -141,7 +141,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=$($({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye($({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Gs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},DN="cdk-overlay-connected-position-bounding-box",fG=/([A-Za-z%]+)$/;function Fa(t,i){return new em(i,t.get(po),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(DN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=EN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=SN(this._overlayRef.getConfig().minHeight),s=SN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=EN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:xN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Gs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function SN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(fG);return!e||e==="px"?parseFloat(i):null}return t||null}function EN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function gG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var MN="cdk-global-overlay-wrapper";function fs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(MN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(MN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},PN=(()=>{class t{_injector=p(Te);constructor(){}global(){return fs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(ON);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(AN),n,t.get(ms),t.get(RN),i?.disableAnimations??t.get(Rl,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var NN=(()=>{class t{scrollStrategies=p(IN);_positionBuilder=p(PN);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_G=[{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"}],vG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),FN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(vG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(FN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_G);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),ho=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[NN],imports:[pt,xr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function LN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return LN()?t:!!t.capture}var VN=new L("cdk-input-modality-detector-options"),BN={ignoreKeys:[18,17,224,91,16]},jN=650,tE={passive:!0,capture:!0},zN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(VN,{optional:!0});if(this._options=$($({},BN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),UN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(zN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(UN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { +`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=qs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},wN="cdk-overlay-connected-position-bounding-box",hG=/([A-Za-z%]+)$/;function Fa(t,i){return new em(i,t.get(ho),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(wN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=SN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=DN(this._overlayRef.getConfig().minHeight),s=DN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=SN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:CN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&qs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(hG);return!e||e==="px"?parseFloat(i):null}return t||null}function SN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function fG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EN="cdk-global-overlay-wrapper";function gs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},ON=(()=>{class t{_injector=p(Te);constructor(){}global(){return gs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(RN);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(kN),n,t.get(ps),t.get(AN),i?.disableAnimations??t.get(Ol,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var PN=(()=>{class t{scrollStrategies=p(TN);_positionBuilder=p(ON);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gG=[{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"}],_G=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),NN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(_G);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(NN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gG);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[PN],imports:[pt,wr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function FN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return FN()?t:!!t.capture}var LN=new L("cdk-input-modality-detector-options"),VN={ignoreKeys:[18,17,224,91,16]},BN=650,tE={passive:!0,capture:!0},jN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(LN,{optional:!0});if(this._options=G(G({},VN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),zN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(jN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(zN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?BN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -160,14 +160,14 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),ab;function bG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return bG()?.createHTML(t)||t}function HN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var WN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yG(t,i){if(!WN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),WN.add(t))}catch(e){console.error(e)}}function CG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $N(Gs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=$N(Gs(e)).map(a=>this._registerQuery(a).observable),r=bo(o);return r=Ja(r.pipe(bn(1)),r.pipe(Ec(1),Ts(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $N(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_mutationObserverFactory=p(GN);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!xG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YN=(()=>{class t{_contentObserver=p(qN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Ts(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[GN]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return DG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=wG(RG(e));if(n&&(QN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=QN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return AG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wG(t){try{return t.frameElement}catch(i){return null}}function DG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function SG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function EG(t){return TG(t)&&t.type=="hidden"}function MG(t){return IG(t)&&t.hasAttribute("href")}function TG(t){return t.nodeName.toLowerCase()=="input"}function IG(t){return t.nodeName.toLowerCase()=="a"}function XN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function QN(t){if(!XN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function AG(t){return EG(t)?!1:SG(t)||MG(t)||t.hasAttribute("contenteditable")||XN(t)}function RG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(Gr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=$r(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),JN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),eF=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),OG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(eF,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Hs);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(JN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:HN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Hl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Hl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Hl.BLACK_ON_WHITE}return Hl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,KN,ZN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Hl.BLACK_ON_WHITE?e.add(nE,KN):n===Hl.WHITE_ON_BLACK&&e.add(nE,ZN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(tF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function PG(t,i){}var Wl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends zl{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ke);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Wl,{optional:!0})||new Wl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=$r(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=$r();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$r()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,PG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { +`],encapsulation:2,changeDetection:0})}return t})(),ab;function vG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return vG()?.createHTML(t)||t}function UN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var HN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bG(t,i){if(!HN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),HN.add(t))}catch(e){console.error(e)}}function yG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WN(qs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=WN(qs(e)).map(a=>this._registerQuery(a).observable),r=yo(o);return r=es(r.pipe(bn(1)),r.pipe(Ec(1),Is(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WN(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function CG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=(()=>{class t{_mutationObserverFactory=p($N);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!CG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_contentObserver=p(GN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Is(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$N]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=xG(AG(e));if(n&&(YN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=YN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return kG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xG(t){try{return t.frameElement}catch(i){return null}}function wG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SG(t){return MG(t)&&t.type=="hidden"}function EG(t){return TG(t)&&t.hasAttribute("href")}function MG(t){return t.nodeName.toLowerCase()=="input"}function TG(t){return t.nodeName.toLowerCase()=="a"}function ZN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function YN(t){if(!ZN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function IG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function kG(t){return SG(t)?!1:DG(t)||EG(t)||t.hasAttribute("contenteditable")||ZN(t)}function AG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(qr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Gr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),XN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),JN=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),RG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(JN,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Ws);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(XN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:UN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Wl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Wl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Wl.BLACK_ON_WHITE}return Wl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,QN,KN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Wl.BLACK_ON_WHITE?e.add(nE,QN):n===Wl.WHITE_ON_BLACK&&e.add(nE,KN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(eF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function OG(t,i){}var $l=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends Ul{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ke);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p($l,{optional:!0})||new $l,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Gr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Gr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,OG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } -`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},NG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),FG=new L("DialogData"),LG=new L("DefaultDialogConfig");function VG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(LG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(NG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Wl;n=$($({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||fs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Wl,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new tr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=$($({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new tr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:FG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:VG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var nF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[ho,xr,cd,xr]})}return t})();function qr(t){return t!=null&&`${t}`!="false"}function iF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 BG=new L("MATERIAL_ANIMATIONS"),oF=null;function cE(){return p(BG,{optional:!0})?.animationsDisabled||p(Rl,{optional:!0})==="NoopAnimations"?"di-disabled":(oF??=p(im).matchMedia("(prefers-reduced-motion)").matches,oF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var jG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:jG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Ts(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof fr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):cs(i)&&(this._effectRef=Ns(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var qs=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var sF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(sF)))}function $l(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(sF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(Gr),this._id=p(Al)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(aF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(lF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,$l(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function aF(t,i){t.id||(t.id=`${lF}-${i}-${uE++}`)}function zG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",cF="mdc-dialog--opening",dF="mdc-dialog--closing",UG=150,HG=75,WG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?mF(this._config.enterAnimationDuration)??UG:0;_exitAnimationDuration=this._animationsEnabled?mF(this._config.exitAnimationDuration)??HG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(cF,dF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,zG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { +`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},PG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),NG=new L("DialogData"),FG=new L("DefaultDialogConfig");function LG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(FG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(PG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new $l;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||gs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:$l,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new nr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new nr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:NG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:LG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var tF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[fo,wr,cd,wr]})}return t})();function Yr(t){return t!=null&&`${t}`!="false"}function nF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 VG=new L("MATERIAL_ANIMATIONS"),iF=null;function cE(){return p(VG,{optional:!0})?.animationsDisabled||p(Ol,{optional:!0})==="NoopAnimations"?"di-disabled":(iF??=p(im).matchMedia("(prefers-reduced-motion)").matches,iF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var BG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:BG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Is(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof gr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ds(i)&&(this._effectRef=Fs(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Ys=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var aF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(aF)))}function Gl(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(aF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var sF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(qr),this._id=p(Rl)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(rF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(sF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Gl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function rF(t,i){t.id||(t.id=`${sF}-${i}-${uE++}`)}function jG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",lF="mdc-dialog--opening",cF="mdc-dialog--closing",zG=150,UG=75,HG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uF(this._config.enterAnimationDuration)??zG:0;_exitAnimationDuration=this._animationsEnabled?uF(this._config.exitAnimationDuration)??UG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(lF,cF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,jG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { width: 100%; height: 100%; display: block; @@ -356,8 +356,8 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-dialog-component-host { display: contents; } -`],encapsulation:2})}return t})(),uF="--mat-dialog-transition-duration";function mF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Vr(1);_beforeClosed=new Vr(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),pF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),$G=new L("mat-mdc-dialog-default-options"),GG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Ul(t)}}),jh=(()=>{class t{_defaultOptions=p($G,{optional:!0});_scrollStrategy=p(GG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=mr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=WG,this._dialogDataToken=bt}open(e,n){let o;n=$($({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye($({},n),{positionStrategy:fs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Wl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=fF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),hF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends hF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends hF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function fF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var gF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[nF,ho,xr,pt]})}return t})();var _F,vF=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var yF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Gl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||QG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=qG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(CF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(CF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` -`;case"o":return String(i.getDate())+YG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(xF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(xF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},qG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},YG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},xF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Gl(pE(o),new Date(i*1e3))}return n},wF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),DF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,QG={days:vF,shortDays:yF(vF),months:bF,shortMonths:yF(bF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Kr=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{_F=Symbol.toStringTag}constructor(){this[_F]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,SF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(SF),cm;let t=document.createElement("input");return cm=new Set(SF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},EF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,EF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,EF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},KG=800,MF=nm({passive:!0,capture:!0}),TF=["mousedown","touchstart"],IF=["mouseup","mouseleave","touchend","touchcancel"],ZG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { +`],encapsulation:2})}return t})(),dF="--mat-dialog-transition-duration";function uF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Br(1);_beforeClosed=new Br(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function mF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),WG=new L("mat-mdc-dialog-default-options"),$G=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),jh=(()=>{class t{_defaultOptions=p(WG,{optional:!0});_scrollStrategy=p($G);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=HG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye(G({},n),{positionStrategy:gs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:$l,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=hF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){mF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),pF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=hF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends pF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends pF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function hF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var fF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[tF,fo,wr,pt]})}return t})();var gF,_F=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],vF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var bF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},ql=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||YG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=GG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(yF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(yF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` +`;case"o":return String(i.getDate())+qG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(CF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(CF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},GG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},qG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},CF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=ql(pE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),wF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,YG={days:_F,shortDays:bF(_F),months:vF,shortMonths:bF(vF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Wo=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{gF=Symbol.toStringTag}constructor(){this[gF]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,DF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(DF),cm;let t=document.createElement("input");return cm=new Set(DF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},SF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,SF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,SF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},QG=800,EF=nm({passive:!0,capture:!0}),MF=["mousedown","touchstart"],TF=["mouseup","mouseleave","touchend","touchcancel"],KG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -385,7 +385,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(ZG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=$($({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||XG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=$($({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{IF.forEach(e=>{this._triggerElement.addEventListener(e,this,MF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(TF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(IF.forEach(e=>i.removeEventListener(e,this,MF)),this._pointerUpEventsRegistered=!1))}};function XG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Dr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:$($($({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,$($({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,$($({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var JG={capture:!0},e7=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",kF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>e7.map(n=>e.listen(this._document,n,this._onInteraction,JG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(kF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(kF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(KG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||ZG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,MF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TF.forEach(e=>{this._triggerElement.addEventListener(e,this,EF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(MF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(TF.forEach(e=>i.removeEventListener(e,this,EF)),this._pointerUpEventsRegistered=!1))}};function ZG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Sr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var XG={capture:!0},JG=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",IF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>JG.map(n=>e.listen(this._document,n,this._onInteraction,XG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(IF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(IF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -411,7 +411,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var t7=["mat-icon-button",""],n7=["*"],i7=new L("MAT_BUTTON_CONFIG");function AF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(i7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",AF],_tabindex:[2,"tabindex","_tabindex",AF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:t7,ngContentSelectors:n7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),uo(0,"span",0),Ie(1),uo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var e7=["mat-icon-button",""],t7=["*"],n7=new L("MAT_BUTTON_CONFIG");function kF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(n7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",kF],_tabindex:[2,"tabindex","_tabindex",kF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:e7,ngContentSelectors:t7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),mo(0,"span",0),Ie(1),mo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -536,7 +536,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var gs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var o7=["matButton",""],r7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],a7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=s7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?RF.get(this._appearance):null,r=RF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:o7,ngContentSelectors:a7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(r7),uo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),uo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var i7=["matButton",""],o7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],r7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var AF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=a7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AF.get(this._appearance):null,r=AF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:i7,ngContentSelectors:r7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(o7),mo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),mo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -1080,7 +1080,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function s7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Hs,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function l7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function d7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),Gt(1,"safeHtml"),O(2,"mat-dialog-content",1),Gt(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,l7,4,1,"button",2),A(6,c7,3,1,"button",3),A(7,d7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Wo=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})(Wo||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var jF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),zF=(()=>{class t extends jF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),$o=new L("");var u7={provide:$o,useExisting:Wn(()=>Wt),multi:!0};function m7(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p7=new L(""),Wt=(()=>{class t extends jF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!m7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(p7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Qe([u7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),h7=/^(?=.{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])?)*$/,vs=class{static min(i){return f7(i)}static max(i){return g7(i)}static required(i){return UF(i)}static requiredTrue(i){return _7(i)}static email(i){return v7(i)}static minLength(i){return b7(i)}static maxLength(i){return HF(i)}static pattern(i){return y7(i)}static nullValidator(i){return xb()}static compose(i){return QF(i)}static composeAsync(i){return KF(i)}};function f7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function UF(t){return wE(t.value)?{required:!0}:null}function _7(t){return t.value===!0?null:{required:!0}}function v7(t){return wE(t.value)||h7.test(t.value)?null:{email:!0}}function b7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function y7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function WF(t){return t!=null}function $F(t){return Bs(t)?Hn(t):t}function GF(t){let i={};return t.forEach(e=>{i=e!=null?$($({},i),e):i}),Object.keys(i).length===0?null:i}function qF(t,i){return i.map(e=>e(t))}function C7(t){return!t.validate}function YF(t){return t.map(i=>C7(i)?i:e=>i.validate(e))}function QF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){return GF(qF(e,i))}}function SE(t){return t!=null?QF(YF(t)):null}function KF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){let n=qF(e,i).map($F);return rp(n).pipe(et(GF))}}function EE(t){return t!=null?KF(YF(t)):null}function PF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZF(t){return t._rawValidators}function XF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function NF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function FF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ys=class extends Db{name;get formDirective(){return null}get path(){return null}},nr=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(nr,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ys,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",ql=class{},Eb=class extends ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends ql{source;constructor(i){super(),this.source=i}},Tb=class extends ql{source;constructor(i){super(),this.source=i}};function JF(t){return(Fb(t)?t.validators:t)||null}function x7(t){return Array.isArray(t)?SE(t):t||null}function e2(t,i){return(Fb(i)?i.asyncValidators:t)||null}function w7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function D7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function S7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(NF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(FF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(FF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye($({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye($({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye($({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye($({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye($({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye($({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye($({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye($({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$F(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=x7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=w7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(JF(e),e2(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){S7(this,!0,i),Object.keys(i).forEach(n=>{D7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye($({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function E7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),T7(t,i),k7(t,i),I7(t,i),M7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function M7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=ZF(t);i.validator!==null?t.setValidators(PF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=XF(t);i.asyncValidator!==null?t.setAsyncValidators(PF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=XF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function T7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&t2(t,i)})}function I7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&t2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function t2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function k7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function n2(t,i){t==null,ME(t,i)}function A7(t,i){return Ob(t,i)}function i2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function R7(t){return Object.getPrototypeOf(t.constructor)===zF}function o2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Wt?e=r:R7(r)?n=r:o=r}),o||n||e||null}function O7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var P7={provide:Ys,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});n2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),o2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([P7]),We]})}return t})();function LF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(JF(e),e2(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){LF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){LF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){VF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var N7=t=>t instanceof Vb;var F7={provide:nr,useExisting:Wn(()=>Ze)},BF=Promise.resolve(),Ze=(()=>{class t extends nr{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=r2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){BF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);BF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?E7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ys,9),D(Xr,10),D(Pb,10),D($o,10),D(Ke,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Qe([F7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),L7={provide:$o,useExisting:Wn(()=>Sr),multi:!0},Sr=(()=>{class t extends zF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Qe([L7]),We]})}return t})();var V7=(()=>{class t extends Ys{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),O7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,o2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),N7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);n2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&A7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var a2=new L(""),B7={provide:nr,useExisting:Wn(()=>TE)},TE=(()=>{class t extends nr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D($o,10),D(a2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Qe([B7]),We,Ct]})}return t})();var j7={provide:Ys,useExisting:Wn(()=>Yl)},Yl=(()=>{class t extends V7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([j7]),We]})}return t})();function z7(t){return typeof t=="number"?t:parseInt(t,10)}var s2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends s2{required;inputName="required";normalizeInput=K;createValidator=e=>UF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Qe([U7]),We]})}return t})();var H7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends s2{maxlength;inputName="maxlength";normalizeInput=e=>z7(e);createValidator=e=>HF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Qe([H7]),We]})}return t})();var l2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var c2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function W7(t,i){t&1&&Ie(0)}var $7=["tabListContainer"],G7=["tabList"],q7=["tabListInner"],Y7=["nextPaginator"],Q7=["previousPaginator"],K7=["content"];function Z7(t,i){}var X7=["tabBodyWrapper"],J7=["tabHeader"];function e9(t,i){}function t9(t,i){if(t&1&&xe(0,e9,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function n9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function i9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,t9,1,1,null,12)(7,n9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function o9(t,i){t&1&&Ie(0)}function r9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var a9=new L("MatTabContent"),s9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Qe([{provide:a9,useExisting:t}])]})}return t})(),l9=new L("MatTabLabel"),p2=new L("MAT_TAB"),Yn=(()=>{class t extends yN{_closestTab=p(p2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Qe([{provide:l9,useExisting:t}]),We]})}return t})(),h2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(h2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,s9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Qe([{provide:p2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Vs(0,W7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",d2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},c9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(d2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(d2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var f2=(()=>{class t extends c9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),u2={passive:!0},d9=650,u9=100,m9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_viewportRuler=p(po);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),u2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),u2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ts(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qs(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ms(d9,u9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),p9=(()=>{class t extends m9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,f2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at($7,7)(G7,7)(q7,7)(Y7,5)(Q7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Dr,YN],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return t})();function a7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var vs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Ws,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function s7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function l7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),$t(1,"safeHtml"),O(2,"mat-dialog-content",1),$t(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,s7,4,1,"button",2),A(6,l7,3,1,"button",3),A(7,c7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var BF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),jF=(()=>{class t extends BF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var d7={provide:Go,useExisting:Wn(()=>Ht),multi:!0};function u7(){let t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var m7=new L(""),Ht=(()=>{class t extends BF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!u7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(m7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Qe([d7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),p7=/^(?=.{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])?)*$/,bs=class{static min(i){return h7(i)}static max(i){return f7(i)}static required(i){return zF(i)}static requiredTrue(i){return g7(i)}static email(i){return _7(i)}static minLength(i){return v7(i)}static maxLength(i){return UF(i)}static pattern(i){return b7(i)}static nullValidator(i){return xb()}static compose(i){return YF(i)}static composeAsync(i){return QF(i)}};function h7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function zF(t){return wE(t.value)?{required:!0}:null}function g7(t){return t.value===!0?null:{required:!0}}function _7(t){return wE(t.value)||p7.test(t.value)?null:{email:!0}}function v7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function b7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function HF(t){return t!=null}function WF(t){return js(t)?Hn(t):t}function $F(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function GF(t,i){return i.map(e=>e(t))}function y7(t){return!t.validate}function qF(t){return t.map(i=>y7(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){return $F(GF(e,i))}}function SE(t){return t!=null?YF(qF(t)):null}function QF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){let n=GF(e,i).map(WF);return rp(n).pipe(et($F))}}function EE(t){return t!=null?QF(qF(t)):null}function OF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function KF(t){return t._rawValidators}function ZF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function PF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function NF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Qs=class extends Db{name;get formDirective(){return null}get path(){return null}},ir=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(ir,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Qs,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",Yl=class{},Eb=class extends Yl{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends Yl{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends Yl{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends Yl{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends Yl{source;constructor(i){super(),this.source=i}},Tb=class extends Yl{source;constructor(i){super(),this.source=i}};function XF(t){return(Fb(t)?t.validators:t)||null}function C7(t){return Array.isArray(t)?SE(t):t||null}function JF(t,i){return(Fb(i)?i.asyncValidators:t)||null}function x7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function w7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function D7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(PF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(PF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(NF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=WF(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=C7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=x7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(XF(e),JF(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){D7(this,!0,i),Object.keys(i).forEach(n=>{w7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function S7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),M7(t,i),I7(t,i),T7(t,i),E7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function E7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=KF(t);i.validator!==null?t.setValidators(OF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ZF(t);i.asyncValidator!==null?t.setAsyncValidators(OF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=KF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function M7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&e2(t,i)})}function T7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&e2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function e2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function I7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t2(t,i){t==null,ME(t,i)}function k7(t,i){return Ob(t,i)}function n2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function A7(t){return Object.getPrototypeOf(t.constructor)===jF}function i2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function o2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Ht?e=r:A7(r)?n=r:o=r}),o||n||e||null}function R7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var O7={provide:Qs,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});t2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),i2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([O7]),We]})}return t})();function FF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function LF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(XF(e),JF(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(LF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){LF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var P7=t=>t instanceof Vb;var N7={provide:ir,useExisting:Wn(()=>Ze)},VF=Promise.resolve(),Ze=(()=>{class t extends ir{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=o2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),n2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){VF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);VF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?S7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Qs,9),D(Xr,10),D(Pb,10),D(Go,10),D(Ke,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Qe([N7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),F7={provide:Go,useExisting:Wn(()=>Er),multi:!0},Er=(()=>{class t extends jF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Qe([F7]),We]})}return t})();var L7=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),R7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,i2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),P7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);t2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&k7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var r2=new L(""),V7={provide:ir,useExisting:Wn(()=>TE)},TE=(()=>{class t extends ir{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=o2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}n2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(Go,10),D(r2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Qe([V7]),We,Ct]})}return t})();var B7={provide:Qs,useExisting:Wn(()=>Ql)},Ql=(()=>{class t extends L7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([B7]),We]})}return t})();function j7(t){return typeof t=="number"?t:parseInt(t,10)}var a2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var z7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends a2{required;inputName="required";normalizeInput=K;createValidator=e=>zF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Qe([z7]),We]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends a2{maxlength;inputName="maxlength";normalizeInput=e=>j7(e);createValidator=e=>UF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Qe([U7]),We]})}return t})();var s2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var l2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:r2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function H7(t,i){t&1&&Ie(0)}var W7=["tabListContainer"],$7=["tabList"],G7=["tabListInner"],q7=["nextPaginator"],Y7=["previousPaginator"],Q7=["content"];function K7(t,i){}var Z7=["tabBodyWrapper"],X7=["tabHeader"];function J7(t,i){}function e9(t,i){if(t&1&&xe(0,J7,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function t9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function n9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,e9,1,1,null,12)(7,t9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function i9(t,i){t&1&&Ie(0)}function o9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var r9=new L("MatTabContent"),a9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Qe([{provide:r9,useExisting:t}])]})}return t})(),s9=new L("MatTabLabel"),m2=new L("MAT_TAB"),Yn=(()=>{class t extends bN{_closestTab=p(m2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Qe([{provide:s9,useExisting:t}]),We]})}return t})(),p2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(p2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,a9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Qe([{provide:m2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Bs(0,H7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",c2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},l9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(c2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(c2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var h2=(()=>{class t extends l9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),d2={passive:!0},c9=650,d9=100,u9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_viewportRuler=p(ho);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),d2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),d2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Is(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ys(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ts(c9,d9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),m9=(()=>{class t extends u9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,h2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at(W7,7)($7,7)(G7,7)(q7,5)(Y7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Sr,qN],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -1199,7 +1199,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` color: GrayText; } } -`],encapsulation:2})}return t})(),h9=new L("MAT_TABS_CONFIG"),m2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ke);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(m2,5)(K7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,Z7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[m2,Th],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return t})(),p9=new L("MAT_TABS_CONFIG"),u2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ke);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(u2,5)(Q7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,K7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[u2,Th],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -1251,7 +1251,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new fr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(h9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(X7,5)(J7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Qe([{provide:h2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,i9,8,17,"div",4,De),d(),A(4,o9,1,0),c(5,"div",5,1),fe(7,r9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[p9,f2,Nh,Dr,Vo,RE],styles:[`.mdc-tab { +`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(p9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(Z7,5)(X7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Qe([{provide:p2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,n9,8,17,"div",4,De),d(),A(4,i9,1,0),c(5,"div",5,1),fe(7,o9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[m9,h2,Nh,Sr,Vo,RE],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -1472,15 +1472,15 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transition: none !important; animation: none !important; } -`],encapsulation:2})}return t})(),OE=class{index;tab};var g2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function f9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function M9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=Wo}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,f9,1,1,"uds-field-text",1)(2,g9,1,1,"uds-field-autocomplete",1)(3,_9,1,1,"uds-field-textbox",1)(4,v9,1,1,"uds-field-numeric",1)(5,b9,1,1,"uds-field-password",1)(6,y9,1,1,"uds-field-hidden",1)(7,C9,1,1,"uds-field-choice",1)(8,x9,1,1,"uds-field-multichoice",1)(9,w9,1,1,"uds-field-editlist",1)(10,D9,1,1,"uds-field-checkbox",1)(11,S9,1,1,"uds-field-imgchoice",1)(12,E9,1,1,"uds-field-date",1)(13,M9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function I9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function k9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function A9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,I9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,k9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function R9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,A9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function O9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function P9(t,i){if(t&1&&(c(0,"div",1),fe(1,O9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var _2=django.gettext("Main"),N9=django.gettext("Advanced"),v2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?_2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===_2?-1:e===N9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,R9,3,2,"mat-tab-group",0)(1,P9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function L9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var b2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),Gt(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,L9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,v2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===Wo.TEXT&&l.gui.lines&&(l.gui.type=Wo.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(b2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===Wo.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("
")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var V9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return Kr(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Ut=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Ut||{});var NE="provider",FE="service",Zh="pool",B9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",j9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+j9[i]+"",type:Ut.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case B9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function z9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var U9=["label"];function H9(t,i){}var W9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W9))}_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}},y2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),C2=(()=>{class t{snackBarRef=p(Jh);data=p(y2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,z9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` -`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,$9,G9,q9],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2})}return t})(),OE=class{index;tab};var f2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function h9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function f9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,h9,1,1,"uds-field-text",1)(2,f9,1,1,"uds-field-autocomplete",1)(3,g9,1,1,"uds-field-textbox",1)(4,_9,1,1,"uds-field-numeric",1)(5,v9,1,1,"uds-field-password",1)(6,b9,1,1,"uds-field-hidden",1)(7,y9,1,1,"uds-field-choice",1)(8,C9,1,1,"uds-field-multichoice",1)(9,x9,1,1,"uds-field-editlist",1)(10,w9,1,1,"uds-field-checkbox",1)(11,D9,1,1,"uds-field-imgchoice",1)(12,S9,1,1,"uds-field-date",1)(13,E9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function T9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function I9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function k9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,T9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,I9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function A9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,k9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function R9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function O9(t,i){if(t&1&&(c(0,"div",1),fe(1,R9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var g2=django.gettext("Main"),P9=django.gettext("Advanced"),_2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?g2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===g2?-1:e===P9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,A9,3,2,"mat-tab-group",0)(1,O9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function F9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var v2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),$t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,F9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,_2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(v2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var L9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return Wo(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Gt=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Gt||{});var NE="provider",FE="service",Zh="pool",V9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",B9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+B9[i]+"",type:Gt.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case V9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function j9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var z9=["label"];function U9(t,i){}var H9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,H9))}_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}},b2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},W9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),y2=(()=>{class t{snackBarRef=p(Jh);data=p(b2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,j9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` +`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,W9,$9,G9],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",Y9=(()=>{class t extends zl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(U9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,H9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",q9=(()=>{class t extends Ul{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(z9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,U9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1596,7 +1596,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return t})(),Q9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Q9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=C2;snackBarContainerComponent=Y9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=$($({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new tr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=$($($({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new tr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=fs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:y2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[ho,xr,_s,C2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",so=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Ql=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2})}return t})(),Y9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Y9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=y2;snackBarContainerComponent=q9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new nr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new nr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=gs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:b2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[fo,wr,vs,y2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",lo=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Kl=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1702,7 +1702,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();var Z9=["text"],X9=[[["mat-icon"]],"*"],J9=["mat-icon","*"];function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function tq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function nq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ke);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._signalDisableRipple=!!this._parent&&cs(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(Z9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:J9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(X9),A(0,eq,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,tq,1,1,"mat-pseudo-checkbox",3),A(6,nq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Dr],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return t})();var K9=["text"],Z9=[[["mat-icon"]],"*"],X9=["mat-icon","*"];function J9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function tq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ke);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(qr),this._signalDisableRipple=!!this._parent&&ds(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(K9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:X9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(Z9),A(0,J9,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,eq,1,1,"mat-pseudo-checkbox",3),A(6,tq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Sr],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -1823,7 +1823,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,w2,Mt,pt]})}return t})();var Kl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var iq=["mat-internal-form-field",""],oq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:iq,ngContentSelectors:oq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,x2,Mt,pt]})}return t})();var Zl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var nq=["mat-internal-form-field",""],iq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:nq,ngContentSelectors:iq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends so{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye($({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var D2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:so,useClass:sq},{provide:Ql,useValue:t}]}var S2="dark-theme",E2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[S2,E2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?S2:E2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(er),we(jh),we(HE),we(Hs),we(so))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Zl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var T2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var Xl=3e4,Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),ci=class{constructor(i,e,n){this.api=i,n===void 0&&(n={}),n.base===void 0&&(n.base=e);let o=(r,a)=>r===void 0?a:r;this.id=e,this.paths={base:n.base,get:o(n.get,n.base),log:o(n.log,n.base),put:o(n.put,n.base),test:o(n.test,n.base+"/test"),delete:o(n.delete,n.base),types:o(n.types,n.base+"/types"),gui:o(n.gui,n.base+"/gui"),tableInfo:o(n.tableInfo,n.base+"/tableinfo")},this.headers=new Xo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.paths.log,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.paths.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Kr(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xl).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Xo}:(this.handleError(r),{items:[],headers:new Xo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Kr(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Io(n=>this.handleError(n))),Xl)}delete(i){return Kr(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.paths.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Kr(this.api.http.put(r,a,{headers:this.headers}).pipe(Io(s=>this.handleError(s))),Xl)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Kr(this.api.http.put(e,n,{headers:this.headers}).pipe(Io(o=>this.handleError(o))),Xl)}types(){return this.doGet(this.getPath(this.paths.types))}gui(i){let e=this.getPath(this.paths.gui+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(i,e){return new GE(this,i,e)}invoke(i,e){let n=i+(e?"?"+e:"");return this.typedGet(n)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.paths.base)+"/position/"+i)}getPath(i,e){if(i===void 0)throw new Error("Path is undefined");return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Kr(this.api.http.get(i,{headers:this.headers}).pipe(Io(e=>this.handleError(e))),Xl)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Kr(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Io(n=>this.handleError(n,!0))),Xl)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.paths.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.get(i+"/maintenance")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.get(i+"/assign/"+e)}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}actionsList(i){return this.get(i+"/actionsList")}listAssignables(i){return this.get(i+"/listAssignables")}createFromAssignable(i,e,n){return this.get(i+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.get(i+"/setFallbackAccess?fallbackAccess="+e)}getFallbackAccess(i){return this.get(i+"/getFallbackAccess")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Kr(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Kr(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),Xl).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hq=["determinateSpinner"];function fq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var gq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,_q=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(gq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-_q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(hq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,fq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var oq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,rq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(oq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(rq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var sq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lq()]})}return t})();function lq(t=sq){return[{provide:lo,useClass:aq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,dq,7,1,"div",2),A(6,uq,7,1,"div",2),A(7,mq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var La=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Wo(this.api.http.get(n,{headers:this.headers,observe:"response"}),La).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Wo(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(ao(n=>this.handleError(n))),La)}delete(i){return Wo(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(ao(e=>this.handleError(e))),La)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Wo(this.api.http.put(r,a,{headers:this.headers}).pipe(ao(s=>this.handleError(s))),La)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Wo(this.api.http.put(e,n,{headers:this.headers}).pipe(ao(o=>this.handleError(o))),La)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Wo(this.api.http.get(i,{headers:this.headers}).pipe(ao(e=>this.handleError(e))),La)}typedGet(i){return this.doGet(this.getPath(this.base,i))}typedPut(i,e){return Wo(this.api.http.put(this.getPath(this.base,e),i,{headers:this.headers}).pipe(ao(n=>this.handleError(n,!0))),La)}typedPost(i,e){return Wo(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(ao(n=>this.handleError(n,!0))),La)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?Wo(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(ao(r=>this.handleError(r,!0))),La):Wo(this.api.http.post(o,{},{headers:this.headers}).pipe(ao(r=>this.handleError(r,!0))),La)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Wo(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Wo(this.api.http.get(this.getPath(this.base),{headers:this.headers}),La).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hq=["determinateSpinner"];function fq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var gq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,_q=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(gq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-_q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(hq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,fq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; @@ -2032,9 +2032,9 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transform: rotate(-265deg); } } -`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vq="uplot",bq="u-hz",yq="u-vt",Cq="u-title",xq="u-wrap",wq="u-under",Dq="u-over",Sq="u-axis",gd="u-off",Eq="u-select",Mq="u-cursor-x",Tq="u-cursor-y",Iq="u-cursor-pt",kq="u-legend",Aq="u-live",Rq="u-inline",Oq="u-series",Pq="u-marker",R2="u-label",Nq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Fq="resize",Lq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Vq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Mr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function La(t,i,e,n){let o=eM.createElement(t);return i!=null&&Mr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return La("div",t,i)}var j2=new WeakMap;function bs(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Mr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Bq=Ye($({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Bq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Va(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Tr((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),jq=vL(yL);function zq(t,i,e,n=0,o=!1){let r=o?jq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Ks:CL,s=o==1?Tr:ta,l=r==1?ta:Tr,u=s(a(Zi(t))),h=l(a(Zi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Uq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Uq))}function wn(t,i){return t??i}function Hq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Ks(w),P=Go(Zi(t),Zi(i)),j=Ks(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Ks(q),oe=Dm(10,Tr(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=Go(s,Ce=Le?Le:Ba(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=Ba(l,ht>Se&&i<=Se?Se:Go(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Wq=new Intl.NumberFormat(Tm?Vq.language:"en-US"),fM=t=>Wq.format(t),Ir=Math,C0=Ir.PI,Zi=Ir.abs,Tr=Ir.floor,Ki=Ir.round,ta=Ir.ceil,Ba=Ir.min,Go=Ir.max,Dm=Ir.pow,q2=Ir.sign,Ks=Ir.log10,CL=Ir.log2,$q=(t,i=1)=>Ir.sinh(t)*i,KE=(t,i=1)=>Ir.asinh(t/i),Kn=1/0;function Y2(t){return(Ks((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return Ba(Go(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var Gq=()=>{},wL=t=>t,DL=(t,i)=>i,qq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Yq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Yq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Tr(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Qq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Kq(t){return t!=null&&typeof t=="object"}var Zq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function oY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=Go(1,Tr((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var sY=kL.map(AL),lY=IL.map(AL),cY={MMMM:IL,MMM:lY,WWWW:kL,WWW:sY};function of(t){return(t<10?"0":"")+t}function dY(t){return(t<10?"00":t<100?"0":"")+t}var uY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>dY(t.getMilliseconds())};function _M(t,i){i=i||cY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?uY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],hY=df(10,-32,0,D0),OL=df(10,0,32,D0),fY=OL.filter(RL),fd=hY.concat(OL),vM=` -`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",gY="{h}:{mm}",xm=gY+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Tr(S)-Tr(Ce),Se=Je+ht+M0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Tr(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[_Y,vY,bY]=LL(1),[yY,CY,xY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function wY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var DY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function SY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function EY(t,i){return t.series[i].fill(t,i)}var MY={show:!0,live:!0,isolate:!1,mount:Gq,markers:{show:!0,width:2,stroke:SY,fill:EY,dash:"solid"},idx:null,idxs:null,values:[]};function TY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function IY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function kY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function AY(t,i){return t.series[i].points.size}var XE=[0,0];function RY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var OY={show:!0,x:!0,y:!0,lock:!1,move:RY,points:{one:!1,show:TY,size:AY,width:0,stroke:kY,fill:IY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},PY="Value",NY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function FY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function LY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Ks:CL,h=Tr(u(e));o=Dm(l,h),l==10&&(o=fd[Va(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Va(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Va(y,fd)]));while(g<=n);return s}function VY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,Go(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,Go(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,BY=/[12357]/,jY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function zY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?BY:l(5,a)-h>=u?jY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:$Y,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function GY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},qY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function QY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=Ba(u,s/2,l/2),h=Ba(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var KY=JL(Im),ZY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=KY):(oe=km,Ne=ZY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Zs(e,n,o,r,Je,-1),Zs(e,n,o,r,Je,1)]:Zs(e,n,o,r,Je,Tt)),Le})}function XY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Zs(r,a,s,l,Se,-1),Zs(r,a,s,l,Se,1)]:Zs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,$a,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,$a)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Yo=!1,xs=null,Rr=null,rl=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Yo=!0,xs=g.values(w,S,P,j),Rr=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Rr.set(Pe,new Path2D)}),jn>0&&(rl=y.values(w,S,P,j),Ad=new Map,new Set(rl).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let So={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Yo?null:new Path2D,ws=null;if(ft!=null)ws=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),ws=Pe.values(w,S,P,j))}let rc=ae*Rt,$t=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(ws!=null){let Qo=ws[Pe]??0;if(ei-Qo==0)continue;Ji=Le(Qo,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),$a=Tt(Pd-Xn),sc=Tt(Go(ac,Ji)),sr=Tt(Ba(ac,Ji)),Or=sc-sr;if(ei!=null){let Qo=ei<0?$t:rc,sa=ei<0?rc:$t;Yo?(jn>0&&rl[Pe]!=null&>(Ad.get(rl[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),xs[Pe]!=null&>(Rr.get(xs[Pe]),$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa)):gt(Od,$a,sr+Tr(jn/2),Rt,Go(0,Or-jn),Qo,sa),Qt(w,S,Pe,$a-jn/2,sr,Rt+jn,Or)}}return jn>0?So.stroke=Yo?Ad:Od:Yo||(So._fill=F.width==0?F._fill:F._stroke??F._fill,So.width=0),So.fill=Yo?Rr:Od,So})}function eQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Zs(n,o,r,a,It,-1),Zs(n,o,r,a,It,1)]:Zs(n,o,r,a,It,pe)),qe})}function tQ(t){return eQ(nQ,t)}function nQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var iQ=eV(),oQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function rQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var aQ=tV;function sQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var lQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var cQ=iV;function dQ(t,i,e,n,o){let r=Go(Y2(t),Y2(i)),a=i-t,s=Va(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function uQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(vq);if(t.id!=null&&(u.id=t.id),Mr(u,t.class),t.title){let v=ea(Cq,u);v.textContent=t.title}let h=La("canvas"),g=n.ctx=h.getContext("2d"),y=ea(xq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&co.click(n,v)},!0);let w=n.under=ea(wq,y);y.appendChild(h);let S=n.over=ea(Dq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):rQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:r4,series:e4},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Ks(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:qY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?aQ:v==Ce?C.distr==3?lQ:C.distr==4?cQ:tV:C.distr==3?nV:C.distr==4?iV:sQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||GY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Mr(u,bq),qe=r,It=a):(Mr(u,yq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?bY(pe):xY(pe),nt=nL(pe,tL(F==1?vY:CY,ae)),gt=oL(pe,iL(DY,ae)),Qt=[],ft=n.legend=Ni({},MY,t.legend),Ve=n.cursor=Ni({},OY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Yo=[],xs,Rr=!1,rl={};if(ft.live){let v=q[1]?q[1].values:null;Rr=v!=null,xs=Rr?v(n,1,0):{_:0};for(let C in xs)rl[C]=uM}if(jt)if(Rt=La("table",kq,u),Jn=La("tbody",null,Rt),ft.mount(n,Rt),Rr){Li=La("thead",null,Rt,Jn);let v=La("tr",null,Li);La("th",null,v);for(var Ad in xs)La("th",R2,v).textContent=Ad}else Mr(Rt,Rq),ft.live&&Mr(Rt,Aq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Rr||!ft.live||o==2))return Sm;let E=[],M=La("tr",Oq,Jn,Jn.childNodes[C]);Mr(M,v.class),v.show||Mr(M,gd);let N=La("th",null,M);if(Xn.show){let he=ea(Pq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),So("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&qa(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else qa(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&So(F2,N,he=>{Ve._lock||(cc(he),qa(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in xs){let he=La("td",Nq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function So(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let ws=0,rc=0,$t=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,$a=$t,sc=Pe,sr=0,Or=0,Qo=0,sa=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Pr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&sT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function sT(v,C){n.width=ws=$t=v,n.height=rc=Pe=C,ei=Vi=0,qj(),Yj();let E=n.bbox;sr=E.left=hd(ei*kn,.5),Or=E.top=hd(Vi*kn,.5),Qo=E.width=hd($t*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Wj=3;function $j(){let v=!1,C=0;for(;!v;){C++;let E=i4(C),M=o4(C);v=C==Wj||E&&M,v||(sT(n.width,n.height),If=!0)}}function Gj({width:v,height:C}){Hy(v,C)}n.setSize=Gj;function qj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?($t-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,$t-=al[1]+al[3],ei+=al[3],Pe-=al[2]+al[0],Vi+=al[0]}function Yj(){let v=ei+$t,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let go=Ve.points;go.show=ln(go.show),go.size=ln(go.size),go.stroke=ln(go.stroke),go.width=ln(go.width),go.fill=ln(go.fill);let Ga=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=Ga.prox>=0,Ld=Fd&&go.one,Nr=[],Vd=[],Bd=[];function lT(v,C){let E=go.show(n,C);if(E instanceof HTMLElement)return Mr(E,Iq),Mr(E,v.class),bs(E,-10,-10,$t,Pe),S.insertBefore(E,Nr[C]),E}function cT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||HY,v.label=v.label||(E?NY:PY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||iQ||qq,v.fillTo=ln(v.fillTo||YY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=WY(Go(1,v.width),1),M=v.points=Ni({},{size:E,width:Go(1,E*.2),stroke:v.stroke,space:E*2,paths:oQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Yo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=lT(v,C)):C>0&&(E=lT(v,C)),Nr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}oo("addSeries",C)}function Qj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),cT(q[C],C)}n.addSeries=Qj;function Kj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Yo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Nr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),oo("delSeries",v)}n.delSeries=Kj;let dc=[!1,!1,!1,!1];function Zj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?fY:N?F==1?_Y:yY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?VY:LY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?wY(pe,U):U||nt:U||FY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?zY:M.distr==3&&M.log==2?UY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Sq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let dT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),al=n._padding=dT.map((v,C)=>v(n,C,dc,0)),lo,eo=null,to=null,Af=o==1?q[0].idxs:null,la=null,$m=!1;function uT(v,C){if(i=v??[],n.data=n._data=i,o==2){lo=0;for(let E=1;E=0,Pr=!0,Ud()}}n.setData=uT;function Wy(){$m=!0;let v,C;o==1&&(lo>0?(eo=Af[0]=0,to=Af[1]=lo-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=w0(v,C,hM,!0))):(eo=Af[0]=v=null,to=Af[1]=C=null)),ll(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Ko;function mT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function pT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?zq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=Ba(v.min,E.min=he[0]),v.max=Go(v.max,E.max=he[1])}}let hT={min:null,max:null};function Xj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=hT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=hT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Kq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(lo==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(lo>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Va(he.min,i[0]),to=Va(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Ks(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Ks(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Pr=!0)}for(let M in ot)ot[M]=null}function Jj(v){let C=oM(eo-1,0,lo-1),E=oM(to+1,0,lo-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Ko!=Ga.alpha;v&&(g.globalAlpha=Ko=Ga.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(fT(E,!1),fT(E,!0),C._paths==null)){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha);let N=o==2?[0,i[E][0].length-1]:Jj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Ko!=M&&(g.globalAlpha=Ko=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Ko;Ko!=C.alpha&&(g.globalAlpha=Ko=C.alpha),C._paths!=null&&gT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),gT(E,!0))}Ko!=M&&(g.globalAlpha=Ko=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Ko=1)}}function fT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function gT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=sr-Ae/2,vn=Or-Ae/2,tn=Qo+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):t4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function t4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Hq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let _T=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){mT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&_T)==_T?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function n4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=dQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),mT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=n4(M,he,ye,re==0?$t:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function o4(v){let C=!0;return dT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=al[M]&&(C=!1),al[M]=N}),C}function r4(){for(let v=0;vla[Mo]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),lr=(gi+ro)*he,Eo=_i+lr;U=M==0?Eo:0,N=M==1?Eo:0;let Fr=C.font[0],ca=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Qa=zn||M==1?"middle":E==2?"top":O2;pT(Fr,re,ca,Qa);let cr=C.font[1]*C.lineGap,Lr=Dn.map(Mo=>j(s(Mo,Oe,Be,Lt))),da=C._values;for(let Mo=0;Mo{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function a4(){tC=!1;for(let v=0;v0&&queueMicrotask(a4)}n.batch=s4;function vT(){if(Uy&&(Xj(),Uy=!1),Nd&&($j(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,$t),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,$t),di(S,af,Pe),di(y,rf,ws),di(y,af,rc),h.width=Ki(ws*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:$t),nM(v,gd)}else Mr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Ko=1,Qm(!0),ei!=Pd||Vi!=ac||$t!=$a||Pe!=sc){zd(!1);let v=$t/$a,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&bs(Hd,Ki(Ve.left),0,$t,Pe),Wd&&bs(Wd,0,Ki(Ve.top),$t,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,$a=$t,sc=Pe}oo("setSize"),If=!1}ws>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&kf&&(Ff(ri),kf=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Pr&&(rC(),Pr=!1),l||(l=!0,n.status=1,oo("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?ll(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(lo==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(lo>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&lo>0&&(C.min=Va(C.min,i[0]),C.max=Va(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,bT,yT,$d,Gd,CT,xT,oi,ui,sl=!1,co=Ve.drag,no=co.x,io=co.y;Ji&&(Ve.x&&(iC=ea(Mq,S)),Ve.y&&(oC=ea(Tq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ea(Eq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Ff;function l4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Mr(jn[v],gd),Ji){let E=Ld?Nr[0]:Nr[v];E!=null&&bs(E,-10,-10,$t,Pe)}}function ll(v,C,E){nC(v,{min:C,max:E})}function qa(v,C,E,M){C.focus!=null&&p4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,l4(U),o==2?(ll(N.facets[0].scale,null,null),ll(N.facets[1].scale,null,null)):ll(N.scale,null,null),Ud())}),E!==!1&&oo("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=qa;function c4(v,C){Ni(Ne[v],C)}function d4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function u4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=d4,n.setBand=c4,n.delBand=u4;function m4(v,C){q[v].alpha=C,Ji&&Nr[v]!=null&&(Nr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ds,cl,uc,Yd={focus:!0};function p4(v){if(v!=uc){let C=v==null,E=Ga.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&m4(N,U?1:Ga.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&So(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&qa(null,Yd,!0,Ii.setSeries))});function Ya(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=$t;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?$q(ye,M.asinh):Ae==100?M.bwd(ye):ye}function h4(v,C){let E=Ya(v,Ce,C);return Va(E,i[0],eo,to)}n.valToIdx=v=>Va(v,i[0]),n.posToIdx=h4,n.posToVal=Ya,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Qo:$t,E?sr:0):a(v,oe[C],E?sa:Pe,E?Or:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function wT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function DT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?wT:DT,Ym=Se.ori==1?wT:DT;function f4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Qq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Rr)&&g4(E,Qt[E]);f4()}Pr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function g4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Rr?N=E.values(n,v,C)??rl:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?rl:{_:N}),ft.values[v]=N}function mc(v,C,E){CT=oi,xT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Hd&&bs(Hd,Ki(oi),0,$t,Pe),Wd&&bs(Wd,0,Ki(ui),$t,Pe));let M,N=eo>to;Ds=Kn,cl=null;let U=Se.ori==0?$t:Pe,re=Se.ori==1?$t:Pe;if(oi<0||lo==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let lr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Eo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Fr=Se.ori==1?oi:ui,ca=Zi(Ga.dist(n,rt,zn,Eo,Fr));if(ca=0?1:-1,da=cr>=0?1:-1;da==Lr&&(da==1?Qa==1?_i>=cr:_i<=cr:Qa==1?_i<=cr:_i>=cr)&&(Ds=ca,cl=rt)}else Ds=ca,cl=rt}}if(Pr||Ld){let Fr,ca;Se.ori==0?(Fr=lr,ca=Eo):(Fr=Eo,ca=lr);let Qa,cr,Lr,da,Ka,Mo,dr=!0,pc=go.bbox;if(pc!=null){dr=!1;let To=pc(n,rt);Lr=To.left,da=To.top,Qa=To.width,cr=To.height}else Lr=Fr,da=ca,Qa=cr=go.size(n,rt);if(Mo=go.fill(n,rt),Ka=go.stroke(n,rt),Ld)rt==cl&&Ds<=Ga.prox&&(Oe=Lr,Be=da,Lt=Qa,Dn=cr,vn=dr,tn=Mo,St=Ka);else{let To=Nr[rt];To!=null&&(Vd[rt]=Lr,Bd[rt]=da,W2(To,Qa,cr,dr),U2(To,Mo,Ka),bs(To,ta(Lr),ta(da),$t,Pe))}}}}if(Ld){let rt=Ga.prox,ai=uc==null?Ds<=rt:Ds>rt||cl!=uc;if(Pr||ai){let gi=Nr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),bs(gi,ta(Oe),ta(Be),$t,Pe))}}}if(ri.show&&sl)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,lr,Eo,Fr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Fr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],lr=qe(gi(ro,Be),_i,U,0),Eo=qe(gi(ro+zn,Be),_i,U,0),qm(Ba(lr,Eo),Zi(Eo-lr))):qm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],lr=It(gi(ro,Lt),_i,re,0),Eo=It(gi(ro+zn,Lt),_i,re,0),Ym(Ba(lr,Eo),Zi(Eo-lr))):Ym(0,re)}else lC()}else{let he=Zi(CT-bT),ye=Zi(xT-yT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=co.x&&he>=co.dist,io=co.y&&ye>=co.dist;let Ae=co.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):co.x&&co.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(Ba(Oe,Be),Zi(Be-Oe)),io||Ym(0,re)),io&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(Ba(Oe,Be),Zi(Be-Oe)),no||qm(0,U)),!no&&!io&&(qm(0,0),Ym(0,0))}if(co._x=no,co._y=io,v==null){if(E){if(NT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Ya(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Ya(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,$t,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=Ga.prox;uc==null?Ds<=ye&&qa(cl,Yd,!0,he):Ds>ye?qa(null,Yd,!0,he):cl!=uc&&qa(cl,Yd,!0,he)}}Pr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let dl=null;Object.defineProperty(n,"rect",{get(){return dl==null&&Qm(!1),dl}});function Qm(v=!1){v?dl=null:(dl=S.getBoundingClientRect(),oo("syncRect",dl))}function ST(v,C,E,M,N,U,re){Ve._lock||sl&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(dl==null&&Qm(!1),cc(v),v!=null)E=v.clientX-dl.left,M=v.clientY-dl.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?$t:Pe,ro=Se.ori==1?$t:Pe,zn=ai?U:N,_i=ai?N:U,lr=ai?M:E,Eo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(lr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Eo/_i),Se.ori==1){let Fr=E;E=M,M=Fr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=$t-1)&&(E=hd(E,$t)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(bT=E,yT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ET,MT,TT,IT;function kT(v,C,E,M,N,U,re){sl=!0,no=io=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(So(QE,eM,AT,!1),Km(N2,n,$d,Gd,$t,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ET=he,MT=ye,TT=Ae,IT=Oe}function AT(v,C,E,M,N,U,re){sl=co._x=co._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ET!=he||MT!=ye||TT!=Ae||IT!=Oe;if(Be&&Lt&&Ff(ri),co.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&ll(Ce,Ya(Dn,Ce),Ya(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&ll(rt,Ya(tn+St,rt),Ya(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,$t,Pe,null))}function _4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=sl;if(sl){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=$t-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:$t),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&qa(E,M,!0,!1)},Ji&&(So(N2,S,kT),So(YE,S,ST),So(F2,S,v=>{cc(v),Qm(!1)}),So(L2,S,_4),So(V2,S,RT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function oo(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let PT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,PT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(PT),Ve.sync=Ii;let NT=Ii.key,cC=GL(NT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function v4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=v4;function b4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,OT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=b4;function dC(){oo("init",t,i),uT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Pr=!0,Hy(t.width,t.height)}return q.forEach(cT),ve.forEach(Zj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=nY;Ti.fmtDate=_M,Ti.tzDate=pY;Ti.sync=GL;{Ti.addGap=QY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=XY,t.bars=JY,t.spline=tQ}var mQ=["host"],pQ=["donut"],oV=(t,i)=>i.name;function hQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function fQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,hQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function gQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function _Q(t,i){if(t&1&&(c(0,"div",10),fe(1,gQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function vQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function bQ(t,i){if(t&1&&(c(0,"div",3),A(1,_Q,3,0,"div",10),O(2,"div",11,0),A(4,vQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function yQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye($({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[yQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(mQ,5)(pQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,fQ,8,0,"div",2)(1,bQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var xQ=(t,i)=>i.value,wQ=(t,i)=>i.user;function DQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function SQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function TQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function IQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,EQ,6,1)(2,MQ,9,2)(3,TQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function kQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function AQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function RQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function OQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function PQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function QQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function KQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function ZQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function XQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function JQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function eK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,JQ,11,5,"tr",null,wQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function tK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function nK(t,i){if(t&1&&(A(0,RQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,OQ,1,1,"uds-uplot-chart",19)(7,PQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,NQ,1,1,"uds-uplot-chart",19)(13,FQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,LQ,1,1,"uds-uplot-chart",19)(19,VQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,BQ,1,1,"uds-uplot-chart",19)(25,jQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,zQ,1,1,"uds-uplot-chart",19)(31,UQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,HQ,1,1,"uds-uplot-chart",19)(37,WQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,$Q,1,1,"uds-uplot-chart",19)(43,GQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,qQ,1,1,"uds-uplot-chart",19)(49,YQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,QQ,1,1,"uds-uplot-chart",19)(55,KQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,ZQ,1,1,"uds-uplot-chart",19)(61,XQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,eK,25,0,"div",23),c(74,"div",24),A(75,tK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var DM=null,aV=(()=>{class t{constructor(e,n){this.api=e,this.rest=n,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){DM===null&&(DM=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return DM||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(T2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,DQ,2,3,"button",3,xQ),d(),c(5,"div",4),A(6,SQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,IQ,4,5,"div",8),A(11,kQ,2,2,"div",9),d()(),A(12,AQ,5,0,"div",10)(13,nK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function oK(t,i){t&1&&O(0,"uds-dashboard")}function rK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,oK,1,0,"uds-dashboard")(3,rK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var ys=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var aK=["notch"],sK=["matFormFieldNotchedOutline",""],lK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],cK=["textField"],dK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mK(t,i){t&1&&O(0,"span",21)}function pK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,mK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hK(t,i){if(t&1&&A(0,pK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function fK(t,i){t&1&&O(0,"div",7)}function gK(t,i){}function _K(t,i){if(t&1&&xe(0,gK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function vK(t,i){if(t&1&&(c(0,"div",9),A(1,_K,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function bK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function yK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function CK(t,i){}function xK(t,i){if(t&1&&xe(0,CK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function wK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function DK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function SK(t,i){t&1&&O(0,"div",16)}function EK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function MK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function TK(t,i){if(t&1&&(c(0,"div",19),A(1,MK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var SM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var EM=new L("MatSuffix"),kr=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Qe([{provide:EM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return IK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function IK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(aK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:sK,ngContentSelectors:lK,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&&(vt(),uo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),uo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Xs=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",kK="auto",_V="fixed",AK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=TO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=qr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||kK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Ns(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){FO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${AK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Xs,5)(r,bV,5)(r,EM,5)(r,vV,5)(r,SM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(cK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Qe([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:uK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(dK),xe(0,hK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,fK,1,0,"div",7),c(5,"div",8),A(6,vK,2,2,"div",9),A(7,bK,3,0,"div",10),A(8,yK,3,0,"div",11),c(9,"div",12),A(10,xK,1,1,null,13),Ie(11),d(),A(12,wK,3,0,"div",14),A(13,DK,3,0,"div",15),d(),A(14,SK,1,0,"div",16),d(),c(15,"div",17),A(16,EK,2,0,"div",18)(17,TK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,SM],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vq="uplot",bq="u-hz",yq="u-vt",Cq="u-title",xq="u-wrap",wq="u-under",Dq="u-over",Sq="u-axis",gd="u-off",Eq="u-select",Mq="u-cursor-x",Tq="u-cursor-y",Iq="u-cursor-pt",kq="u-legend",Aq="u-live",Rq="u-inline",Oq="u-series",Pq="u-marker",R2="u-label",Nq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Fq="resize",Lq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Vq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Tr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function Va(t,i,e,n){let o=eM.createElement(t);return i!=null&&Tr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return Va("div",t,i)}var j2=new WeakMap;function ys(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Tr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Bq=Ye(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Bq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Ba(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Ir((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),jq=vL(yL);function zq(t,i,e,n=0,o=!1){let r=o?jq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Zs:CL,s=o==1?Ir:ta,l=r==1?ta:Ir,u=s(a(Zi(t))),h=l(a(Zi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Uq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Uq))}function wn(t,i){return t??i}function Hq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Zs(w),P=qo(Zi(t),Zi(i)),j=Zs(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Zs(q),oe=Dm(10,Ir(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=qo(s,Ce=Le?Le:ja(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=ja(l,ht>Se&&i<=Se?Se:qo(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Wq=new Intl.NumberFormat(Tm?Vq.language:"en-US"),fM=t=>Wq.format(t),kr=Math,C0=kr.PI,Zi=kr.abs,Ir=kr.floor,Ki=kr.round,ta=kr.ceil,ja=kr.min,qo=kr.max,Dm=kr.pow,q2=kr.sign,Zs=kr.log10,CL=kr.log2,$q=(t,i=1)=>kr.sinh(t)*i,KE=(t,i=1)=>kr.asinh(t/i),Kn=1/0;function Y2(t){return(Zs((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return ja(qo(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var Gq=()=>{},wL=t=>t,DL=(t,i)=>i,qq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Yq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Yq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Ir(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Qq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Kq(t){return t!=null&&typeof t=="object"}var Zq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function oY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Ir((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var sY=kL.map(AL),lY=IL.map(AL),cY={MMMM:IL,MMM:lY,WWWW:kL,WWW:sY};function of(t){return(t<10?"0":"")+t}function dY(t){return(t<10?"00":t<100?"0":"")+t}var uY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>dY(t.getMilliseconds())};function _M(t,i){i=i||cY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?uY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],hY=df(10,-32,0,D0),OL=df(10,0,32,D0),fY=OL.filter(RL),fd=hY.concat(OL),vM=` +`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",gY="{h}:{mm}",xm=gY+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Ir(S)-Ir(Ce),Se=Je+ht+M0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Ir(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[_Y,vY,bY]=LL(1),[yY,CY,xY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function wY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var DY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function SY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function EY(t,i){return t.series[i].fill(t,i)}var MY={show:!0,live:!0,isolate:!1,mount:Gq,markers:{show:!0,width:2,stroke:SY,fill:EY,dash:"solid"},idx:null,idxs:null,values:[]};function TY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function IY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function kY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function AY(t,i){return t.series[i].points.size}var XE=[0,0];function RY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var OY={show:!0,x:!0,y:!0,lock:!1,move:RY,points:{one:!1,show:TY,size:AY,width:0,stroke:kY,fill:IY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},PY="Value",NY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function FY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function LY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Zs:CL,h=Ir(u(e));o=Dm(l,h),l==10&&(o=fd[Ba(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Ba(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Ba(y,fd)]));while(g<=n);return s}function VY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,BY=/[12357]/,jY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function zY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?BY:l(5,a)-h>=u?jY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:$Y,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function GY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},qY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function QY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=ja(u,s/2,l/2),h=ja(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var KY=JL(Im),ZY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=KY):(oe=km,Ne=ZY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Xs(e,n,o,r,Je,-1),Xs(e,n,o,r,Je,1)]:Xs(e,n,o,r,Je,Tt)),Le})}function XY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Xs(r,a,s,l,Se,-1),Xs(r,a,s,l,Se,1)]:Xs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,Ga,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,Ga)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,ws=null,Or=null,al=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,ws=g.values(w,S,P,j),Or=new Map,new Set(ws).forEach(Pe=>{Pe!=null&&Or.set(Pe,new Path2D)}),jn>0&&(al=y.values(w,S,P,j),Ad=new Map,new Set(al).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let Eo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Qo?null:new Path2D,Ds=null;if(ft!=null)Ds=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),Ds=Pe.values(w,S,P,j))}let rc=ae*Rt,Wt=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(Ds!=null){let Ko=Ds[Pe]??0;if(ei-Ko==0)continue;Ji=Le(Ko,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),Ga=Tt(Pd-Xn),sc=Tt(qo(ac,Ji)),lr=Tt(ja(ac,Ji)),Pr=sc-lr;if(ei!=null){let Ko=ei<0?Wt:rc,sa=ei<0?rc:Wt;Qo?(jn>0&&al[Pe]!=null&>(Ad.get(al[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa),ws[Pe]!=null&>(Or.get(ws[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa)):gt(Od,Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa),Qt(w,S,Pe,Ga-jn/2,lr,Rt+jn,Pr)}}return jn>0?Eo.stroke=Qo?Ad:Od:Qo||(Eo._fill=F.width==0?F._fill:F._stroke??F._fill,Eo.width=0),Eo.fill=Qo?Or:Od,Eo})}function eQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Xs(n,o,r,a,It,-1),Xs(n,o,r,a,It,1)]:Xs(n,o,r,a,It,pe)),qe})}function tQ(t){return eQ(nQ,t)}function nQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var iQ=eV(),oQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function rQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var aQ=tV;function sQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var lQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var cQ=iV;function dQ(t,i,e,n,o){let r=qo(Y2(t),Y2(i)),a=i-t,s=Ba(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function uQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(vq);if(t.id!=null&&(u.id=t.id),Tr(u,t.class),t.title){let v=ea(Cq,u);v.textContent=t.title}let h=Va("canvas"),g=n.ctx=h.getContext("2d"),y=ea(xq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&uo.click(n,v)},!0);let w=n.under=ea(wq,y);y.appendChild(h);let S=n.over=ea(Dq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):rQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Zs(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:qY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?aQ:v==Ce?C.distr==3?lQ:C.distr==4?cQ:tV:C.distr==3?nV:C.distr==4?iV:sQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||GY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Tr(u,bq),qe=r,It=a):(Tr(u,yq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?bY(pe):xY(pe),nt=nL(pe,tL(F==1?vY:CY,ae)),gt=oL(pe,iL(DY,ae)),Qt=[],ft=n.legend=Ni({},MY,t.legend),Ve=n.cursor=Ni({},OY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Qo=[],ws,Or=!1,al={};if(ft.live){let v=q[1]?q[1].values:null;Or=v!=null,ws=Or?v(n,1,0):{_:0};for(let C in ws)al[C]=uM}if(jt)if(Rt=Va("table",kq,u),Jn=Va("tbody",null,Rt),ft.mount(n,Rt),Or){Li=Va("thead",null,Rt,Jn);let v=Va("tr",null,Li);Va("th",null,v);for(var Ad in ws)Va("th",R2,v).textContent=Ad}else Tr(Rt,Rq),ft.live&&Tr(Rt,Aq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Or||!ft.live||o==2))return Sm;let E=[],M=Va("tr",Oq,Jn,Jn.childNodes[C]);Tr(M,v.class),v.show||Tr(M,gd);let N=Va("th",null,M);if(Xn.show){let he=ea(Pq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),Eo("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&Ya(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else Ya(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&Eo(F2,N,he=>{Ve._lock||(cc(he),Ya(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in ws){let he=Va("td",Nq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function Eo(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let Ds=0,rc=0,Wt=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,Ga=Wt,sc=Pe,lr=0,Pr=0,Ko=0,sa=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Nr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&aT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function aT(v,C){n.width=Ds=Wt=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;lr=E.left=hd(ei*kn,.5),Pr=E.top=hd(Vi*kn,.5),Ko=E.width=hd(Wt*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(aT(n.width,n.height),If=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?(Wt-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,Wt-=sl[1]+sl[3],ei+=sl[3],Pe-=sl[2]+sl[0],Vi+=sl[0]}function qj(){let v=ei+Wt,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let _o=Ve.points;_o.show=ln(_o.show),_o.size=ln(_o.size),_o.stroke=ln(_o.stroke),_o.width=ln(_o.width),_o.fill=ln(_o.fill);let qa=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=qa.prox>=0,Ld=Fd&&_o.one,Fr=[],Vd=[],Bd=[];function sT(v,C){let E=_o.show(n,C);if(E instanceof HTMLElement)return Tr(E,Iq),Tr(E,v.class),ys(E,-10,-10,Wt,Pe),S.insertBefore(E,Fr[C]),E}function lT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||HY,v.label=v.label||(E?NY:PY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||iQ||qq,v.fillTo=ln(v.fillTo||YY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=WY(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:oQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=sT(v,C)):C>0&&(E=sT(v,C)),Fr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}oo("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),lT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Fr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),oo("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?fY:N?F==1?_Y:yY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?VY:LY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?wY(pe,U):U||nt:U||FY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?zY:M.distr==3&&M.log==2?UY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Sq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let cT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),sl=n._padding=cT.map((v,C)=>v(n,C,dc,0)),co,eo=null,to=null,Af=o==1?q[0].idxs:null,la=null,$m=!1;function dT(v,C){if(i=v??[],n.data=n._data=i,o==2){co=0;for(let E=1;E=0,Nr=!0,Ud()}}n.setData=dT;function Wy(){$m=!0;let v,C;o==1&&(co>0?(eo=Af[0]=0,to=Af[1]=co-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=w0(v,C,hM,!0))):(eo=Af[0]=v=null,to=Af[1]=C=null)),cl(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Zo;function uT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function mT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?zq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=ja(v.min,E.min=he[0]),v.max=qo(v.max,E.max=he[1])}}let pT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=pT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=pT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Kq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(co==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(co>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Ba(he.min,i[0]),to=Ba(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Zs(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Zs(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Nr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(eo-1,0,co-1),E=oM(to+1,0,co-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Zo!=qa.alpha;v&&(g.globalAlpha=Zo=qa.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(hT(E,!1),hT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&fT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),fT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function hT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function fT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=lr-Ae/2,vn=Pr-Ae/2,tn=Ko+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Hq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let gT=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){uT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&gT)==gT?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=dQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),uT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?Wt:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return cT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=sl[M]&&(C=!1),sl[M]=N}),C}function o4(){for(let v=0;vla[To]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),cr=(gi+ro)*he,Mo=_i+cr;U=M==0?Mo:0,N=M==1?Mo:0;let Lr=C.font[0],ca=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Ka=zn||M==1?"middle":E==2?"top":O2;mT(Lr,re,ca,Ka);let dr=C.font[1]*C.lineGap,Vr=Dn.map(To=>j(s(To,Oe,Be,Lt))),da=C._values;for(let To=0;To{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function r4(){tC=!1;for(let v=0;v0&&queueMicrotask(r4)}n.batch=a4;function _T(){if(Uy&&(Zj(),Uy=!1),Nd&&(Wj(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,Wt),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,Wt),di(S,af,Pe),di(y,rf,Ds),di(y,af,rc),h.width=Ki(Ds*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:Wt),nM(v,gd)}else Tr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Zo=1,Qm(!0),ei!=Pd||Vi!=ac||Wt!=Ga||Pe!=sc){zd(!1);let v=Wt/Ga,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&ys(Hd,Ki(Ve.left),0,Wt,Pe),Wd&&ys(Wd,0,Ki(Ve.top),Wt,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,Ga=Wt,sc=Pe}oo("setSize"),If=!1}Ds>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&kf&&(Ff(ri),kf=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Nr&&(rC(),Nr=!1),l||(l=!0,n.status=1,oo("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?cl(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(co==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(co>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&co>0&&(C.min=Ba(C.min,i[0]),C.max=Ba(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,vT,bT,$d,Gd,yT,CT,oi,ui,ll=!1,uo=Ve.drag,no=uo.x,io=uo.y;Ji&&(Ve.x&&(iC=ea(Mq,S)),Ve.y&&(oC=ea(Tq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ea(Eq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Ff;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Tr(jn[v],gd),Ji){let E=Ld?Fr[0]:Fr[v];E!=null&&ys(E,-10,-10,Wt,Pe)}}function cl(v,C,E){nC(v,{min:C,max:E})}function Ya(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(cl(N.facets[0].scale,null,null),cl(N.facets[1].scale,null,null)):cl(N.scale,null,null),Ud())}),E!==!1&&oo("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=Ya;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,Ji&&Fr[v]!=null&&(Fr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ss,dl,uc,Yd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=qa.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:qa.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&Eo(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&Ya(null,Yd,!0,Ii.setSeries))});function Qa(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=Wt;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?$q(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Qa(v,Ce,C);return Ba(E,i[0],eo,to)}n.valToIdx=v=>Ba(v,i[0]),n.posToIdx=p4,n.posToVal=Qa,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:Wt,E?lr:0):a(v,oe[C],E?sa:Pe,E?Pr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function xT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function wT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?xT:wT,Ym=Se.ori==1?xT:wT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Qq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Or)&&f4(E,Qt[E]);h4()}Nr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Or?N=E.values(n,v,C)??al:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?al:{_:N}),ft.values[v]=N}function mc(v,C,E){yT=oi,CT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Hd&&ys(Hd,Ki(oi),0,Wt,Pe),Wd&&ys(Wd,0,Ki(ui),Wt,Pe));let M,N=eo>to;Ss=Kn,dl=null;let U=Se.ori==0?Wt:Pe,re=Se.ori==1?Wt:Pe;if(oi<0||co==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let cr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Mo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Lr=Se.ori==1?oi:ui,ca=Zi(qa.dist(n,rt,zn,Mo,Lr));if(ca=0?1:-1,da=dr>=0?1:-1;da==Vr&&(da==1?Ka==1?_i>=dr:_i<=dr:Ka==1?_i<=dr:_i>=dr)&&(Ss=ca,dl=rt)}else Ss=ca,dl=rt}}if(Nr||Ld){let Lr,ca;Se.ori==0?(Lr=cr,ca=Mo):(Lr=Mo,ca=cr);let Ka,dr,Vr,da,Za,To,ur=!0,pc=_o.bbox;if(pc!=null){ur=!1;let Io=pc(n,rt);Vr=Io.left,da=Io.top,Ka=Io.width,dr=Io.height}else Vr=Lr,da=ca,Ka=dr=_o.size(n,rt);if(To=_o.fill(n,rt),Za=_o.stroke(n,rt),Ld)rt==dl&&Ss<=qa.prox&&(Oe=Vr,Be=da,Lt=Ka,Dn=dr,vn=ur,tn=To,St=Za);else{let Io=Fr[rt];Io!=null&&(Vd[rt]=Vr,Bd[rt]=da,W2(Io,Ka,dr,ur),U2(Io,To,Za),ys(Io,ta(Vr),ta(da),Wt,Pe))}}}}if(Ld){let rt=qa.prox,ai=uc==null?Ss<=rt:Ss>rt||dl!=uc;if(Nr||ai){let gi=Fr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),ys(gi,ta(Oe),ta(Be),Wt,Pe))}}}if(ri.show&&ll)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,cr,Mo,Lr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Lr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],cr=qe(gi(ro,Be),_i,U,0),Mo=qe(gi(ro+zn,Be),_i,U,0),qm(ja(cr,Mo),Zi(Mo-cr))):qm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],cr=It(gi(ro,Lt),_i,re,0),Mo=It(gi(ro+zn,Lt),_i,re,0),Ym(ja(cr,Mo),Zi(Mo-cr))):Ym(0,re)}else lC()}else{let he=Zi(yT-vT),ye=Zi(CT-bT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=uo.x&&he>=uo.dist,io=uo.y&&ye>=uo.dist;let Ae=uo.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):uo.x&&uo.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(ja(Oe,Be),Zi(Be-Oe)),io||Ym(0,re)),io&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(ja(Oe,Be),Zi(Be-Oe)),no||qm(0,U)),!no&&!io&&(qm(0,0),Ym(0,0))}if(uo._x=no,uo._y=io,v==null){if(E){if(PT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Qa(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Qa(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,Wt,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=qa.prox;uc==null?Ss<=ye&&Ya(dl,Yd,!0,he):Ss>ye?Ya(null,Yd,!0,he):dl!=uc&&Ya(dl,Yd,!0,he)}}Nr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let ul=null;Object.defineProperty(n,"rect",{get(){return ul==null&&Qm(!1),ul}});function Qm(v=!1){v?ul=null:(ul=S.getBoundingClientRect(),oo("syncRect",ul))}function DT(v,C,E,M,N,U,re){Ve._lock||ll&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(ul==null&&Qm(!1),cc(v),v!=null)E=v.clientX-ul.left,M=v.clientY-ul.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?Wt:Pe,ro=Se.ori==1?Wt:Pe,zn=ai?U:N,_i=ai?N:U,cr=ai?M:E,Mo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(cr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Mo/_i),Se.ori==1){let Lr=E;E=M,M=Lr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=Wt-1)&&(E=hd(E,Wt)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(vT=E,bT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ST,ET,MT,TT;function IT(v,C,E,M,N,U,re){ll=!0,no=io=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(Eo(QE,eM,kT,!1),Km(N2,n,$d,Gd,Wt,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ST=he,ET=ye,MT=Ae,TT=Oe}function kT(v,C,E,M,N,U,re){ll=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ST!=he||ET!=ye||MT!=Ae||TT!=Oe;if(Be&&Lt&&Ff(ri),uo.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&cl(Ce,Qa(Dn,Ce),Qa(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&cl(rt,Qa(tn+St,rt),Qa(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,Wt,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=ll;if(ll){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=Wt-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:Wt),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&Ya(E,M,!0,!1)},Ji&&(Eo(N2,S,IT),Eo(YE,S,DT),Eo(F2,S,v=>{cc(v),Qm(!1)}),Eo(L2,S,g4),Eo(V2,S,AT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function oo(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let OT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,OT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(OT),Ve.sync=Ii;let PT=Ii.key,cC=GL(PT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,RT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=v4;function dC(){oo("init",t,i),dT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Nr=!0,Hy(t.width,t.height)}return q.forEach(lT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=nY;Ti.fmtDate=_M,Ti.tzDate=pY;Ti.sync=GL;{Ti.addGap=QY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=XY,t.bars=JY,t.spline=tQ}var mQ=["host"],pQ=["donut"],oV=(t,i)=>i.name;function hQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function fQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,hQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function gQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function _Q(t,i){if(t&1&&(c(0,"div",10),fe(1,gQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function vQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function bQ(t,i){if(t&1&&(c(0,"div",3),A(1,_Q,3,0,"div",10),O(2,"div",11,0),A(4,vQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function yQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[yQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(mQ,5)(pQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,fQ,8,0,"div",2)(1,bQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var xQ=(t,i)=>i.value,wQ=(t,i)=>i.user;function DQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function SQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function TQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function IQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,EQ,6,1)(2,MQ,9,2)(3,TQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function kQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function AQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function RQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function OQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function PQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function QQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function KQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function ZQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function XQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function JQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function eK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,JQ,11,5,"tr",null,wQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function tK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function nK(t,i){if(t&1&&(A(0,RQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,OQ,1,1,"uds-uplot-chart",19)(7,PQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,NQ,1,1,"uds-uplot-chart",19)(13,FQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,LQ,1,1,"uds-uplot-chart",19)(19,VQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,BQ,1,1,"uds-uplot-chart",19)(25,jQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,zQ,1,1,"uds-uplot-chart",19)(31,UQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,HQ,1,1,"uds-uplot-chart",19)(37,WQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,$Q,1,1,"uds-uplot-chart",19)(43,GQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,qQ,1,1,"uds-uplot-chart",19)(49,YQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,QQ,1,1,"uds-uplot-chart",19)(55,KQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,ZQ,1,1,"uds-uplot-chart",19)(61,XQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,eK,25,0,"div",23),c(74,"div",24),A(75,tK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var aV=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.cache=o,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){this.cache.has("cachedEnterpriseInfo")||this.cache.set("cachedEnterpriseInfo",(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return this.cache.get("cachedEnterpriseInfo")}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(M2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(T2))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,DQ,2,3,"button",3,xQ),d(),c(5,"div",4),A(6,SQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,IQ,4,5,"div",8),A(11,kQ,2,2,"div",9),d()(),A(12,AQ,5,0,"div",10)(13,nK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function oK(t,i){t&1&&O(0,"uds-dashboard")}function rK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,oK,1,0,"uds-dashboard")(3,rK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var Cs=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var aK=["notch"],sK=["matFormFieldNotchedOutline",""],lK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],cK=["textField"],dK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mK(t,i){t&1&&O(0,"span",21)}function pK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,mK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hK(t,i){if(t&1&&A(0,pK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function fK(t,i){t&1&&O(0,"div",7)}function gK(t,i){}function _K(t,i){if(t&1&&xe(0,gK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function vK(t,i){if(t&1&&(c(0,"div",9),A(1,_K,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function bK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function yK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function CK(t,i){}function xK(t,i){if(t&1&&xe(0,CK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function wK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function DK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function SK(t,i){t&1&&O(0,"div",16)}function EK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function MK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function TK(t,i){if(t&1&&(c(0,"div",19),A(1,MK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var DM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var SM=new L("MatSuffix"),Ar=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Qe([{provide:SM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return IK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function IK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(aK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:sK,ngContentSelectors:lK,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&&(vt(),mo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),mo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Js=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",kK="auto",_V="fixed",AK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Yr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||kK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Fs(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){NO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${AK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Js,5)(r,bV,5)(r,SM,5)(r,vV,5)(r,DM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(cK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Qe([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:uK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(dK),xe(0,hK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,fK,1,0,"div",7),c(5,"div",8),A(6,vK,2,2,"div",9),A(7,bK,3,0,"div",10),A(8,yK,3,0,"div",11),c(9,"div",12),A(10,xK,1,1,null,13),Ie(11),d(),A(12,wK,3,0,"div",14),A(13,DK,3,0,"div",15),d(),A(14,SK,1,0,"div",16),d(),c(15,"div",17),A(16,EK,2,0,"div",18)(17,TK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,DM],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -2983,7 +2983,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var RK=["trigger"],OK=["panel"],PK=[[["mat-select-trigger"]],"*"],NK=["mat-select-trigger","*"];function FK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function LK(t,i){t&1&&Ie(0)}function VK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function BK(t,i){if(t&1&&(c(0,"span",5),A(1,LK,1,0)(2,VK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function jK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var zK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),UK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),MM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(po);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(nr,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(UK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MM(this,e)}_scrollStrategyFactory=p(zK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=mr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Yl,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Kl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ys(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(RK,5)(OK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Qe([{provide:Xs,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:NK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(PK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,FK,2,1,"span",4)(5,BK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,jK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var RK=["trigger"],OK=["panel"],PK=[[["mat-select-trigger"]],"*"],NK=["mat-select-trigger","*"];function FK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function LK(t,i){t&1&&Ie(0)}function VK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function BK(t,i){if(t&1&&(c(0,"span",5),A(1,LK,1,0)(2,VK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function jK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var zK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),UK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),EM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(ho);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(ir,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(UK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EM(this,e)}_scrollStrategyFactory=p(zK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=pr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Ql,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Zl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Cs(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(RK,5)(OK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Qe([{provide:Js,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:NK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(PK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,FK,2,1,"span",4)(5,BK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,jK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -3172,7 +3172,7 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Qe([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,bm,pt,Cr,yd,bm]})}return t})();var HK=["tooltip"],WK=20;var $K=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t,{scrollThrottle:WK})}}),GK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",qK={passive:!0},YK=8,QK=8,KK=24,ZK=200,qo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(GK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=qr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=qr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=YK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 tr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(jl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get($K)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset($($({},o.main),r.main)),this._addOffset($($({},o.fallback),r.fallback))])}_addOffset(e){let n=QK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,qK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>KK&&e.width>=ZK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(HK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Ol("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { +`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Qe([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,pt,xr,yd,bm]})}return t})();var HK=["tooltip"],WK=20;var $K=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t,{scrollThrottle:WK})}}),GK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",qK={passive:!0},YK=8,QK=8,KK=24,ZK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(GK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Yr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Yr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=YK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 nr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(zl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get($K)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=QK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,qK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>KK&&e.width>=ZK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(HK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Pl("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -3277,7 +3277,7 @@ div.mat-mdc-select-panel { .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,ho,pt,Cr]})}return t})();function XK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function JK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,XK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function eZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function tZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,JK,6,7,"mat-form-field",14),A(4,eZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ke);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Vr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(rZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,tZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,nZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,iZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,qo],styles:[`.mat-mdc-paginator { +`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,fo,pt,xr]})}return t})();function XK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function JK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,XK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function eZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function tZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,JK,6,7,"mat-form-field",14),A(4,eZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ke);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Br(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(rZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,tZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,nZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,iZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3378,10 +3378,10 @@ div.mat-mdc-select-panel { transform: translate(-50%, -50%); cursor: pointer; } -`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,V0,B0,Js]})}return t})();var aZ=[[["caption"]],[["colgroup"],["col"]],"*"],sZ=["caption","colgroup, col","*"];function lZ(t,i){t&1&&Ie(0,2)}function cZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function dZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var ja=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var IM=(()=>{class t{template=p(mn);_differs=p(js);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof kM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),kM=(()=>{class t extends IM{_table=p(ja,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(js))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends IM{_table=p(ja,{optional:!0});when;constructor(){super(p(mn),p(js))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var RM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],TM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&uZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function uZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),FM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(ja);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),LM=(()=>{class t{_differs=p(js);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(po);_injector=p(Te);_virtualScrollViewport=p(vN,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=bo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new TM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),bo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,kM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Qe([{provide:ja,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:sZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(aZ),Ie(0),Ie(1,1),A(2,lZ,1,0),A(3,cZ,7,0)(4,dZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.cdk-table-fixed-layout { +`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[vs,V0,B0,el]})}return t})();var aZ=[[["caption"]],[["colgroup"],["col"]],"*"],sZ=["caption","colgroup, col","*"];function lZ(t,i){t&1&&Ie(0,2)}function cZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function dZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var za=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(za,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var TM=(()=>{class t{template=p(mn);_differs=p(zs);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof IM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),IM=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends TM{_table=p(za,{optional:!0});when;constructor(){super(p(mn),p(zs))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),kM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],MM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&uZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function uZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var RM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),FM=(()=>{class t{_differs=p(zs);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(ho);_injector=p(Te);_virtualScrollViewport=p(_N,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=yo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new MM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),yo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,IM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Qe([{provide:za,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:sZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(aZ),Ie(0),Ie(1,1),A(2,lZ,1,0),A(3,cZ,7,0)(4,dZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.cdk-table-fixed-layout { table-layout: fixed; } -`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var mZ=["mat-sort-header",""],pZ=["*",[["","matSortHeaderIcon",""]]],hZ=["*","[matSortHeaderIcon]"];function fZ(t,i){t&1&&(Gn(),dn(0,"svg",3),uo(1,"path",4),pn())}function gZ(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,fZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),el=(()=>{class t{_defaultOptions;_initializedStream=new Vr(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=_Z(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function _Z(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(el,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ke);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:mZ,ngContentSelectors:hZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(pZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,gZ,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { +`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var mZ=["mat-sort-header",""],pZ=["*",[["","matSortHeaderIcon",""]]],hZ=["*","[matSortHeaderIcon]"];function fZ(t,i){t&1&&(Gn(),dn(0,"svg",3),mo(1,"path",4),pn())}function gZ(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,fZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),tl=(()=>{class t{_defaultOptions;_initializedStream=new Br(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=_Z(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function _Z(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(tl,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ke);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:mZ,ngContentSelectors:hZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(pZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,gZ,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { cursor: pointer; } @@ -3480,7 +3480,7 @@ div.mat-mdc-select-panel { .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { margin: 0 6px 0 0; } -`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vZ=["input"],bZ=["label"],yZ=["*"],VM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},CZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>VM}),Do=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Do||{}),BM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_animationsDisabled=Bt();_options=p(CZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new BM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Do.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||VM,this.color=this._options.color||VM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Do.Indeterminate):this._transitionCheckState(this.checked?Do.Checked:Do.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Do.Checked:Do.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Do.Init:if(n===Do.Checked)return this._animationClasses.uncheckedToChecked;if(n==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return n===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return n===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return n===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(vZ,5)(bZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:yZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Dr,Yb],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vZ=["input"],bZ=["label"],yZ=["*"],LM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},CZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>LM}),So=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(So||{}),VM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_animationsDisabled=Bt();_options=p(CZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new VM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=So.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||LM,this.color=this._options.color||LM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(So.Indeterminate):this._transitionCheckState(this.checked?So.Checked:So.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?So.Checked:So.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case So.Init:if(n===So.Checked)return this._animationClasses.uncheckedToChecked;if(n==So.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case So.Unchecked:return n===So.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case So.Checked:return n===So.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case So.Indeterminate:return n===So.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(vZ,5)(bZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:yZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Sr,Yb],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -3953,7 +3953,7 @@ div.mat-mdc-select-panel { .mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[hf,pt]})}return t})();var q0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=qr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=qr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { +`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[hf,pt]})}return t})();var q0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Yr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Yr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { display: block; margin: 0; border-top-style: solid; @@ -3973,7 +3973,7 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function DZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var tl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new tl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new tl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new tl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new tl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new tl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Io(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),yl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],IZ=HV.map(t=>`[${t}]`).join(", "),kZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(TZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(MZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(IZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(kZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:EZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function DZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var nl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new nl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new nl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new nl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new nl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new nl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ao(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),Cl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],IZ=HV.map(t=>`[${t}]`).join(", "),kZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(TZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(MZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(IZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(kZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:EZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -4009,8 +4009,8 @@ div.mat-mdc-select-panel { .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})();var AZ=["searchSelectInput"],RZ=["innerSelectSearch"],OZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],PZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function NZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function FZ(t,i){t&1&&O(0,"mat-spinner",7)}function LZ(t,i){t&1&&Ie(0,1)}function VZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function BZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function jZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,LZ,1,0)(2,VZ,1,1,"mat-icon",12)(3,BZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function zZ(t,i){t&1&&Ie(0,2)}function UZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function HZ(t,i){if(t&1&&(c(0,"div",9),A(1,zZ,1,0)(2,UZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var WZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),$Z=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],GZ=new L("mat-selectsearch-default-options"),qZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),jM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=bo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of $Z)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ke),D(po),D(Mt,8),D(ze,8),D(GZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,WZ,5)(r,qZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(AZ,7,se)(RZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:PZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(OZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,NZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,FZ,1,0,"mat-spinner",7),A(8,jZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,HZ,3,1,"div",9),Gt(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Wt,$e,TE,hf,q0,qo,ym,WV,_s,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[jM]})}return t})();function QZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,QZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ze,Mt,jM],encapsulation:2})}}return t})();function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,KZ,2,0,"uds-translate")(2,ZZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,XZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,JZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,eX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var tX=(t,i)=>[t,i];function nX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function iX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,nX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,iX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,tX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var oX="text/csv",YV=",",QV=`\r -`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:oX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var zM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new zM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var aX=["mat-menu-item",""],sX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lX=["mat-icon, [matMenuItemIcon]","*"];function cX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var dX=["*"];function uX(t,i){if(t&1){let e=W();dn(0,"div",0),Ol("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var HM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(HM,{optional:!0});_changeDetectorRef=p(Ke);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ke);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Qe([{provide:JV,useExisting:t}])]})}return t})(),mX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),UM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new fr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=$({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(mX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye($({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===UM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===UM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?UM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Qe([{provide:HM,useExisting:t}])],ngContentSelectors:dX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Vs(0,uX,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return t})();var AZ=["searchSelectInput"],RZ=["innerSelectSearch"],OZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],PZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function NZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function FZ(t,i){t&1&&O(0,"mat-spinner",7)}function LZ(t,i){t&1&&Ie(0,1)}function VZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function BZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function jZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,LZ,1,0)(2,VZ,1,1,"mat-icon",12)(3,BZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function zZ(t,i){t&1&&Ie(0,2)}function UZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function HZ(t,i){if(t&1&&(c(0,"div",9),A(1,zZ,1,0)(2,UZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var WZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),$Z=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],GZ=new L("mat-selectsearch-default-options"),qZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),BM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=yo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of $Z)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ke),D(ho),D(Mt,8),D(ze,8),D(GZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,WZ,5)(r,qZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(AZ,7,se)(RZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:PZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(OZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,NZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,FZ,1,0,"mat-spinner",7),A(8,jZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,HZ,3,1,"div",9),$t(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Ht,$e,TE,hf,q0,Yo,ym,WV,vs,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[BM]})}return t})();function QZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,QZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ze,Mt,BM],encapsulation:2})}}return t})();function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,KZ,2,0,"uds-translate")(2,ZZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,XZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,JZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,eX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var tX=(t,i)=>[t,i];function nX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function iX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,nX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,iX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,tX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var oX="text/csv",YV=",",QV=`\r +`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:oX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var jM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new jM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var aX=["mat-menu-item",""],sX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lX=["mat-icon, [matMenuItemIcon]","*"];function cX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var dX=["*"];function uX(t,i){if(t&1){let e=W();dn(0,"div",0),Pl("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var UM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(UM,{optional:!0});_changeDetectorRef=p(Ke);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ke);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Qe([{provide:JV,useExisting:t}])]})}return t})(),mX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),zM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(mX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ys(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===zM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===zM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?zM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Qe([{provide:UM,useExisting:t}])],ngContentSelectors:dX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Bs(0,uX,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -4202,7 +4202,7 @@ div.mat-mdc-select-panel { position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return t})(),pX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}});var Am=new WeakMap,hX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(pX);_changeDetectorRef=p(Ke);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(HM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends hX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,ho,pt,Cr]})}return t})();var fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { +`],encapsulation:2,changeDetection:0})}return t})(),pX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}});var Am=new WeakMap,hX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(pX);_changeDetectorRef=p(Ke);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(UM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends hX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,fo,pt,xr]})}return t})();var fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { resize: none; } @@ -4228,7 +4228,7 @@ textarea.cdk-textarea-autosize-measuring-firefox { .cdk-text-field-autofill-monitored:not(:-webkit-autofill) { animation: cdk-text-field-autofill-end 0s 1ms; } -`],encapsulation:2,changeDetection:0})}return t})(),gX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(fX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,gX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var _X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(nr,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(vX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=qr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=qr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=qr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?cs(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ns(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_X.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Qe([{provide:Xs,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var bX=[[["caption"]],[["colgroup"],["col"]],"*"],yX=["caption","colgroup, col","*"];function CX(t,i){t&1&&Ie(0,2)}function xX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function wX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends LM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Qe([{provide:LM,useExisting:t},{provide:ja,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:yX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(bX),Ie(0),Ie(1,1),A(2,CX,1,0),A(3,xX,7,0)(4,wX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.mat-mdc-table-sticky { +`],encapsulation:2,changeDetection:0})}return t})(),gX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(fX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,gX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var _X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(ir,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(vX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Yr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=Yr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Yr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ds(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Fs(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_X.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Qe([{provide:Js,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var bX=[[["caption"]],[["colgroup"],["col"]],"*"],yX=["caption","colgroup, col","*"];function CX(t,i){t&1&&Ie(0,2)}function xX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function wX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends FM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Qe([{provide:FM,useExisting:t},{provide:za,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:yX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(bX),Ie(0),Ie(1,1),A(2,CX,1,0),A(3,xX,7,0)(4,wX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.mat-mdc-table-sticky { position: sticky !important; } @@ -4405,9 +4405,9 @@ mat-cell.mat-mdc-cell, mat-footer-cell.mat-mdc-footer-cell { align-self: stretch; } -`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Qe([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Qe([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Qe([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Qe([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Qe([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Qe([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends RM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Qe([{provide:RM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),DX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=bo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=bo([o,i]).pipe(et(([s])=>this._orderData(s))),a=bo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var EX=["trigger"],MX=()=>[5,10,25,100,1e3];function TX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function IX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function kX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,IX,1,1,"button",43,De),Gt(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function AX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,kX,7,6,null,null,De),Gt(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function RX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function OX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,RX,1,1,"button",45,De),Gt(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function PX(t,i){if(t&1&&(A(0,AX,13,4),A(1,OX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function NX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function FX(t,i){if(t&1&&(A(0,PX,2,2),A(1,NX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function jX(t,i){if(t&1&&fe(0,BX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function zX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function UX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function HX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function WX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $X(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function GX(t,i){t&1&&(ds(0,26),xe(1,WX,2,2,"mat-header-cell",54)(2,$X,2,1,"mat-cell",55),us())}function qX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function YX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function QX(t,i){if(t&1&&(ds(0,27),xe(1,qX,2,5,"mat-header-cell",59)(2,YX,2,2,"mat-cell",60),us()),t&2){let e=i.$implicit;b("matColumnDef",Pl(e.name))}}function KX(t,i){t&1&&O(0,"mat-header-row")}function ZX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function XX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function oJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function rJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function aJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,rJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function sJ(t,i){if(t&1&&(A(0,JX,5,0,"button",65),A(1,eJ,5,0,"button",65),A(2,tJ,5,0,"button",65),A(3,nJ,5,0,"button",65),fe(4,iJ,1,2,"button",66,De),A(6,oJ,5,0,"button",67),A(7,aJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new ys(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new ys(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ONLY_MENU&&e.type!==Ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Ut.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=qi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Ut.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Ut.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Ut.ALWAYS||(e.type===Ut.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl),D(ZV),D(Ke))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(EX,7)(Js,7)(el,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,TX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,FX,2,2),A(11,LX,6,1,"a",12),A(12,VX,6,1,"a",12),A(13,jX,2,0),A(14,zX,6,0,"a",13),A(15,UX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,HX,3,0,"button",18),Gt(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,GX,3,0,"ng-container",26),fe(34,QX,3,2,"ng-container",27,De),xe(36,KX,1,0,"mat-header-row",28)(37,ZX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,XX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,sJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,MX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Wt,$e,Ze,Fe,yi,nc,xd,e3,X0,ze,st,kr,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,Js,el,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",lJ='pause'+django.gettext("Exit maintenance mode")+"",cJ='pause'+django.gettext("Enter maintenance mode")+"",WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=lJ:this.customButtons[0].html=cJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var dJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function uJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(dJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function mJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>uJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(mJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Xo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var pJ=()=>[5,10,25,100,1e3];function hJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function fJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function gJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function _J(t,i){if(t&1&&(ds(0,20),xe(1,fJ,2,1,"mat-header-cell",25)(2,gJ,2,1,"mat-cell",26),us()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function vJ(t,i){t&1&&O(0,"mat-header-row")}function bJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var or=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new ys}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=wF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(Js,7)(el,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,hJ,3,0,"button",13),Gt(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,_J,3,1,"ng-container",20,De),xe(35,vJ,1,0,"mat-header-row",21)(36,bJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,pJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Wt,$e,Ze,Fe,yi,ze,kr,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,Js,el,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var xJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ir(django.gettext("Service pools"),e,xJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,yJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,CJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` -`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or],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}"]})}}return t})();var wJ=(t,i)=>i.tab;function DJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function SJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,DJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var EJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||EJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==Wo.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case Wo.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Wo.PASSWORD:n.value=django.gettext("(hidden)");break;case Wo.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case Wo.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Wo.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case Wo.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,SJ,6,1,"div",1,wJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var MJ=t=>["/services","providers",t];function TJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function IJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function OJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,TJ,2,0,"ng-template",8),c(5,"div",9),A(6,IJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,kJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,AJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,RJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var $M=(()=>{class t{constructor(e,n,o){this.route=e,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 e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,OJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,MJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa],encapsulation:2})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Wt,$e,Ze,Fe,qo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var PJ=t=>["/services","servers",t];function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function LJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,NJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,FJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",VJ='pause'+django.gettext("Exit maintenance mode")+"",BJ='pause'+django.gettext("Enter maintenance mode")+"",jJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:jJ,type:Ut.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=VJ:this.customButtons[0].html=BJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,LJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,PJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var YM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var zJ=["panel"],UJ=["*"];function HJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var QM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new QM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(zJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Qe([{provide:_m,useExisting:t}])],ngContentSelectors:UJ,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&&(vt(),Vs(0,HJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { +`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Qe([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Qe([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Qe([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Qe([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Qe([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends kM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Qe([{provide:kM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Qe([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),DX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=yo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=yo([o,i]).pipe(et(([s])=>this._orderData(s))),a=yo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var EX=["trigger"],MX=()=>[5,10,25,100,1e3];function TX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function IX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function kX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,IX,1,1,"button",43,De),$t(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function AX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,kX,7,6,null,null,De),$t(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function RX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function OX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,RX,1,1,"button",45,De),$t(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function PX(t,i){if(t&1&&(A(0,AX,13,4),A(1,OX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function NX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function FX(t,i){if(t&1&&(A(0,PX,2,2),A(1,NX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function jX(t,i){if(t&1&&fe(0,BX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function zX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function UX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function HX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function WX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $X(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function GX(t,i){t&1&&(us(0,26),xe(1,WX,2,2,"mat-header-cell",54)(2,$X,2,1,"mat-cell",55),ms())}function qX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function YX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function QX(t,i){if(t&1&&(us(0,27),xe(1,qX,2,5,"mat-header-cell",59)(2,YX,2,2,"mat-cell",60),ms()),t&2){let e=i.$implicit;b("matColumnDef",Nl(e.name))}}function KX(t,i){t&1&&O(0,"mat-header-row")}function ZX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function XX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function oJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function rJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function aJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,rJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function sJ(t,i){if(t&1&&(A(0,JX,5,0,"button",65),A(1,eJ,5,0,"button",65),A(2,tJ,5,0,"button",65),A(3,nJ,5,0,"button",65),fe(4,iJ,1,2,"button",66,De),A(6,oJ,5,0,"button",67),A(7,aJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Cs(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Ks.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Ks.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new Cs(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ONLY_MENU&&e.type!==Gt.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Gt.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=qi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Gt.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Gt.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Gt.ALWAYS||(e.type===Gt.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl),D(ZV),D(Ke))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(EX,7)(el,7)(tl,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,TX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,FX,2,2),A(11,LX,6,1,"a",12),A(12,VX,6,1,"a",12),A(13,jX,2,0),A(14,zX,6,0,"a",13),A(15,UX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,HX,3,0,"button",18),$t(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,GX,3,0,"ng-container",26),fe(34,QX,3,2,"ng-container",27,De),xe(36,KX,1,0,"mat-header-row",28)(37,ZX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,XX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,sJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,MX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Ht,$e,Ze,Fe,yi,nc,xd,e3,X0,ze,st,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",lJ='pause'+django.gettext("Exit maintenance mode")+"",cJ='pause'+django.gettext("Enter maintenance mode")+"",HM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=lJ:this.customButtons[0].html=cJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var dJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function uJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(dJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function mJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>uJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(mJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Jo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Ks.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e,n){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var pJ=()=>[5,10,25,100,1e3];function hJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function fJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function gJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function _J(t,i){if(t&1&&(us(0,20),xe(1,fJ,2,1,"mat-header-cell",25)(2,gJ,2,1,"mat-cell",26),ms()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function vJ(t,i){t&1&&O(0,"mat-header-row")}function bJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var rr=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new Cs}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(el,7)(tl,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,hJ,3,0,"button",13),$t(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,_J,3,1,"ng-container",20,De),xe(35,vJ,1,0,"mat-header-row",21)(36,bJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,pJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Ht,$e,Ze,Fe,yi,ze,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var xJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new or(django.gettext("Service pools"),e,xJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,yJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,CJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` +`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr],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}"]})}}return t})();var wJ=(t,i)=>i.tab;function DJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function SJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,DJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var EJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||EJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,SJ,6,1,"div",1,wJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var MJ=t=>["/services","providers",t];function TJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function IJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function OJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,TJ,2,0,"ng-template",8),c(5,"div",9),A(6,IJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,kJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,AJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,RJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,OJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,MJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa],encapsulation:2})}}return t})();var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Ht,$e,Ze,Fe,Yo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var PJ=t=>["/services","servers",t];function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function LJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,NJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,FJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",VJ='pause'+django.gettext("Exit maintenance mode")+"",BJ='pause'+django.gettext("Enter maintenance mode")+"",jJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Gt.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:jJ,type:Gt.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.invoke(n.id+"/maintenance",void 0,"POST").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=VJ:this.customButtons[0].html=BJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,LJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,PJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var zJ=["panel"],UJ=["*"];function HJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var YM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new YM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(zJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Qe([{provide:_m,useExisting:t}])],ngContentSelectors:UJ,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&&(vt(),Bs(0,HJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { width: 100%; max-height: 256px; visibility: hidden; @@ -4461,11 +4461,11 @@ div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, mat-autocomplete { display: none; } -`],encapsulation:2,changeDetection:0})}return t})();var WJ={provide:$o,useExisting:Wn(()=>Dd),multi:!0};var $J=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(po);_scrollStrategy=p($J);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=Gs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&$l(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof gm?e:null))}optionSelections=mr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return $r()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&$l(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;$l(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Qe([WJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ho,bm,Cr,bm,pt]})}return t})();function GJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function qJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function YJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function QJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,QJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function JJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,GJ,4,1,"div")(2,qJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,YJ,4,3,"mat-form-field"),A(6,KJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,ZJ,4,2,"mat-form-field"),A(43,XJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,JJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function eee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function tee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function nee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function iee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,iee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function ree(t,i){if(t&1&&(A(0,nee,4,3,"mat-form-field"),A(1,oee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function aee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function see(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function lee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,see,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function cee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function dee(t,i){if(t&1&&A(0,cee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function uee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,dee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var XM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,eee,4,1,"div")(2,tee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,ree,2,2)(6,aee,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,lee,7,1,"mat-form-field")(35,uee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function pee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,mee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function fee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,hee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function gee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function _ee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,gee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var bee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Cee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/userServices")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new ir(django.gettext("Groups"),e,bee,this.user.id+"infogrp"),this.servicesPools=new ir(django.gettext("Services Pools"),n,yee,this.user.id+"infopool"),this.userServices=new ir(django.gettext("Assigned services"),o,Cee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,pee,3,2,"mat-tab"),Gt(7,"notEmpty"),A(8,fee,3,2,"mat-tab"),Gt(9,"notEmpty"),A(10,_ee,3,2,"mat-tab"),Gt(11,"notEmpty"),c(12,"mat-tab"),xe(13,vee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` -`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,or,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function xee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function wee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,xee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function Dee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function See(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Dee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Eee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Tee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Iee=[{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:sn.DATETIME}],kee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/servicesPools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new ir(django.gettext("Service pools"),n,Tee,this.data.group.id+"infopls"),this.users=new ir(django.gettext("Users"),o,Iee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new ir(django.gettext("Groups"),r,kee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,wee,3,2,"mat-tab"),Gt(6,"notEmpty"),A(7,See,3,2,"mat-tab"),Gt(8,"notEmpty"),A(9,Mee,3,2,"mat-tab"),Gt(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Aee=t=>["/authenticators",t];function Ree(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Oee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Bee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ree,2,0,"ng-template",8),c(5,"div",9),A(6,Oee,1,2,"uds-information",10),Gt(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Pee,2,0,"ng-template",8),c(10,"div",9),A(11,Nee,1,6,"uds-table",11),A(12,Fee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Lee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Vee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{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},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){ZM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){ZM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){XM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){XM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Bee,21,16,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Aee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,jee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var zee=t=>["/connectivity","tunnels",t];function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Wee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Uee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Hee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onMaintenance(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3='pause'+django.gettext("Maintenance")+"",$ee='pause'+django.gettext("Exit maintenance mode")+"",Gee='pause'+django.gettext("Enter maintenance mode")+"",C3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:y3,type:Ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.get(n.id+"/maintenance").then(()=>{e.table.reloadPage()})})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=y3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=$ee:this.customButtons[0].html=Gee}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Wee,11,9,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,zee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var i1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Yee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,qee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,Yee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Zee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Xee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Jee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Xee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Qee,2,0,"uds-translate"),A(2,Kee,2,0,"uds-translate"),A(3,Zee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Jee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` -`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ete(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function tte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function nte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,tte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,ete,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,nte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ite(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ote(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ite,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ote,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.reason))},dependencies:[Wt,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var D3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var rte=["switch"],ate=["*"];function ste(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var lte=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},nl=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ke);defaults=p(lte);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(rte,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Qe([{provide:$o,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:ate,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ste,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Dr,Yb],styles:[`.mdc-switch { +`],encapsulation:2,changeDetection:0})}return t})();var WJ={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var $J=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(ho);_scrollStrategy=p($J);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=qs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&Gl(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof gm?e:null))}optionSelections=pr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Gr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Qe([WJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,xr,bm,pt]})}return t})();function GJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function qJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function YJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function QJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,QJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function JJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var KM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,GJ,4,1,"div")(2,qJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,YJ,4,3,"mat-form-field"),A(6,KJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,ZJ,4,2,"mat-form-field"),A(43,XJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,JJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function eee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function tee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function nee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function iee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,iee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function ree(t,i){if(t&1&&(A(0,nee,4,3,"mat-form-field"),A(1,oee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function aee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function see(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function lee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,see,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function cee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function dee(t,i){if(t&1&&A(0,cee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function uee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,dee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,eee,4,1,"div")(2,tee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,ree,2,2)(6,aee,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,lee,7,1,"mat-form-field")(35,uee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function pee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,mee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function fee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,hee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function gee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function _ee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,gee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var bee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Cee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/services_pools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/user_services")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new or(django.gettext("Groups"),e,bee,this.user.id+"infogrp"),this.servicesPools=new or(django.gettext("Services Pools"),n,yee,this.user.id+"infopool"),this.userServices=new or(django.gettext("Assigned services"),o,Cee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,pee,3,2,"mat-tab"),$t(7,"notEmpty"),A(8,fee,3,2,"mat-tab"),$t(9,"notEmpty"),A(10,_ee,3,2,"mat-tab"),$t(11,"notEmpty"),c(12,"mat-tab"),xe(13,vee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` +`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function xee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function wee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,xee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function Dee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function See(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Dee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Eee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Tee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Iee=[{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:sn.DATETIME}],kee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/services_pools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new or(django.gettext("Service pools"),n,Tee,this.data.group.id+"infopls"),this.users=new or(django.gettext("Users"),o,Iee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new or(django.gettext("Groups"),r,kee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,wee,3,2,"mat-tab"),$t(6,"notEmpty"),A(7,See,3,2,"mat-tab"),$t(8,"notEmpty"),A(9,Mee,3,2,"mat-tab"),$t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Aee=t=>["/authenticators",t];function Ree(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Oee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Bee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ree,2,0,"ng-template",8),c(5,"div",9),A(6,Oee,1,2,"uds-information",10),$t(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Pee,2,0,"ng-template",8),c(10,"div",9),A(11,Nee,1,6,"uds-table",11),A(12,Fee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Lee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Vee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:Gt.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:Gt.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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){KM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){KM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){ZM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ZM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Bee,21,16,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Aee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa,Ci],encapsulation:2})}}return t})();var XM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,jee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var zee=t=>["/connectivity","tunnels",t];function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Wee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Uee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Hee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.tunnel=null,this.gui=[],this.servers={}}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","deleteAction","loaded","rest","multiSelect","allowExport","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Wee,11,8,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,zee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function $ee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,$ee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,Gee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Kee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Zee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Kee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,qee,2,0,"uds-translate"),A(2,Yee,2,0,"uds-translate"),A(3,Qee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Zee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` +`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Xee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Jee(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ete(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,Jee,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Xee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,ete,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function tte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function nte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,tte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var C3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,nte,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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),"POST").then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.reason))},dependencies:[Ht,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ite=["switch"],ote=["*"];function rte(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ate=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},il=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ke);defaults=p(ate);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ite,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:ote,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,rte,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Sr,Yb],styles:[`.mdc-switch { align-items: center; background: none; border: none; @@ -4893,12 +4893,12 @@ mat-autocomplete { right: 50%; transform: translate(50%, -50%); } -`],encapsulation:2,changeDetection:0})}return t})(),S3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[nl,pt]})}return t})();var cte=()=>["transport","group","bool"];function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function fte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,hte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function vte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,gte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,_te,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function bte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function yte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var o1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,dte,2,0,"uds-translate")(2,ute,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,mte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,pte,2,2,"mat-option",4,De),d()(),A(30,fte,8,2,"mat-form-field"),A(31,vte,15,3),A(32,bte,5,2,"div",8),A(33,yte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,cte).includes(o.parameter.type)?33:-1))},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` -`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,or],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function wte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var E3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,Cte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,xte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,wte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Dte=["chart"],M3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(Dte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ete=t=>["/pools","service-pools",t];function Mte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Tte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Ite(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function kte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ite,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Rte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ote(t,i){if(t&1&&(A(0,Ate,3,0,"span"),A(1,Rte,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Pte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ote,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Vte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Lte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function jte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Bte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function Ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Hte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ute,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Wte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function $te(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Wte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Gte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function qte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Mte,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Tte,1,2,"uds-information",12),d()(),A(11,kte,4,8,"mat-tab"),A(12,Pte,4,9,"mat-tab"),A(13,Fte,4,7,"mat-tab"),A(14,Vte,4,7,"mat-tab"),A(15,jte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,zte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Hte,4,8,"mat-tab"),A(21,$te,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,Gte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",Yte='computer'+django.gettext("VNC")+"",Qte='schedule'+django.gettext("Launch now")+"",r1='perm_identity'+django.gettext("Change owner")+"",Kte='perm_identity'+django.gettext("Assign service")+"",Zte='cancel'+django.gettext("Cancel")+"",Xte='event'+django.gettext("Changelog")+"",T3='perm_identity'+django.gettext("Fallback: Allow")+"",Jte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Qte,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:T3,type:Ut.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:gy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Zte,type:Ut.SINGLE_SELECT},{id:"changelog",html:Xte,type:Ut.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:Yte,type:Ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Kte,type:Ut.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] +`],encapsulation:2,changeDetection:0})}return t})(),D3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[il,pt]})}return t})();var ste=()=>["transport","group","bool"];function lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function dte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function pte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,mte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,hte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,fte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function _te(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function vte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var i1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,lte,2,0,"uds-translate")(2,cte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,dte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,ute,2,2,"mat-option",4,De),d()(),A(30,pte,8,2,"mat-form-field"),A(31,gte,15,3),A(32,_te,5,2,"div",8),A(33,vte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,ste).includes(o.parameter.type)?33:-1))},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` +`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,rr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function bte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var S3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,bte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,yte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,Cte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var xte=["chart"],E3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(xte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Dte=t=>["/pools","service-pools",t];function Ste(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Ete(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Mte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Tte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Mte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ite(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ate(t,i){if(t&1&&(A(0,Ite,3,0,"span"),A(1,kte,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Rte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ate,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ote(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Pte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ote,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Vte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Lte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function zte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,jte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Hte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Ute,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Wte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function $te(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ste,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Ete,1,2,"uds-information",12),d()(),A(11,Tte,4,8,"mat-tab"),A(12,Rte,4,9,"mat-tab"),A(13,Pte,4,7,"mat-tab"),A(14,Fte,4,7,"mat-tab"),A(15,Vte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,Bte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,zte,4,8,"mat-tab"),A(21,Hte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,Wte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",Gte='computer'+django.gettext("VNC")+"",qte='schedule'+django.gettext("Launch now")+"",o1='perm_identity'+django.gettext("Change owner")+"",Yte='perm_identity'+django.gettext("Assign service")+"",Qte='cancel'+django.gettext("Cancel")+"",Kte='event'+django.gettext("Changelog")+"",M3='perm_identity'+django.gettext("Fallback: Allow")+"",Zte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:qte,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:M3,type:Gt.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Gt.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Qte,type:Gt.SINGLE_SELECT},{id:"changelog",html:Kte,type:Gt.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:Gte,type:Gt.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Yte,type:Gt.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});lm(o,e.ip+".vnc")}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?ff.launch(this.api,n,this.assignedServices,this.servicePool?.name):e.param.id==="assign-service"?(yield E3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage():e.param.id==="vnc"&&this.vnc(n)})}onCustomCached(e){let n=e.table.selection.selected[0];e.param.id==="log"&&this.cache&&ff.launch(this.api,n,this.cache,this.servicePool?.name)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}onDeleteAssigned(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}checkLocked(){return B(this,null,function*(){return this.servicePool.state==="Q"?(this.api.gui.alert(django.gettext("Service pool is locked"),django.gettext("Service pool is locked, no changes allowed")),!0):!1})}onNewGroup(e){return B(this,null,function*(){(yield this.checkLocked())||(yield py.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return B(this,null,function*(){(yield this.checkLocked())||(yield x3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return B(this,null,function*(){(yield w3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return B(this,null,function*(){e.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))})}onCustomPublication(e){return B(this,null,function*(){e.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&D3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=T3:this.customButtonAccessCalendars[0].html=Jte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,qte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",mo(4,Ete,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,qo,Yn,Qn,ii,Ee,Ge,or,oa,M3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var I3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],ene=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],tne=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],k3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),ene],users:[()=>this.users(),I3],"users-with-services":[()=>this.usersWithServices(),I3],"user-services":[()=>this.userServices(!0),k3],"assigned-services":[()=>this.userServices(!1),k3],"restrained-pools":[()=>this.pools(!0),tne]},[s,l]=a[r.list];this.selectedRest=new ir(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye($({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye($({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var a1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function ine(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function one(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function rne(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var s1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,nne,2,0,"uds-translate"),A(2,ine,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,one,1,0,"uds-cond-select-search"),fe(16,rne,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Wt,Sr,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,nl,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var ane=t=>["/pools","meta-pools",t];function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function lne(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function mne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function pne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function hne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,sne,2,0,"ng-template",8),c(5,"div",9),A(6,lne,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,cne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,dne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,une,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,mne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,pne,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var A3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Ut.SINGLE_SELECT},{id:"log",html:gy,type:Ut.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,hne,27,31,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,ane,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,or,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var c1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var fne=["mat-calendar-body",""];function gne(t,i){return this._trackRow(i)}var V3=(t,i)=>i.id;function _ne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function vne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function bne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Ol("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),uo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function yne(t,i){if(t&1&&(dn(0,"tr",1),A(1,vne,2,6,"td",4),fe(2,bne,5,49,"td",5,V3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function Cne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var xne=["*"];function wne(t,i){}function Dne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Sne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ene(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Mne(t,i){}var Tne=["button"],Ine=[[["","matDatepickerToggleIcon",""]]],kne=["[matDatepickerToggleIcon]"];function Ane(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rne=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=Rne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},One={passive:!1,capture:!0},vy={passive:!0,capture:!0},R3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,One),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,R3),e.listen(o,"touchstart",this._mousedownHandler,R3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return m1(e,this.startValue,this.endValue)}_isRangeEnd(e){return p1(e,this.startValue,this.endValue)}_isInRange(e){return h1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return p1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return h1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return m1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return p1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return h1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=O3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),u1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=u1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=O3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=u1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:fne,decls:11,vars:11,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","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&&(A(0,_ne,3,6,"tr",0),fe(1,yne,4,1,"tr",1,gne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel",void 0,"POST").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&w3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute",void 0,"POST").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=M3:this.customButtonAccessCalendars[0].html=Zte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,$te,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,Dte,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Ge,rr,oa,E3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var T3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],Xte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],Jte=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],I3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Xte],users:[()=>this.users(),T3],"users-with-services":[()=>this.usersWithServices(),T3],"user-services":[()=>this.userServices(!0),I3],"assigned-services":[()=>this.userServices(!1),I3],"restrained-pools":[()=>this.pools(!0),Jte]},[s,l]=a[r.list];this.selectedRest=new or(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var r1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function ene(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function nne(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function ine(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var a1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ene,2,0,"uds-translate"),A(2,tne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,nne,1,0,"uds-cond-select-search"),fe(16,ine,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Ht,Er,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var one=t=>["/pools","meta-pools",t];function rne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function ane(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function mne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,rne,2,0,"ng-template",8),c(5,"div",9),A(6,ane,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,sne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,lne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,cne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,dne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,une,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,mne,27,31,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,one,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var s1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var pne=["mat-calendar-body",""];function hne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function fne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function gne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function _ne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Pl("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),mo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function vne(t,i){if(t&1&&(dn(0,"tr",1),A(1,gne,2,6,"td",4),fe(2,_ne,5,49,"td",5,L3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function bne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var yne=["*"];function Cne(t,i){}function xne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function wne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){}var Ene=["button"],Mne=[[["","matDatepickerToggleIcon",""]]],Tne=["[matDatepickerToggleIcon]"];function Ine(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kne=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=kne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Ane={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Ane),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return u1(e,this.startValue,this.endValue)}_isRangeEnd(e){return m1(e,this.startValue,this.endValue)}_isInRange(e){return p1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return u1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return p1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return u1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return m1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return p1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),d1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=d1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=d1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:pne,decls:11,vars:11,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","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&&(A(0,fne,3,6,"tr",0),fe(1,vne,4,1,"tr",1,hne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset=i&&t===e}function h1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function O3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),Pne=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(so))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var B3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new Pne(p(so))};var j3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var f1=7,Nne=0,P3=(()=>{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(j3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(Gr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((f1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%f1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Nne++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,Cne,5,2,"th",2,V3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Ar=24,g1=4,N3=(()=>{class t{_changeDetectorRef=p(Ke);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),z3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-g1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,g1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ar-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Ar*10:-Ar);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ar*10:Ar);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Ql,{optional:!0});_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(_1);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(Gr);let e=p(Ke);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Ar))}nextClicked(){this.nextEnabled()&&(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:Ar))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):z3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Ar-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:xne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,qo],encapsulation:2,changeDetection:0})}return t})(),_1=(()=>{class t{_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_changeDetectorRef=p(Ke);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new tr(this.headerComponent||H3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains($r())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(P3,5)(F3,5)(N3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Qe([B3]),Ct],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&&(xe(0,wne,0,0,"ng-template",0),c(1,"div",1),A(2,Dne,1,11,"mat-month-view",2)(3,Sne,1,6,"mat-year-view",3)(4,Ene,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Nh,P3,F3,N3],styles:[`.mat-calendar { +`],encapsulation:2,changeDetection:0})}return t})();function c1(t){return t?.nodeName==="TD"}function d1(t){let i;return c1(t)?i=t:c1(t.parentNode)?i=t.parentNode:c1(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function u1(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function p1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Rne=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(lo))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new Rne(p(lo))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var h1=7,One=0,O3=(()=>{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((h1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%h1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:One++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,bne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Rr=24,f1=4,P3=(()=>{class t{_changeDetectorRef=p(Ke);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-f1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,f1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Rr-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Rr*10:-Rr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Rr*10:Rr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(g1);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(qr);let e=p(Ke);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Rr))}nextClicked(){this.nextEnabled()&&(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:Rr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Rr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:yne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),g1=(()=>{class t{_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_changeDetectorRef=p(Ke);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Gr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Qe([V3]),Ct],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&&(xe(0,Cne,0,0,"ng-template",0),c(1,"div",1),A(2,xne,1,11,"mat-month-view",2)(3,wne,1,6,"mat-year-view",3)(4,Dne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Nh,O3,N3,P3],styles:[`.mat-calendar { display: block; line-height: normal; font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); @@ -5291,7 +5291,7 @@ port=5900 .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),Lne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>wr(t)}}),W3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ke);_globalModel=p(vf);_dateAdapter=p(so);_ngZone=p(be);_rangeSelectionStrategy=p(j3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(Gr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(_1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Mne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,_1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { +`],encapsulation:2,changeDetection:0})}return t})(),Nne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ke);_globalModel=p(vf);_dateAdapter=p(lo);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(qr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(g1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Sne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,g1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { from { opacity: 0; transform: scaleY(0.8); @@ -5394,7 +5394,7 @@ port=5900 height: 115vw; } } -`],encapsulation:2,changeDetection:0})}return t})(),L3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(so,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Lne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=iF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ke);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=$r(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new tr(W3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ul(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return fs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends L3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Qe([B3,{provide:L3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Vne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(so,{optional:!0});_dateFormats=p(Ql,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Bne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Bne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var jne={provide:$o,useExisting:Wn(()=>Lm),multi:!0},zne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Vne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=vs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Qe([jne,zne,{provide:J0,useExisting:t}]),We]})}return t})(),Une=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ke);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Une,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Tne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:kne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Ine),c(0,"button",1,0),A(2,Ane,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { +`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Nne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=nF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ke);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Gr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new nr(H3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Hl(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return gs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Qe([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Fne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Lne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Lne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Vne={provide:Go,useExisting:Wn(()=>Lm),multi:!0},Bne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Fne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=bs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Qe([Vne,Bne,{provide:J0,useExisting:t}]),We]})}return t})(),jne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ke);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,jne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Ene,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Tne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Mne),c(0,"button",1,0),A(2,Ine,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { pointer-events: auto; color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); } @@ -5411,7 +5411,7 @@ port=5900 color: CanvasText; } } -`],encapsulation:2,changeDetection:0})}return t})();var $3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[_s,ho,cd,xr,W3,bf,H3,pt,Cr]})}return t})();function Hne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Wne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function qne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Yne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,qne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function Qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},q3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Y3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(q3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Q3=t=>{t.frequency==="WEEKDAYS"?t.interval=Y3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},b1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=q3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+Y3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Gl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Gl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Hne,2,0,"uds-translate"),Gt(2,"notEmpty"),A(3,Wne,2,0,"uds-translate"),Gt(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,$ne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Gne,2,2,"mat-option",9,De),d()(),A(63,Yne,7,1,"mat-form-field",10),A(64,Qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Wt,Sr,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,kr,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Kne=t=>["/pools","calendars",t];function Zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Xne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Zne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){b1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){b1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Q3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Xne,7,7,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,Kne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Jne='event'+django.gettext("Set time mark")+"",y1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Jne,type:Ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var eie=t=>["/pools","accounts",t];function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function nie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,tie,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var Z3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,nie,7,6,"div",5),Gt(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",mo(6,eie,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function iie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function oie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var C1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,iie,2,0,"uds-translate"),A(2,oie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Wt,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var x1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){C1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){C1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var rie='assessment'+django.gettext("Generate report")+"",X3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:rie,type:Ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function aie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function cie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function uie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function mie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,uie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){}function fie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function gie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function _ie(t,i){if(t&1&&A(0,sie,5,4,"div")(1,lie,5,3,"div")(2,cie,5,3,"div")(3,die,4,3,"div")(4,mie,7,3,"div")(5,pie,5,3,"div")(6,hie,0,0)(7,fie,5,3,"div")(8,gie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function vie(t,i){if(t&1&&(c(0,"div",10),A(1,_ie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function bie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,aie,1,1,"ng-template",8),c(2,"div",9),fe(3,vie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function yie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,bie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var eB=["UDS","Security"],tB=["UDS ID"],nB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!eB.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,eB),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&tB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,tB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,yie,9,1,"div",3),Gt(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Wt,Sr,$e,Ze,Fe,qo,ze,st,Yt,en,Mt,Yn,Qn,ii,nl,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var oB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var Cie=[{path:"",canActivate:[M2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:WM},{path:"services/providers/:provider/detail",component:$M},{path:"services/providers/:provider",component:WM},{path:"services/providers/:provider/detail/:service",component:$M},{path:"services/servers",component:GM},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:GM},{path:"authenticators",component:qM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:qM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:YM},{path:"mfas/:mfa",component:YM},{path:"osmanagers",component:JM},{path:"osmanagers/:osmanager",component:JM},{path:"connectivity/transports",component:e1},{path:"connectivity/transports/:transport",component:e1},{path:"connectivity/networks",component:t1},{path:"connectivity/networks/:network",component:t1},{path:"connectivity/tunnels",component:n1},{path:"connectivity/tunnels/:tunnel",component:n1},{path:"connectivity/tunnels/:tunnel/detail",component:C3},{path:"pools/service-pools",component:i1},{path:"pools/service-pools/:pool",component:i1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:a1},{path:"pools/meta-pools/:metapool",component:a1},{path:"pools/meta-pools/:metapool/detail",component:A3},{path:"pools/pool-groups",component:l1},{path:"pools/pool-groups/:poolgroup",component:l1},{path:"pools/calendars",component:c1},{path:"pools/calendars/:calendar",component:c1},{path:"pools/calendars/:calendar/detail",component:K3},{path:"pools/accounts",component:y1},{path:"pools/accounts/:account",component:y1},{path:"pools/accounts/:account/detail",component:Z3},{path:"tools/gallery",component:x1},{path:"tools/gallery/:image",component:x1},{path:"tools/reports",component:X3},{path:"tools/notifiers",component:J3},{path:"tools/tokens/actor",component:iB},{path:"tools/tokens/server",component:oB},{path:"tools/configuration",component:nB}]}],rB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(Cie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ua="*";function aB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function w1(t){return{type:Jt.Style,styles:t,offset:null}}var il=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function sB(t){return new ie(3e3,!1)}function xie(){return new ie(3100,!1)}function wie(){return new ie(3101,!1)}function Die(t){return new ie(3001,!1)}function Sie(t){return new ie(3003,!1)}function Eie(t){return new ie(3004,!1)}function cB(t,i){return new ie(3005,!1)}function dB(){return new ie(3006,!1)}function uB(){return new ie(3007,!1)}function mB(t,i){return new ie(3008,!1)}function pB(t){return new ie(3002,!1)}function hB(t,i,e,n,o){return new ie(3010,!1)}function fB(){return new ie(3011,!1)}function gB(){return new ie(3012,!1)}function _B(){return new ie(3200,!1)}function vB(){return new ie(3202,!1)}function bB(){return new ie(3013,!1)}function yB(t){return new ie(3014,!1)}function CB(t){return new ie(3015,!1)}function xB(t){return new ie(3016,!1)}function wB(t,i){return new ie(3404,!1)}function Mie(t){return new ie(3502,!1)}function DB(t){return new ie(3503,!1)}function SB(){return new ie(3300,!1)}function EB(t){return new ie(3504,!1)}function MB(t){return new ie(3301,!1)}function TB(t,i){return new ie(3302,!1)}function IB(t){return new ie(3303,!1)}function kB(t,i){return new ie(3400,!1)}function AB(t){return new ie(3401,!1)}function RB(t){return new ie(3402,!1)}function OB(t,i){return new ie(3505,!1)}function ol(t){switch(t.length){case 0:return new il;case 1:return t[0];default:return new Vm(t)}}function M1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ua:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Mie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&D1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&D1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&D1(e,"destroy",t)));break}}function D1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function rr(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function T1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Tie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Tie?null:i}function Iie(t){return t.substring(1,6)=="ebkit"}var Md=null,lB=!1;function PB(t){Md||(Md=kie()||{},lB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Iie(t)&&(i=t in Md.style,!i&&lB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function kie(){return typeof document<"u"?document.body:null}function I1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function k1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Aie=1e3,A1="{{",Rie="}}",R1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",O1="ng-animating",Ey=".ng-animating";function Cs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:S1(parseFloat(i[1]),i[2])}function S1(t,i){return i==="s"?t*Aie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Pie(t,i,e)}var Oie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Oie);if(a===null)return i.push(sB(t)),{duration:0,delay:0,easing:""};n=S1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=S1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(xie()),a=!0),o<0&&(i.push(wie()),a=!0),a&&i.splice(s,0,sB(t))}return{duration:n,delay:o,easing:r}}function NB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ha(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:aB(t):t}function FB(t,i,e){let n=i.params||{},o=P1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(Die(r))})}var E1=new RegExp(`${A1}\\s*(.+?)\\s*${Rie}`,"g");function P1(t){let i=[];if(typeof t=="string"){let e;for(;e=E1.exec(t);)i.push(e[1]);E1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(E1,(r,a)=>{let s=i[a];return s==null&&(e.push(Sie(a)),s=""),s.toString()});return o==n?t:o}var Nie=/-+([a-z0-9])/g;function My(t){return t.replace(Nie,(...i)=>i[1].toUpperCase())}function LB(t,i){return t===0||i===0}function VB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function ar(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Eie(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var Z1=(()=>{class t{validateStyleProperty(e){return PB(e)}containsElement(e,n){return I1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return k1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new il(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new Z1},kd=class{};var Fie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Fie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(cB(i,n))}return a+r}};var Py="*";function Lie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Vie(n,e,i)):e.push(t),e}function Vie(t,i,e){if(t[0]==":"){let l=Bie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(CB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(BB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(BB(a,o))}function Bie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function BB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var QB=":self",jie=new RegExp(`s*${QB}s*,?`,"g");function KB(t,i,e,n){return new j1(t).build(i,e,n)}var jB="",j1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new z1(e);return this._resetContextStyleTimingState(o),ar(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=jB,i.collectedStyles=new Map,i.collectedStyles.set(jB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(dB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(uB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{P1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(mB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ar(this,Bm(i.animation),e),o=Lie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>ar(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ar(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Wie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:w1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=w1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ua?n.push(s):e.errors.push(pB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(A1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(hB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&FB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(fB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:Hie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:ar(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=zie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,rr(e.collectedStyles,e.currentQuerySelector,new Map);let s=ar(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(bB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:ar(this,Bm(i.animation),e),timings:n,options:null}}};function zie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==QB);return i&&(t=t.replace(jie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function Uie(t){return t?$({},t):null}var z1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Hie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Wie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return N1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=N1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return N1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=$({},t),t.params&&(t.params=Uie(t.params))):t={},t}function N1(t,i,e){return{duration:t,delay:i,easing:e}}function X1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},$ie=1,Gie=":enter",qie=new RegExp(Gie,"g"),Yie=":leave",Qie=new RegExp(Yie,"g");function ZB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new U1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var U1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new H1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?Cs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),ar(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[X1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:Cs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?Cs(n.duration):null,s=n.delay!=null?Cs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ar(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=Cs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ar(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?Cs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ar(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?Cs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),ar(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;ar(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},H1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=Cs(n.duration)),n.delay!=null&&(o.delay=Cs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new W1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(qie,"."+this._enterClassName),i=i.replace(Qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(yB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=$ie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ua),this._currentKeyframe.set(e,Ua);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Kie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ua),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ua&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return X1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},W1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",zB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",zB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return X1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function zB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Kie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ua)}else for(let[r,a]of o)e.set(r,a)}),e}function UB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var F1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Zie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||F1,w=s&&s.params||F1,S=this.buildStyles(n,w,g),P=l&&l.params||F1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:XB(P,y),delay:this.ast.options?.delay},Ce=h?[]:ZB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?UB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=rr(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=rr(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),UB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Zie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function XB(t,i){let e=$({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var $1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=XB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Xie(t,i,e){return new G1(t,i,e)}var G1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new $1(o.style,r,n))}),HB(this.states,"true","1"),HB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Jie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Jie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function HB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var eoe=new Sf,q1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=KB(this._driver,e,n,o);if(n.length)throw DB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=M1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=ZB(this._driver,e,r,R1,Sy,new Map,new Map,n,eoe,o),a.forEach(h=>{let g=rr(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(SB()),a=[]),o.length)throw EB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ua))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=ol(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw MB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},WB="ng-animate-queued",toe=".ng-animate-queued",L1="ng-animate-disabled",noe=".ng-animate-disabled",ioe="ng-star-inserted",ooe=".ng-star-inserted",roe=[],JB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aoe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wa="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=loe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",V1=new Ef(Df),Y1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw TB(n,e);if(n==null||n.length==0)throw IB(e);if(!coe(n))throw kB(n,e);let r=rr(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=rr(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,Cf),aa(i,Cf+"-"+e),s.set(e,V1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw AB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,Cf),aa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V1),!(u.value===Df)&&l.value===u.value){if(!moe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Ha(i,F)})}return}let y=rr(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,WB),a.onStart(()=>{zm(i,WB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[Wa])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&ol(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||V1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[Wa];(!r||r===JB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Q1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new Y1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[Wa];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,L1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,L1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[Wa]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return ol(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Wa];if(e&&e.setForRemoval){if(i[Wa]=JB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(L1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,noe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?ol(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw RB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,toe,!0);for(let He=0;He{let He=R1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=qB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[Wa];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Ha(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>rr(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Yo)=>Jn.add(Yo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(OB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{rr(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>YB(pe,l,u)),ht=new Map;GB(ht,this.driver,q,u,Ua).forEach(pe=>{YB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{GB(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Ha(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=ol(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Ha(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=ol(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?doe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=rr(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[Wa];if(j&&j.removedBeforeQueried)return new il(S.duration,S.delay);let F=P!==l,q=uoe((n.get(P)||roe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=M1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{rr(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>soe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,O1));let w=ol(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,O1)),Ha(l,e.toStyles)}),g.forEach(S=>{rr(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new il(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new il;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){rr(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function soe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function loe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function coe(t){return t=="start"||t=="done"}function $B(t,i){let e=t.style.display;return t.style.display=i??"none",e}function GB(t,i,e,n,o){let r=[];e.forEach(l=>r.push($B(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[Wa]=aoe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>$B(l,r[s++])),a}function qB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function doe(t,i,e){ol(e).onDone(()=>t.processLeaveNode(i))}function uoe(t){let i=[];return ej(t,i),i}function ej(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Q1(i.body,e,n),this._timelineEngine=new q1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=KB(this._driver,r,l,u);if(l.length)throw wB(o,l);s=Xie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=T1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=T1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function poe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=B1(i[0]),i.length>1&&(n=B1(i[i.length-1]))):i instanceof Map&&(e=B1(i)),e||n?new hoe(t,e,n):null}var hoe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}return t})();function B1(t){let i=null;return t.forEach((e,n)=>{foe(n)&&(i=i||new Map,i.set(n,e))}),i}function foe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return I1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return k1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);LB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=NB(e).map(w=>new Map(w));g=VB(i,g,u);let y=poe(i,g);return new Vy(i,g,l,y)}};var Ry="@",tj="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==tj?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},K1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==tj?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=goe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=_oe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function goe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _oe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new K1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var boe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();function yoe(){return new Oy}function Coe(){return new zy(p(rh),p(Um),p(be))}var ij=[{provide:kd,useFactory:yoe},{provide:Um,useClass:boe},{provide:bi,useFactory:Coe}],xoe=[{provide:Id,useClass:Z1},{provide:Rl,useValue:"NoopAnimations"},...ij],nj=[{provide:Id,useFactory:()=>new By},{provide:Rl,useFactory:()=>"BrowserAnimations"},...ij],oj=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?xoe:nj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:nj,imports:[sh]})}return t})();var woe=["button"],Doe=["*"];function Soe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Eoe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Moe=new L("MatButtonToggleGroup");var J1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Toe=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Moe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Eoe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 J1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(woe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Doe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,Soe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Dr,qb],styles:[`.mat-button-toggle-standalone, +`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[vs,fo,cd,wr,H3,bf,U3,pt,xr]})}return t})();function zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Hne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,$ne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},v1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+ql(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+ql(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,zne,2,0,"uds-translate"),$t(2,"notEmpty"),A(3,Une,2,0,"uds-translate"),$t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Hne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Wne,2,2,"mat-option",9,De),d()(),A(63,Gne,7,1,"mat-form-field",10),A(64,qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Ar,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Yne=t=>["/pools","calendars",t];function Qne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Kne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Qne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){v1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){v1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Kne,7,7,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Yne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Zne='event'+django.gettext("Set time mark")+"",b1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Zne,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Xne=t=>["/pools","accounts",t];function Jne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function eie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Jne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,eie,7,6,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Xne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var y1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,tie,2,0,"uds-translate"),A(2,nie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var C1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){y1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){y1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var iie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:iie,type:Gt.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function oie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function rie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function cie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,cie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function mie(t,i){}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1&&A(0,rie,5,4,"div")(1,aie,5,3,"div")(2,sie,5,3,"div")(3,lie,4,3,"div")(4,die,7,3,"div")(5,uie,5,3,"div")(6,mie,0,0)(7,pie,5,3,"div")(8,hie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function gie(t,i){if(t&1&&(c(0,"div",10),A(1,fie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function _ie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,oie,1,1,"ng-template",8),c(2,"div",9),fe(3,gie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function vie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,_ie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,vie,9,1,"div",3),$t(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Ht,Er,$e,Ze,Fe,Yo,ze,st,Yt,en,Mt,Yn,Qn,ii,il,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var bie=[{path:"",canActivate:[E2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:HM},{path:"services/providers/:provider/detail",component:WM},{path:"services/providers/:provider",component:HM},{path:"services/providers/:provider/detail/:service",component:WM},{path:"services/servers",component:$M},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:$M},{path:"authenticators",component:GM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:GM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:qM},{path:"mfas/:mfa",component:qM},{path:"osmanagers",component:XM},{path:"osmanagers/:osmanager",component:XM},{path:"connectivity/transports",component:JM},{path:"connectivity/transports/:transport",component:JM},{path:"connectivity/networks",component:e1},{path:"connectivity/networks/:network",component:e1},{path:"connectivity/tunnels",component:t1},{path:"connectivity/tunnels/:tunnel",component:t1},{path:"connectivity/tunnels/:tunnel/detail",component:y3},{path:"pools/service-pools",component:n1},{path:"pools/service-pools/:pool",component:n1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:r1},{path:"pools/meta-pools/:metapool",component:r1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:s1},{path:"pools/pool-groups/:poolgroup",component:s1},{path:"pools/calendars",component:l1},{path:"pools/calendars/:calendar",component:l1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:b1},{path:"pools/accounts/:account",component:b1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:C1},{path:"tools/gallery/:image",component:C1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(bie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ha="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var ol=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function aB(t){return new ie(3e3,!1)}function yie(){return new ie(3100,!1)}function Cie(){return new ie(3101,!1)}function xie(t){return new ie(3001,!1)}function wie(t){return new ie(3003,!1)}function Die(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Sie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function rl(t){switch(t.length){case 0:return new ol;case 1:return t[0];default:return new Vm(t)}}function E1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ha:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Sie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&w1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&w1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&w1(e,"destroy",t)));break}}function w1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function M1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Eie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Eie?null:i}function Mie(t){return t.substring(1,6)=="ebkit"}var Md=null,sB=!1;function OB(t){Md||(Md=Tie()||{},sB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Mie(t)&&(i=t in Md.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function Tie(){return typeof document<"u"?document.body:null}function T1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function I1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Iie=1e3,k1="{{",kie="}}",A1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",R1="ng-animating",Ey=".ng-animating";function xs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:D1(parseFloat(i[1]),i[2])}function D1(t,i){return i==="s"?t*Iie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Rie(t,i,e)}var Aie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Rie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Aie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=D1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=D1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(yie()),a=!0),o<0&&(i.push(Cie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Wa(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=O1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(xie(r))})}var S1=new RegExp(`${k1}\\s*(.+?)\\s*${kie}`,"g");function O1(t){let i=[];if(typeof t=="string"){let e;for(;e=S1.exec(t);)i.push(e[1]);S1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(S1,(r,a)=>{let s=i[a];return s==null&&(e.push(wie(a)),s=""),s.toString()});return o==n?t:o}var Oie=/-+([a-z0-9])/g;function My(t){return t.replace(Oie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function sr(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Die(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var K1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return T1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return I1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new ol(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new K1},kd=class{};var Pie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Pie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Nie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Fie(n,e,i)):e.push(t),e}function Fie(t,i,e){if(t[0]==":"){let l=Lie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Lie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Vie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new B1(t).build(i,e,n)}var BB="",B1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new j1(e);return this._resetContextStyleTimingState(o),sr(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{O1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,Bm(i.animation),e),o=Nie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Uie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ha?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(k1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:zie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:sr(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=Bie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:sr(this,Bm(i.animation),e),timings:n,options:null}}};function Bie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Vie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function jie(t){return t?G({},t):null}var j1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function zie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Uie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return P1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=P1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return P1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=G({},t),t.params&&(t.params=jie(t.params))):t={},t}function P1(t,i,e){return{duration:t,delay:i,easing:e}}function Z1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Hie=1,Wie=":enter",$ie=new RegExp(Wie,"g"),Gie=":leave",qie=new RegExp(Gie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new z1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var z1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new U1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?xs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),sr(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[Z1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:xs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?xs(n.duration):null,s=n.delay!=null?xs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=xs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?xs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),sr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?xs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),sr(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},U1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=xs(n.duration)),n.delay!=null&&(o.delay=xs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new H1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace($ie,"."+this._enterClassName),i=i.replace(qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Hie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Yie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ha&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},H1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return Z1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Yie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ha)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var N1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Qie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||N1,w=s&&s.params||N1,S=this.buildStyles(n,w,g),P=l&&l.params||N1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=ar(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=ar(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Qie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var W1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Kie(t,i,e){return new $1(t,i,e)}var $1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new W1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Zie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Zie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Xie=new Sf,G1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=E1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,A1,Sy,new Map,new Map,n,Xie,o),a.forEach(h=>{let g=ar(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ha))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=rl(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",Jie=".ng-animate-queued",F1="ng-animate-disabled",eoe=".ng-animate-disabled",toe="ng-star-inserted",noe=".ng-star-inserted",ioe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ooe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$a="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=aoe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",L1=new Ef(Df),q1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!soe(n))throw IB(n,e);let r=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,Cf),aa(i,Cf+"-"+e),s.set(e,L1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,Cf),aa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=L1),!(u.value===Df)&&l.value===u.value){if(!doe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Wa(i,F)})}return}let y=ar(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,HB),a.onStart(()=>{zm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[$a])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&rl(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||L1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[$a];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Y1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new q1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[$a];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,F1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,F1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[$a]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return rl(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[$a];if(e&&e.setForRemoval){if(i[$a]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(F1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,eoe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?rl(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,Jie,!0);for(let He=0;He{let He=A1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[$a];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>ar(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{ar(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ha).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Wa(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=rl(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Wa(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=rl(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?loe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=ar(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[$a];if(j&&j.removedBeforeQueried)return new ol(S.duration,S.delay);let F=P!==l,q=coe((n.get(P)||ioe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=E1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{ar(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>roe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,R1));let w=rl(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,R1)),Wa(l,e.toStyles)}),g.forEach(S=>{ar(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ol(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new ol;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function roe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function aoe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function soe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[$a]=ooe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function loe(t,i,e){rl(e).onDone(()=>t.processLeaveNode(i))}function coe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Y1(i.body,e,n),this._timelineEngine=new G1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Kie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=M1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=M1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function uoe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=V1(i[0]),i.length>1&&(n=V1(i[i.length-1]))):i instanceof Map&&(e=V1(i)),e||n?new moe(t,e,n):null}var moe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Wa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wa(this._element,this._initialStyles),this._endStyles&&(Wa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Wa(this._element,this._initialStyles),this._state=3)}}return t})();function V1(t){let i=null;return t.forEach((e,n)=>{poe(n)&&(i=i||new Map,i.set(n,e))}),i}function poe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return T1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return I1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=uoe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Q1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=hoe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=foe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function hoe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function foe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new Q1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var _oe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function voe(){return new Oy}function boe(){return new zy(p(rh),p(Um),p(be))}var nj=[{provide:kd,useFactory:voe},{provide:Um,useClass:_oe},{provide:bi,useFactory:boe}],yoe=[{provide:Id,useClass:K1},{provide:Ol,useValue:"NoopAnimations"},...nj],tj=[{provide:Id,useFactory:()=>new By},{provide:Ol,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?yoe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[sh]})}return t})();var Coe=["button"],xoe=["*"];function woe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Doe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Soe=new L("MatButtonToggleGroup");var X1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Eoe=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Soe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Doe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 X1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(Coe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:xoe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,woe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Sr,qb],styles:[`.mat-button-toggle-standalone, .mat-button-toggle-group { position: relative; display: inline-flex; @@ -5686,7 +5686,7 @@ port=5900 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); } -`],encapsulation:2,changeDetection:0})}return t})(),rj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gs,Toe,pt]})}return t})();var koe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Aoe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Roe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Ooe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Poe=`.mdc-evolution-chip, +`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,Eoe,pt]})}return t})();var Toe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ioe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function koe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Aoe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Roe=`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6234,7 +6234,7 @@ port=5900 img.mdc-evolution-chip__icon { min-height: 0; } -`,Noe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Foe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Loe(t,i){t&1&&O(0,"span",0)}function Voe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Boe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function joe(t,i){t&1&&Ie(0,2)}function zoe(t,i){t&1&&O(0,"span",7)}function Uoe(t,i){if(t&1&&A(0,joe,1,0)(1,zoe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Hoe(t,i){t&1&&Ie(0,3)}function Woe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var cj=["*"],$oe=`.mat-mdc-chip-set { +`,Ooe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Poe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Noe(t,i){t&1&&O(0,"span",0)}function Foe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Loe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Voe(t,i){t&1&&Ie(0,2)}function Boe(t,i){t&1&&O(0,"span",7)}function joe(t,i){if(t&1&&A(0,Voe,1,0)(1,Boe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function zoe(t,i){t&1&&Ie(0,3)}function Uoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Hoe=`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6302,7 +6302,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`,dj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),aj=new L("MatChipAvatar"),sj=new L("MatChipTrailingIcon"),lj=new L("MatChipEdit"),tT=new L("MatChipRemove"),oT=new L("MatChip"),uj=(()=>{class t{_elementRef=p(se);_parentChip=p(oT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),rT=(()=>{class t extends uj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var mj=(()=>{class t extends rT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Qe([{provide:tT,useExisting:t}]),We]})}return t})(),nT=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_tagName=p(EO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(Gr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aj,5)(r,lj,5)(r,sj,5)(r,tT,5)(r,aj,5)(r,sj,5)(r,lj,5)(r,tT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(rT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Qe([{provide:oT,useExisting:t}])],ngContentSelectors:Aoe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(koe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,Roe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Ooe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[uj],styles:[`.mdc-evolution-chip, +`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),eT=new L("MatChipRemove"),iT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(iT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),oT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends oT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Qe([{provide:eT,useExisting:t}]),We]})}return t})(),tT=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_tagName=p(SO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,eT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,eT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(oT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Qe([{provide:iT,useExisting:t}])],ngContentSelectors:Ioe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Toe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,koe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Aoe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6850,7 +6850,7 @@ input.mat-mdc-chip-input { img.mdc-evolution-chip__icon { min-height: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var eT=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),aT=(()=>{class t extends nT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,eT,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(eT,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Qe([{provide:nT,useExisting:t},{provide:oT,useExisting:t}]),We],ngContentSelectors:Foe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Noe),A(0,Loe,1,0,"span",0),A(1,Voe,2,0,"span",1),c(2,"span",2),A(3,Boe,2,0,"span",3),c(4,"span",4),A(5,Uoe,2,1)(6,Hoe,1,0),O(7,"span",5),d()(),A(8,Woe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[rT,eT],styles:[Poe],encapsulation:2,changeDetection:0})}return t})(),Goe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new fr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new qs(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,nT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { +`],encapsulation:2,changeDetection:0})}return t})();var J1=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),rT=(()=>{class t extends tT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,J1,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(J1,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Qe([{provide:tT,useExisting:t},{provide:iT,useExisting:t}]),We],ngContentSelectors:Poe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Ooe),A(0,Noe,1,0,"span",0),A(1,Foe,2,0,"span",1),c(2,"span",2),A(3,Loe,2,0,"span",3),c(4,"span",4),A(5,joe,2,1)(6,zoe,1,0),O(7,"span",5),d()(),A(8,Uoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[oT,J1],styles:[Roe],encapsulation:2,changeDetection:0})}return t})(),Woe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Ys(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,tT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6918,7 +6918,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var iT=class{source;value;constructor(i,e){this.source=i,this.value=e}},pj=(()=>{class t extends Goe{ngControl=p(nr,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(vs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Yl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Kl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new iT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Qe([{provide:Xs,useExisting:t}]),We],ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[$oe],encapsulation:2,changeDetection:0})}return t})(),hj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(dj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:dj,useValue:{separatorKeyCodes:[13]}}],imports:[gs,pt]})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var _j=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gj,xr,pt]})}return t})();var Yoe=["*",[["mat-toolbar-row"]]],Qoe=["*","mat-toolbar-row"],Koe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),vj=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Koe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Yoe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { +`],encapsulation:2,changeDetection:0})}return t})();var nT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends Woe{ngControl=p(ir,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new nT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Qe([{provide:Js,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[Hoe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[_s,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,wr,pt]})}return t})();var Goe=["*",[["mat-toolbar-row"]]],qoe=["*","mat-toolbar-row"],Yoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Goe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); } @@ -6983,5 +6983,5 @@ input.mat-mdc-chip-input { min-height: var(--mat-toolbar-mobile-height, 56px); } } -`],encapsulation:2,changeDetection:0})}return t})();var bj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var yj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,c2,jb,bj,_s,t3,B0,_j,gF,yd,r3,V0,$3,D2,a3,DV,PV,k2,FV,g2,fj,rj,S3,g3,x2,LV,XV,$V]})}}return t})();function Xoe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function nre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function ire(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function ore(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function rre(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function are(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,ore,3,1,"a",22),A(4,rre,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function sre(t,i){t&1&&A(0,are,7,3,"div",20),t&2&&R(i.title?0:-1)}function lre(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var Cj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Zl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Xoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Joe,2,0,"uds-translate")(18,ere,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,tre,2,0,"uds-translate")(30,nre,2,0,"uds-translate"),d(),A(31,ire,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,sre,1,1),Gt(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,lre,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Pl(o.api.config.urls.change_language),it),m(),b("name",Pl(o.api.csrfField))("value",Pl(o.api.csrfToken)),m(),b("value",Pl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,vj,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var xj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function ure(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function mre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var wj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof Jo)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(er))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,ure,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,mre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var Dj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function fre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Sj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,fre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var _re=["backgroundThumbnail"],Ej=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(_re,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Mj=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,Cj,xj,wj,Dj,Sj,Ej],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Tj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ze,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var kj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,bre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Wt,$e,Yi,md,Ze,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Wt,Sr,$e,Yi,Ze,ze,st,Yt],encapsulation:2})}}return t})();var Rj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Wt,$e,Yi,Ze,yi,ze,st,kr,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Pj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Wt,$e,Yi,md,Ze,ze,st,Yt],encapsulation:2})}}return t})();function yre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,yre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function Cre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Fj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,Cre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function xre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Lj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,xre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` -`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Wt,$e,Ze,Fe,yi,xt,Dt,wt,ze,kr,Yt,Ee],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}"]})}}return t})();var Vj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Lj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Bj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){DF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ze,nl],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function wre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function Dre(t,i){if(t&1&&(c(0,"div"),A(1,wre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function Sre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var jj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,Dre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,Sre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Gl("%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=Gl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Gl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Wt,$e,Ze,ze,st,kr,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Ere(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var Uj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Ere,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,pj,hj,mj,aT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Hj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Mj]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Tj},hS(fS())],imports:[sh,rB,oj,yj]})}}return t})();TD(Ub,[qo,Ij,Aj,Rj,Oj,Pj,Nj,Fj,Vj,Bj,jj,zj,Uj,kj],[]);$b.production&&void 0;aS().bootstrapModule(Hj,{applicationProviders:[IO()]}).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,l2,jb,vj,vs,t3,B0,gj,fF,yd,r3,V0,W3,w2,a3,DV,PV,k2,FV,f2,hj,oj,D3,g3,C2,LV,XV,$V]})}}return t})();function Koe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Zoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function nre(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ire(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function ore(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,nre,3,1,"a",22),A(4,ire,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function rre(t,i){t&1&&A(0,ore,7,3,"div",20),t&2&&R(i.title?0:-1)}function are(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Koe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Zoe,2,0,"uds-translate")(18,Xoe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,Joe,2,0,"uds-translate")(30,ere,2,0,"uds-translate"),d(),A(31,tre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,rre,1,1),$t(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,are,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Nl(o.api.config.urls.change_language),it),m(),b("name",Nl(o.api.csrfField))("value",Nl(o.api.csrfToken)),m(),b("value",Nl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,_j,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function cre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function dre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof er)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(tr))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,cre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,dre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function pre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,pre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var fre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(fre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Yi,md,Ze,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function _re(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,_re,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Ht,$e,Yi,md,Ze,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Ht,Er,$e,Yi,Ze,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Ht,$e,Yi,Ze,yi,ze,st,Ar,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Yi,md,Ze,ze,st,Yt],encapsulation:2})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,vre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,yre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` +`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Ht,$e,Ze,Fe,yi,xt,Dt,wt,ze,Ar,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){wF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ze,il],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function Cre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function xre(t,i){if(t&1&&(c(0,"div"),A(1,Cre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function wre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,xre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,wre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=ql("%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=ql("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ql("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Ht,$e,Ze,ze,st,Ar,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Dre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Dre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,rT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Mj},hS(fS())],imports:[sh,oB,ij,bj]})}}return t})();TD(Ub,[Yo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);$b.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[TO()]}).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index 51b3bc70c..933d45d8e 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -100,12 +100,6 @@ gettext("In Maintenance"); gettext("Active"); gettext("Error"); gettext("Please, select a valid server"); -gettext("Maintenance"); -gettext("Exit maintenance mode"); -gettext("Enter maintenance mode"); -gettext("Exit maintenance mode?"); -gettext("Enter maintenance mode?"); -gettext("Maintenance mode for"); gettext("Error"); gettext("This tunnel already has all the tunnel servers available"); gettext("Remove member from tunnel"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 779b1f3b8..306412576 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + From cc38e8bbda6ecef92bf82cd174561b5419baab25 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Wed, 22 Jul 2026 16:03:15 +0200 Subject: [PATCH 07/14] fix(rest): use sumarize arg in _build_items Extracting the query into _build_items left a kwargs reference behind, breaking service pools listing with NameError: name 'kwargs' is not defined. --- src/uds/REST/methods/services_pools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uds/REST/methods/services_pools.py b/src/uds/REST/methods/services_pools.py index cc6d58999..f210c7db8 100644 --- a/src/uds/REST/methods/services_pools.py +++ b/src/uds/REST/methods/services_pools.py @@ -307,7 +307,7 @@ def _build_items(self, sumarize: bool) -> collections.abc.Generator[ServicePoolI # Optimized query, due that there is a lot of info needed for theee d = sql_now() - datetime.timedelta(seconds=GlobalConfig.RESTRAINT_TIME.as_int()) return super().get_items( - sumarize=kwargs.get("sumarize", True), + sumarize=sumarize, query=( ServicePool.objects.prefetch_related( "service", From ca96486816a369524bfeed5a9d132042c8f84ee1 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Wed, 22 Jul 2026 16:38:09 +0200 Subject: [PATCH 08/14] perf(rest): drop the service pools overview cache, invalidate the rest on write The pool overview cache served stale data after an edit: it had a 60s TTL and nothing cleared it on write, so a user saving a pool kept seeing the old listing. Service pools go back to querying directly. The remaining overviews (users, groups) are cleared on User/Group writes. UserService is left out on purpose: its churn would keep the cache empty. --- src/uds/REST/methods/_overview_cache.py | 15 +++++++++++++++ src/uds/REST/methods/services_pools.py | 17 ++--------------- .../services_pools/test_services_pools.py | 12 ++++++++++++ 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/uds/REST/methods/_overview_cache.py b/src/uds/REST/methods/_overview_cache.py index 3ffbea962..bce5da45c 100644 --- a/src/uds/REST/methods/_overview_cache.py +++ b/src/uds/REST/methods/_overview_cache.py @@ -38,8 +38,11 @@ import collections.abc import typing +from django.db import models as django_models + from uds.core import consts from uds.core.util.cache import Cache +from uds.models import Group, User # Authenticator/pool overviews are hammered by the dashboard drill-down yet change # seldom, so we memoize the assembled list for a short while. flush=1 bypasses it. @@ -65,3 +68,15 @@ def cached_overview( data = builder() _overview_cache.put(cache_key, data, consts.cache.SHORT_CACHE_TIMEOUT) return data + + +def invalidate_overviews(*args: typing.Any, **kwargs: typing.Any) -> None: + _overview_cache.clear() + + +# An edit must be visible on the next listing, so drop every overview on write. +# Deliberately not hooked to UserService: its churn would keep the cache empty, +# so the counts derived from it stay stale until the timeout. +for _model in (User, Group): + django_models.signals.post_save.connect(invalidate_overviews, sender=_model) + django_models.signals.post_delete.connect(invalidate_overviews, sender=_model) diff --git a/src/uds/REST/methods/services_pools.py b/src/uds/REST/methods/services_pools.py index f210c7db8..276b0cc81 100644 --- a/src/uds/REST/methods/services_pools.py +++ b/src/uds/REST/methods/services_pools.py @@ -51,7 +51,6 @@ from uds.models import Account, Image, OSManager, Service, ServicePool, ServicePoolGroup, User from uds.REST.model import ModelHandler -from ._overview_cache import cached_overview from .op_calendars import AccessCalendars, ActionsCalendars from .services import Services, ServiceInfo from .user_services import AssignedUserService, CachedService, Changelog, Groups, Publications, Transports @@ -280,7 +279,7 @@ def apply_sort(self, qs: "QuerySet[typing.Any]") -> "list[typing.Any] | QuerySet usage_ratio=ExpressionWrapper( F("usage_count") / F("max_srvs_safe"), output_field=FloatField(), - ) + ), ) _, is_descending = field_info order_by_field = "-usage_ratio" if is_descending else "usage_ratio" @@ -292,22 +291,10 @@ def apply_sort(self, qs: "QuerySet[typing.Any]") -> "list[typing.Any] | QuerySet def get_items( self, *args: typing.Any, **kwargs: typing.Any ) -> collections.abc.Generator[ServicePoolItem, None, None]: - sumarize = kwargs.get('sumarize', True) - # Heavy annotated query hammered by the dashboard (restrained pools) yet - # changes seldom: memoize briefly. Key on sumarize (overview vs full list) - # and the odata filter, since both change the result. flush=1 bypasses it. - items = cached_overview( - self, - f'service_pools_overview:{sumarize}:{self._odata}', - lambda: list(self._build_items(sumarize)), - ) - return (item for item in items) - - def _build_items(self, sumarize: bool) -> collections.abc.Generator[ServicePoolItem, None, None]: # Optimized query, due that there is a lot of info needed for theee d = sql_now() - datetime.timedelta(seconds=GlobalConfig.RESTRAINT_TIME.as_int()) return super().get_items( - sumarize=sumarize, + sumarize=kwargs.get("sumarize", True), query=( ServicePool.objects.prefetch_related( "service", diff --git a/tests/REST/methods/services_pools/test_services_pools.py b/tests/REST/methods/services_pools/test_services_pools.py index 2c3cb458b..aebf75538 100644 --- a/tests/REST/methods/services_pools/test_services_pools.py +++ b/tests/REST/methods/services_pools/test_services_pools.py @@ -117,6 +117,18 @@ def test_service_pools(self) -> None: db_pool = models.ServicePool.objects.get(uuid=service_pool["id"]) self.assertTrue(rest.assertions.assert_servicepool_is(db_pool, service_pool)) + def test_overview_reflects_edit_immediately(self) -> None: + url = "servicespools/overview" + + pool = models.ServicePool.objects.all()[0] + self.assertEqual(self.client.rest_get(url).status_code, 200) + + pool.comments = "edited after a first listing" + pool.save() + + edited = next(p for p in self.client.rest_get(url).json() if p["id"] == pool.uuid) + self.assertEqual(edited["comments"], pool.comments) + # ------------------------------------------------------------------ # CRUD smoke extension (Phase 1 — Safety net) # ------------------------------------------------------------------ From 81bbdf31490f9e9cf89f2eca54b855a40f14ea10 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Wed, 22 Jul 2026 16:50:18 +0200 Subject: [PATCH 09/14] revert: restore files the master merge had rolled back The merge into this branch resolved several files in favour of the stale branch side, undoing master's ruff reformat (a230d8bf1) and regenerating doc/api from a tree that predated the POST /collection endpoints and the camelCase aliases. tests/fixtures/mfas.py also lost its @typing.override decorators that way. None of it belongs to the dashboard work, so those files go back to master. user_services.py only gained an unused cached_overview import, dropped too. --- doc/api/rest.json | 15757 +++++++++++----- doc/api/rest.yaml | 4977 ++++- src/uds/REST/methods/op_calendars.py | 10 +- src/uds/REST/methods/services.py | 6 +- src/uds/REST/methods/tunnels_management.py | 7 +- src/uds/REST/methods/user_services.py | 6 +- src/uds/core/types/rest/__init__.py | 3 +- src/uds/core/types/rest/api.py | 6 +- tests/REST/methods/users_groups/test_users.py | 4 +- tests/fixtures/images.py | 6 +- tests/fixtures/mfas.py | 4 + tests/utils/__init__.py | 14 +- 12 files changed, 15759 insertions(+), 5041 deletions(-) diff --git a/doc/api/rest.json b/doc/api/rest.json index e4f7ff940..215761334 100644 --- a/doc/api/rest.json +++ b/doc/api/rest.json @@ -100,9 +100,76 @@ } ] }, + "post": { + "summary": "Create a new Account item", + "description": "Create a new Account item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountItem" + } + } + }, + "description": "New AccountItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved AccountItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountItem" + } + } + } + }, + "404": { + "description": "AccountItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Accounts" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Account item", - "description": "Creates a new, nonexisting Account item", + "description": "Creates a new Account item. Deprecated: use POST //accounts instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -165,6 +232,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Account items with OData in body", + "description": "Query Account items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all AccountItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/AccountItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Accounts" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/accounts/{uuid}": { @@ -636,9 +781,9 @@ } }, "/accounts/{uuid}/clear": { - "get": { - "summary": "Custom method clear for Account", - "description": "Execute custom method clear for Account", + "post": { + "summary": "Remove all usage records associated with an account, permanently deleting them (Account)", + "description": "Remove all usage records associated with an account, permanently deleting them", "parameters": [ { "name": "uuid", @@ -704,9 +849,9 @@ } }, "/accounts/{uuid}/timemark": { - "get": { - "summary": "Custom method timemark for Account", - "description": "Execute custom method timemark for Account", + "post": { + "summary": "Set a timestamp marker on an account to indicate the last processed usage record, enabling incremental data processing (Account)", + "description": "Set a timestamp marker on an account to indicate the last processed usage record, enabling incremental data processing", "parameters": [ { "name": "uuid", @@ -920,9 +1065,87 @@ } ] }, + "post": { + "summary": "Create a new Usage item", + "description": "Create a new Usage item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountItem" + } + } + }, + "description": "New AccountItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved AccountItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountItem" + } + } + } + }, + "404": { + "description": "AccountItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Accounts" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { - "summary": "Creates a new Usage items", - "description": "Update an existing Usage item", + "summary": "Creates a new Usage item", + "description": "Creates a new Usage item. Deprecated: use POST //accounts/{uuid}/usage instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -935,6 +1158,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccountItem" + } + } + }, + "description": "New AccountItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved AccountItem item", @@ -985,6 +1219,95 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Usage items with OData in body", + "description": "Query Usage items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all AccountItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/AccountItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Accounts" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/accounts/{uuid}/usage/{uuid}": { @@ -1601,9 +1924,76 @@ } ] }, + "post": { + "summary": "Create a new Server item", + "description": "Create a new Server item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorTokenItem" + } + } + }, + "description": "New ActorTokenItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ActorTokenItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorTokenItem" + } + } + } + }, + "404": { + "description": "ActorTokenItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Actortokens" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Server item", - "description": "Creates a new, nonexisting Server item", + "description": "Creates a new Server item. Deprecated: use POST //actortokens instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -1666,6 +2056,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Server items with OData in body", + "description": "Query Server items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ActorTokenItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ActorTokenItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Actortokens" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/actortokens/{uuid}": { @@ -2230,9 +2698,9 @@ } ] }, - "put": { - "summary": "Creates a new Authenticator item", - "description": "Creates a new, nonexisting Authenticator item", + "post": { + "summary": "Create a new Authenticator item", + "description": "Create a new Authenticator item", "parameters": [], "requestBody": { "required": true, @@ -2295,73 +2763,23 @@ "udsApiAuth": [] } ] - } - }, - "/authenticators/{uuid}": { - "get": { - "summary": "Get Authenticator item by UUID", - "description": "Retrieve a Authenticator item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + }, + "put": { + "summary": "Creates a new Authenticator item", + "description": "Creates a new Authenticator item. Deprecated: use POST //authenticators instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorItem" + } + } }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "description": "New AuthenticatorItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved AuthenticatorItem item", @@ -2413,54 +2831,249 @@ } ] }, - "put": { - "summary": "Update Authenticator item by UUID", - "description": "Update an existing Authenticator item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "query": { + "summary": "Query Authenticator items with OData in body", + "description": "Query Authenticator items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthenticatorItem" + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "description": "Updated AuthenticatorItem items to create" + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" }, "responses": { "200": { - "description": "Successfully retrieved AuthenticatorItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticatorItem" - } - } - } - }, - "404": { - "description": "AuthenticatorItem item not found", + "description": "Successfully retrieved all AuthenticatorItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/AuthenticatorItem" }, - "type": "object" + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/authenticators/{uuid}": { + "get": { + "summary": "Get Authenticator item by UUID", + "description": "Retrieve a Authenticator item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved AuthenticatorItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorItem" + } + } + } + }, + "404": { + "description": "AuthenticatorItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Update Authenticator item by UUID", + "description": "Update an existing Authenticator item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorItem" + } + } + }, + "description": "Updated AuthenticatorItem items to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved AuthenticatorItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthenticatorItem" + } + } + } + }, + "404": { + "description": "AuthenticatorItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" } } } @@ -2767,8 +3380,8 @@ }, "/authenticators/{uuid}/search": { "get": { - "summary": "Custom method search for Authenticator", - "description": "Execute custom method search for Authenticator", + "summary": "Search users or groups in the authenticator by name or identifier (Authenticator)", + "description": "Search users or groups in the authenticator by name or identifier", "parameters": [ { "name": "uuid", @@ -2835,8 +3448,8 @@ }, "/authenticators/{uuid}/users_with_services": { "get": { - "summary": "Custom method users_with_services for Authenticator", - "description": "Execute custom method users_with_services for Authenticator", + "summary": "Retrieve all users in this authenticator that have active services assigned (Authenticator)", + "description": "Retrieve all users in this authenticator that have active services assigned", "parameters": [ { "name": "uuid", @@ -3253,9 +3866,9 @@ } ] }, - "put": { - "summary": "Creates a new Users items", - "description": "Update an existing Users item", + "post": { + "summary": "Create a new Users item", + "description": "Create a new Users item", "parameters": [ { "name": "uuid", @@ -3268,6 +3881,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserItem" + } + } + }, + "description": "New UserItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved UserItem item", @@ -3318,12 +3942,11 @@ "udsApiAuth": [] } ] - } - }, - "/authenticators/{uuid}/users/{uuid}": { - "get": { - "summary": "Get Users item by UUID", - "description": "Retrieve a Users item by UUID", + }, + "put": { + "summary": "Creates a new Users item", + "description": "Creates a new Users item. Deprecated: use POST //authenticators/{uuid}/users instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -3334,55 +3957,223 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserItem" + } + } + }, + "description": "New UserItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved UserItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserItem" + } + } + } + }, + "404": { + "description": "UserItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Users items with OData in body", + "description": "Query Users items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all UserItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/UserItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/authenticators/{uuid}/users/{uuid}": { + "get": { + "summary": "Get Users item by UUID", + "description": "Retrieve a Users item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { @@ -3898,8 +4689,8 @@ }, "/authenticators/{uuid}/users/services_pools": { "get": { - "summary": "Custom method services_pools for Users collection", - "description": "Execute custom method services_pools for Users collection", + "summary": "Retrieve all service pools in which this user has active assignments (Users collection)", + "description": "Retrieve all service pools in which this user has active assignments", "parameters": [ { "name": "uuid", @@ -3966,77 +4757,8 @@ }, "/authenticators/{uuid}/users/{uuid}/services_pools": { "get": { - "summary": "Custom method services_pools for Users item", - "description": "Execute custom method services_pools for Users item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Authenticators" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/authenticators/{uuid}/users/servicesPools": { - "get": { - "summary": "Retrieve all service pools in which this user has active assignments (Users collection)", + "summary": "Retrieve all service pools in which this user has active assignments (Users item)", "description": "Retrieve all service pools in which this user has active assignments", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -4101,9 +4823,9 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/servicesPools": { + "/authenticators/{uuid}/users/servicesPools": { "get": { - "summary": "Retrieve all service pools in which this user has active assignments (Users item)", + "summary": "Retrieve all service pools in which this user has active assignments (Users collection)", "description": "Retrieve all service pools in which this user has active assignments", "deprecated": true, "parameters": [ @@ -4170,78 +4892,11 @@ ] } }, - "/authenticators/{uuid}/users/user_services": { - "get": { - "summary": "Custom method user_services for Users collection", - "description": "Execute custom method user_services for Users collection", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Authenticators" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/authenticators/{uuid}/users/{uuid}/user_services": { + "/authenticators/{uuid}/users/{uuid}/servicesPools": { "get": { - "summary": "Custom method user_services for Users item", - "description": "Execute custom method user_services for Users item", + "summary": "Retrieve all service pools in which this user has active assignments (Users item)", + "description": "Retrieve all service pools in which this user has active assignments", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -4306,11 +4961,10 @@ ] } }, - "/authenticators/{uuid}/users/userServices": { + "/authenticators/{uuid}/users/user_services": { "get": { "summary": "List all user services currently assigned to this user (Users collection)", "description": "List all user services currently assigned to this user", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -4375,11 +5029,10 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/userServices": { + "/authenticators/{uuid}/users/{uuid}/user_services": { "get": { "summary": "List all user services currently assigned to this user (Users item)", "description": "List all user services currently assigned to this user", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -4444,10 +5097,11 @@ ] } }, - "/authenticators/{uuid}/users/clean_related": { + "/authenticators/{uuid}/users/userServices": { "get": { - "summary": "Custom method clean_related for Users collection", - "description": "Execute custom method clean_related for Users collection", + "summary": "List all user services currently assigned to this user (Users collection)", + "description": "List all user services currently assigned to this user", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -4512,10 +5166,11 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/clean_related": { + "/authenticators/{uuid}/users/{uuid}/userServices": { "get": { - "summary": "Custom method clean_related for Users item", - "description": "Execute custom method clean_related for Users item", + "summary": "List all user services currently assigned to this user (Users item)", + "description": "List all user services currently assigned to this user", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -4580,11 +5235,10 @@ ] } }, - "/authenticators/{uuid}/users/cleanRelated": { + "/authenticators/{uuid}/users/clean_related": { "post": { "summary": "Remove all related data for this user (assigned services, cached entries, pending operations) (Users collection)", "description": "Remove all related data for this user (assigned services, cached entries, pending operations)", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -4649,11 +5303,10 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/cleanRelated": { + "/authenticators/{uuid}/users/{uuid}/clean_related": { "post": { "summary": "Remove all related data for this user (assigned services, cached entries, pending operations) (Users item)", "description": "Remove all related data for this user (assigned services, cached entries, pending operations)", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -4718,146 +5371,10 @@ ] } }, - "/authenticators/{uuid}/users/add_to_group": { - "get": { - "summary": "Custom method add_to_group for Users collection", - "description": "Execute custom method add_to_group for Users collection", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Authenticators" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/authenticators/{uuid}/users/{uuid}/add_to_group": { - "get": { - "summary": "Custom method add_to_group for Users item", - "description": "Execute custom method add_to_group for Users item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Authenticators" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/authenticators/{uuid}/users/addToGroup": { + "/authenticators/{uuid}/users/cleanRelated": { "post": { - "summary": "Add this user to an existing group within the same authenticator (Users collection)", - "description": "Add this user to an existing group within the same authenticator", + "summary": "Remove all related data for this user (assigned services, cached entries, pending operations) (Users collection)", + "description": "Remove all related data for this user (assigned services, cached entries, pending operations)", "deprecated": true, "parameters": [ { @@ -4871,23 +5388,6 @@ "description": "The UUID of the item" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "group": { - "description": "UUID of the group to add the user to", - "type": "string" - } - }, - "type": "object" - } - } - }, - "description": "Parameters for addToGroup" - }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -4940,10 +5440,10 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/addToGroup": { + "/authenticators/{uuid}/users/{uuid}/cleanRelated": { "post": { - "summary": "Add this user to an existing group within the same authenticator (Users item)", - "description": "Add this user to an existing group within the same authenticator", + "summary": "Remove all related data for this user (assigned services, cached entries, pending operations) (Users item)", + "description": "Remove all related data for this user (assigned services, cached entries, pending operations)", "deprecated": true, "parameters": [ { @@ -4957,23 +5457,6 @@ "description": "The UUID of the item" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "group": { - "description": "UUID of the group to add the user to", - "type": "string" - } - }, - "type": "object" - } - } - }, - "description": "Parameters for addToGroup" - }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -5026,10 +5509,10 @@ ] } }, - "/authenticators/{uuid}/users/enable_client_logging": { - "get": { - "summary": "Custom method enable_client_logging for Users collection", - "description": "Execute custom method enable_client_logging for Users collection", + "/authenticators/{uuid}/users/add_to_group": { + "post": { + "summary": "Add this user to an existing group within the same authenticator (Users collection)", + "description": "Add this user to an existing group within the same authenticator", "parameters": [ { "name": "uuid", @@ -5042,6 +5525,23 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "group": { + "description": "UUID of the group to add the user to", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for add_to_group" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -5094,10 +5594,10 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/enable_client_logging": { - "get": { - "summary": "Custom method enable_client_logging for Users item", - "description": "Execute custom method enable_client_logging for Users item", + "/authenticators/{uuid}/users/{uuid}/add_to_group": { + "post": { + "summary": "Add this user to an existing group within the same authenticator (Users item)", + "description": "Add this user to an existing group within the same authenticator", "parameters": [ { "name": "uuid", @@ -5110,6 +5610,23 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "group": { + "description": "UUID of the group to add the user to", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for add_to_group" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -5162,10 +5679,10 @@ ] } }, - "/authenticators/{uuid}/users/enableClientLogging": { + "/authenticators/{uuid}/users/addToGroup": { "post": { - "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users collection)", - "description": "Enable or disable client-side logging for this user (toggles on each invocation)", + "summary": "Add this user to an existing group within the same authenticator (Users collection)", + "description": "Add this user to an existing group within the same authenticator", "deprecated": true, "parameters": [ { @@ -5179,6 +5696,23 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "group": { + "description": "UUID of the group to add the user to", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for addToGroup" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -5231,10 +5765,10 @@ ] } }, - "/authenticators/{uuid}/users/{uuid}/enableClientLogging": { + "/authenticators/{uuid}/users/{uuid}/addToGroup": { "post": { - "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users item)", - "description": "Enable or disable client-side logging for this user (toggles on each invocation)", + "summary": "Add this user to an existing group within the same authenticator (Users item)", + "description": "Add this user to an existing group within the same authenticator", "deprecated": true, "parameters": [ { @@ -5248,6 +5782,23 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "group": { + "description": "UUID of the group to add the user to", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for addToGroup" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -5300,60 +5851,11 @@ ] } }, - "/authenticators/{uuid}/groups": { - "get": { - "summary": "Get all Groups items", - "description": "Retrieve a list of all Groups items", + "/authenticators/{uuid}/users/enable_client_logging": { + "post": { + "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users collection)", + "description": "Enable or disable client-side logging for this user (toggles on each invocation)", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -5367,14 +5869,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all GroupItem items", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/GroupItem" + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -5403,10 +5917,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Groups items", - "description": "Update an existing Groups item", + } + }, + "/authenticators/{uuid}/users/{uuid}/enable_client_logging": { + "post": { + "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users item)", + "description": "Enable or disable client-side logging for this user (toggles on each invocation)", "parameters": [ { "name": "uuid", @@ -5421,17 +5937,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "type": "object" } } } }, "404": { - "description": "GroupItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -5471,10 +5987,11 @@ ] } }, - "/authenticators/{uuid}/groups/{uuid}": { - "get": { - "summary": "Get Groups item by UUID", - "description": "Retrieve a Groups item by UUID", + "/authenticators/{uuid}/users/enableClientLogging": { + "post": { + "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users collection)", + "description": "Enable or disable client-side logging for this user (toggles on each invocation)", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -5485,70 +6002,21 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "type": "object" } } } }, "404": { - "description": "GroupItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -5586,10 +6054,13 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Update Groups item by UUID", - "description": "Update an existing Groups item by UUID", + } + }, + "/authenticators/{uuid}/users/{uuid}/enableClientLogging": { + "post": { + "summary": "Enable or disable client-side logging for this user (toggles on each invocation) (Users item)", + "description": "Enable or disable client-side logging for this user (toggles on each invocation)", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -5600,70 +6071,21 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "type": "object" } } } }, "404": { - "description": "GroupItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -5701,21 +6123,13 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Groups item by UUID", - "description": "Delete a Groups item by UUID", + } + }, + "/authenticators/{uuid}/groups": { + "get": { + "summary": "Get all Groups items", + "description": "Retrieve a list of all Groups items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -5764,8 +6178,161 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all GroupItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Groups item", + "description": "Create a new Groups item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved GroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new Groups item", + "description": "Creates a new Groups item. Deprecated: use POST //authenticators/{uuid}/groups instead.", + "deprecated": true, + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved GroupItem item", @@ -5816,13 +6383,112 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Groups items with OData in body", + "description": "Query Groups items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all GroupItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, - "/authenticators/{uuid}/groups/overview": { + "/authenticators/{uuid}/groups/{uuid}": { "get": { - "summary": "Get overview of Groups items", - "description": "Retrieve an overview of Groups items", + "summary": "Get Groups item by UUID", + "description": "Retrieve a Groups item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -5871,28 +6537,30 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved all GroupItem items", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -5921,12 +6589,10 @@ "udsApiAuth": [] } ] - } - }, - "/authenticators/{uuid}/groups/tableinfo": { - "get": { - "summary": "Get table info of Groups items", - "description": "Retrieve table info of Groups items", + }, + "put": { + "summary": "Update Groups item by UUID", + "description": "Update an existing Groups item by UUID", "parameters": [ { "name": "uuid", @@ -5937,21 +6603,70 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -5989,12 +6704,10 @@ "udsApiAuth": [] } ] - } - }, - "/authenticators/{uuid}/groups/services_pools": { - "get": { - "summary": "Custom method services_pools for Groups collection", - "description": "Execute custom method services_pools for Groups collection", + }, + "delete": { + "summary": "Delete Groups item by UUID", + "description": "Delete a Groups item by UUID", "parameters": [ { "name": "uuid", @@ -6005,21 +6718,70 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "object item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -6059,11 +6821,60 @@ ] } }, - "/authenticators/{uuid}/groups/{uuid}/services_pools": { + "/authenticators/{uuid}/groups/overview": { "get": { - "summary": "Custom method services_pools for Groups item", - "description": "Execute custom method services_pools for Groups item", + "summary": "Get overview of Groups items", + "description": "Retrieve an overview of Groups items", "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, { "name": "uuid", "in": "path", @@ -6077,26 +6888,14 @@ ], "responses": { "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/GroupItem" }, - "type": "object" + "type": "array" } } } @@ -6127,11 +6926,10 @@ ] } }, - "/authenticators/{uuid}/groups/servicesPools": { + "/authenticators/{uuid}/groups/tableinfo": { "get": { - "summary": "Retrieve all service pools that this group has access to (Groups collection)", - "description": "Retrieve all service pools that this group has access to", - "deprecated": true, + "summary": "Get table info of Groups items", + "description": "Retrieve table info of Groups items", "parameters": [ { "name": "uuid", @@ -6146,17 +6944,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "object item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -6196,11 +6994,10 @@ ] } }, - "/authenticators/{uuid}/groups/{uuid}/servicesPools": { + "/authenticators/{uuid}/groups/services_pools": { "get": { - "summary": "Retrieve all service pools that this group has access to (Groups item)", + "summary": "Retrieve all service pools that this group has access to (Groups collection)", "description": "Retrieve all service pools that this group has access to", - "deprecated": true, "parameters": [ { "name": "uuid", @@ -6265,10 +7062,10 @@ ] } }, - "/authenticators/{uuid}/groups/users": { + "/authenticators/{uuid}/groups/{uuid}/services_pools": { "get": { - "summary": "Custom method users for Groups collection", - "description": "Execute custom method users for Groups collection", + "summary": "Retrieve all service pools that this group has access to (Groups item)", + "description": "Retrieve all service pools that this group has access to", "parameters": [ { "name": "uuid", @@ -6333,10 +7130,11 @@ ] } }, - "/authenticators/{uuid}/groups/{uuid}/users": { + "/authenticators/{uuid}/groups/servicesPools": { "get": { - "summary": "Custom method users for Groups item", - "description": "Execute custom method users for Groups item", + "summary": "Retrieve all service pools that this group has access to (Groups collection)", + "description": "Retrieve all service pools that this group has access to", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -6401,21 +7199,226 @@ ] } }, - "/calendars": { + "/authenticators/{uuid}/groups/{uuid}/servicesPools": { "get": { - "summary": "Get all Calendar items", - "description": "Retrieve a list of all Calendar items", + "summary": "Retrieve all service pools that this group has access to (Groups item)", + "description": "Retrieve all service pools that this group has access to", + "deprecated": true, "parameters": [ { - "name": "$filter", - "in": "query", - "required": false, + "name": "uuid", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/authenticators/{uuid}/groups/users": { + "get": { + "summary": "List all users belonging to this group (Groups collection)", + "description": "List all users belonging to this group", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/authenticators/{uuid}/groups/{uuid}/users": { + "get": { + "summary": "List all users belonging to this group (Groups item)", + "description": "List all users belonging to this group", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Authenticators" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/calendars": { + "get": { + "summary": "Get all Calendar items", + "description": "Retrieve a list of all Calendar items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { "name": "$select", "in": "query", "required": false, @@ -6495,9 +7498,76 @@ } ] }, + "post": { + "summary": "Create a new Calendar item", + "description": "Create a new Calendar item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CalendarItem" + } + } + }, + "description": "New CalendarItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved CalendarItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CalendarItem" + } + } + } + }, + "404": { + "description": "CalendarItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Calendars" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Calendar item", - "description": "Creates a new, nonexisting Calendar item", + "description": "Creates a new Calendar item. Deprecated: use POST //calendars instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -6560,6 +7630,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Calendar items with OData in body", + "description": "Query Calendar items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all CalendarItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/CalendarItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Calendars" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/calendars/{uuid}": { @@ -7179,9 +8327,9 @@ } ] }, - "put": { - "summary": "Creates a new Rules items", - "description": "Update an existing Rules item", + "post": { + "summary": "Create a new Rules item", + "description": "Create a new Rules item", "parameters": [ { "name": "uuid", @@ -7194,6 +8342,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CalendarRuleItem" + } + } + }, + "description": "New CalendarRuleItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved CalendarRuleItem item", @@ -7244,12 +8403,11 @@ "udsApiAuth": [] } ] - } - }, - "/calendars/{uuid}/rules/{uuid}": { - "get": { - "summary": "Get Rules item by UUID", - "description": "Retrieve a Rules item by UUID", + }, + "put": { + "summary": "Creates a new Rules item", + "description": "Creates a new Rules item. Deprecated: use POST //calendars/{uuid}/rules instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -7260,57 +8418,19 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CalendarRuleItem" + } + } + }, + "description": "New CalendarRuleItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved CalendarRuleItem item", @@ -7362,9 +8482,100 @@ } ] }, - "put": { - "summary": "Update Rules item by UUID", - "description": "Update an existing Rules item by UUID", + "query": { + "summary": "Query Rules items with OData in body", + "description": "Query Rules items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all CalendarRuleItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/CalendarRuleItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Calendars" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/calendars/{uuid}/rules/{uuid}": { + "get": { + "summary": "Get Rules item by UUID", + "description": "Retrieve a Rules item by UUID", "parameters": [ { "name": "uuid", @@ -7477,9 +8688,9 @@ } ] }, - "delete": { - "summary": "Delete Rules item by UUID", - "description": "Delete a Rules item by UUID", + "put": { + "summary": "Update Rules item by UUID", + "description": "Update an existing Rules item by UUID", "parameters": [ { "name": "uuid", @@ -7591,13 +8802,21 @@ "udsApiAuth": [] } ] - } - }, - "/calendars/{uuid}/rules/overview": { - "get": { - "summary": "Get overview of Rules items", - "description": "Retrieve an overview of Rules items", + }, + "delete": { + "summary": "Delete Rules item by UUID", + "description": "Delete a Rules item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -7646,87 +8865,21 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved all CalendarRuleItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/CalendarRuleItem" - }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Calendars" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/calendars/{uuid}/rules/tableinfo": { - "get": { - "summary": "Get table info of Rules items", - "description": "Retrieve table info of Rules items", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved CalendarRuleItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/CalendarRuleItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "CalendarRuleItem item not found", "content": { "application/json": { "schema": { @@ -7766,10 +8919,183 @@ ] } }, - "/gallery/images": { + "/calendars/{uuid}/rules/overview": { "get": { - "summary": "Get all Image items", - "description": "Retrieve a list of all Image items", + "summary": "Get overview of Rules items", + "description": "Retrieve an overview of Rules items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all CalendarRuleItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/CalendarRuleItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Calendars" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/calendars/{uuid}/rules/tableinfo": { + "get": { + "summary": "Get table info of Rules items", + "description": "Retrieve table info of Rules items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Calendars" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/gallery/images": { + "get": { + "summary": "Get all Image items", + "description": "Retrieve a list of all Image items", "parameters": [ { "name": "$filter", @@ -7860,9 +9186,76 @@ } ] }, + "post": { + "summary": "Create a new Image item", + "description": "Create a new Image item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageItem" + } + } + }, + "description": "New ImageItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ImageItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageItem" + } + } + } + }, + "404": { + "description": "ImageItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Gallery" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Image item", - "description": "Creates a new, nonexisting Image item", + "description": "Creates a new Image item. Deprecated: use POST //gallery/images instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -7925,6 +9318,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Image items with OData in body", + "description": "Query Image items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ImageItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ImageItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Gallery" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/gallery/images/{uuid}": { @@ -8489,9 +9960,76 @@ } ] }, + "post": { + "summary": "Create a new ServicePoolGroup item", + "description": "Create a new ServicePoolGroup item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicePoolGroupItem" + } + } + }, + "description": "New ServicePoolGroupItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ServicePoolGroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicePoolGroupItem" + } + } + } + }, + "404": { + "description": "ServicePoolGroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Gallery" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new ServicePoolGroup item", - "description": "Creates a new, nonexisting ServicePoolGroup item", + "description": "Creates a new ServicePoolGroup item. Deprecated: use POST //gallery/servicespoolgroups instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -8554,6 +10092,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query ServicePoolGroup items with OData in body", + "description": "Query ServicePoolGroup items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ServicePoolGroupItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ServicePoolGroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Gallery" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/gallery/servicespoolgroups/{uuid}": { @@ -9163,9 +10779,9 @@ } ] }, - "put": { - "summary": "Creates a new MetaPool item", - "description": "Creates a new, nonexisting MetaPool item", + "post": { + "summary": "Create a new MetaPool item", + "description": "Create a new MetaPool item", "parameters": [], "requestBody": { "required": true, @@ -9228,73 +10844,23 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}": { - "get": { - "summary": "Get MetaPool item by UUID", - "description": "Retrieve a MetaPool item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + }, + "put": { + "summary": "Creates a new MetaPool item", + "description": "Creates a new MetaPool item. Deprecated: use POST //metapools instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaPoolItem" + } + } }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "description": "New MetaPoolItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved MetaPoolItem item", @@ -9346,54 +10912,249 @@ } ] }, - "put": { - "summary": "Update MetaPool item by UUID", - "description": "Update an existing MetaPool item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "query": { + "summary": "Query MetaPool items with OData in body", + "description": "Query MetaPool items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MetaPoolItem" + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "description": "Updated MetaPoolItem items to create" + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" }, "responses": { "200": { - "description": "Successfully retrieved MetaPoolItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MetaPoolItem" - } - } - } - }, - "404": { - "description": "MetaPoolItem item not found", + "description": "Successfully retrieved all MetaPoolItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/MetaPoolItem" }, - "type": "object" + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Metapools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/metapools/{uuid}": { + "get": { + "summary": "Get MetaPool item by UUID", + "description": "Retrieve a MetaPool item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved MetaPoolItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaPoolItem" + } + } + } + }, + "404": { + "description": "MetaPoolItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Metapools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Update MetaPool item by UUID", + "description": "Update an existing MetaPool item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaPoolItem" + } + } + }, + "description": "Updated MetaPoolItem items to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved MetaPoolItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaPoolItem" + } + } + } + }, + "404": { + "description": "MetaPoolItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" } } } @@ -9699,9 +11460,9 @@ } }, "/metapools/{uuid}/set_fallback_access": { - "get": { - "summary": "Custom method set_fallback_access for MetaPool", - "description": "Execute custom method set_fallback_access for MetaPool", + "post": { + "summary": "Update the fallback access policy for a meta pool member (MetaPool)", + "description": "Update the fallback access policy for a meta pool member", "parameters": [ { "name": "uuid", @@ -9714,6 +11475,23 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "fallbackAccess": { + "description": "Fallback access policy: ALLOW (default) or DENY", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for set_fallback_access" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -9853,78 +11631,78 @@ } }, "/metapools/{uuid}/get_fallback_access": { - "get": { - "summary": "Custom method get_fallback_access for MetaPool", - "description": "Execute custom method get_fallback_access for MetaPool", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Metapools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/metapools/{uuid}/getFallbackAccess": { "get": { "summary": "Retrieve the current fallback access policy for a meta pool member (MetaPool)", "description": "Retrieve the current fallback access policy for a meta pool member", - "deprecated": true, + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Metapools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/metapools/{uuid}/getFallbackAccess": { + "get": { + "summary": "Retrieve the current fallback access policy for a meta pool member (MetaPool)", + "description": "Retrieve the current fallback access policy for a meta pool member", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -10138,9 +11916,9 @@ } ] }, - "put": { - "summary": "Creates a new Pools items", - "description": "Update an existing Pools item", + "post": { + "summary": "Create a new Pools item", + "description": "Create a new Pools item", "parameters": [ { "name": "uuid", @@ -10153,6 +11931,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaItem" + } + } + }, + "description": "New MetaItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved MetaItem item", @@ -10203,12 +11992,11 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/pools/{uuid}": { - "get": { - "summary": "Get Pools item by UUID", - "description": "Retrieve a Pools item by UUID", + }, + "put": { + "summary": "Creates a new Pools item", + "description": "Creates a new Pools item. Deprecated: use POST //metapools/{uuid}/pools instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -10219,57 +12007,19 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MetaItem" + } + } + }, + "description": "New MetaItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved MetaItem item", @@ -10321,9 +12071,9 @@ } ] }, - "put": { - "summary": "Update Pools item by UUID", - "description": "Update an existing Pools item by UUID", + "query": { + "summary": "Query Pools items with OData in body", + "description": "Query Pools items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -10334,79 +12084,53 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], - "responses": { - "200": { - "description": "Successfully retrieved MetaItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MetaItem" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "MetaItem item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all MetaItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/MetaItem" }, - "type": "object" + "type": "array" } } } @@ -10435,10 +12159,12 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Pools item by UUID", - "description": "Delete a Pools item by UUID", + } + }, + "/metapools/{uuid}/pools/{uuid}": { + "get": { + "summary": "Get Pools item by UUID", + "description": "Retrieve a Pools item by UUID", "parameters": [ { "name": "uuid", @@ -10550,13 +12276,21 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/pools/overview": { - "get": { - "summary": "Get overview of Pools items", - "description": "Retrieve an overview of Pools items", + }, + "put": { + "summary": "Update Pools item by UUID", + "description": "Update an existing Pools item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -10605,28 +12339,30 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved all MetaItem items", + "description": "Successfully retrieved MetaItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/MetaItem" + } + } + } + }, + "404": { + "description": "MetaItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -10655,12 +12391,10 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/pools/tableinfo": { - "get": { - "summary": "Get table info of Pools items", - "description": "Retrieve table info of Pools items", + }, + "delete": { + "summary": "Delete Pools item by UUID", + "description": "Delete a Pools item by UUID", "parameters": [ { "name": "uuid", @@ -10671,21 +12405,70 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved MetaItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/MetaItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "MetaItem item not found", "content": { "application/json": { "schema": { @@ -10725,10 +12508,10 @@ ] } }, - "/metapools/{uuid}/services": { + "/metapools/{uuid}/pools/overview": { "get": { - "summary": "Get all Services items", - "description": "Retrieve a list of all Services items", + "summary": "Get overview of Pools items", + "description": "Retrieve an overview of Pools items", "parameters": [ { "name": "$filter", @@ -10792,12 +12575,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all UserServiceItem items", + "description": "Successfully retrieved all MetaItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/UserServiceItem" + "$ref": "#/components/schemas/MetaItem" }, "type": "array" } @@ -10828,10 +12611,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Services items", - "description": "Update an existing Services item", + } + }, + "/metapools/{uuid}/pools/tableinfo": { + "get": { + "summary": "Get table info of Pools items", + "description": "Retrieve table info of Pools items", "parameters": [ { "name": "uuid", @@ -10846,17 +12631,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved UserServiceItem item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserServiceItem" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "UserServiceItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -10896,21 +12681,11 @@ ] } }, - "/metapools/{uuid}/services/{uuid}": { + "/metapools/{uuid}/services": { "get": { - "summary": "Get Services item by UUID", - "description": "Retrieve a Services item by UUID", + "summary": "Get all Services items", + "description": "Retrieve a list of all Services items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -10959,30 +12734,28 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved UserServiceItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserServiceItem" - } - } - } - }, - "404": { - "description": "UserServiceItem item not found", + "description": "Successfully retrieved all UserServiceItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/UserServiceItem" }, - "type": "object" + "type": "array" } } } @@ -11012,9 +12785,9 @@ } ] }, - "put": { - "summary": "Update Services item by UUID", - "description": "Update an existing Services item by UUID", + "post": { + "summary": "Create a new Services item", + "description": "Create a new Services item", "parameters": [ { "name": "uuid", @@ -11025,57 +12798,19 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved UserServiceItem item", @@ -11127,9 +12862,10 @@ } ] }, - "delete": { - "summary": "Delete Services item by UUID", - "description": "Delete a Services item by UUID", + "put": { + "summary": "Creates a new Services item", + "description": "Creates a new Services item. Deprecated: use POST //metapools/{uuid}/services instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -11140,57 +12876,19 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved UserServiceItem item", @@ -11241,62 +12939,11 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/services/overview": { - "get": { - "summary": "Get overview of Services items", - "description": "Retrieve an overview of Services items", + }, + "query": { + "summary": "Query Services items with OData in body", + "description": "Query Services items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -11308,84 +12955,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved all UserServiceItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/UserServiceItem" + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" }, - "type": "object" - } + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } - } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" }, - "tags": [ - "Metapools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/metapools/{uuid}/services/tableinfo": { - "get": { - "summary": "Get table info of Services items", - "description": "Retrieve table info of Services items", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TableInfo" - } - } - } - }, - "404": { - "description": "TableInfo item not found", + "description": "Successfully retrieved all UserServiceItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/UserServiceItem" }, - "type": "object" + "type": "array" } } } @@ -11416,10 +13030,10 @@ ] } }, - "/metapools/{uuid}/services/{uuid}/log": { + "/metapools/{uuid}/services/{uuid}": { "get": { - "summary": "Get logs of Services item by UUID", - "description": "Retrieve logs of a Services item by UUID", + "summary": "Get Services item by UUID", + "description": "Retrieve a Services item by UUID", "parameters": [ { "name": "uuid", @@ -11430,53 +13044,7 @@ "format": "uuid" }, "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved all LogEntry items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" - }, - "type": "array" - } - } - } }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Metapools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/metapools/{uuid}/groups": { - "get": { - "summary": "Get all Groups items", - "description": "Retrieve a list of all Groups items", - "parameters": [ { "name": "$filter", "in": "query", @@ -11525,85 +13093,21 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved all GroupItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/GroupItem" - }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Metapools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - }, - "put": { - "summary": "Creates a new Groups items", - "description": "Update an existing Groups item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved UserServiceItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/UserServiceItem" } } } }, "404": { - "description": "GroupItem item not found", + "description": "UserServiceItem item not found", "content": { "application/json": { "schema": { @@ -11641,12 +13145,10 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/groups/{uuid}": { - "get": { - "summary": "Get Groups item by UUID", - "description": "Retrieve a Groups item by UUID", + }, + "put": { + "summary": "Update Services item by UUID", + "description": "Update an existing Services item by UUID", "parameters": [ { "name": "uuid", @@ -11710,17 +13212,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved UserServiceItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/UserServiceItem" } } } }, "404": { - "description": "GroupItem item not found", + "description": "UserServiceItem item not found", "content": { "application/json": { "schema": { @@ -11759,9 +13261,9 @@ } ] }, - "put": { - "summary": "Update Groups item by UUID", - "description": "Update an existing Groups item by UUID", + "delete": { + "summary": "Delete Services item by UUID", + "description": "Delete a Services item by UUID", "parameters": [ { "name": "uuid", @@ -11825,17 +13327,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved UserServiceItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/UserServiceItem" } } } }, "404": { - "description": "GroupItem item not found", + "description": "UserServiceItem item not found", "content": { "application/json": { "schema": { @@ -11873,21 +13375,13 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Groups item by UUID", - "description": "Delete a Groups item by UUID", + } + }, + "/metapools/{uuid}/services/overview": { + "get": { + "summary": "Get overview of Services items", + "description": "Retrieve an overview of Services items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -11936,30 +13430,28 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupItem" - } - } - } - }, - "404": { - "description": "GroupItem item not found", + "description": "Successfully retrieved all UserServiceItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/UserServiceItem" }, - "type": "object" + "type": "array" } } } @@ -11990,60 +13482,11 @@ ] } }, - "/metapools/{uuid}/groups/overview": { + "/metapools/{uuid}/services/tableinfo": { "get": { - "summary": "Get overview of Groups items", - "description": "Retrieve an overview of Groups items", + "summary": "Get table info of Services items", + "description": "Retrieve table info of Services items", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -12057,14 +13500,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all GroupItem items", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -12095,10 +13550,10 @@ ] } }, - "/metapools/{uuid}/groups/tableinfo": { + "/metapools/{uuid}/services/{uuid}/log": { "get": { - "summary": "Get table info of Groups items", - "description": "Retrieve table info of Groups items", + "summary": "Get logs of Services item by UUID", + "description": "Retrieve logs of a Services item by UUID", "parameters": [ { "name": "uuid", @@ -12113,26 +13568,14 @@ ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TableInfo" - } - } - } - }, - "404": { - "description": "TableInfo item not found", + "description": "Successfully retrieved all LogEntry items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/LogEntry" }, - "type": "object" + "type": "array" } } } @@ -12163,10 +13606,10 @@ ] } }, - "/metapools/{uuid}/access": { + "/metapools/{uuid}/groups": { "get": { - "summary": "Get all Access items", - "description": "Retrieve a list of all Access items", + "summary": "Get all Groups items", + "description": "Retrieve a list of all Groups items", "parameters": [ { "name": "$filter", @@ -12230,12 +13673,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all AccessCalendarItem items", + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/AccessCalendarItem" + "$ref": "#/components/schemas/GroupItem" }, "type": "array" } @@ -12267,9 +13710,9 @@ } ] }, - "put": { - "summary": "Creates a new Access items", - "description": "Update an existing Access item", + "post": { + "summary": "Create a new Groups item", + "description": "Create a new Groups item", "parameters": [ { "name": "uuid", @@ -12282,19 +13725,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved AccessCalendarItem item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessCalendarItem" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "AccessCalendarItem item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -12332,12 +13786,11 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/access/{uuid}": { - "get": { - "summary": "Get Access item by UUID", - "description": "Retrieve a Access item by UUID", + }, + "put": { + "summary": "Creates a new Groups item", + "description": "Creates a new Groups item. Deprecated: use POST //metapools/{uuid}/groups instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -12348,70 +13801,47 @@ "format": "uuid" }, "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" + "description": "New GroupItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved GroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + } }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved AccessCalendarItem item", + "404": { + "description": "GroupItem item not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessCalendarItem" + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" } } } }, - "404": { - "description": "AccessCalendarItem item not found", + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", "content": { "application/json": { "schema": { @@ -12424,6 +13854,80 @@ } } } + } + }, + "tags": [ + "Metapools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Groups items with OData in body", + "description": "Query Groups items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all GroupItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } }, "403": { "description": "Forbidden. You do not have permission to access this resource with your current role.", @@ -12449,10 +13953,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Update Access item by UUID", - "description": "Update an existing Access item by UUID", + } + }, + "/metapools/{uuid}/groups/{uuid}": { + "get": { + "summary": "Get Groups item by UUID", + "description": "Retrieve a Groups item by UUID", "parameters": [ { "name": "uuid", @@ -12516,17 +14022,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved AccessCalendarItem item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessCalendarItem" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "AccessCalendarItem item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -12565,9 +14071,9 @@ } ] }, - "delete": { - "summary": "Delete Access item by UUID", - "description": "Delete a Access item by UUID", + "put": { + "summary": "Update Groups item by UUID", + "description": "Update an existing Groups item by UUID", "parameters": [ { "name": "uuid", @@ -12631,17 +14137,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved AccessCalendarItem item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessCalendarItem" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "AccessCalendarItem item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -12679,13 +14185,21 @@ "udsApiAuth": [] } ] - } - }, - "/metapools/{uuid}/access/overview": { - "get": { - "summary": "Get overview of Access items", - "description": "Retrieve an overview of Access items", + }, + "delete": { + "summary": "Delete Groups item by UUID", + "description": "Delete a Groups item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -12734,87 +14248,21 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved all AccessCalendarItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/AccessCalendarItem" - }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Metapools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/metapools/{uuid}/access/tableinfo": { - "get": { - "summary": "Get table info of Access items", - "description": "Retrieve table info of Access items", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -12854,10 +14302,10 @@ ] } }, - "/mfa": { + "/metapools/{uuid}/groups/overview": { "get": { - "summary": "Get all MFA items", - "description": "Retrieve a list of all MFA items", + "summary": "Get overview of Groups items", + "description": "Retrieve an overview of Groups items", "parameters": [ { "name": "$filter", @@ -12907,16 +14355,26 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved all MFAItem items", + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/MFAItem" + "$ref": "#/components/schemas/GroupItem" }, "type": "array" } @@ -12940,42 +14398,44 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new MFA item", - "description": "Creates a new, nonexisting MFA item", - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MFAItem" - } - } - }, - "description": "New MFAItem item to create" - }, + } + }, + "/metapools/{uuid}/groups/tableinfo": { + "get": { + "summary": "Get table info of Groups items", + "description": "Retrieve table info of Groups items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], "responses": { "200": { - "description": "Successfully retrieved MFAItem item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MFAItem" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "MFAItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -13006,7 +14466,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13015,21 +14475,11 @@ ] } }, - "/mfa/{uuid}": { + "/metapools/{uuid}/access": { "get": { - "summary": "Get MFA item by UUID", - "description": "Retrieve a MFA item by UUID", + "summary": "Get all Access items", + "description": "Retrieve a list of all Access items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -13078,21 +14528,96 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved MFAItem item", + "description": "Successfully retrieved all AccessCalendarItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MFAItem" + "items": { + "$ref": "#/components/schemas/AccessCalendarItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Metapools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Access item", + "description": "Create a new Access item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessCalendarItem" + } + } + }, + "description": "New AccessCalendarItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved AccessCalendarItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessCalendarItem" } } } }, "404": { - "description": "MFAItem item not found", + "description": "AccessCalendarItem item not found", "content": { "application/json": { "schema": { @@ -13123,7 +14648,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13132,8 +14657,9 @@ ] }, "put": { - "summary": "Update MFA item by UUID", - "description": "Update an existing MFA item by UUID", + "summary": "Creates a new Access item", + "description": "Creates a new Access item. Deprecated: use POST //metapools/{uuid}/access instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -13151,25 +14677,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MFAItem" + "$ref": "#/components/schemas/AccessCalendarItem" } } }, - "description": "Updated MFAItem items to create" + "description": "New AccessCalendarItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved MFAItem item", + "description": "Successfully retrieved AccessCalendarItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MFAItem" + "$ref": "#/components/schemas/AccessCalendarItem" } } } }, "404": { - "description": "MFAItem item not found", + "description": "AccessCalendarItem item not found", "content": { "application/json": { "schema": { @@ -13200,7 +14726,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13208,9 +14734,9 @@ } ] }, - "delete": { - "summary": "Delete MFA item by UUID", - "description": "Delete a MFA item by UUID", + "query": { + "summary": "Query Access items with OData in body", + "description": "Query Access items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -13223,28 +14749,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved MFAItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MFAItem" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "MFAItem item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all AccessCalendarItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/AccessCalendarItem" }, - "type": "object" + "type": "array" } } } @@ -13266,7 +14815,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13275,11 +14824,21 @@ ] } }, - "/mfa/overview": { + "/metapools/{uuid}/access/{uuid}": { "get": { - "summary": "Get overview of MFA items", - "description": "Retrieve an overview of MFA items", + "summary": "Get Access item by UUID", + "description": "Retrieve a Access item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -13332,62 +14891,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved all MFAItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/MFAItem" - }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Mfa" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/mfa/tableinfo": { - "get": { - "summary": "Get table info of MFA items", - "description": "Retrieve table info of MFA items", - "parameters": [], - "responses": { - "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved AccessCalendarItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/AccessCalendarItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "AccessCalendarItem item not found", "content": { "application/json": { "schema": { @@ -13418,19 +14932,17 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/mfa/{uuid}/log": { - "get": { - "summary": "Get logs of MFA item by UUID", - "description": "Retrieve logs of a MFA item by UUID", + }, + "put": { + "summary": "Update Access item by UUID", + "description": "Update an existing Access item by UUID", "parameters": [ { "name": "uuid", @@ -13441,18 +14953,79 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved all LogEntry items", + "description": "Successfully retrieved AccessCalendarItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" + "$ref": "#/components/schemas/AccessCalendarItem" + } + } + } + }, + "404": { + "description": "AccessCalendarItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -13474,43 +15047,91 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/mfa/gui/{type}": { - "get": { - "summary": "Get GUI representation of MFA type", - "description": "Retrieve a MFA GUI representation by type", + }, + "delete": { + "summary": "Delete Access item by UUID", + "description": "Delete a Access item by UUID", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "The type of the MFA GUI representation" + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GuiElement item", + "description": "Successfully retrieved AccessCalendarItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GuiElement" + "$ref": "#/components/schemas/AccessCalendarItem" } } } }, "404": { - "description": "GuiElement item not found", + "description": "AccessCalendarItem item not found", "content": { "application/json": { "schema": { @@ -13541,7 +15162,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13550,19 +15171,79 @@ ] } }, - "/mfa/types": { + "/metapools/{uuid}/access/overview": { "get": { - "summary": "Get types of MFA items", - "description": "Retrieve types of MFA items", - "parameters": [], + "summary": "Get overview of Access items", + "description": "Retrieve an overview of Access items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], "responses": { "200": { - "description": "Successfully retrieved all TypeInfo items", + "description": "Successfully retrieved all AccessCalendarItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/AccessCalendarItem" }, "type": "array" } @@ -13586,7 +15267,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13595,34 +15276,35 @@ ] } }, - "/mfa/types/{type}": { + "/metapools/{uuid}/access/tableinfo": { "get": { - "summary": "Get MFA item by type", - "description": "Retrieve a MFA item by type", + "summary": "Get table info of Access items", + "description": "Retrieve table info of Access items", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "The type of the item" + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved TypeInfo item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "TypeInfo item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -13653,7 +15335,7 @@ } }, "tags": [ - "Mfa" + "Metapools" ], "security": [ { @@ -13662,10 +15344,10 @@ ] } }, - "/networks": { + "/mfa": { "get": { - "summary": "Get all Network items", - "description": "Retrieve a list of all Network items", + "summary": "Get all MFA items", + "description": "Retrieve a list of all MFA items", "parameters": [ { "name": "$filter", @@ -13719,12 +15401,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all NetworkItem items", + "description": "Successfully retrieved all MFAItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" }, "type": "array" } @@ -13748,7 +15430,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -13756,34 +15438,34 @@ } ] }, - "put": { - "summary": "Creates a new Network item", - "description": "Creates a new, nonexisting Network item", + "post": { + "summary": "Create a new MFA item", + "description": "Create a new MFA item", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } }, - "description": "New NetworkItem item to create" + "description": "New MFAItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved NetworkItem item", + "description": "Successfully retrieved MFAItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } } }, "404": { - "description": "NetworkItem item not found", + "description": "MFAItem item not found", "content": { "application/json": { "schema": { @@ -13814,29 +15496,174 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/networks/{uuid}": { - "get": { - "summary": "Get Network item by UUID", - "description": "Retrieve a Network item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" + }, + "put": { + "summary": "Creates a new MFA item", + "description": "Creates a new MFA item. Deprecated: use POST //mfa instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MFAItem" + } + } + }, + "description": "New MFAItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved MFAItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MFAItem" + } + } + } + }, + "404": { + "description": "MFAItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Mfa" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query MFA items with OData in body", + "description": "Query MFA items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all MFAItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/MFAItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Mfa" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/mfa/{uuid}": { + "get": { + "summary": "Get MFA item by UUID", + "description": "Retrieve a MFA item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" }, { "name": "$filter", @@ -13890,17 +15717,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved NetworkItem item", + "description": "Successfully retrieved MFAItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } } }, "404": { - "description": "NetworkItem item not found", + "description": "MFAItem item not found", "content": { "application/json": { "schema": { @@ -13931,7 +15758,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -13940,8 +15767,8 @@ ] }, "put": { - "summary": "Update Network item by UUID", - "description": "Update an existing Network item by UUID", + "summary": "Update MFA item by UUID", + "description": "Update an existing MFA item by UUID", "parameters": [ { "name": "uuid", @@ -13959,25 +15786,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } }, - "description": "Updated NetworkItem items to create" + "description": "Updated MFAItem items to create" }, "responses": { "200": { - "description": "Successfully retrieved NetworkItem item", + "description": "Successfully retrieved MFAItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } } }, "404": { - "description": "NetworkItem item not found", + "description": "MFAItem item not found", "content": { "application/json": { "schema": { @@ -14008,7 +15835,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14017,8 +15844,8 @@ ] }, "delete": { - "summary": "Delete Network item by UUID", - "description": "Delete a Network item by UUID", + "summary": "Delete MFA item by UUID", + "description": "Delete a MFA item by UUID", "parameters": [ { "name": "uuid", @@ -14033,17 +15860,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved NetworkItem item", + "description": "Successfully retrieved MFAItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" } } } }, "404": { - "description": "NetworkItem item not found", + "description": "MFAItem item not found", "content": { "application/json": { "schema": { @@ -14074,7 +15901,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14083,10 +15910,10 @@ ] } }, - "/networks/overview": { + "/mfa/overview": { "get": { - "summary": "Get overview of Network items", - "description": "Retrieve an overview of Network items", + "summary": "Get overview of MFA items", + "description": "Retrieve an overview of MFA items", "parameters": [ { "name": "$filter", @@ -14140,12 +15967,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all NetworkItem items", + "description": "Successfully retrieved all MFAItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/NetworkItem" + "$ref": "#/components/schemas/MFAItem" }, "type": "array" } @@ -14169,7 +15996,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14178,10 +16005,10 @@ ] } }, - "/networks/tableinfo": { + "/mfa/tableinfo": { "get": { - "summary": "Get table info of Network items", - "description": "Retrieve table info of Network items", + "summary": "Get table info of MFA items", + "description": "Retrieve table info of MFA items", "parameters": [], "responses": { "200": { @@ -14226,7 +16053,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14235,10 +16062,10 @@ ] } }, - "/networks/{uuid}/log": { + "/mfa/{uuid}/log": { "get": { - "summary": "Get logs of Network item by UUID", - "description": "Retrieve logs of a Network item by UUID", + "summary": "Get logs of MFA item by UUID", + "description": "Retrieve logs of a MFA item by UUID", "parameters": [ { "name": "uuid", @@ -14282,7 +16109,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14291,21 +16118,43 @@ ] } }, - "/networks/gui": { + "/mfa/gui/{type}": { "get": { - "summary": "Get GUI representation of Network items", - "description": "Retrieve the GUI representation of Network items", - "parameters": [], + "summary": "Get GUI representation of MFA type", + "description": "Retrieve a MFA GUI representation by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the MFA GUI representation" + } + ], "responses": { "200": { - "description": "Successfully retrieved all GuiElement items", + "description": "Successfully retrieved GuiElement item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/GuiElement" + "$ref": "#/components/schemas/GuiElement" + } + } + } + }, + "404": { + "description": "GuiElement item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -14327,7 +16176,7 @@ } }, "tags": [ - "Networks" + "Mfa" ], "security": [ { @@ -14336,69 +16185,19 @@ ] } }, - "/messaging/notifiers": { + "/mfa/types": { "get": { - "summary": "Get all Notifier items", - "description": "Retrieve a list of all Notifier items", - "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "summary": "Get types of MFA items", + "description": "Retrieve types of MFA items", + "parameters": [], "responses": { "200": { - "description": "Successfully retrieved all NotifierItem items", + "description": "Successfully retrieved all TypeInfo items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/TypeInfo" }, "type": "array" } @@ -14422,42 +16221,43 @@ } }, "tags": [ - "Messaging" + "Mfa" ], "security": [ { "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Notifier item", - "description": "Creates a new, nonexisting Notifier item", - "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotifierItem" - } - } - }, - "description": "New NotifierItem item to create" - }, + } + }, + "/mfa/types/{type}": { + "get": { + "summary": "Get MFA item by type", + "description": "Retrieve a MFA item by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the item" + } + ], "responses": { "200": { - "description": "Successfully retrieved NotifierItem item", + "description": "Successfully retrieved TypeInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/TypeInfo" } } } }, "404": { - "description": "NotifierItem item not found", + "description": "TypeInfo item not found", "content": { "application/json": { "schema": { @@ -14488,7 +16288,7 @@ } }, "tags": [ - "Messaging" + "Mfa" ], "security": [ { @@ -14497,21 +16297,11 @@ ] } }, - "/messaging/notifiers/{uuid}": { + "/networks": { "get": { - "summary": "Get Notifier item by UUID", - "description": "Retrieve a Notifier item by UUID", + "summary": "Get all Network items", + "description": "Retrieve a list of all Network items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -14564,26 +16354,14 @@ ], "responses": { "200": { - "description": "Successfully retrieved NotifierItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NotifierItem" - } - } - } - }, - "404": { - "description": "NotifierItem item not found", + "description": "Successfully retrieved all NetworkItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/NetworkItem" }, - "type": "object" + "type": "array" } } } @@ -14605,7 +16383,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -14613,45 +16391,34 @@ } ] }, - "put": { - "summary": "Update Notifier item by UUID", - "description": "Update an existing Notifier item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "post": { + "summary": "Create a new Network item", + "description": "Create a new Network item", + "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/NetworkItem" } } }, - "description": "Updated NotifierItem items to create" + "description": "New NetworkItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved NotifierItem item", + "description": "Successfully retrieved NetworkItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/NetworkItem" } } } }, "404": { - "description": "NotifierItem item not found", + "description": "NetworkItem item not found", "content": { "application/json": { "schema": { @@ -14682,7 +16449,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -14690,34 +16457,35 @@ } ] }, - "delete": { - "summary": "Delete Notifier item by UUID", - "description": "Delete a Notifier item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "put": { + "summary": "Creates a new Network item", + "description": "Creates a new Network item. Deprecated: use POST //networks instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkItem" + } + } + }, + "description": "New NetworkItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved NotifierItem item", + "description": "Successfully retrieved NetworkItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/NetworkItem" } } } }, "404": { - "description": "NotifierItem item not found", + "description": "NetworkItem item not found", "content": { "application/json": { "schema": { @@ -14748,7 +16516,85 @@ } }, "tags": [ - "Messaging" + "Networks" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Network items with OData in body", + "description": "Query Network items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all NetworkItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/NetworkItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Networks" ], "security": [ { @@ -14757,11 +16603,21 @@ ] } }, - "/messaging/notifiers/overview": { + "/networks/{uuid}": { "get": { - "summary": "Get overview of Notifier items", - "description": "Retrieve an overview of Notifier items", + "summary": "Get Network item by UUID", + "description": "Retrieve a Network item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -14814,14 +16670,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all NotifierItem items", + "description": "Successfully retrieved NetworkItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/NotifierItem" + "$ref": "#/components/schemas/NetworkItem" + } + } + } + }, + "404": { + "description": "NetworkItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -14843,33 +16711,53 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/messaging/notifiers/tableinfo": { - "get": { - "summary": "Get table info of Notifier items", - "description": "Retrieve table info of Notifier items", - "parameters": [], + }, + "put": { + "summary": "Update Network item by UUID", + "description": "Update an existing Network item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkItem" + } + } + }, + "description": "Updated NetworkItem items to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved NetworkItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/NetworkItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "NetworkItem item not found", "content": { "application/json": { "schema": { @@ -14900,19 +16788,17 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/messaging/notifiers/{uuid}/log": { - "get": { - "summary": "Get logs of Notifier item by UUID", - "description": "Retrieve logs of a Notifier item by UUID", + }, + "delete": { + "summary": "Delete Network item by UUID", + "description": "Delete a Network item by UUID", "parameters": [ { "name": "uuid", @@ -14927,14 +16813,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all LogEntry items", + "description": "Successfully retrieved NetworkItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" + "$ref": "#/components/schemas/NetworkItem" + } + } + } + }, + "404": { + "description": "NetworkItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -14956,7 +16854,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -14965,43 +16863,71 @@ ] } }, - "/messaging/notifiers/gui/{type}": { + "/networks/overview": { "get": { - "summary": "Get GUI representation of Notifier type", - "description": "Retrieve a Notifier GUI representation by type", + "summary": "Get overview of Network items", + "description": "Retrieve an overview of Network items", "parameters": [ { - "name": "type", - "in": "path", - "required": true, + "name": "$filter", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "The type of the Notifier GUI representation" + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GuiElement item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuiElement" - } - } - } - }, - "404": { - "description": "GuiElement item not found", + "description": "Successfully retrieved all NetworkItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/NetworkItem" }, - "type": "object" + "type": "array" } } } @@ -15023,7 +16949,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -15032,21 +16958,33 @@ ] } }, - "/messaging/notifiers/types": { + "/networks/tableinfo": { "get": { - "summary": "Get types of Notifier items", - "description": "Retrieve types of Notifier items", + "summary": "Get table info of Network items", + "description": "Retrieve table info of Network items", "parameters": [], "responses": { "200": { - "description": "Successfully retrieved all TypeInfo items", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -15068,7 +17006,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -15077,34 +17015,38 @@ ] } }, - "/messaging/notifiers/types/{type}": { + "/networks/{uuid}/log": { "get": { - "summary": "Get Notifier item by type", - "description": "Retrieve a Notifier item by type", + "summary": "Get logs of Network item by UUID", + "description": "Retrieve logs of a Network item by UUID", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "The type of the item" + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved TypeInfo item", + "description": "Successfully retrieved all LogEntry items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TypeInfo" + "items": { + "$ref": "#/components/schemas/LogEntry" + }, + "type": "array" } } } }, - "404": { - "description": "TypeInfo item not found", + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", "content": { "application/json": { "schema": { @@ -15117,6 +17059,36 @@ } } } + } + }, + "tags": [ + "Networks" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/networks/gui": { + "get": { + "summary": "Get GUI representation of Network items", + "description": "Retrieve the GUI representation of Network items", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved all GuiElement items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GuiElement" + }, + "type": "array" + } + } + } }, "403": { "description": "Forbidden. You do not have permission to access this resource with your current role.", @@ -15135,7 +17107,7 @@ } }, "tags": [ - "Messaging" + "Networks" ], "security": [ { @@ -15144,10 +17116,10 @@ ] } }, - "/osmanagers": { + "/messaging/notifiers": { "get": { - "summary": "Get all OSManager items", - "description": "Retrieve a list of all OSManager items", + "summary": "Get all Notifier items", + "description": "Retrieve a list of all Notifier items", "parameters": [ { "name": "$filter", @@ -15201,12 +17173,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all OsManagerItem items", + "description": "Successfully retrieved all NotifierItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" }, "type": "array" } @@ -15230,7 +17202,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15238,34 +17210,34 @@ } ] }, - "put": { - "summary": "Creates a new OSManager item", - "description": "Creates a new, nonexisting OSManager item", + "post": { + "summary": "Create a new Notifier item", + "description": "Create a new Notifier item", "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" } } }, - "description": "New OsManagerItem item to create" + "description": "New NotifierItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved OsManagerItem item", + "description": "Successfully retrieved NotifierItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" } } } }, "404": { - "description": "OsManagerItem item not found", + "description": "NotifierItem item not found", "content": { "application/json": { "schema": { @@ -15296,93 +17268,43 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/osmanagers/{uuid}": { - "get": { - "summary": "Get OSManager item by UUID", - "description": "Retrieve a OSManager item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + }, + "put": { + "summary": "Creates a new Notifier item", + "description": "Creates a new Notifier item. Deprecated: use POST //messaging/notifiers instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotifierItem" + } + } }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "description": "New NotifierItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved OsManagerItem item", + "description": "Successfully retrieved NotifierItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" } } } }, "404": { - "description": "OsManagerItem item not found", + "description": "NotifierItem item not found", "content": { "application/json": { "schema": { @@ -15413,7 +17335,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15421,45 +17343,163 @@ } ] }, - "put": { - "summary": "Update OSManager item by UUID", - "description": "Update an existing OSManager item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "query": { + "summary": "Query Notifier items with OData in body", + "description": "Query Notifier items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" - } - } - }, - "description": "Updated OsManagerItem items to create" - }, - "responses": { - "200": { - "description": "Successfully retrieved OsManagerItem item", + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all NotifierItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" + "items": { + "$ref": "#/components/schemas/NotifierItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Messaging" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/messaging/notifiers/{uuid}": { + "get": { + "summary": "Get Notifier item by UUID", + "description": "Retrieve a Notifier item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved NotifierItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotifierItem" } } } }, "404": { - "description": "OsManagerItem item not found", + "description": "NotifierItem item not found", "content": { "application/json": { "schema": { @@ -15490,7 +17530,84 @@ } }, "tags": [ - "Osmanagers" + "Messaging" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Update Notifier item by UUID", + "description": "Update an existing Notifier item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotifierItem" + } + } + }, + "description": "Updated NotifierItem items to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved NotifierItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotifierItem" + } + } + } + }, + "404": { + "description": "NotifierItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Messaging" ], "security": [ { @@ -15499,8 +17616,8 @@ ] }, "delete": { - "summary": "Delete OSManager item by UUID", - "description": "Delete a OSManager item by UUID", + "summary": "Delete Notifier item by UUID", + "description": "Delete a Notifier item by UUID", "parameters": [ { "name": "uuid", @@ -15515,17 +17632,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved OsManagerItem item", + "description": "Successfully retrieved NotifierItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" } } } }, "404": { - "description": "OsManagerItem item not found", + "description": "NotifierItem item not found", "content": { "application/json": { "schema": { @@ -15556,7 +17673,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15565,10 +17682,10 @@ ] } }, - "/osmanagers/overview": { + "/messaging/notifiers/overview": { "get": { - "summary": "Get overview of OSManager items", - "description": "Retrieve an overview of OSManager items", + "summary": "Get overview of Notifier items", + "description": "Retrieve an overview of Notifier items", "parameters": [ { "name": "$filter", @@ -15622,12 +17739,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all OsManagerItem items", + "description": "Successfully retrieved all NotifierItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/OsManagerItem" + "$ref": "#/components/schemas/NotifierItem" }, "type": "array" } @@ -15651,7 +17768,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15660,10 +17777,10 @@ ] } }, - "/osmanagers/tableinfo": { + "/messaging/notifiers/tableinfo": { "get": { - "summary": "Get table info of OSManager items", - "description": "Retrieve table info of OSManager items", + "summary": "Get table info of Notifier items", + "description": "Retrieve table info of Notifier items", "parameters": [], "responses": { "200": { @@ -15708,7 +17825,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15717,10 +17834,10 @@ ] } }, - "/osmanagers/{uuid}/log": { + "/messaging/notifiers/{uuid}/log": { "get": { - "summary": "Get logs of OSManager item by UUID", - "description": "Retrieve logs of a OSManager item by UUID", + "summary": "Get logs of Notifier item by UUID", + "description": "Retrieve logs of a Notifier item by UUID", "parameters": [ { "name": "uuid", @@ -15764,7 +17881,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15773,10 +17890,10 @@ ] } }, - "/osmanagers/gui/{type}": { + "/messaging/notifiers/gui/{type}": { "get": { - "summary": "Get GUI representation of OSManager type", - "description": "Retrieve a OSManager GUI representation by type", + "summary": "Get GUI representation of Notifier type", + "description": "Retrieve a Notifier GUI representation by type", "parameters": [ { "name": "type", @@ -15785,7 +17902,7 @@ "schema": { "type": "string" }, - "description": "The type of the OSManager GUI representation" + "description": "The type of the Notifier GUI representation" } ], "responses": { @@ -15831,7 +17948,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15840,10 +17957,10 @@ ] } }, - "/osmanagers/types": { + "/messaging/notifiers/types": { "get": { - "summary": "Get types of OSManager items", - "description": "Retrieve types of OSManager items", + "summary": "Get types of Notifier items", + "description": "Retrieve types of Notifier items", "parameters": [], "responses": { "200": { @@ -15876,7 +17993,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15885,10 +18002,10 @@ ] } }, - "/osmanagers/types/{type}": { + "/messaging/notifiers/types/{type}": { "get": { - "summary": "Get OSManager item by type", - "description": "Retrieve a OSManager item by type", + "summary": "Get Notifier item by type", + "description": "Retrieve a Notifier item by type", "parameters": [ { "name": "type", @@ -15943,7 +18060,7 @@ } }, "tags": [ - "Osmanagers" + "Messaging" ], "security": [ { @@ -15952,10 +18069,10 @@ ] } }, - "/providers": { + "/osmanagers": { "get": { - "summary": "Get all Provider items", - "description": "Retrieve a list of all Provider items", + "summary": "Get all OSManager items", + "description": "Retrieve a list of all OSManager items", "parameters": [ { "name": "$filter", @@ -16009,12 +18126,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all ProviderItem items", + "description": "Successfully retrieved all OsManagerItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" }, "type": "array" } @@ -16038,7 +18155,73 @@ } }, "tags": [ - "Providers" + "Osmanagers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new OSManager item", + "description": "Create a new OSManager item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OsManagerItem" + } + } + }, + "description": "New OsManagerItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved OsManagerItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OsManagerItem" + } + } + } + }, + "404": { + "description": "OsManagerItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Osmanagers" ], "security": [ { @@ -16047,33 +18230,34 @@ ] }, "put": { - "summary": "Creates a new Provider item", - "description": "Creates a new, nonexisting Provider item", + "summary": "Creates a new OSManager item", + "description": "Creates a new OSManager item. Deprecated: use POST //osmanagers instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } }, - "description": "New ProviderItem item to create" + "description": "New OsManagerItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved ProviderItem item", + "description": "Successfully retrieved OsManagerItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } } }, "404": { - "description": "ProviderItem item not found", + "description": "OsManagerItem item not found", "content": { "application/json": { "schema": { @@ -16104,7 +18288,85 @@ } }, "tags": [ - "Providers" + "Osmanagers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query OSManager items with OData in body", + "description": "Query OSManager items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all OsManagerItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/OsManagerItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Osmanagers" ], "security": [ { @@ -16113,10 +18375,10 @@ ] } }, - "/providers/{uuid}": { + "/osmanagers/{uuid}": { "get": { - "summary": "Get Provider item by UUID", - "description": "Retrieve a Provider item by UUID", + "summary": "Get OSManager item by UUID", + "description": "Retrieve a OSManager item by UUID", "parameters": [ { "name": "uuid", @@ -16180,17 +18442,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved ProviderItem item", + "description": "Successfully retrieved OsManagerItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } } }, "404": { - "description": "ProviderItem item not found", + "description": "OsManagerItem item not found", "content": { "application/json": { "schema": { @@ -16221,7 +18483,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16230,8 +18492,8 @@ ] }, "put": { - "summary": "Update Provider item by UUID", - "description": "Update an existing Provider item by UUID", + "summary": "Update OSManager item by UUID", + "description": "Update an existing OSManager item by UUID", "parameters": [ { "name": "uuid", @@ -16249,25 +18511,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } }, - "description": "Updated ProviderItem items to create" + "description": "Updated OsManagerItem items to create" }, "responses": { "200": { - "description": "Successfully retrieved ProviderItem item", + "description": "Successfully retrieved OsManagerItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } } }, "404": { - "description": "ProviderItem item not found", + "description": "OsManagerItem item not found", "content": { "application/json": { "schema": { @@ -16298,7 +18560,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16307,8 +18569,8 @@ ] }, "delete": { - "summary": "Delete Provider item by UUID", - "description": "Delete a Provider item by UUID", + "summary": "Delete OSManager item by UUID", + "description": "Delete a OSManager item by UUID", "parameters": [ { "name": "uuid", @@ -16323,17 +18585,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved ProviderItem item", + "description": "Successfully retrieved OsManagerItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" } } } }, "404": { - "description": "ProviderItem item not found", + "description": "OsManagerItem item not found", "content": { "application/json": { "schema": { @@ -16364,7 +18626,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16373,10 +18635,10 @@ ] } }, - "/providers/overview": { + "/osmanagers/overview": { "get": { - "summary": "Get overview of Provider items", - "description": "Retrieve an overview of Provider items", + "summary": "Get overview of OSManager items", + "description": "Retrieve an overview of OSManager items", "parameters": [ { "name": "$filter", @@ -16430,12 +18692,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all ProviderItem items", + "description": "Successfully retrieved all OsManagerItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/ProviderItem" + "$ref": "#/components/schemas/OsManagerItem" }, "type": "array" } @@ -16459,7 +18721,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16468,10 +18730,10 @@ ] } }, - "/providers/tableinfo": { + "/osmanagers/tableinfo": { "get": { - "summary": "Get table info of Provider items", - "description": "Retrieve table info of Provider items", + "summary": "Get table info of OSManager items", + "description": "Retrieve table info of OSManager items", "parameters": [], "responses": { "200": { @@ -16516,7 +18778,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16525,10 +18787,10 @@ ] } }, - "/providers/{uuid}/log": { + "/osmanagers/{uuid}/log": { "get": { - "summary": "Get logs of Provider item by UUID", - "description": "Retrieve logs of a Provider item by UUID", + "summary": "Get logs of OSManager item by UUID", + "description": "Retrieve logs of a OSManager item by UUID", "parameters": [ { "name": "uuid", @@ -16572,7 +18834,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16581,24 +18843,34 @@ ] } }, - "/providers/allservices": { + "/osmanagers/gui/{type}": { "get": { - "summary": "Custom method allservices for Provider", - "description": "Execute custom method allservices for Provider", - "parameters": [], + "summary": "Get GUI representation of OSManager type", + "description": "Retrieve a OSManager GUI representation by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the OSManager GUI representation" + } + ], "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved GuiElement item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/GuiElement" } } } }, "404": { - "description": "object item not found", + "description": "GuiElement item not found", "content": { "application/json": { "schema": { @@ -16629,7 +18901,7 @@ } }, "tags": [ - "Providers" + "Osmanagers" ], "security": [ { @@ -16638,33 +18910,1572 @@ ] } }, - "/providers/service": { + "/osmanagers/types": { "get": { - "summary": "Custom method service for Provider", - "description": "Execute custom method service for Provider", + "summary": "Get types of OSManager items", + "description": "Retrieve types of OSManager items", "parameters": [], "responses": { "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", + "description": "Successfully retrieved all TypeInfo items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/TypeInfo" }, - "type": "object" + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Osmanagers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/osmanagers/types/{type}": { + "get": { + "summary": "Get OSManager item by type", + "description": "Retrieve a OSManager item by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TypeInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TypeInfo" + } + } + } + }, + "404": { + "description": "TypeInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Osmanagers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers": { + "get": { + "summary": "Get all Provider items", + "description": "Retrieve a list of all Provider items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all ProviderItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ProviderItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Provider item", + "description": "Create a new Provider item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + }, + "description": "New ProviderItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ProviderItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + } + }, + "404": { + "description": "ProviderItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new Provider item", + "description": "Creates a new Provider item. Deprecated: use POST //providers instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + }, + "description": "New ProviderItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ProviderItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + } + }, + "404": { + "description": "ProviderItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Provider items with OData in body", + "description": "Query Provider items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ProviderItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ProviderItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/{uuid}": { + "get": { + "summary": "Get Provider item by UUID", + "description": "Retrieve a Provider item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved ProviderItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + } + }, + "404": { + "description": "ProviderItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Update Provider item by UUID", + "description": "Update an existing Provider item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + }, + "description": "Updated ProviderItem items to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ProviderItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + } + }, + "404": { + "description": "ProviderItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "delete": { + "summary": "Delete Provider item by UUID", + "description": "Delete a Provider item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved ProviderItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderItem" + } + } + } + }, + "404": { + "description": "ProviderItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/overview": { + "get": { + "summary": "Get overview of Provider items", + "description": "Retrieve an overview of Provider items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all ProviderItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ProviderItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/tableinfo": { + "get": { + "summary": "Get table info of Provider items", + "description": "Retrieve table info of Provider items", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/{uuid}/log": { + "get": { + "summary": "Get logs of Provider item by UUID", + "description": "Retrieve logs of a Provider item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all LogEntry items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/LogEntry" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/allservices": { + "get": { + "summary": "List all services provided by this provider regardless of their parent service (Provider)", + "description": "List all services provided by this provider regardless of their parent service", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/service": { + "get": { + "summary": "Retrieve a specific service by its UUID regardless of its parent service (Provider)", + "description": "Retrieve a specific service by its UUID regardless of its parent service", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/{uuid}/maintenance": { + "post": { + "summary": "Toggle maintenance mode for a provider (enable if disabled, disable if enabled) (Provider)", + "description": "Toggle maintenance mode for a provider (enable if disabled, disable if enabled)", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/gui/{type}": { + "get": { + "summary": "Get GUI representation of Provider type", + "description": "Retrieve a Provider GUI representation by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the Provider GUI representation" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved GuiElement item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GuiElement" + } + } + } + }, + "404": { + "description": "GuiElement item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/types": { + "get": { + "summary": "Get types of Provider items", + "description": "Retrieve types of Provider items", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved all TypeInfo items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TypeInfo" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/types/{type}": { + "get": { + "summary": "Get Provider item by type", + "description": "Retrieve a Provider item by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TypeInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TypeInfo" + } + } + } + }, + "404": { + "description": "TypeInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/providers/{uuid}/services": { + "get": { + "summary": "Get all Services items", + "description": "Retrieve a list of all Services items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all ServiceItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ServiceItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Services item", + "description": "Create a new Services item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + }, + "description": "New ServiceItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + } + }, + "404": { + "description": "ServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new Services item", + "description": "Creates a new Services item. Deprecated: use POST //providers/{uuid}/services instead.", + "deprecated": true, + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + }, + "description": "New ServiceItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + } + }, + "404": { + "description": "ServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Services items with OData in body", + "description": "Query Services items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ServiceItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ServiceItem" + }, + "type": "array" } } } @@ -16695,10 +20506,10 @@ ] } }, - "/providers/{uuid}/maintenance": { + "/providers/{uuid}/services/{uuid}": { "get": { - "summary": "Custom method maintenance for Provider", - "description": "Execute custom method maintenance for Provider", + "summary": "Get Services item by UUID", + "description": "Retrieve a Services item by UUID", "parameters": [ { "name": "uuid", @@ -16709,21 +20520,185 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved ServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + } + }, + "404": { + "description": "ServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", "content": { "application/json": { "schema": { + "properties": { + "detail": { + "type": "string" + } + }, "type": "object" } } } + } + }, + "tags": [ + "Providers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Update Services item by UUID", + "description": "Update an existing Services item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved ServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceItem" + } + } + } }, "404": { - "description": "object item not found", + "description": "ServiceItem item not found", "content": { "application/json": { "schema": { @@ -16761,36 +20736,84 @@ "udsApiAuth": [] } ] - } - }, - "/providers/gui/{type}": { - "get": { - "summary": "Get GUI representation of Provider type", - "description": "Retrieve a Provider GUI representation by type", + }, + "delete": { + "summary": "Delete Services item by UUID", + "description": "Delete a Services item by UUID", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "The type of the Provider GUI representation" + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GuiElement item", + "description": "Successfully retrieved ServiceItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GuiElement" + "$ref": "#/components/schemas/ServiceItem" } } } }, "404": { - "description": "GuiElement item not found", + "description": "ServiceItem item not found", "content": { "application/json": { "schema": { @@ -16830,19 +20853,79 @@ ] } }, - "/providers/types": { + "/providers/{uuid}/services/overview": { "get": { - "summary": "Get types of Provider items", - "description": "Retrieve types of Provider items", - "parameters": [], + "summary": "Get overview of Services items", + "description": "Retrieve an overview of Services items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], "responses": { "200": { - "description": "Successfully retrieved all TypeInfo items", + "description": "Successfully retrieved all ServiceItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/ServiceItem" }, "type": "array" } @@ -16875,34 +20958,35 @@ ] } }, - "/providers/types/{type}": { + "/providers/{uuid}/services/tableinfo": { "get": { - "summary": "Get Provider item by type", - "description": "Retrieve a Provider item by type", + "summary": "Get table info of Services items", + "description": "Retrieve table info of Services items", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "The type of the item" + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved TypeInfo item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "TypeInfo item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -16942,60 +21026,11 @@ ] } }, - "/providers/{uuid}/services": { + "/providers/{uuid}/services/{uuid}/log": { "get": { - "summary": "Get all Services items", - "description": "Retrieve a list of all Services items", + "summary": "Get logs of Services item by UUID", + "description": "Retrieve logs of a Services item by UUID", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -17009,12 +21044,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all ServiceItem items", + "description": "Successfully retrieved all LogEntry items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/ServiceItem" + "$ref": "#/components/schemas/LogEntry" }, "type": "array" } @@ -17045,10 +21080,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Services items", - "description": "Update an existing Services item", + } + }, + "/providers/{uuid}/services/servicepools": { + "get": { + "summary": "List all service pools that reference this service provider (Services collection)", + "description": "List all service pools that reference this service provider", "parameters": [ { "name": "uuid", @@ -17063,17 +21100,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved ServiceItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceItem" + "type": "object" } } } }, "404": { - "description": "ServiceItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -17113,10 +21150,10 @@ ] } }, - "/providers/{uuid}/services/{uuid}": { + "/providers/{uuid}/services/{uuid}/servicepools": { "get": { - "summary": "Get Services item by UUID", - "description": "Retrieve a Services item by UUID", + "summary": "List all service pools that reference this service provider (Services item)", + "description": "List all service pools that reference this service provider", "parameters": [ { "name": "uuid", @@ -17127,70 +21164,21 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved ServiceItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceItem" + "type": "object" } } } }, "404": { - "description": "ServiceItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -17228,84 +21216,46 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Update Services item by UUID", - "description": "Update an existing Services item by UUID", + } + }, + "/providers/{uuid}/services/gui/{type}": { + "get": { + "summary": "Get GUI representation of Services type", + "description": "Retrieve a Services GUI representation by type", "parameters": [ { - "name": "uuid", + "name": "type", "in": "path", "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, "schema": { "type": "string" }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + "description": "The type of the Services GUI representation" }, { - "name": "$skip", - "in": "query", - "required": false, + "name": "uuid", + "in": "path", + "required": true, "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 + "type": "string", + "format": "uuid" }, - "description": "Skip the first N items" + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved ServiceItem item", + "description": "Successfully retrieved GuiElement item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceItem" + "$ref": "#/components/schemas/GuiElement" } } } }, "404": { - "description": "ServiceItem item not found", + "description": "GuiElement item not found", "content": { "application/json": { "schema": { @@ -17343,10 +21293,12 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Services item by UUID", - "description": "Delete a Services item by UUID", + } + }, + "/providers/{uuid}/services/types": { + "get": { + "summary": "Get types of Services items", + "description": "Retrieve types of Services items", "parameters": [ { "name": "uuid", @@ -17357,70 +21309,86 @@ "format": "uuid" }, "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all TypeInfo items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TypeInfo" + }, + "type": "array" + } + } + } }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Providers" + ], + "security": [ { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, + "udsApiAuth": [] + } + ] + } + }, + "/providers/{uuid}/services/types/{type}": { + "get": { + "summary": "Get Services item by type", + "description": "Retrieve a Services item by type", + "parameters": [ { - "name": "$orderby", - "in": "query", - "required": false, + "name": "type", + "in": "path", + "required": true, "schema": { "type": "string" }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + "description": "The type of the item" }, { - "name": "$skip", - "in": "query", - "required": false, + "name": "uuid", + "in": "path", + "required": true, "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 + "type": "string", + "format": "uuid" }, - "description": "Skip the first N items" + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved ServiceItem item", + "description": "Successfully retrieved TypeInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServiceItem" + "$ref": "#/components/schemas/TypeInfo" } } } }, "404": { - "description": "ServiceItem item not found", + "description": "TypeInfo item not found", "content": { "application/json": { "schema": { @@ -17460,10 +21428,10 @@ ] } }, - "/providers/{uuid}/services/overview": { + "/providers/{uuid}/usage": { "get": { - "summary": "Get overview of Services items", - "description": "Retrieve an overview of Services items", + "summary": "Get all Usage items", + "description": "Retrieve a list of all Usage items", "parameters": [ { "name": "$filter", @@ -17527,12 +21495,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all ServiceItem items", + "description": "Successfully retrieved all ServicesUsageItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/ServiceItem" + "$ref": "#/components/schemas/ServicesUsageItem" }, "type": "array" } @@ -17563,12 +21531,10 @@ "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/services/tableinfo": { - "get": { - "summary": "Get table info of Services items", - "description": "Retrieve table info of Services items", + }, + "post": { + "summary": "Create a new Usage item", + "description": "Create a new Usage item", "parameters": [ { "name": "uuid", @@ -17581,19 +21547,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicesUsageItem" + } + } + }, + "description": "New ServicesUsageItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved ServicesUsageItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/ServicesUsageItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "ServicesUsageItem item not found", "content": { "application/json": { "schema": { @@ -17631,12 +21608,11 @@ "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/services/{uuid}/log": { - "get": { - "summary": "Get logs of Services item by UUID", - "description": "Retrieve logs of a Services item by UUID", + }, + "put": { + "summary": "Creates a new Usage item", + "description": "Creates a new Usage item. Deprecated: use POST //providers/{uuid}/usage instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -17649,75 +21625,30 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved all LogEntry items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" - }, - "type": "array" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicesUsageItem" } } }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } + "description": "New ServicesUsageItem item to create" }, - "tags": [ - "Providers" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/providers/{uuid}/services/servicepools": { - "get": { - "summary": "Custom method servicepools for Services collection", - "description": "Execute custom method servicepools for Services collection", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved ServicesUsageItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/ServicesUsageItem" } } } }, "404": { - "description": "object item not found", + "description": "ServicesUsageItem item not found", "content": { "application/json": { "schema": { @@ -17755,12 +21686,10 @@ "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/services/{uuid}/servicepools": { - "get": { - "summary": "Custom method servicepools for Services item", - "description": "Execute custom method servicepools for Services item", + }, + "query": { + "summary": "Query Usage items with OData in body", + "description": "Query Usage items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -17773,28 +21702,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "object item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ServicesUsageItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/ServicesUsageItem" }, - "type": "object" + "type": "array" } } } @@ -17825,44 +21777,84 @@ ] } }, - "/providers/{uuid}/services/gui/{type}": { + "/providers/{uuid}/usage/{uuid}": { "get": { - "summary": "Get GUI representation of Services type", - "description": "Retrieve a Services GUI representation by type", + "summary": "Get Usage item by UUID", + "description": "Retrieve a Usage item by UUID", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "The type of the Services GUI representation" + "description": "Filter items by property values (e.g., $filter=property eq value)" }, { - "name": "uuid", - "in": "path", - "required": true, + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "integer", + "format": "int32", + "minimum": 0 }, - "description": "The UUID of the item" + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GuiElement item", + "description": "Successfully retrieved ServicesUsageItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GuiElement" + "$ref": "#/components/schemas/ServicesUsageItem" } } } }, "404": { - "description": "GuiElement item not found", + "description": "ServicesUsageItem item not found", "content": { "application/json": { "schema": { @@ -17900,12 +21892,10 @@ "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/services/types": { - "get": { - "summary": "Get types of Services items", - "description": "Retrieve types of Services items", + }, + "put": { + "summary": "Update Usage item by UUID", + "description": "Update an existing Usage item by UUID", "parameters": [ { "name": "uuid", @@ -17916,18 +21906,79 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved all TypeInfo items", + "description": "Successfully retrieved ServicesUsageItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/ServicesUsageItem" + } + } + } + }, + "404": { + "description": "ServicesUsageItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -17956,46 +22007,84 @@ "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/services/types/{type}": { - "get": { - "summary": "Get Services item by type", - "description": "Retrieve a Services item by type", + }, + "delete": { + "summary": "Delete Usage item by UUID", + "description": "Delete a Usage item by UUID", "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "The type of the item" + "description": "Filter items by property values (e.g., $filter=property eq value)" }, { - "name": "uuid", - "in": "path", - "required": true, + "name": "$select", + "in": "query", + "required": false, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, - "description": "The UUID of the item" + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved TypeInfo item", + "description": "Successfully retrieved ServicesUsageItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/ServicesUsageItem" } } } }, "404": { - "description": "TypeInfo item not found", + "description": "ServicesUsageItem item not found", "content": { "application/json": { "schema": { @@ -18035,10 +22124,10 @@ ] } }, - "/providers/{uuid}/usage": { + "/providers/{uuid}/usage/overview": { "get": { - "summary": "Get all Usage items", - "description": "Retrieve a list of all Usage items", + "summary": "Get overview of Usage items", + "description": "Retrieve an overview of Usage items", "parameters": [ { "name": "$filter", @@ -18138,10 +22227,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Usage items", - "description": "Update an existing Usage item", + } + }, + "/providers/{uuid}/usage/tableinfo": { + "get": { + "summary": "Get table info of Usage items", + "description": "Retrieve table info of Usage items", "parameters": [ { "name": "uuid", @@ -18156,17 +22247,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved ServicesUsageItem item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServicesUsageItem" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "ServicesUsageItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -18206,21 +22297,11 @@ ] } }, - "/providers/{uuid}/usage/{uuid}": { + "/servers/tokens": { "get": { - "summary": "Get Usage item by UUID", - "description": "Retrieve a Usage item by UUID", + "summary": "Get all Server items", + "description": "Retrieve a list of all Server items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -18273,17 +22354,71 @@ ], "responses": { "200": { - "description": "Successfully retrieved ServicesUsageItem item", + "description": "Successfully retrieved all TokenItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServicesUsageItem" + "items": { + "$ref": "#/components/schemas/TokenItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Server item", + "description": "Create a new Server item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenItem" + } + } + }, + "description": "New TokenItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved TokenItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenItem" } } } }, "404": { - "description": "ServicesUsageItem item not found", + "description": "TokenItem item not found", "content": { "application/json": { "schema": { @@ -18314,7 +22449,7 @@ } }, "tags": [ - "Providers" + "Servers" ], "security": [ { @@ -18323,82 +22458,34 @@ ] }, "put": { - "summary": "Update Usage item by UUID", - "description": "Update an existing Usage item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + "summary": "Creates a new Server item", + "description": "Creates a new Server item. Deprecated: use POST //servers/tokens instead.", + "deprecated": true, + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenItem" + } + } }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "description": "New TokenItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved ServicesUsageItem item", + "description": "Successfully retrieved TokenItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServicesUsageItem" + "$ref": "#/components/schemas/TokenItem" } } } }, "404": { - "description": "ServicesUsageItem item not found", + "description": "TokenItem item not found", "content": { "application/json": { "schema": { @@ -18429,7 +22516,7 @@ } }, "tags": [ - "Providers" + "Servers" ], "security": [ { @@ -18437,9 +22524,89 @@ } ] }, - "delete": { - "summary": "Delete Usage item by UUID", - "description": "Delete a Usage item by UUID", + "query": { + "summary": "Query Server items with OData in body", + "description": "Query Server items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all TokenItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TokenItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servers/tokens/{uuid}": { + "get": { + "summary": "Get Server item by UUID", + "description": "Retrieve a Server item by UUID", "parameters": [ { "name": "uuid", @@ -18503,17 +22670,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved ServicesUsageItem item", + "description": "Successfully retrieved TokenItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ServicesUsageItem" + "$ref": "#/components/schemas/TokenItem" } } } }, "404": { - "description": "ServicesUsageItem item not found", + "description": "TokenItem item not found", "content": { "application/json": { "schema": { @@ -18544,69 +22711,18 @@ } }, "tags": [ - "Providers" + "Servers" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/usage/overview": { - "get": { - "summary": "Get overview of Usage items", - "description": "Retrieve an overview of Usage items", + }, + "put": { + "summary": "Update Server item by UUID", + "description": "Update an existing Server item by UUID", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -18618,16 +22734,39 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TokenItem" + } + } + }, + "description": "Updated TokenItem items to create" + }, "responses": { "200": { - "description": "Successfully retrieved all ServicesUsageItem items", + "description": "Successfully retrieved TokenItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/ServicesUsageItem" + "$ref": "#/components/schemas/TokenItem" + } + } + } + }, + "404": { + "description": "TokenItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -18649,19 +22788,17 @@ } }, "tags": [ - "Providers" + "Servers" ], "security": [ { "udsApiAuth": [] } ] - } - }, - "/providers/{uuid}/usage/tableinfo": { - "get": { - "summary": "Get table info of Usage items", - "description": "Retrieve table info of Usage items", + }, + "delete": { + "summary": "Delete Server item by UUID", + "description": "Delete a Server item by UUID", "parameters": [ { "name": "uuid", @@ -18676,17 +22813,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved TokenItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/TokenItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "TokenItem item not found", "content": { "application/json": { "schema": { @@ -18717,7 +22854,7 @@ } }, "tags": [ - "Providers" + "Servers" ], "security": [ { @@ -18726,10 +22863,10 @@ ] } }, - "/servers/tokens": { + "/servers/tokens/overview": { "get": { - "summary": "Get all Server items", - "description": "Retrieve a list of all Server items", + "summary": "Get overview of Server items", + "description": "Retrieve an overview of Server items", "parameters": [ { "name": "$filter", @@ -18819,35 +22956,26 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Server item", - "description": "Creates a new, nonexisting Server item", + } + }, + "/servers/tokens/tableinfo": { + "get": { + "summary": "Get table info of Server items", + "description": "Retrieve table info of Server items", "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TokenItem" - } - } - }, - "description": "New TokenItem item to create" - }, "responses": { "200": { - "description": "Successfully retrieved TokenItem item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TokenItem" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "TokenItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -18887,10 +23015,10 @@ ] } }, - "/servers/tokens/{uuid}": { + "/servers/tokens/{uuid}/log": { "get": { - "summary": "Get Server item by UUID", - "description": "Retrieve a Server item by UUID", + "summary": "Get logs of Server item by UUID", + "description": "Retrieve logs of a Server item by UUID", "parameters": [ { "name": "uuid", @@ -18901,7 +23029,53 @@ "format": "uuid" }, "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all LogEntry items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/LogEntry" + }, + "type": "array" + } + } + } }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servers/groups": { + "get": { + "summary": "Get all ServerGroup items", + "description": "Retrieve a list of all ServerGroup items", + "parameters": [ { "name": "$filter", "in": "query", @@ -18954,17 +23128,71 @@ ], "responses": { "200": { - "description": "Successfully retrieved TokenItem item", + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TokenItem" + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servers" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new ServerGroup item", + "description": "Create a new ServerGroup item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved GroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "TokenItem item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -19004,44 +23232,34 @@ ] }, "put": { - "summary": "Update Server item by UUID", - "description": "Update an existing Server item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "summary": "Creates a new ServerGroup item", + "description": "Creates a new ServerGroup item. Deprecated: use POST //servers/groups instead.", + "deprecated": true, + "parameters": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TokenItem" + "$ref": "#/components/schemas/GroupItem" } } }, - "description": "Updated TokenItem items to create" + "description": "New GroupItem item to create" }, "responses": { "200": { - "description": "Successfully retrieved TokenItem item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TokenItem" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "TokenItem item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -19080,43 +23298,55 @@ } ] }, - "delete": { - "summary": "Delete Server item by UUID", - "description": "Delete a Server item by UUID", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved TokenItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TokenItem" - } + "query": { + "summary": "Query ServerGroup items with OData in body", + "description": "Query ServerGroup items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "TokenItem item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/GroupItem" }, - "type": "object" + "type": "array" } } } @@ -19147,11 +23377,21 @@ ] } }, - "/servers/tokens/overview": { + "/servers/groups/{uuid}": { "get": { - "summary": "Get overview of Server items", - "description": "Retrieve an overview of Server items", + "summary": "Get ServerGroup item by UUID", + "description": "Retrieve a ServerGroup item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -19204,14 +23444,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all TokenItem items", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/TokenItem" + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -19240,26 +23492,46 @@ "udsApiAuth": [] } ] - } - }, - "/servers/tokens/tableinfo": { - "get": { - "summary": "Get table info of Server items", - "description": "Retrieve table info of Server items", - "parameters": [], + }, + "put": { + "summary": "Update ServerGroup item by UUID", + "description": "Update an existing ServerGroup item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "Updated GroupItem items to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/GroupItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "GroupItem item not found", "content": { "application/json": { "schema": { @@ -19297,12 +23569,10 @@ "udsApiAuth": [] } ] - } - }, - "/servers/tokens/{uuid}/log": { - "get": { - "summary": "Get logs of Server item by UUID", - "description": "Retrieve logs of a Server item by UUID", + }, + "delete": { + "summary": "Delete ServerGroup item by UUID", + "description": "Delete a ServerGroup item by UUID", "parameters": [ { "name": "uuid", @@ -19317,14 +23587,26 @@ ], "responses": { "200": { - "description": "Successfully retrieved all LogEntry items", + "description": "Successfully retrieved GroupItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -19355,10 +23637,10 @@ ] } }, - "/servers/groups": { + "/servers/groups/overview": { "get": { - "summary": "Get all ServerGroup items", - "description": "Retrieve a list of all ServerGroup items", + "summary": "Get overview of ServerGroup items", + "description": "Retrieve an overview of ServerGroup items", "parameters": [ { "name": "$filter", @@ -19448,35 +23730,26 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new ServerGroup item", - "description": "Creates a new, nonexisting ServerGroup item", + } + }, + "/servers/groups/tableinfo": { + "get": { + "summary": "Get table info of ServerGroup items", + "description": "Retrieve table info of ServerGroup items", "parameters": [], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupItem" - } - } - }, - "description": "New GroupItem item to create" - }, "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved TableInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "GroupItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -19516,10 +23789,10 @@ ] } }, - "/servers/groups/{uuid}": { + "/servers/groups/{uuid}/log": { "get": { - "summary": "Get ServerGroup item by UUID", - "description": "Retrieve a ServerGroup item by UUID", + "summary": "Get logs of ServerGroup item by UUID", + "description": "Retrieve logs of a ServerGroup item by UUID", "parameters": [ { "name": "uuid", @@ -19530,79 +23803,18 @@ "format": "uuid" }, "description": "The UUID of the item" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupItem" - } - } - } - }, - "404": { - "description": "GroupItem item not found", + "description": "Successfully retrieved all LogEntry items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/LogEntry" }, - "type": "object" + "type": "array" } } } @@ -19631,10 +23843,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Update ServerGroup item by UUID", - "description": "Update an existing ServerGroup item by UUID", + } + }, + "/servers/groups/{uuid}/stats": { + "get": { + "summary": "Retrieve aggregate server statistics including counts by state, type, and resource usage (ServerGroup)", + "description": "Retrieve aggregate server statistics including counts by state, type, and resource usage", "parameters": [ { "name": "uuid", @@ -19647,30 +23861,19 @@ "description": "The UUID of the item" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupItem" - } - } - }, - "description": "Updated GroupItem items to create" - }, "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "type": "object" } } } }, "404": { - "description": "GroupItem item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -19708,35 +23911,36 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete ServerGroup item by UUID", - "description": "Delete a ServerGroup item by UUID", + } + }, + "/servers/groups/gui/{type}": { + "get": { + "summary": "Get GUI representation of ServerGroup type", + "description": "Retrieve a ServerGroup GUI representation by type", "parameters": [ { - "name": "uuid", + "name": "type", "in": "path", "required": true, "schema": { - "type": "string", - "format": "uuid" + "type": "string" }, - "description": "The UUID of the item" + "description": "The type of the ServerGroup GUI representation" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved GuiElement item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/GuiElement" } } } }, "404": { - "description": "GroupItem item not found", + "description": "GuiElement item not found", "content": { "application/json": { "schema": { @@ -19776,69 +23980,19 @@ ] } }, - "/servers/groups/overview": { + "/servers/groups/types": { "get": { - "summary": "Get overview of ServerGroup items", - "description": "Retrieve an overview of ServerGroup items", - "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - } - ], + "summary": "Get types of ServerGroup items", + "description": "Retrieve types of ServerGroup items", + "parameters": [], "responses": { "200": { - "description": "Successfully retrieved all GroupItem items", + "description": "Successfully retrieved all TypeInfo items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/TypeInfo" }, "type": "array" } @@ -19871,24 +24025,34 @@ ] } }, - "/servers/groups/tableinfo": { + "/servers/groups/types/{type}": { "get": { - "summary": "Get table info of ServerGroup items", - "description": "Retrieve table info of ServerGroup items", - "parameters": [], + "summary": "Get ServerGroup item by type", + "description": "Retrieve a ServerGroup item by type", + "parameters": [ + { + "name": "type", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The type of the item" + } + ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved TypeInfo item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/TypeInfo" } } } }, "404": { - "description": "TableInfo item not found", + "description": "TypeInfo item not found", "content": { "application/json": { "schema": { @@ -19928,11 +24092,60 @@ ] } }, - "/servers/groups/{uuid}/log": { + "/servers/groups/{uuid}/servers": { "get": { - "summary": "Get logs of ServerGroup item by UUID", - "description": "Retrieve logs of a ServerGroup item by UUID", + "summary": "Get all Servers items", + "description": "Retrieve a list of all Servers items", "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, { "name": "uuid", "in": "path", @@ -19946,12 +24159,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all LogEntry items", + "description": "Successfully retrieved all ServerItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/LogEntry" + "$ref": "#/components/schemas/ServerItem" }, "type": "array" } @@ -19982,12 +24195,10 @@ "udsApiAuth": [] } ] - } - }, - "/servers/groups/{uuid}/stats": { - "get": { - "summary": "Custom method stats for ServerGroup", - "description": "Execute custom method stats for ServerGroup", + }, + "post": { + "summary": "Create a new Servers item", + "description": "Create a new Servers item", "parameters": [ { "name": "uuid", @@ -20000,19 +24211,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServerItem" + } + } + }, + "description": "New ServerItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved ServerItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/ServerItem" } } } }, "404": { - "description": "object item not found", + "description": "ServerItem item not found", "content": { "application/json": { "schema": { @@ -20050,148 +24272,47 @@ "udsApiAuth": [] } ] - } - }, - "/servers/groups/gui/{type}": { - "get": { - "summary": "Get GUI representation of ServerGroup type", - "description": "Retrieve a ServerGroup GUI representation by type", + }, + "put": { + "summary": "Creates a new Servers item", + "description": "Creates a new Servers item. Deprecated: use POST //servers/groups/{uuid}/servers instead.", + "deprecated": true, "parameters": [ { - "name": "type", + "name": "uuid", "in": "path", "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "The type of the ServerGroup GUI representation" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved GuiElement item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GuiElement" - } - } - } - }, - "404": { - "description": "GuiElement item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } + "description": "The UUID of the item" } - }, - "tags": [ - "Servers" ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/servers/groups/types": { - "get": { - "summary": "Get types of ServerGroup items", - "description": "Retrieve types of ServerGroup items", - "parameters": [], - "responses": { - "200": { - "description": "Successfully retrieved all TypeInfo items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/TypeInfo" - }, - "type": "array" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServerItem" } } }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } + "description": "New ServerItem item to create" }, - "tags": [ - "Servers" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/servers/groups/types/{type}": { - "get": { - "summary": "Get ServerGroup item by type", - "description": "Retrieve a ServerGroup item by type", - "parameters": [ - { - "name": "type", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "description": "The type of the item" - } - ], "responses": { "200": { - "description": "Successfully retrieved TypeInfo item", + "description": "Successfully retrieved ServerItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TypeInfo" + "$ref": "#/components/schemas/ServerItem" } } } }, "404": { - "description": "TypeInfo item not found", + "description": "ServerItem item not found", "content": { "application/json": { "schema": { @@ -20229,62 +24350,11 @@ "udsApiAuth": [] } ] - } - }, - "/servers/groups/{uuid}/servers": { - "get": { - "summary": "Get all Servers items", - "description": "Retrieve a list of all Servers items", + }, + "query": { + "summary": "Query Servers items with OData in body", + "description": "Query Servers items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -20296,82 +24366,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved all ServerItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/ServerItem" + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" }, - "type": "object" - } + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } - } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" }, - "tags": [ - "Servers" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - }, - "put": { - "summary": "Creates a new Servers items", - "description": "Update an existing Servers item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], "responses": { "200": { - "description": "Successfully retrieved ServerItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerItem" - } - } - } - }, - "404": { - "description": "ServerItem item not found", + "description": "Successfully retrieved all ServerItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/ServerItem" }, - "type": "object" + "type": "array" } } } @@ -20923,9 +24962,9 @@ } }, "/servers/groups/{uuid}/servers/maintenance": { - "get": { - "summary": "Custom method maintenance for Servers collection", - "description": "Execute custom method maintenance for Servers collection", + "post": { + "summary": "Toggle maintenance mode for a server (enable if disabled, disable if enabled) (Servers collection)", + "description": "Toggle maintenance mode for a server (enable if disabled, disable if enabled)", "parameters": [ { "name": "uuid", @@ -20991,9 +25030,9 @@ } }, "/servers/groups/{uuid}/servers/{uuid}/maintenance": { - "get": { - "summary": "Custom method maintenance for Servers item", - "description": "Execute custom method maintenance for Servers item", + "post": { + "summary": "Toggle maintenance mode for a server (enable if disabled, disable if enabled) (Servers item)", + "description": "Toggle maintenance mode for a server (enable if disabled, disable if enabled)", "parameters": [ { "name": "uuid", @@ -21059,9 +25098,9 @@ } }, "/servers/groups/{uuid}/servers/importcsv": { - "get": { - "summary": "Custom method importcsv for Servers collection", - "description": "Execute custom method importcsv for Servers collection", + "post": { + "summary": "Import server configuration from CSV data (Servers collection)", + "description": "Import server configuration from CSV data", "parameters": [ { "name": "uuid", @@ -21074,6 +25113,31 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "description": "CSV content with server entries", + "type": "string" + }, + "has_header": { + "description": "Whether the CSV has a header row", + "type": "boolean" + }, + "separator": { + "description": "CSV field separator character (default comma)", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for importcsv" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -21127,9 +25191,9 @@ } }, "/servers/groups/{uuid}/servers/{uuid}/importcsv": { - "get": { - "summary": "Custom method importcsv for Servers item", - "description": "Execute custom method importcsv for Servers item", + "post": { + "summary": "Import server configuration from CSV data (Servers item)", + "description": "Import server configuration from CSV data", "parameters": [ { "name": "uuid", @@ -21142,6 +25206,31 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "description": "CSV content with server entries", + "type": "string" + }, + "has_header": { + "description": "Whether the CSV has a header row", + "type": "boolean" + }, + "separator": { + "description": "CSV field separator character (default comma)", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for importcsv" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -21344,9 +25433,76 @@ } ] }, + "post": { + "summary": "Create a new ServicePool item", + "description": "Create a new ServicePool item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicePoolItem" + } + } + }, + "description": "New ServicePoolItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ServicePoolItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServicePoolItem" + } + } + } + }, + "404": { + "description": "ServicePoolItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new ServicePool item", - "description": "Creates a new, nonexisting ServicePool item", + "description": "Creates a new ServicePool item. Deprecated: use POST //servicespools instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -21409,6 +25565,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query ServicePool items with OData in body", + "description": "Query ServicePool items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ServicePoolItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/ServicePoolItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/servicespools/{uuid}": { @@ -21766,67 +26000,123 @@ ] } }, - "/servicespools/tableinfo": { - "get": { - "summary": "Get table info of ServicePool items", - "description": "Retrieve table info of ServicePool items", - "parameters": [], - "responses": { - "200": { - "description": "Successfully retrieved TableInfo item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TableInfo" - } - } - } - }, - "404": { - "description": "TableInfo item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Servicespools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/servicespools/{uuid}/log": { - "get": { - "summary": "Get logs of ServicePool item by UUID", - "description": "Retrieve logs of a ServicePool item by UUID", + "/servicespools/tableinfo": { + "get": { + "summary": "Get table info of ServicePool items", + "description": "Retrieve table info of ServicePool items", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/log": { + "get": { + "summary": "Get logs of ServicePool item by UUID", + "description": "Retrieve logs of a ServicePool item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all LogEntry items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/LogEntry" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/set_fallback_access": { + "post": { + "summary": "Update the fallback access policy for a service pool (ServicePool)", + "description": "Update the fallback access policy for a service pool", "parameters": [ { "name": "uuid", @@ -21839,62 +26129,23 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved all LogEntry items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/LogEntry" - }, - "type": "array" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "fallbackAccess": { + "description": "Fallback access policy: ALLOW (default) or DENY", + "type": "string" + } + }, + "type": "object" } } }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } + "description": "Parameters for set_fallback_access" }, - "tags": [ - "Servicespools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/servicespools/{uuid}/set_fallback_access": { - "get": { - "summary": "Custom method set_fallback_access for ServicePool", - "description": "Execute custom method set_fallback_access for ServicePool", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], "responses": { "200": { "description": "Successfully retrieved object item", @@ -22035,8 +26286,8 @@ }, "/servicespools/{uuid}/get_fallback_access": { "get": { - "summary": "Custom method get_fallback_access for ServicePool", - "description": "Execute custom method get_fallback_access for ServicePool", + "summary": "Retrieve the current fallback access policy for a service pool (ServicePool)", + "description": "Retrieve the current fallback access policy for a service pool", "parameters": [ { "name": "uuid", @@ -22172,8 +26423,8 @@ }, "/servicespools/{uuid}/actions_list": { "get": { - "summary": "Custom method actions_list for ServicePool", - "description": "Execute custom method actions_list for ServicePool", + "summary": "List all calendar actions available for this service pool based on its service type and current state (ServicePool)", + "description": "List all calendar actions available for this service pool based on its service type and current state", "parameters": [ { "name": "uuid", @@ -22309,8 +26560,8 @@ }, "/servicespools/{uuid}/list_assignables": { "get": { - "summary": "Custom method list_assignables for ServicePool", - "description": "Execute custom method list_assignables for ServicePool", + "summary": "Enumerate all assignable services that can be used to create a new service pool (ServicePool)", + "description": "Enumerate all assignable services that can be used to create a new service pool", "parameters": [ { "name": "uuid", @@ -22445,9 +26696,9 @@ } }, "/servicespools/{uuid}/create_from_assignable": { - "get": { - "summary": "Custom method create_from_assignable for ServicePool", - "description": "Execute custom method create_from_assignable for ServicePool", + "post": { + "summary": "Create a new service pool from an existing assignable service (ServicePool)", + "description": "Create a new service pool from an existing assignable service", "parameters": [ { "name": "uuid", @@ -22460,6 +26711,27 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "user_id": { + "description": "UUID of the user who will own the new service pool", + "type": "string" + }, + "assignable_id": { + "description": "Identifier of the assignable service to create from", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for create_from_assignable" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -22603,9 +26875,9 @@ } }, "/servicespools/{uuid}/add_log": { - "get": { - "summary": "Custom method add_log for ServicePool", - "description": "Execute custom method add_log for ServicePool", + "post": { + "summary": "Append a log entry to the service pool audit trail (ServicePool)", + "description": "Append a log entry to the service pool audit trail", "parameters": [ { "name": "uuid", @@ -22618,6 +26890,31 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "message": { + "description": "Log message text", + "type": "string" + }, + "level": { + "description": "Log severity level (INFO, WARN, ERROR)", + "type": "string" + }, + "log_name": { + "description": "Optional log source name", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for add_log" + }, "responses": { "200": { "description": "Successfully retrieved object item", @@ -22913,9 +27210,87 @@ } ] }, + "post": { + "summary": "Create a new Services item", + "description": "Create a new Services item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved UserServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + } + }, + "404": { + "description": "UserServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { - "summary": "Creates a new Services items", - "description": "Update an existing Services item", + "summary": "Creates a new Services item", + "description": "Creates a new Services item. Deprecated: use POST //servicespools/{uuid}/services instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -22928,6 +27303,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved UserServiceItem item", @@ -22978,6 +27364,95 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Services items with OData in body", + "description": "Query Services items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all UserServiceItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/UserServiceItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/servicespools/{uuid}/services/{uuid}": { @@ -23557,9 +28032,9 @@ } }, "/servicespools/{uuid}/services/reset": { - "get": { - "summary": "Custom method reset for Services collection", - "description": "Execute custom method reset for Services collection", + "post": { + "summary": "Reset a user service to its initial state, removing any cached or intermediate data (Services collection)", + "description": "Reset a user service to its initial state, removing any cached or intermediate data", "parameters": [ { "name": "uuid", @@ -23625,9 +28100,9 @@ } }, "/servicespools/{uuid}/services/{uuid}/reset": { - "get": { - "summary": "Custom method reset for Services item", - "description": "Execute custom method reset for Services item", + "post": { + "summary": "Reset a user service to its initial state, removing any cached or intermediate data (Services item)", + "description": "Reset a user service to its initial state, removing any cached or intermediate data", "parameters": [ { "name": "uuid", @@ -23690,62 +28165,194 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/cache": { - "get": { - "summary": "Get all Cache items", - "description": "Retrieve a list of all Cache items", + } + }, + "/servicespools/{uuid}/cache": { + "get": { + "summary": "Get all Cache items", + "description": "Retrieve a list of all Cache items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all UserServiceItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/UserServiceItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new Cache item", + "description": "Create a new Cache item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved UserServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + } + }, + "404": { + "description": "UserServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new Cache item", + "description": "Creates a new Cache item. Deprecated: use POST //servicespools/{uuid}/cache instead.", + "deprecated": true, "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -23757,16 +28364,39 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved all UserServiceItem items", + "description": "Successfully retrieved UserServiceItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/UserServiceItem" + "$ref": "#/components/schemas/UserServiceItem" + } + } + } + }, + "404": { + "description": "UserServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -23796,9 +28426,9 @@ } ] }, - "put": { - "summary": "Creates a new Cache items", - "description": "Update an existing Cache item", + "query": { + "summary": "Query Cache items with OData in body", + "description": "Query Cache items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -23811,28 +28441,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved UserServiceItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserServiceItem" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "UserServiceItem item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all UserServiceItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/UserServiceItem" }, - "type": "object" + "type": "array" } } } @@ -24543,9 +29196,87 @@ } ] }, + "post": { + "summary": "Create a new Servers item", + "description": "Create a new Servers item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved UserServiceItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + } + }, + "404": { + "description": "UserServiceItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { - "summary": "Creates a new Servers items", - "description": "Update an existing Servers item", + "summary": "Creates a new Servers item", + "description": "Creates a new Servers item. Deprecated: use POST //servicespools/{uuid}/servers instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -24558,6 +29289,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserServiceItem" + } + } + }, + "description": "New UserServiceItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved UserServiceItem item", @@ -24608,6 +29350,95 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Servers items with OData in body", + "description": "Query Servers items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all UserServiceItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/UserServiceItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/servicespools/{uuid}/servers/{uuid}": { @@ -25290,9 +30121,87 @@ } ] }, + "post": { + "summary": "Create a new Groups item", + "description": "Create a new Groups item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved GroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { - "summary": "Creates a new Groups items", - "description": "Update an existing Groups item", + "summary": "Creates a new Groups item", + "description": "Creates a new Groups item. Deprecated: use POST //servicespools/{uuid}/groups instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -25305,6 +30214,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + }, + "description": "New GroupItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved GroupItem item", @@ -25355,6 +30275,95 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Groups items with OData in body", + "description": "Query Groups items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all GroupItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/servicespools/{uuid}/groups/{uuid}": { @@ -25473,9 +30482,124 @@ } ] }, - "put": { - "summary": "Update Groups item by UUID", - "description": "Update an existing Groups item by UUID", + "put": { + "summary": "Update Groups item by UUID", + "description": "Update an existing Groups item by UUID", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved GroupItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupItem" + } + } + } + }, + "404": { + "description": "GroupItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "delete": { + "summary": "Delete Groups item by UUID", + "description": "Delete a Groups item by UUID", "parameters": [ { "name": "uuid", @@ -25587,21 +30711,13 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Groups item by UUID", - "description": "Delete a Groups item by UUID", + } + }, + "/servicespools/{uuid}/groups/overview": { + "get": { + "summary": "Get overview of Groups items", + "description": "Retrieve an overview of Groups items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -25650,21 +30766,87 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved GroupItem item", + "description": "Successfully retrieved all GroupItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GroupItem" + "items": { + "$ref": "#/components/schemas/GroupItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/groups/tableinfo": { + "get": { + "summary": "Get table info of Groups items", + "description": "Retrieve table info of Groups items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "GroupItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -25704,10 +30886,10 @@ ] } }, - "/servicespools/{uuid}/groups/overview": { + "/servicespools/{uuid}/transports": { "get": { - "summary": "Get overview of Groups items", - "description": "Retrieve an overview of Groups items", + "summary": "Get all Transports items", + "description": "Retrieve a list of all Transports items", "parameters": [ { "name": "$filter", @@ -25771,12 +30953,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all GroupItem items", + "description": "Successfully retrieved all TransportItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/GroupItem" + "$ref": "#/components/schemas/TransportItem" }, "type": "array" } @@ -25807,12 +30989,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/groups/tableinfo": { - "get": { - "summary": "Get table info of Groups items", - "description": "Retrieve table info of Groups items", + }, + "post": { + "summary": "Create a new Transports item", + "description": "Create a new Transports item", "parameters": [ { "name": "uuid", @@ -25825,19 +31005,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransportItem" + } + } + }, + "description": "New TransportItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved TransportItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/TransportItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "TransportItem item not found", "content": { "application/json": { "schema": { @@ -25875,62 +31066,12 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/transports": { - "get": { - "summary": "Get all Transports items", - "description": "Retrieve a list of all Transports items", + }, + "put": { + "summary": "Creates a new Transports item", + "description": "Creates a new Transports item. Deprecated: use POST //servicespools/{uuid}/transports instead.", + "deprecated": true, "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -25942,16 +31083,39 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransportItem" + } + } + }, + "description": "New TransportItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved all TransportItem items", + "description": "Successfully retrieved TransportItem item", "content": { "application/json": { "schema": { - "items": { - "$ref": "#/components/schemas/TransportItem" + "$ref": "#/components/schemas/TransportItem" + } + } + } + }, + "404": { + "description": "TransportItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } }, - "type": "array" + "type": "object" } } } @@ -25981,9 +31145,9 @@ } ] }, - "put": { - "summary": "Creates a new Transports items", - "description": "Update an existing Transports item", + "query": { + "summary": "Query Transports items with OData in body", + "description": "Query Transports items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -25996,28 +31160,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved TransportItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransportItem" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "TransportItem item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all TransportItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/TransportItem" }, - "type": "object" + "type": "array" } } } @@ -26672,9 +31859,87 @@ } ] }, + "post": { + "summary": "Create a new Publications item", + "description": "Create a new Publications item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicationItem" + } + } + }, + "description": "New PublicationItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved PublicationItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicationItem" + } + } + } + }, + "404": { + "description": "PublicationItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { - "summary": "Creates a new Publications items", - "description": "Update an existing Publications item", + "summary": "Creates a new Publications item", + "description": "Creates a new Publications item. Deprecated: use POST //servicespools/{uuid}/publications instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -26687,6 +31952,17 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicationItem" + } + } + }, + "description": "New PublicationItem item to create" + }, "responses": { "200": { "description": "Successfully retrieved PublicationItem item", @@ -26737,6 +32013,95 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Publications items with OData in body", + "description": "Query Publications items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all PublicationItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/PublicationItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/servicespools/{uuid}/publications/{uuid}": { @@ -27191,10 +32556,316 @@ ] } }, - "/servicespools/{uuid}/publications/tableinfo": { - "get": { - "summary": "Get table info of Publications items", - "description": "Retrieve table info of Publications items", + "/servicespools/{uuid}/publications/tableinfo": { + "get": { + "summary": "Get table info of Publications items", + "description": "Retrieve table info of Publications items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" + } + } + } + }, + "404": { + "description": "TableInfo item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/publications/publish": { + "post": { + "summary": "Start a new publication for a deployed service, optionally with a changelog message (Publications collection)", + "description": "Start a new publication for a deployed service, optionally with a changelog message", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "changelog": { + "description": "Optional changelog message for the publication", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for publish" + }, + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/publications/{uuid}/publish": { + "post": { + "summary": "Start a new publication for a deployed service, optionally with a changelog message (Publications item)", + "description": "Start a new publication for a deployed service, optionally with a changelog message", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "changelog": { + "description": "Optional changelog message for the publication", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "Parameters for publish" + }, + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/publications/cancel": { + "post": { + "summary": "Cancel a running publication; invoking twice forces an immediate cancellation (Publications collection)", + "description": "Cancel a running publication; invoking twice forces an immediate cancellation", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/publications/{uuid}/cancel": { + "post": { + "summary": "Cancel a running publication; invoking twice forces an immediate cancellation (Publications item)", + "description": "Cancel a running publication; invoking twice forces an immediate cancellation", "parameters": [ { "name": "uuid", @@ -27209,17 +32880,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved object item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "type": "object" } } } }, "404": { - "description": "TableInfo item not found", + "description": "object item not found", "content": { "application/json": { "schema": { @@ -27259,11 +32930,60 @@ ] } }, - "/servicespools/{uuid}/publications/publish": { + "/servicespools/{uuid}/changelog": { "get": { - "summary": "Custom method publish for Publications collection", - "description": "Execute custom method publish for Publications collection", + "summary": "Get all Changelog items", + "description": "Retrieve a list of all Changelog items", "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, { "name": "uuid", "in": "path", @@ -27277,26 +32997,14 @@ ], "responses": { "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", + "description": "Successfully retrieved all ChangelogItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/ChangelogItem" }, - "type": "object" + "type": "array" } } } @@ -27325,12 +33033,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/publications/{uuid}/publish": { - "get": { - "summary": "Custom method publish for Publications item", - "description": "Execute custom method publish for Publications item", + }, + "post": { + "summary": "Create a new Changelog item", + "description": "Create a new Changelog item", "parameters": [ { "name": "uuid", @@ -27343,19 +33049,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangelogItem" + } + } + }, + "description": "New ChangelogItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved ChangelogItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/ChangelogItem" } } } }, "404": { - "description": "object item not found", + "description": "ChangelogItem item not found", "content": { "application/json": { "schema": { @@ -27393,12 +33110,11 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/publications/cancel": { - "get": { - "summary": "Custom method cancel for Publications collection", - "description": "Execute custom method cancel for Publications collection", + }, + "put": { + "summary": "Creates a new Changelog item", + "description": "Creates a new Changelog item. Deprecated: use POST //servicespools/{uuid}/changelog instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -27411,19 +33127,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangelogItem" + } + } + }, + "description": "New ChangelogItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved ChangelogItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/ChangelogItem" } } } }, "404": { - "description": "object item not found", + "description": "ChangelogItem item not found", "content": { "application/json": { "schema": { @@ -27461,12 +33188,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/publications/{uuid}/cancel": { - "get": { - "summary": "Custom method cancel for Publications item", - "description": "Execute custom method cancel for Publications item", + }, + "query": { + "summary": "Query Changelog items with OData in body", + "description": "Query Changelog items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -27479,28 +33204,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } }, - "404": { - "description": "object item not found", + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all ChangelogItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/ChangelogItem" }, - "type": "object" + "type": "array" } } } @@ -27531,11 +33279,21 @@ ] } }, - "/servicespools/{uuid}/changelog": { + "/servicespools/{uuid}/changelog/{uuid}": { "get": { - "summary": "Get all Changelog items", - "description": "Retrieve a list of all Changelog items", + "summary": "Get Changelog item by UUID", + "description": "Retrieve a Changelog item by UUID", "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + }, { "name": "$filter", "in": "query", @@ -27584,70 +33342,6 @@ "minimum": 0 }, "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved all ChangelogItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/ChangelogItem" - }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Servicespools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - }, - "put": { - "summary": "Creates a new Changelog items", - "description": "Update an existing Changelog item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" } ], "responses": { @@ -27700,12 +33394,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/changelog/{uuid}": { - "get": { - "summary": "Get Changelog item by UUID", - "description": "Retrieve a Changelog item by UUID", + }, + "put": { + "summary": "Update Changelog item by UUID", + "description": "Update an existing Changelog item by UUID", "parameters": [ { "name": "uuid", @@ -27818,9 +33510,9 @@ } ] }, - "put": { - "summary": "Update Changelog item by UUID", - "description": "Update an existing Changelog item by UUID", + "delete": { + "summary": "Delete Changelog item by UUID", + "description": "Delete a Changelog item by UUID", "parameters": [ { "name": "uuid", @@ -27932,21 +33624,13 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Changelog item by UUID", - "description": "Delete a Changelog item by UUID", + } + }, + "/servicespools/{uuid}/changelog/overview": { + "get": { + "summary": "Get overview of Changelog items", + "description": "Retrieve an overview of Changelog items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -27995,21 +33679,87 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved ChangelogItem item", + "description": "Successfully retrieved all ChangelogItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ChangelogItem" + "items": { + "$ref": "#/components/schemas/ChangelogItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/changelog/tableinfo": { + "get": { + "summary": "Get table info of Changelog items", + "description": "Retrieve table info of Changelog items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "ChangelogItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -28049,10 +33799,10 @@ ] } }, - "/servicespools/{uuid}/changelog/overview": { + "/servicespools/{uuid}/access": { "get": { - "summary": "Get overview of Changelog items", - "description": "Retrieve an overview of Changelog items", + "summary": "Get all Access items", + "description": "Retrieve a list of all Access items", "parameters": [ { "name": "$filter", @@ -28116,12 +33866,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all ChangelogItem items", + "description": "Successfully retrieved all AccessCalendarItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/ChangelogItem" + "$ref": "#/components/schemas/AccessCalendarItem" }, "type": "array" } @@ -28152,12 +33902,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/changelog/tableinfo": { - "get": { - "summary": "Get table info of Changelog items", - "description": "Retrieve table info of Changelog items", + }, + "post": { + "summary": "Create a new Access item", + "description": "Create a new Access item", "parameters": [ { "name": "uuid", @@ -28170,19 +33918,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessCalendarItem" + } + } + }, + "description": "New AccessCalendarItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved AccessCalendarItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/AccessCalendarItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "AccessCalendarItem item not found", "content": { "application/json": { "schema": { @@ -28220,62 +33979,89 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/access": { - "get": { - "summary": "Get all Access items", - "description": "Retrieve a list of all Access items", + }, + "put": { + "summary": "Creates a new Access item", + "description": "Creates a new Access item. Deprecated: use POST //servicespools/{uuid}/access instead.", + "deprecated": true, "parameters": [ { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, + "name": "uuid", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "format": "uuid" }, - "description": "Select properties to be returned" + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessCalendarItem" + } + } }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" + "description": "New AccessCalendarItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved AccessCalendarItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessCalendarItem" + } + } + } }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" + "404": { + "description": "AccessCalendarItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, + "udsApiAuth": [] + } + ] + }, + "query": { + "summary": "Query Access items with OData in body", + "description": "Query Access items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [ { "name": "uuid", "in": "path", @@ -28287,6 +34073,41 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, "responses": { "200": { "description": "Successfully retrieved all AccessCalendarItem items", @@ -28325,10 +34146,12 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new Access items", - "description": "Update an existing Access item", + } + }, + "/servicespools/{uuid}/access/{uuid}": { + "get": { + "summary": "Get Access item by UUID", + "description": "Retrieve a Access item by UUID", "parameters": [ { "name": "uuid", @@ -28339,6 +34162,55 @@ "format": "uuid" }, "description": "The UUID of the item" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" } ], "responses": { @@ -28391,12 +34263,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/access/{uuid}": { - "get": { - "summary": "Get Access item by UUID", - "description": "Retrieve a Access item by UUID", + }, + "put": { + "summary": "Update Access item by UUID", + "description": "Update an existing Access item by UUID", "parameters": [ { "name": "uuid", @@ -28509,9 +34379,9 @@ } ] }, - "put": { - "summary": "Update Access item by UUID", - "description": "Update an existing Access item by UUID", + "delete": { + "summary": "Delete Access item by UUID", + "description": "Delete a Access item by UUID", "parameters": [ { "name": "uuid", @@ -28623,21 +34493,13 @@ "udsApiAuth": [] } ] - }, - "delete": { - "summary": "Delete Access item by UUID", - "description": "Delete a Access item by UUID", + } + }, + "/servicespools/{uuid}/access/overview": { + "get": { + "summary": "Get overview of Access items", + "description": "Retrieve an overview of Access items", "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - }, { "name": "$filter", "in": "query", @@ -28686,21 +34548,87 @@ "minimum": 0 }, "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" } ], "responses": { "200": { - "description": "Successfully retrieved AccessCalendarItem item", + "description": "Successfully retrieved all AccessCalendarItem items", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessCalendarItem" + "items": { + "$ref": "#/components/schemas/AccessCalendarItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/servicespools/{uuid}/access/tableinfo": { + "get": { + "summary": "Get table info of Access items", + "description": "Retrieve table info of Access items", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved TableInfo item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TableInfo" } } } }, "404": { - "description": "AccessCalendarItem item not found", + "description": "TableInfo item not found", "content": { "application/json": { "schema": { @@ -28740,10 +34668,10 @@ ] } }, - "/servicespools/{uuid}/access/overview": { + "/servicespools/{uuid}/actions": { "get": { - "summary": "Get overview of Access items", - "description": "Retrieve an overview of Access items", + "summary": "Get all Actions items", + "description": "Retrieve a list of all Actions items", "parameters": [ { "name": "$filter", @@ -28807,12 +34735,12 @@ ], "responses": { "200": { - "description": "Successfully retrieved all AccessCalendarItem items", + "description": "Successfully retrieved all ActionCalendarItem items", "content": { "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/AccessCalendarItem" + "$ref": "#/components/schemas/ActionCalendarItem" }, "type": "array" } @@ -28843,12 +34771,10 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/access/tableinfo": { - "get": { - "summary": "Get table info of Access items", - "description": "Retrieve table info of Access items", + }, + "post": { + "summary": "Create a new Actions item", + "description": "Create a new Actions item", "parameters": [ { "name": "uuid", @@ -28861,19 +34787,108 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActionCalendarItem" + } + } + }, + "description": "New ActionCalendarItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved TableInfo item", + "description": "Successfully retrieved ActionCalendarItem item", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TableInfo" + "$ref": "#/components/schemas/ActionCalendarItem" } } } }, "404": { - "description": "TableInfo item not found", + "description": "ActionCalendarItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Servicespools" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new Actions item", + "description": "Creates a new Actions item. Deprecated: use POST //servicespools/{uuid}/actions instead.", + "deprecated": true, + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActionCalendarItem" + } + } + }, + "description": "New ActionCalendarItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved ActionCalendarItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActionCalendarItem" + } + } + } + }, + "404": { + "description": "ActionCalendarItem item not found", "content": { "application/json": { "schema": { @@ -28911,62 +34926,11 @@ "udsApiAuth": [] } ] - } - }, - "/servicespools/{uuid}/actions": { - "get": { - "summary": "Get all Actions items", - "description": "Retrieve a list of all Actions items", + }, + "query": { + "summary": "Query Actions items with OData in body", + "description": "Query Actions items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" - }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, { "name": "uuid", "in": "path", @@ -28978,82 +34942,51 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved all ActionCalendarItem items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/ActionCalendarItem" + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" }, - "type": "object" - } + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } - } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" }, - "tags": [ - "Servicespools" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - }, - "put": { - "summary": "Creates a new Actions items", - "description": "Update an existing Actions item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], "responses": { "200": { - "description": "Successfully retrieved ActionCalendarItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ActionCalendarItem" - } - } - } - }, - "404": { - "description": "ActionCalendarItem item not found", + "description": "Successfully retrieved all ActionCalendarItem items", "content": { "application/json": { "schema": { - "properties": { - "detail": { - "type": "string" - } + "items": { + "$ref": "#/components/schemas/ActionCalendarItem" }, - "type": "object" + "type": "array" } } } @@ -29605,9 +35538,9 @@ } }, "/servicespools/{uuid}/actions/execute": { - "get": { - "summary": "Custom method execute for Actions collection", - "description": "Execute custom method execute for Actions collection", + "post": { + "summary": "Execute a scheduled calendar action immediately, bypassing the calendar schedule (Actions collection)", + "description": "Execute a scheduled calendar action immediately, bypassing the calendar schedule", "parameters": [ { "name": "uuid", @@ -29673,9 +35606,9 @@ } }, "/servicespools/{uuid}/actions/{uuid}/execute": { - "get": { - "summary": "Custom method execute for Actions item", - "description": "Execute custom method execute for Actions item", + "post": { + "summary": "Execute a scheduled calendar action immediately, bypassing the calendar schedule (Actions item)", + "description": "Execute a scheduled calendar action immediately, bypassing the calendar schedule", "parameters": [ { "name": "uuid", @@ -29834,9 +35767,76 @@ } ] }, + "post": { + "summary": "Create a new Transport item", + "description": "Create a new Transport item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransportItem" + } + } + }, + "description": "New TransportItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved TransportItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransportItem" + } + } + } + }, + "404": { + "description": "TransportItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Transports" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Transport item", - "description": "Creates a new, nonexisting Transport item", + "description": "Creates a new Transport item. Deprecated: use POST //transports instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -29899,6 +35899,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Transport items with OData in body", + "description": "Query Transport items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all TransportItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TransportItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Transports" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/transports/{uuid}": { @@ -30642,9 +36720,76 @@ } ] }, + "post": { + "summary": "Create a new Tunnels item", + "description": "Create a new Tunnels item", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunnelItem" + } + } + }, + "description": "New TunnelItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved TunnelItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunnelItem" + } + } + } + }, + "404": { + "description": "TunnelItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, "put": { "summary": "Creates a new Tunnels item", - "description": "Creates a new, nonexisting Tunnels item", + "description": "Creates a new Tunnels item. Deprecated: use POST //tunnels/tunnels instead.", + "deprecated": true, "parameters": [], "requestBody": { "required": true, @@ -30707,6 +36852,84 @@ "udsApiAuth": [] } ] + }, + "query": { + "summary": "Query Tunnels items with OData in body", + "description": "Query Tunnels items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" + }, + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" + }, + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" + }, + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" + }, + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" + } + } + }, + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, + "responses": { + "200": { + "description": "Successfully retrieved all TunnelItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TunnelItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] } }, "/tunnels/tunnels/{uuid}": { @@ -31175,12 +37398,374 @@ "udsApiAuth": [] } ] - } - }, - "/tunnels/tunnels/{uuid}/tunnels": { - "get": { - "summary": "Custom method tunnels for Tunnels", - "description": "Execute custom method tunnels for Tunnels", + } + }, + "/tunnels/tunnels/{uuid}/tunnels": { + "get": { + "summary": "List tunnel servers that are not yet assigned to this tunnel group (Tunnels)", + "description": "List tunnel servers that are not yet assigned to this tunnel group", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/tunnels/tunnels/{uuid}/assign": { + "post": { + "summary": "Assign an existing server to this tunnel group (Tunnels)", + "description": "Assign an existing server to this tunnel group", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved object item", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + }, + "404": { + "description": "object item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/tunnels/tunnels/gui": { + "get": { + "summary": "Get GUI representation of Tunnels items", + "description": "Retrieve the GUI representation of Tunnels items", + "parameters": [], + "responses": { + "200": { + "description": "Successfully retrieved all GuiElement items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/GuiElement" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + } + }, + "/tunnels/tunnels/{uuid}/servers": { + "get": { + "summary": "Get all TunnelServers items", + "description": "Retrieve a list of all TunnelServers items", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Filter items by property values (e.g., $filter=property eq value)" + }, + { + "name": "$select", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Select properties to be returned" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Order items by property values (e.g., $orderby=property desc)" + }, + { + "name": "$top", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 1 + }, + "description": "Show only the first N items" + }, + { + "name": "$skip", + "in": "query", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "description": "Skip the first N items" + }, + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved all TunnelServerItem items", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/TunnelServerItem" + }, + "type": "array" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "post": { + "summary": "Create a new TunnelServers item", + "description": "Create a new TunnelServers item", + "parameters": [ + { + "name": "uuid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "description": "The UUID of the item" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunnelServerItem" + } + } + }, + "description": "New TunnelServerItem item to create" + }, + "responses": { + "200": { + "description": "Successfully retrieved TunnelServerItem item", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunnelServerItem" + } + } + } + }, + "404": { + "description": "TunnelServerItem item not found", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "403": { + "description": "Forbidden. You do not have permission to access this resource with your current role.", + "content": { + "application/json": { + "schema": { + "properties": { + "detail": { + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "tags": [ + "Tunnels" + ], + "security": [ + { + "udsApiAuth": [] + } + ] + }, + "put": { + "summary": "Creates a new TunnelServers item", + "description": "Creates a new TunnelServers item. Deprecated: use POST //tunnels/tunnels/{uuid}/servers instead.", + "deprecated": true, "parameters": [ { "name": "uuid", @@ -31193,19 +37778,30 @@ "description": "The UUID of the item" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunnelServerItem" + } + } + }, + "description": "New TunnelServerItem item to create" + }, "responses": { "200": { - "description": "Successfully retrieved object item", + "description": "Successfully retrieved TunnelServerItem item", "content": { "application/json": { "schema": { - "type": "object" + "$ref": "#/components/schemas/TunnelServerItem" } } } }, "404": { - "description": "object item not found", + "description": "TunnelServerItem item not found", "content": { "application/json": { "schema": { @@ -31243,12 +37839,10 @@ "udsApiAuth": [] } ] - } - }, - "/tunnels/tunnels/{uuid}/assign": { - "get": { - "summary": "Custom method assign for Tunnels", - "description": "Execute custom method assign for Tunnels", + }, + "query": { + "summary": "Query TunnelServers items with OData in body", + "description": "Query TunnelServers items using OData parameters ($filter, $orderby, $top, $skip, $select) in the request body. Equivalent to GET but allows complex queries beyond URL length limits.", "parameters": [ { "name": "uuid", @@ -31261,168 +37855,41 @@ "description": "The UUID of the item" } ], - "responses": { - "200": { - "description": "Successfully retrieved object item", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "404": { - "description": "object item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "$filter": { + "description": "Filter items by property values (e.g., name eq \"value\")", + "type": "string" }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "$orderby": { + "description": "Order items by property values (e.g., name desc)", + "type": "string" }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Tunnels" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/tunnels/tunnels/gui": { - "get": { - "summary": "Get GUI representation of Tunnels items", - "description": "Retrieve the GUI representation of Tunnels items", - "parameters": [], - "responses": { - "200": { - "description": "Successfully retrieved all GuiElement items", - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/GuiElement" + "$top": { + "format": "int32", + "description": "Show only the first N items", + "type": "integer" }, - "type": "array" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } + "$skip": { + "format": "int32", + "description": "Skip the first N items", + "type": "integer" }, - "type": "object" - } + "$select": { + "description": "Select properties to be returned", + "type": "string" + } + }, + "type": "object" } } - } - }, - "tags": [ - "Tunnels" - ], - "security": [ - { - "udsApiAuth": [] - } - ] - } - }, - "/tunnels/tunnels/{uuid}/servers": { - "get": { - "summary": "Get all TunnelServers items", - "description": "Retrieve a list of all TunnelServers items", - "parameters": [ - { - "name": "$filter", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Filter items by property values (e.g., $filter=property eq value)" - }, - { - "name": "$select", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Select properties to be returned" - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "schema": { - "type": "string" - }, - "description": "Order items by property values (e.g., $orderby=property desc)" - }, - { - "name": "$top", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 1 - }, - "description": "Show only the first N items" }, - { - "name": "$skip", - "in": "query", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "description": "Skip the first N items" - }, - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], + "description": "OData query parameters ($filter, $orderby, $top, $skip, $select)" + }, "responses": { "200": { "description": "Successfully retrieved all TunnelServerItem items", @@ -31461,72 +37928,6 @@ "udsApiAuth": [] } ] - }, - "put": { - "summary": "Creates a new TunnelServers items", - "description": "Update an existing TunnelServers item", - "parameters": [ - { - "name": "uuid", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - }, - "description": "The UUID of the item" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved TunnelServerItem item", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TunnelServerItem" - } - } - } - }, - "404": { - "description": "TunnelServerItem item not found", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "403": { - "description": "Forbidden. You do not have permission to access this resource with your current role.", - "content": { - "application/json": { - "schema": { - "properties": { - "detail": { - "type": "string" - } - }, - "type": "object" - } - } - } - } - }, - "tags": [ - "Tunnels" - ], - "security": [ - { - "udsApiAuth": [] - } - ] } }, "/tunnels/tunnels/{uuid}/servers/{uuid}": { @@ -32050,9 +38451,9 @@ } }, "/tunnels/tunnels/{uuid}/servers/maintenance": { - "get": { - "summary": "Custom method maintenance for TunnelServers collection", - "description": "Execute custom method maintenance for TunnelServers collection", + "post": { + "summary": "Toggle maintenance mode for a tunnel server (enable if disabled, disable if enabled) (TunnelServers collection)", + "description": "Toggle maintenance mode for a tunnel server (enable if disabled, disable if enabled)", "parameters": [ { "name": "uuid", @@ -32118,9 +38519,9 @@ } }, "/tunnels/tunnels/{uuid}/servers/{uuid}/maintenance": { - "get": { - "summary": "Custom method maintenance for TunnelServers item", - "description": "Execute custom method maintenance for TunnelServers item", + "post": { + "summary": "Toggle maintenance mode for a tunnel server (enable if disabled, disable if enabled) (TunnelServers item)", + "description": "Toggle maintenance mode for a tunnel server (enable if disabled, disable if enabled)", "parameters": [ { "name": "uuid", diff --git a/doc/api/rest.yaml b/doc/api/rest.yaml index 00a53f39c..e30265ea4 100644 --- a/doc/api/rest.yaml +++ b/doc/api/rest.yaml @@ -7076,8 +7076,50 @@ paths: summary: Get all Account items tags: - Accounts + post: + description: Create a new Account item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountItem' + description: New AccountItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AccountItem' + description: Successfully retrieved AccountItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: AccountItem item not found + security: + - udsApiAuth: [] + summary: Create a new Account item + tags: + - Accounts put: - description: Creates a new, nonexisting Account item + deprecated: true + description: 'Creates a new Account item. Deprecated: use POST //accounts instead.' parameters: [] requestBody: content: @@ -7117,6 +7159,60 @@ paths: summary: Creates a new Account item tags: - Accounts + query: + description: Query Account items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AccountItem' + type: array + description: Successfully retrieved all AccountItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Account items with OData in body + tags: + - Accounts /accounts/gui: get: description: Retrieve the GUI representation of Account items @@ -7408,8 +7504,9 @@ paths: tags: - Accounts /accounts/{uuid}/clear: - get: - description: Execute custom method clear for Account + post: + description: Remove all usage records associated with an account, permanently + deleting them parameters: - description: The UUID of the item in: path @@ -7446,7 +7543,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method clear for Account + summary: Remove all usage records associated with an account, permanently deleting + them (Account) tags: - Accounts /accounts/{uuid}/log: @@ -7485,8 +7583,9 @@ paths: tags: - Accounts /accounts/{uuid}/timemark: - get: - description: Execute custom method timemark for Account + post: + description: Set a timestamp marker on an account to indicate the last processed + usage record, enabling incremental data processing parameters: - description: The UUID of the item in: path @@ -7523,7 +7622,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method timemark for Account + summary: Set a timestamp marker on an account to indicate the last processed + usage record, enabling incremental data processing (Account) tags: - Accounts /accounts/{uuid}/usage: @@ -7595,8 +7695,58 @@ paths: summary: Get all Usage items tags: - Accounts + post: + description: Create a new Usage item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountItem' + description: New AccountItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AccountItem' + description: Successfully retrieved AccountItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: AccountItem item not found + security: + - udsApiAuth: [] + summary: Create a new Usage item + tags: + - Accounts put: - description: Update an existing Usage item + deprecated: true + description: 'Creates a new Usage item. Deprecated: use POST //accounts/{uuid}/usage + instead.' parameters: - description: The UUID of the item in: path @@ -7605,6 +7755,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountItem' + description: New AccountItem item to create + required: true responses: '200': content: @@ -7633,7 +7790,68 @@ paths: description: AccountItem item not found security: - udsApiAuth: [] - summary: Creates a new Usage items + summary: Creates a new Usage item + tags: + - Accounts + query: + description: Query Usage items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AccountItem' + type: array + description: Successfully retrieved all AccountItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Usage items with OData in body tags: - Accounts /accounts/{uuid}/usage/overview: @@ -8035,8 +8253,51 @@ paths: summary: Get all Server items tags: - Actortokens + post: + description: Create a new Server item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ActorTokenItem' + description: New ActorTokenItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ActorTokenItem' + description: Successfully retrieved ActorTokenItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ActorTokenItem item not found + security: + - udsApiAuth: [] + summary: Create a new Server item + tags: + - Actortokens put: - description: Creates a new, nonexisting Server item + deprecated: true + description: 'Creates a new Server item. Deprecated: use POST //actortokens + instead.' parameters: [] requestBody: content: @@ -8076,6 +8337,60 @@ paths: summary: Creates a new Server item tags: - Actortokens + query: + description: Query Server items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ActorTokenItem' + type: array + description: Successfully retrieved all ActorTokenItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Server items with OData in body + tags: + - Actortokens /actortokens/overview: get: description: Retrieve an overview of Server items @@ -8544,8 +8859,8 @@ paths: summary: Get all Authenticator items tags: - Authenticators - put: - description: Creates a new, nonexisting Authenticator item + post: + description: Create a new Authenticator item parameters: [] requestBody: content: @@ -8582,15 +8897,112 @@ paths: description: AuthenticatorItem item not found security: - udsApiAuth: [] - summary: Creates a new Authenticator item + summary: Create a new Authenticator item tags: - Authenticators - /authenticators/gui/{type}: - get: - description: Retrieve a Authenticator GUI representation by type - parameters: - - description: The type of the Authenticator GUI representation - in: path + put: + deprecated: true + description: 'Creates a new Authenticator item. Deprecated: use POST //authenticators + instead.' + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorItem' + description: New AuthenticatorItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AuthenticatorItem' + description: Successfully retrieved AuthenticatorItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: AuthenticatorItem item not found + security: + - udsApiAuth: [] + summary: Creates a new Authenticator item + tags: + - Authenticators + query: + description: Query Authenticator items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AuthenticatorItem' + type: array + description: Successfully retrieved all AuthenticatorItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Authenticator items with OData in body + tags: + - Authenticators + /authenticators/gui/{type}: + get: + description: Retrieve a Authenticator GUI representation by type + parameters: + - description: The type of the Authenticator GUI representation + in: path name: type required: true schema: @@ -9026,8 +9438,58 @@ paths: summary: Get all Groups items tags: - Authenticators + post: + description: Create a new Groups item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: Successfully retrieved GroupItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: GroupItem item not found + security: + - udsApiAuth: [] + summary: Create a new Groups item + tags: + - Authenticators put: - description: Update an existing Groups item + deprecated: true + description: 'Creates a new Groups item. Deprecated: use POST //authenticators/{uuid}/groups + instead.' parameters: - description: The UUID of the item in: path @@ -9036,6 +9498,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true responses: '200': content: @@ -9064,7 +9533,68 @@ paths: description: GroupItem item not found security: - udsApiAuth: [] - summary: Creates a new Groups items + summary: Creates a new Groups item + tags: + - Authenticators + query: + description: Query Groups items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupItem' + type: array + description: Successfully retrieved all GroupItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Groups items with OData in body tags: - Authenticators /authenticators/{uuid}/groups/overview: @@ -9181,7 +9711,7 @@ paths: - Authenticators /authenticators/{uuid}/groups/services_pools: get: - description: Execute custom method services_pools for Groups collection + description: Retrieve all service pools that this group has access to parameters: - description: The UUID of the item in: path @@ -9218,7 +9748,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method services_pools for Groups collection + summary: Retrieve all service pools that this group has access to (Groups collection) tags: - Authenticators /authenticators/{uuid}/groups/tableinfo: @@ -9265,7 +9795,7 @@ paths: - Authenticators /authenticators/{uuid}/groups/users: get: - description: Execute custom method users for Groups collection + description: List all users belonging to this group parameters: - description: The UUID of the item in: path @@ -9302,7 +9832,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method users for Groups collection + summary: List all users belonging to this group (Groups collection) tags: - Authenticators /authenticators/{uuid}/groups/{uuid}: @@ -9576,7 +10106,7 @@ paths: - Authenticators /authenticators/{uuid}/groups/{uuid}/services_pools: get: - description: Execute custom method services_pools for Groups item + description: Retrieve all service pools that this group has access to parameters: - description: The UUID of the item in: path @@ -9613,12 +10143,12 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method services_pools for Groups item + summary: Retrieve all service pools that this group has access to (Groups item) tags: - Authenticators /authenticators/{uuid}/groups/{uuid}/users: get: - description: Execute custom method users for Groups item + description: List all users belonging to this group parameters: - description: The UUID of the item in: path @@ -9655,7 +10185,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method users for Groups item + summary: List all users belonging to this group (Groups item) tags: - Authenticators /authenticators/{uuid}/log: @@ -9695,7 +10225,7 @@ paths: - Authenticators /authenticators/{uuid}/search: get: - description: Execute custom method search for Authenticator + description: Search users or groups in the authenticator by name or identifier parameters: - description: The UUID of the item in: path @@ -9732,7 +10262,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method search for Authenticator + summary: Search users or groups in the authenticator by name or identifier (Authenticator) tags: - Authenticators /authenticators/{uuid}/users: @@ -9804,8 +10334,8 @@ paths: summary: Get all Users items tags: - Authenticators - put: - description: Update an existing Users item + post: + description: Create a new Users item parameters: - description: The UUID of the item in: path @@ -9814,6 +10344,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserItem' + description: New UserItem item to create + required: true responses: '200': content: @@ -9842,13 +10379,13 @@ paths: description: UserItem item not found security: - udsApiAuth: [] - summary: Creates a new Users items + summary: Create a new Users item tags: - Authenticators - /authenticators/{uuid}/users/addToGroup: - post: + put: deprecated: true - description: Add this user to an existing group within the same authenticator + description: 'Creates a new Users item. Deprecated: use POST //authenticators/{uuid}/users + instead.' parameters: - description: The UUID of the item in: path @@ -9861,20 +10398,16 @@ paths: content: application/json: schema: - properties: - group: - description: UUID of the group to add the user to - type: string - type: object - description: Parameters for addToGroup + $ref: '#/components/schemas/UserItem' + description: New UserItem item to create required: true responses: '200': content: application/json: schema: - type: object - description: Successfully retrieved object item + $ref: '#/components/schemas/UserItem' + description: Successfully retrieved UserItem item '403': content: application/json: @@ -9893,16 +10426,16 @@ paths: detail: type: string type: object - description: object item not found + description: UserItem item not found security: - udsApiAuth: [] - summary: Add this user to an existing group within the same authenticator (Users - collection) + summary: Creates a new Users item tags: - Authenticators - /authenticators/{uuid}/users/add_to_group: - get: - description: Execute custom method add_to_group for Users collection + query: + description: Query Users items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. parameters: - description: The UUID of the item in: path @@ -9911,13 +10444,40 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false responses: '200': content: application/json: schema: - type: object - description: Successfully retrieved object item + items: + $ref: '#/components/schemas/UserItem' + type: array + description: Successfully retrieved all UserItem items '403': content: application/json: @@ -9928,25 +10488,15 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. - '404': - content: - application/json: - schema: - properties: - detail: - type: string - type: object - description: object item not found security: - udsApiAuth: [] - summary: Custom method add_to_group for Users collection + summary: Query Users items with OData in body tags: - Authenticators - /authenticators/{uuid}/users/cleanRelated: + /authenticators/{uuid}/users/addToGroup: post: deprecated: true - description: Remove all related data for this user (assigned services, cached - entries, pending operations) + description: Add this user to an existing group within the same authenticator parameters: - description: The UUID of the item in: path @@ -9955,6 +10505,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + group: + description: UUID of the group to add the user to + type: string + type: object + description: Parameters for addToGroup + required: true responses: '200': content: @@ -9983,15 +10544,115 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Remove all related data for this user (assigned services, cached entries, - pending operations) (Users collection) + summary: Add this user to an existing group within the same authenticator (Users + collection) tags: - Authenticators - /authenticators/{uuid}/users/clean_related: - get: - description: Execute custom method clean_related for Users collection - parameters: - - description: The UUID of the item + /authenticators/{uuid}/users/add_to_group: + post: + description: Add this user to an existing group within the same authenticator + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + group: + description: UUID of the group to add the user to + type: string + type: object + description: Parameters for add_to_group + required: true + responses: + '200': + content: + application/json: + schema: + type: object + description: Successfully retrieved object item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: object item not found + security: + - udsApiAuth: [] + summary: Add this user to an existing group within the same authenticator (Users + collection) + tags: + - Authenticators + /authenticators/{uuid}/users/cleanRelated: + post: + deprecated: true + description: Remove all related data for this user (assigned services, cached + entries, pending operations) + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + responses: + '200': + content: + application/json: + schema: + type: object + description: Successfully retrieved object item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: object item not found + security: + - udsApiAuth: [] + summary: Remove all related data for this user (assigned services, cached entries, + pending operations) (Users collection) + tags: + - Authenticators + /authenticators/{uuid}/users/clean_related: + post: + description: Remove all related data for this user (assigned services, cached + entries, pending operations) + parameters: + - description: The UUID of the item in: path name: uuid required: true @@ -10026,7 +10687,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method clean_related for Users collection + summary: Remove all related data for this user (assigned services, cached entries, + pending operations) (Users collection) tags: - Authenticators /authenticators/{uuid}/users/enableClientLogging: @@ -10075,8 +10737,9 @@ paths: tags: - Authenticators /authenticators/{uuid}/users/enable_client_logging: - get: - description: Execute custom method enable_client_logging for Users collection + post: + description: Enable or disable client-side logging for this user (toggles on + each invocation) parameters: - description: The UUID of the item in: path @@ -10113,7 +10776,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method enable_client_logging for Users collection + summary: Enable or disable client-side logging for this user (toggles on each + invocation) (Users collection) tags: - Authenticators /authenticators/{uuid}/users/overview: @@ -10231,7 +10895,7 @@ paths: - Authenticators /authenticators/{uuid}/users/services_pools: get: - description: Execute custom method services_pools for Users collection + description: Retrieve all service pools in which this user has active assignments parameters: - description: The UUID of the item in: path @@ -10268,7 +10932,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method services_pools for Users collection + summary: Retrieve all service pools in which this user has active assignments + (Users collection) tags: - Authenticators /authenticators/{uuid}/users/tableinfo: @@ -10358,7 +11023,7 @@ paths: - Authenticators /authenticators/{uuid}/users/user_services: get: - description: Execute custom method user_services for Users collection + description: List all user services currently assigned to this user parameters: - description: The UUID of the item in: path @@ -10395,7 +11060,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method user_services for Users collection + summary: List all user services currently assigned to this user (Users collection) tags: - Authenticators /authenticators/{uuid}/users/{uuid}: @@ -10680,8 +11345,8 @@ paths: tags: - Authenticators /authenticators/{uuid}/users/{uuid}/add_to_group: - get: - description: Execute custom method add_to_group for Users item + post: + description: Add this user to an existing group within the same authenticator parameters: - description: The UUID of the item in: path @@ -10690,6 +11355,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + group: + description: UUID of the group to add the user to + type: string + type: object + description: Parameters for add_to_group + required: true responses: '200': content: @@ -10718,7 +11394,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method add_to_group for Users item + summary: Add this user to an existing group within the same authenticator (Users + item) tags: - Authenticators /authenticators/{uuid}/users/{uuid}/cleanRelated: @@ -10767,8 +11444,9 @@ paths: tags: - Authenticators /authenticators/{uuid}/users/{uuid}/clean_related: - get: - description: Execute custom method clean_related for Users item + post: + description: Remove all related data for this user (assigned services, cached + entries, pending operations) parameters: - description: The UUID of the item in: path @@ -10805,7 +11483,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method clean_related for Users item + summary: Remove all related data for this user (assigned services, cached entries, + pending operations) (Users item) tags: - Authenticators /authenticators/{uuid}/users/{uuid}/enableClientLogging: @@ -10854,8 +11533,9 @@ paths: tags: - Authenticators /authenticators/{uuid}/users/{uuid}/enable_client_logging: - get: - description: Execute custom method enable_client_logging for Users item + post: + description: Enable or disable client-side logging for this user (toggles on + each invocation) parameters: - description: The UUID of the item in: path @@ -10892,7 +11572,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method enable_client_logging for Users item + summary: Enable or disable client-side logging for this user (toggles on each + invocation) (Users item) tags: - Authenticators /authenticators/{uuid}/users/{uuid}/log: @@ -10976,7 +11657,7 @@ paths: - Authenticators /authenticators/{uuid}/users/{uuid}/services_pools: get: - description: Execute custom method services_pools for Users item + description: Retrieve all service pools in which this user has active assignments parameters: - description: The UUID of the item in: path @@ -11013,7 +11694,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method services_pools for Users item + summary: Retrieve all service pools in which this user has active assignments + (Users item) tags: - Authenticators /authenticators/{uuid}/users/{uuid}/userServices: @@ -11061,7 +11743,7 @@ paths: - Authenticators /authenticators/{uuid}/users/{uuid}/user_services: get: - description: Execute custom method user_services for Users item + description: List all user services currently assigned to this user parameters: - description: The UUID of the item in: path @@ -11098,7 +11780,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method user_services for Users item + summary: List all user services currently assigned to this user (Users item) tags: - Authenticators /authenticators/{uuid}/usersWithServices: @@ -11148,7 +11830,8 @@ paths: - Authenticators /authenticators/{uuid}/users_with_services: get: - description: Execute custom method users_with_services for Authenticator + description: Retrieve all users in this authenticator that have active services + assigned parameters: - description: The UUID of the item in: path @@ -11185,7 +11868,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method users_with_services for Authenticator + summary: Retrieve all users in this authenticator that have active services + assigned (Authenticator) tags: - Authenticators /cache: @@ -11266,8 +11950,51 @@ paths: summary: Get all Calendar items tags: - Calendars + post: + description: Create a new Calendar item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CalendarItem' + description: New CalendarItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CalendarItem' + description: Successfully retrieved CalendarItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: CalendarItem item not found + security: + - udsApiAuth: [] + summary: Create a new Calendar item + tags: + - Calendars put: - description: Creates a new, nonexisting Calendar item + deprecated: true + description: 'Creates a new Calendar item. Deprecated: use POST //calendars + instead.' parameters: [] requestBody: content: @@ -11307,6 +12034,60 @@ paths: summary: Creates a new Calendar item tags: - Calendars + query: + description: Query Calendar items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/CalendarItem' + type: array + description: Successfully retrieved all CalendarItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Calendar items with OData in body + tags: + - Calendars /calendars/gui: get: description: Retrieve the GUI representation of Calendar items @@ -11701,8 +12482,8 @@ paths: summary: Get all Rules items tags: - Calendars - put: - description: Update an existing Rules item + post: + description: Create a new Rules item parameters: - description: The UUID of the item in: path @@ -11711,6 +12492,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CalendarRuleItem' + description: New CalendarRuleItem item to create + required: true responses: '200': content: @@ -11739,27 +12527,138 @@ paths: description: CalendarRuleItem item not found security: - udsApiAuth: [] - summary: Creates a new Rules items + summary: Create a new Rules item tags: - Calendars - /calendars/{uuid}/rules/overview: - get: - description: Retrieve an overview of Rules items + put: + deprecated: true + description: 'Creates a new Rules item. Deprecated: use POST //calendars/{uuid}/rules + instead.' parameters: - - description: Filter items by property values (e.g., $filter=property eq value) - in: query - name: $filter - required: false - schema: - type: string - - description: Select properties to be returned - in: query - name: $select - required: false + - description: The UUID of the item + in: path + name: uuid + required: true schema: + format: uuid type: string - - description: Order items by property values (e.g., $orderby=property desc) - in: query + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CalendarRuleItem' + description: New CalendarRuleItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CalendarRuleItem' + description: Successfully retrieved CalendarRuleItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: CalendarRuleItem item not found + security: + - udsApiAuth: [] + summary: Creates a new Rules item + tags: + - Calendars + query: + description: Query Rules items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/CalendarRuleItem' + type: array + description: Successfully retrieved all CalendarRuleItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Rules items with OData in body + tags: + - Calendars + /calendars/{uuid}/rules/overview: + get: + description: Retrieve an overview of Rules items + parameters: + - description: Filter items by property values (e.g., $filter=property eq value) + in: query + name: $filter + required: false + schema: + type: string + - description: Select properties to be returned + in: query + name: $select + required: false + schema: + type: string + - description: Order items by property values (e.g., $orderby=property desc) + in: query name: $orderby required: false schema: @@ -12179,8 +13078,51 @@ paths: summary: Get all Image items tags: - Gallery + post: + description: Create a new Image item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ImageItem' + description: New ImageItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ImageItem' + description: Successfully retrieved ImageItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ImageItem item not found + security: + - udsApiAuth: [] + summary: Create a new Image item + tags: + - Gallery put: - description: Creates a new, nonexisting Image item + deprecated: true + description: 'Creates a new Image item. Deprecated: use POST //gallery/images + instead.' parameters: [] requestBody: content: @@ -12220,6 +13162,60 @@ paths: summary: Creates a new Image item tags: - Gallery + query: + description: Query Image items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ImageItem' + type: array + description: Successfully retrieved all ImageItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Image items with OData in body + tags: + - Gallery /gallery/images/overview: get: description: Retrieve an overview of Image items @@ -12579,8 +13575,51 @@ paths: summary: Get all ServicePoolGroup items tags: - Gallery + post: + description: Create a new ServicePoolGroup item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePoolGroupItem' + description: New ServicePoolGroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePoolGroupItem' + description: Successfully retrieved ServicePoolGroupItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServicePoolGroupItem item not found + security: + - udsApiAuth: [] + summary: Create a new ServicePoolGroup item + tags: + - Gallery put: - description: Creates a new, nonexisting ServicePoolGroup item + deprecated: true + description: 'Creates a new ServicePoolGroup item. Deprecated: use POST //gallery/servicespoolgroups + instead.' parameters: [] requestBody: content: @@ -12620,6 +13659,60 @@ paths: summary: Creates a new ServicePoolGroup item tags: - Gallery + query: + description: Query ServicePoolGroup items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServicePoolGroupItem' + type: array + description: Successfully retrieved all ServicePoolGroupItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query ServicePoolGroup items with OData in body + tags: + - Gallery /gallery/servicespoolgroups/gui: get: description: Retrieve the GUI representation of ServicePoolGroup items @@ -13007,8 +14100,8 @@ paths: summary: Get all Notifier items tags: - Messaging - put: - description: Creates a new, nonexisting Notifier item + post: + description: Create a new Notifier item parameters: [] requestBody: content: @@ -13045,20 +14138,117 @@ paths: description: NotifierItem item not found security: - udsApiAuth: [] - summary: Creates a new Notifier item + summary: Create a new Notifier item tags: - Messaging - /messaging/notifiers/gui/{type}: - get: - description: Retrieve a Notifier GUI representation by type - parameters: - - description: The type of the Notifier GUI representation - in: path - name: type - required: true - schema: - type: string - responses: + put: + deprecated: true + description: 'Creates a new Notifier item. Deprecated: use POST //messaging/notifiers + instead.' + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotifierItem' + description: New NotifierItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotifierItem' + description: Successfully retrieved NotifierItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: NotifierItem item not found + security: + - udsApiAuth: [] + summary: Creates a new Notifier item + tags: + - Messaging + query: + description: Query Notifier items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/NotifierItem' + type: array + description: Successfully retrieved all NotifierItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Notifier items with OData in body + tags: + - Messaging + /messaging/notifiers/gui/{type}: + get: + description: Retrieve a Notifier GUI representation by type + parameters: + - description: The type of the Notifier GUI representation + in: path + name: type + required: true + schema: + type: string + responses: '200': content: application/json: @@ -13517,8 +14707,51 @@ paths: summary: Get all MetaPool items tags: - Metapools + post: + description: Create a new MetaPool item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetaPoolItem' + description: New MetaPoolItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/MetaPoolItem' + description: Successfully retrieved MetaPoolItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: MetaPoolItem item not found + security: + - udsApiAuth: [] + summary: Create a new MetaPool item + tags: + - Metapools put: - description: Creates a new, nonexisting MetaPool item + deprecated: true + description: 'Creates a new MetaPool item. Deprecated: use POST //metapools + instead.' parameters: [] requestBody: content: @@ -13558,6 +14791,60 @@ paths: summary: Creates a new MetaPool item tags: - Metapools + query: + description: Query MetaPool items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/MetaPoolItem' + type: array + description: Successfully retrieved all MetaPoolItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query MetaPool items with OData in body + tags: + - Metapools /metapools/gui: get: description: Retrieve the GUI representation of MetaPool items @@ -13917,8 +15204,58 @@ paths: summary: Get all Access items tags: - Metapools + post: + description: Create a new Access item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: New AccessCalendarItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: Successfully retrieved AccessCalendarItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: AccessCalendarItem item not found + security: + - udsApiAuth: [] + summary: Create a new Access item + tags: + - Metapools put: - description: Update an existing Access item + deprecated: true + description: 'Creates a new Access item. Deprecated: use POST //metapools/{uuid}/access + instead.' parameters: - description: The UUID of the item in: path @@ -13927,6 +15264,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: New AccessCalendarItem item to create + required: true responses: '200': content: @@ -13955,7 +15299,68 @@ paths: description: AccessCalendarItem item not found security: - udsApiAuth: [] - summary: Creates a new Access items + summary: Creates a new Access item + tags: + - Metapools + query: + description: Query Access items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AccessCalendarItem' + type: array + description: Successfully retrieved all AccessCalendarItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Access items with OData in body tags: - Metapools /metapools/{uuid}/access/overview: @@ -14341,7 +15746,7 @@ paths: - Metapools /metapools/{uuid}/get_fallback_access: get: - description: Execute custom method get_fallback_access for MetaPool + description: Retrieve the current fallback access policy for a meta pool member parameters: - description: The UUID of the item in: path @@ -14378,7 +15783,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method get_fallback_access for MetaPool + summary: Retrieve the current fallback access policy for a meta pool member + (MetaPool) tags: - Metapools /metapools/{uuid}/groups: @@ -14450,8 +15856,8 @@ paths: summary: Get all Groups items tags: - Metapools - put: - description: Update an existing Groups item + post: + description: Create a new Groups item parameters: - description: The UUID of the item in: path @@ -14460,6 +15866,63 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: Successfully retrieved GroupItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: GroupItem item not found + security: + - udsApiAuth: [] + summary: Create a new Groups item + tags: + - Metapools + put: + deprecated: true + description: 'Creates a new Groups item. Deprecated: use POST //metapools/{uuid}/groups + instead.' + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true responses: '200': content: @@ -14488,7 +15951,68 @@ paths: description: GroupItem item not found security: - udsApiAuth: [] - summary: Creates a new Groups items + summary: Creates a new Groups item + tags: + - Metapools + query: + description: Query Groups items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupItem' + type: array + description: Successfully retrieved all GroupItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Groups items with OData in body tags: - Metapools /metapools/{uuid}/groups/overview: @@ -14932,8 +16456,58 @@ paths: summary: Get all Pools items tags: - Metapools + post: + description: Create a new Pools item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetaItem' + description: New MetaItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/MetaItem' + description: Successfully retrieved MetaItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: MetaItem item not found + security: + - udsApiAuth: [] + summary: Create a new Pools item + tags: + - Metapools put: - description: Update an existing Pools item + deprecated: true + description: 'Creates a new Pools item. Deprecated: use POST //metapools/{uuid}/pools + instead.' parameters: - description: The UUID of the item in: path @@ -14942,6 +16516,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MetaItem' + description: New MetaItem item to create + required: true responses: '200': content: @@ -14970,7 +16551,68 @@ paths: description: MetaItem item not found security: - udsApiAuth: [] - summary: Creates a new Pools items + summary: Creates a new Pools item + tags: + - Metapools + query: + description: Query Pools items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/MetaItem' + type: array + description: Successfully retrieved all MetaItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Pools items with OData in body tags: - Metapools /metapools/{uuid}/pools/overview: @@ -15379,8 +17021,58 @@ paths: summary: Get all Services items tags: - Metapools + post: + description: Create a new Services item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: Successfully retrieved UserServiceItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: UserServiceItem item not found + security: + - udsApiAuth: [] + summary: Create a new Services item + tags: + - Metapools put: - description: Update an existing Services item + deprecated: true + description: 'Creates a new Services item. Deprecated: use POST //metapools/{uuid}/services + instead.' parameters: - description: The UUID of the item in: path @@ -15389,6 +17081,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true responses: '200': content: @@ -15417,7 +17116,68 @@ paths: description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Creates a new Services items + summary: Creates a new Services item + tags: + - Metapools + query: + description: Query Services items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Services items with OData in body tags: - Metapools /metapools/{uuid}/services/overview: @@ -15847,8 +17607,8 @@ paths: tags: - Metapools /metapools/{uuid}/set_fallback_access: - get: - description: Execute custom method set_fallback_access for MetaPool + post: + description: Update the fallback access policy for a meta pool member parameters: - description: The UUID of the item in: path @@ -15857,6 +17617,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + fallbackAccess: + description: 'Fallback access policy: ALLOW (default) or DENY' + type: string + type: object + description: Parameters for set_fallback_access + required: true responses: '200': content: @@ -15885,7 +17656,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method set_fallback_access for MetaPool + summary: Update the fallback access policy for a meta pool member (MetaPool) tags: - Metapools /mfa: @@ -15950,8 +17721,50 @@ paths: summary: Get all MFA items tags: - Mfa + post: + description: Create a new MFA item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MFAItem' + description: New MFAItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/MFAItem' + description: Successfully retrieved MFAItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: MFAItem item not found + security: + - udsApiAuth: [] + summary: Create a new MFA item + tags: + - Mfa put: - description: Creates a new, nonexisting MFA item + deprecated: true + description: 'Creates a new MFA item. Deprecated: use POST //mfa instead.' parameters: [] requestBody: content: @@ -15991,6 +17804,60 @@ paths: summary: Creates a new MFA item tags: - Mfa + query: + description: Query MFA items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/MFAItem' + type: array + description: Successfully retrieved all MFAItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query MFA items with OData in body + tags: + - Mfa /mfa/gui/{type}: get: description: Retrieve a MFA GUI representation by type @@ -16441,10 +18308,42 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/NetworkItem' - type: array - description: Successfully retrieved all NetworkItem items + items: + $ref: '#/components/schemas/NetworkItem' + type: array + description: Successfully retrieved all NetworkItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Network items + tags: + - Networks + post: + description: Create a new Network item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkItem' + description: New NetworkItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkItem' + description: Successfully retrieved NetworkItem item '403': content: application/json: @@ -16455,13 +18354,23 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: NetworkItem item not found security: - udsApiAuth: [] - summary: Get all Network items + summary: Create a new Network item tags: - Networks put: - description: Creates a new, nonexisting Network item + deprecated: true + description: 'Creates a new Network item. Deprecated: use POST //networks instead.' parameters: [] requestBody: content: @@ -16501,6 +18410,60 @@ paths: summary: Creates a new Network item tags: - Networks + query: + description: Query Network items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/NetworkItem' + type: array + description: Successfully retrieved all NetworkItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Network items with OData in body + tags: + - Networks /networks/gui: get: description: Retrieve the GUI representation of Network items @@ -16888,8 +18851,51 @@ paths: summary: Get all OSManager items tags: - Osmanagers + post: + description: Create a new OSManager item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OsManagerItem' + description: New OsManagerItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OsManagerItem' + description: Successfully retrieved OsManagerItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: OsManagerItem item not found + security: + - udsApiAuth: [] + summary: Create a new OSManager item + tags: + - Osmanagers put: - description: Creates a new, nonexisting OSManager item + deprecated: true + description: 'Creates a new OSManager item. Deprecated: use POST //osmanagers + instead.' parameters: [] requestBody: content: @@ -16929,6 +18935,60 @@ paths: summary: Creates a new OSManager item tags: - Osmanagers + query: + description: Query OSManager items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OsManagerItem' + type: array + description: Successfully retrieved all OsManagerItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query OSManager items with OData in body + tags: + - Osmanagers /osmanagers/gui/{type}: get: description: Retrieve a OSManager GUI representation by type @@ -17398,8 +19458,51 @@ paths: summary: Get all Provider items tags: - Providers + post: + description: Create a new Provider item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderItem' + description: New ProviderItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderItem' + description: Successfully retrieved ProviderItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ProviderItem item not found + security: + - udsApiAuth: [] + summary: Create a new Provider item + tags: + - Providers put: - description: Creates a new, nonexisting Provider item + deprecated: true + description: 'Creates a new Provider item. Deprecated: use POST //providers + instead.' parameters: [] requestBody: content: @@ -17439,9 +19542,64 @@ paths: summary: Creates a new Provider item tags: - Providers + query: + description: Query Provider items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ProviderItem' + type: array + description: Successfully retrieved all ProviderItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Provider items with OData in body + tags: + - Providers /providers/allservices: get: - description: Execute custom method allservices for Provider + description: List all services provided by this provider regardless of their + parent service parameters: [] responses: '200': @@ -17471,7 +19629,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method allservices for Provider + summary: List all services provided by this provider regardless of their parent + service (Provider) tags: - Providers /providers/gui/{type}: @@ -17579,7 +19738,8 @@ paths: - Providers /providers/service: get: - description: Execute custom method service for Provider + description: Retrieve a specific service by its UUID regardless of its parent + service parameters: [] responses: '200': @@ -17609,7 +19769,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method service for Provider + summary: Retrieve a specific service by its UUID regardless of its parent service + (Provider) tags: - Providers /providers/tableinfo: @@ -17917,8 +20078,9 @@ paths: tags: - Providers /providers/{uuid}/maintenance: - get: - description: Execute custom method maintenance for Provider + post: + description: Toggle maintenance mode for a provider (enable if disabled, disable + if enabled) parameters: - description: The UUID of the item in: path @@ -17955,7 +20117,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method maintenance for Provider + summary: Toggle maintenance mode for a provider (enable if disabled, disable + if enabled) (Provider) tags: - Providers /providers/{uuid}/services: @@ -18008,10 +20171,49 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/ServiceItem' - type: array - description: Successfully retrieved all ServiceItem items + items: + $ref: '#/components/schemas/ServiceItem' + type: array + description: Successfully retrieved all ServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Services items + tags: + - Providers + post: + description: Create a new Services item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceItem' + description: New ServiceItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceItem' + description: Successfully retrieved ServiceItem item '403': content: application/json: @@ -18022,13 +20224,24 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServiceItem item not found security: - udsApiAuth: [] - summary: Get all Services items + summary: Create a new Services item tags: - Providers put: - description: Update an existing Services item + deprecated: true + description: 'Creates a new Services item. Deprecated: use POST //providers/{uuid}/services + instead.' parameters: - description: The UUID of the item in: path @@ -18037,6 +20250,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceItem' + description: New ServiceItem item to create + required: true responses: '200': content: @@ -18065,7 +20285,68 @@ paths: description: ServiceItem item not found security: - udsApiAuth: [] - summary: Creates a new Services items + summary: Creates a new Services item + tags: + - Providers + query: + description: Query Services items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServiceItem' + type: array + description: Successfully retrieved all ServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Services items with OData in body tags: - Providers /providers/{uuid}/services/gui/{type}: @@ -18187,7 +20468,7 @@ paths: - Providers /providers/{uuid}/services/servicepools: get: - description: Execute custom method servicepools for Services collection + description: List all service pools that reference this service provider parameters: - description: The UUID of the item in: path @@ -18224,7 +20505,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method servicepools for Services collection + summary: List all service pools that reference this service provider (Services + collection) tags: - Providers /providers/{uuid}/services/tableinfo: @@ -18615,7 +20897,7 @@ paths: - Providers /providers/{uuid}/services/{uuid}/servicepools: get: - description: Execute custom method servicepools for Services item + description: List all service pools that reference this service provider parameters: - description: The UUID of the item in: path @@ -18652,7 +20934,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method servicepools for Services item + summary: List all service pools that reference this service provider (Services + item) tags: - Providers /providers/{uuid}/usage: @@ -18724,8 +21007,58 @@ paths: summary: Get all Usage items tags: - Providers + post: + description: Create a new Usage item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicesUsageItem' + description: New ServicesUsageItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServicesUsageItem' + description: Successfully retrieved ServicesUsageItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServicesUsageItem item not found + security: + - udsApiAuth: [] + summary: Create a new Usage item + tags: + - Providers put: - description: Update an existing Usage item + deprecated: true + description: 'Creates a new Usage item. Deprecated: use POST //providers/{uuid}/usage + instead.' parameters: - description: The UUID of the item in: path @@ -18734,6 +21067,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicesUsageItem' + description: New ServicesUsageItem item to create + required: true responses: '200': content: @@ -18762,7 +21102,68 @@ paths: description: ServicesUsageItem item not found security: - udsApiAuth: [] - summary: Creates a new Usage items + summary: Creates a new Usage item + tags: + - Providers + query: + description: Query Usage items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServicesUsageItem' + type: array + description: Successfully retrieved all ServicesUsageItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Usage items with OData in body tags: - Providers /providers/{uuid}/usage/overview: @@ -19164,8 +21565,51 @@ paths: summary: Get all ServerGroup items tags: - Servers + post: + description: Create a new ServerGroup item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: Successfully retrieved GroupItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: GroupItem item not found + security: + - udsApiAuth: [] + summary: Create a new ServerGroup item + tags: + - Servers put: - description: Creates a new, nonexisting ServerGroup item + deprecated: true + description: 'Creates a new ServerGroup item. Deprecated: use POST //servers/groups + instead.' parameters: [] requestBody: content: @@ -19205,6 +21649,60 @@ paths: summary: Creates a new ServerGroup item tags: - Servers + query: + description: Query ServerGroup items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/GroupItem' + type: array + description: Successfully retrieved all GroupItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query ServerGroup items with OData in body + tags: + - Servers /servers/groups/gui/{type}: get: description: Retrieve a ServerGroup GUI representation by type @@ -19662,10 +22160,49 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/ServerItem' - type: array - description: Successfully retrieved all ServerItem items + items: + $ref: '#/components/schemas/ServerItem' + type: array + description: Successfully retrieved all ServerItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Servers items + tags: + - Servers + post: + description: Create a new Servers item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServerItem' + description: New ServerItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServerItem' + description: Successfully retrieved ServerItem item '403': content: application/json: @@ -19676,13 +22213,24 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServerItem item not found security: - udsApiAuth: [] - summary: Get all Servers items + summary: Create a new Servers item tags: - Servers put: - description: Update an existing Servers item + deprecated: true + description: 'Creates a new Servers item. Deprecated: use POST //servers/groups/{uuid}/servers + instead.' parameters: - description: The UUID of the item in: path @@ -19691,6 +22239,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServerItem' + description: New ServerItem item to create + required: true responses: '200': content: @@ -19719,7 +22274,68 @@ paths: description: ServerItem item not found security: - udsApiAuth: [] - summary: Creates a new Servers items + summary: Creates a new Servers item + tags: + - Servers + query: + description: Query Servers items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServerItem' + type: array + description: Successfully retrieved all ServerItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Servers items with OData in body tags: - Servers /servers/groups/{uuid}/servers/gui: @@ -19758,8 +22374,8 @@ paths: tags: - Servers /servers/groups/{uuid}/servers/importcsv: - get: - description: Execute custom method importcsv for Servers collection + post: + description: Import server configuration from CSV data parameters: - description: The UUID of the item in: path @@ -19768,6 +22384,23 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + data: + description: CSV content with server entries + type: string + has_header: + description: Whether the CSV has a header row + type: boolean + separator: + description: CSV field separator character (default comma) + type: string + type: object + description: Parameters for importcsv + required: true responses: '200': content: @@ -19796,12 +22429,13 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method importcsv for Servers collection + summary: Import server configuration from CSV data (Servers collection) tags: - Servers /servers/groups/{uuid}/servers/maintenance: - get: - description: Execute custom method maintenance for Servers collection + post: + description: Toggle maintenance mode for a server (enable if disabled, disable + if enabled) parameters: - description: The UUID of the item in: path @@ -19838,7 +22472,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method maintenance for Servers collection + summary: Toggle maintenance mode for a server (enable if disabled, disable if + enabled) (Servers collection) tags: - Servers /servers/groups/{uuid}/servers/overview: @@ -20179,8 +22814,8 @@ paths: tags: - Servers /servers/groups/{uuid}/servers/{uuid}/importcsv: - get: - description: Execute custom method importcsv for Servers item + post: + description: Import server configuration from CSV data parameters: - description: The UUID of the item in: path @@ -20189,6 +22824,23 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + data: + description: CSV content with server entries + type: string + has_header: + description: Whether the CSV has a header row + type: boolean + separator: + description: CSV field separator character (default comma) + type: string + type: object + description: Parameters for importcsv + required: true responses: '200': content: @@ -20217,12 +22869,13 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method importcsv for Servers item + summary: Import server configuration from CSV data (Servers item) tags: - Servers /servers/groups/{uuid}/servers/{uuid}/maintenance: - get: - description: Execute custom method maintenance for Servers item + post: + description: Toggle maintenance mode for a server (enable if disabled, disable + if enabled) parameters: - description: The UUID of the item in: path @@ -20259,12 +22912,14 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method maintenance for Servers item + summary: Toggle maintenance mode for a server (enable if disabled, disable if + enabled) (Servers item) tags: - Servers /servers/groups/{uuid}/stats: get: - description: Execute custom method stats for ServerGroup + description: Retrieve aggregate server statistics including counts by state, + type, and resource usage parameters: - description: The UUID of the item in: path @@ -20301,7 +22956,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method stats for ServerGroup + summary: Retrieve aggregate server statistics including counts by state, type, + and resource usage (ServerGroup) tags: - Servers /servers/tokens: @@ -20366,8 +23022,51 @@ paths: summary: Get all Server items tags: - Servers + post: + description: Create a new Server item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenItem' + description: New TokenItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenItem' + description: Successfully retrieved TokenItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TokenItem item not found + security: + - udsApiAuth: [] + summary: Create a new Server item + tags: + - Servers put: - description: Creates a new, nonexisting Server item + deprecated: true + description: 'Creates a new Server item. Deprecated: use POST //servers/tokens + instead.' parameters: [] requestBody: content: @@ -20407,6 +23106,60 @@ paths: summary: Creates a new Server item tags: - Servers + query: + description: Query Server items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/TokenItem' + type: array + description: Successfully retrieved all TokenItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Server items with OData in body + tags: + - Servers /servers/tokens/overview: get: description: Retrieve an overview of Server items @@ -20766,8 +23519,51 @@ paths: summary: Get all ServicePool items tags: - Servicespools + post: + description: Create a new ServicePool item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePoolItem' + description: New ServicePoolItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ServicePoolItem' + description: Successfully retrieved ServicePoolItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServicePoolItem item not found + security: + - udsApiAuth: [] + summary: Create a new ServicePool item + tags: + - Servicespools put: - description: Creates a new, nonexisting ServicePool item + deprecated: true + description: 'Creates a new ServicePool item. Deprecated: use POST //servicespools + instead.' parameters: [] requestBody: content: @@ -20793,18 +23589,72 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. - '404': - content: - application/json: - schema: - properties: - detail: - type: string - type: object - description: ServicePoolItem item not found + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ServicePoolItem item not found + security: + - udsApiAuth: [] + summary: Creates a new ServicePool item + tags: + - Servicespools + query: + description: Query ServicePool items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ServicePoolItem' + type: array + description: Successfully retrieved all ServicePoolItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. security: - udsApiAuth: [] - summary: Creates a new ServicePool item + summary: Query ServicePool items with OData in body tags: - Servicespools /servicespools/gui: @@ -21166,8 +24016,58 @@ paths: summary: Get all Access items tags: - Servicespools + post: + description: Create a new Access item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: New AccessCalendarItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: Successfully retrieved AccessCalendarItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: AccessCalendarItem item not found + security: + - udsApiAuth: [] + summary: Create a new Access item + tags: + - Servicespools put: - description: Update an existing Access item + deprecated: true + description: 'Creates a new Access item. Deprecated: use POST //servicespools/{uuid}/access + instead.' parameters: - description: The UUID of the item in: path @@ -21176,6 +24076,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccessCalendarItem' + description: New AccessCalendarItem item to create + required: true responses: '200': content: @@ -21204,7 +24111,68 @@ paths: description: AccessCalendarItem item not found security: - udsApiAuth: [] - summary: Creates a new Access items + summary: Creates a new Access item + tags: + - Servicespools + query: + description: Query Access items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/AccessCalendarItem' + type: array + description: Successfully retrieved all AccessCalendarItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Access items with OData in body tags: - Servicespools /servicespools/{uuid}/access/overview: @@ -21613,8 +24581,58 @@ paths: summary: Get all Actions items tags: - Servicespools + post: + description: Create a new Actions item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ActionCalendarItem' + description: New ActionCalendarItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ActionCalendarItem' + description: Successfully retrieved ActionCalendarItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ActionCalendarItem item not found + security: + - udsApiAuth: [] + summary: Create a new Actions item + tags: + - Servicespools put: - description: Update an existing Actions item + deprecated: true + description: 'Creates a new Actions item. Deprecated: use POST //servicespools/{uuid}/actions + instead.' parameters: - description: The UUID of the item in: path @@ -21623,6 +24641,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ActionCalendarItem' + description: New ActionCalendarItem item to create + required: true responses: '200': content: @@ -21651,12 +24676,74 @@ paths: description: ActionCalendarItem item not found security: - udsApiAuth: [] - summary: Creates a new Actions items + summary: Creates a new Actions item + tags: + - Servicespools + query: + description: Query Actions items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ActionCalendarItem' + type: array + description: Successfully retrieved all ActionCalendarItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Actions items with OData in body tags: - Servicespools /servicespools/{uuid}/actions/execute: - get: - description: Execute custom method execute for Actions collection + post: + description: Execute a scheduled calendar action immediately, bypassing the + calendar schedule parameters: - description: The UUID of the item in: path @@ -21693,7 +24780,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method execute for Actions collection + summary: Execute a scheduled calendar action immediately, bypassing the calendar + schedule (Actions collection) tags: - Servicespools /servicespools/{uuid}/actions/overview: @@ -22034,8 +25122,9 @@ paths: tags: - Servicespools /servicespools/{uuid}/actions/{uuid}/execute: - get: - description: Execute custom method execute for Actions item + post: + description: Execute a scheduled calendar action immediately, bypassing the + calendar schedule parameters: - description: The UUID of the item in: path @@ -22072,7 +25161,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method execute for Actions item + summary: Execute a scheduled calendar action immediately, bypassing the calendar + schedule (Actions item) tags: - Servicespools /servicespools/{uuid}/actionsList: @@ -22122,7 +25212,8 @@ paths: - Servicespools /servicespools/{uuid}/actions_list: get: - description: Execute custom method actions_list for ServicePool + description: List all calendar actions available for this service pool based + on its service type and current state parameters: - description: The UUID of the item in: path @@ -22159,7 +25250,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method actions_list for ServicePool + summary: List all calendar actions available for this service pool based on + its service type and current state (ServicePool) tags: - Servicespools /servicespools/{uuid}/addLog: @@ -22223,8 +25315,8 @@ paths: tags: - Servicespools /servicespools/{uuid}/add_log: - get: - description: Execute custom method add_log for ServicePool + post: + description: Append a log entry to the service pool audit trail parameters: - description: The UUID of the item in: path @@ -22233,6 +25325,23 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + level: + description: Log severity level (INFO, WARN, ERROR) + type: string + log_name: + description: Optional log source name + type: string + message: + description: Log message text + type: string + type: object + description: Parameters for add_log + required: true responses: '200': content: @@ -22261,7 +25370,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method add_log for ServicePool + summary: Append a log entry to the service pool audit trail (ServicePool) tags: - Servicespools /servicespools/{uuid}/cache: @@ -22314,10 +25423,49 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/UserServiceItem' - type: array - description: Successfully retrieved all UserServiceItem items + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Cache items + tags: + - Servicespools + post: + description: Create a new Cache item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: Successfully retrieved UserServiceItem item '403': content: application/json: @@ -22328,13 +25476,24 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Get all Cache items + summary: Create a new Cache item tags: - Servicespools put: - description: Update an existing Cache item + deprecated: true + description: 'Creates a new Cache item. Deprecated: use POST //servicespools/{uuid}/cache + instead.' parameters: - description: The UUID of the item in: path @@ -22343,6 +25502,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true responses: '200': content: @@ -22371,7 +25537,68 @@ paths: description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Creates a new Cache items + summary: Creates a new Cache item + tags: + - Servicespools + query: + description: Query Cache items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Cache items with OData in body tags: - Servicespools /servicespools/{uuid}/cache/overview: @@ -22815,8 +26042,58 @@ paths: summary: Get all Changelog items tags: - Servicespools + post: + description: Create a new Changelog item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangelogItem' + description: New ChangelogItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ChangelogItem' + description: Successfully retrieved ChangelogItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: ChangelogItem item not found + security: + - udsApiAuth: [] + summary: Create a new Changelog item + tags: + - Servicespools put: - description: Update an existing Changelog item + deprecated: true + description: 'Creates a new Changelog item. Deprecated: use POST //servicespools/{uuid}/changelog + instead.' parameters: - description: The UUID of the item in: path @@ -22825,6 +26102,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangelogItem' + description: New ChangelogItem item to create + required: true responses: '200': content: @@ -22853,7 +26137,68 @@ paths: description: ChangelogItem item not found security: - udsApiAuth: [] - summary: Creates a new Changelog items + summary: Creates a new Changelog item + tags: + - Servicespools + query: + description: Query Changelog items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ChangelogItem' + type: array + description: Successfully retrieved all ChangelogItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Changelog items with OData in body tags: - Servicespools /servicespools/{uuid}/changelog/overview: @@ -23251,8 +26596,8 @@ paths: tags: - Servicespools /servicespools/{uuid}/create_from_assignable: - get: - description: Execute custom method create_from_assignable for ServicePool + post: + description: Create a new service pool from an existing assignable service parameters: - description: The UUID of the item in: path @@ -23261,6 +26606,20 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + assignable_id: + description: Identifier of the assignable service to create from + type: string + user_id: + description: UUID of the user who will own the new service pool + type: string + type: object + description: Parameters for create_from_assignable + required: true responses: '200': content: @@ -23289,7 +26648,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method create_from_assignable for ServicePool + summary: Create a new service pool from an existing assignable service (ServicePool) tags: - Servicespools /servicespools/{uuid}/getFallbackAccess: @@ -23337,7 +26696,7 @@ paths: - Servicespools /servicespools/{uuid}/get_fallback_access: get: - description: Execute custom method get_fallback_access for ServicePool + description: Retrieve the current fallback access policy for a service pool parameters: - description: The UUID of the item in: path @@ -23374,7 +26733,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method get_fallback_access for ServicePool + summary: Retrieve the current fallback access policy for a service pool (ServicePool) tags: - Servicespools /servicespools/{uuid}/groups: @@ -23427,10 +26786,99 @@ paths: content: application/json: schema: - items: - $ref: '#/components/schemas/GroupItem' - type: array - description: Successfully retrieved all GroupItem items + items: + $ref: '#/components/schemas/GroupItem' + type: array + description: Successfully retrieved all GroupItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Groups items + tags: + - Servicespools + post: + description: Create a new Groups item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: Successfully retrieved GroupItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: GroupItem item not found + security: + - udsApiAuth: [] + summary: Create a new Groups item + tags: + - Servicespools + put: + deprecated: true + description: 'Creates a new Groups item. Deprecated: use POST //servicespools/{uuid}/groups + instead.' + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: New GroupItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GroupItem' + description: Successfully retrieved GroupItem item '403': content: application/json: @@ -23441,13 +26889,24 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: GroupItem item not found security: - udsApiAuth: [] - summary: Get all Groups items + summary: Creates a new Groups item tags: - Servicespools - put: - description: Update an existing Groups item + query: + description: Query Groups items using OData parameters ($filter, $orderby, $top, + $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. parameters: - description: The UUID of the item in: path @@ -23456,13 +26915,40 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false responses: '200': content: application/json: schema: - $ref: '#/components/schemas/GroupItem' - description: Successfully retrieved GroupItem item + items: + $ref: '#/components/schemas/GroupItem' + type: array + description: Successfully retrieved all GroupItem items '403': content: application/json: @@ -23473,18 +26959,9 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. - '404': - content: - application/json: - schema: - properties: - detail: - type: string - type: object - description: GroupItem item not found security: - udsApiAuth: [] - summary: Creates a new Groups items + summary: Query Groups items with OData in body tags: - Servicespools /servicespools/{uuid}/groups/overview: @@ -23871,7 +27348,8 @@ paths: - Servicespools /servicespools/{uuid}/list_assignables: get: - description: Execute custom method list_assignables for ServicePool + description: Enumerate all assignable services that can be used to create a + new service pool parameters: - description: The UUID of the item in: path @@ -23908,7 +27386,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method list_assignables for ServicePool + summary: Enumerate all assignable services that can be used to create a new + service pool (ServicePool) tags: - Servicespools /servicespools/{uuid}/log: @@ -24015,8 +27494,58 @@ paths: summary: Get all Publications items tags: - Servicespools + post: + description: Create a new Publications item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PublicationItem' + description: New PublicationItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PublicationItem' + description: Successfully retrieved PublicationItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: PublicationItem item not found + security: + - udsApiAuth: [] + summary: Create a new Publications item + tags: + - Servicespools put: - description: Update an existing Publications item + deprecated: true + description: 'Creates a new Publications item. Deprecated: use POST //servicespools/{uuid}/publications + instead.' parameters: - description: The UUID of the item in: path @@ -24025,6 +27554,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PublicationItem' + description: New PublicationItem item to create + required: true responses: '200': content: @@ -24053,12 +27589,74 @@ paths: description: PublicationItem item not found security: - udsApiAuth: [] - summary: Creates a new Publications items + summary: Creates a new Publications item + tags: + - Servicespools + query: + description: Query Publications items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/PublicationItem' + type: array + description: Successfully retrieved all PublicationItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Publications items with OData in body tags: - Servicespools /servicespools/{uuid}/publications/cancel: - get: - description: Execute custom method cancel for Publications collection + post: + description: Cancel a running publication; invoking twice forces an immediate + cancellation parameters: - description: The UUID of the item in: path @@ -24095,7 +27693,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method cancel for Publications collection + summary: Cancel a running publication; invoking twice forces an immediate cancellation + (Publications collection) tags: - Servicespools /servicespools/{uuid}/publications/overview: @@ -24168,8 +27767,9 @@ paths: tags: - Servicespools /servicespools/{uuid}/publications/publish: - get: - description: Execute custom method publish for Publications collection + post: + description: Start a new publication for a deployed service, optionally with + a changelog message parameters: - description: The UUID of the item in: path @@ -24178,6 +27778,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + changelog: + description: Optional changelog message for the publication + type: string + type: object + description: Parameters for publish + required: true responses: '200': content: @@ -24206,7 +27817,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method publish for Publications collection + summary: Start a new publication for a deployed service, optionally with a changelog + message (Publications collection) tags: - Servicespools /servicespools/{uuid}/publications/tableinfo: @@ -24478,8 +28090,9 @@ paths: tags: - Servicespools /servicespools/{uuid}/publications/{uuid}/cancel: - get: - description: Execute custom method cancel for Publications item + post: + description: Cancel a running publication; invoking twice forces an immediate + cancellation parameters: - description: The UUID of the item in: path @@ -24516,12 +28129,14 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method cancel for Publications item + summary: Cancel a running publication; invoking twice forces an immediate cancellation + (Publications item) tags: - Servicespools /servicespools/{uuid}/publications/{uuid}/publish: - get: - description: Execute custom method publish for Publications item + post: + description: Start a new publication for a deployed service, optionally with + a changelog message parameters: - description: The UUID of the item in: path @@ -24530,6 +28145,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + changelog: + description: Optional changelog message for the publication + type: string + type: object + description: Parameters for publish + required: true responses: '200': content: @@ -24558,7 +28184,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method publish for Publications item + summary: Start a new publication for a deployed service, optionally with a changelog + message (Publications item) tags: - Servicespools /servicespools/{uuid}/servers: @@ -24603,18 +28230,107 @@ paths: in: path name: uuid required: true - schema: - format: uuid - type: string + schema: + format: uuid + type: string + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Get all Servers items + tags: + - Servicespools + post: + description: Create a new Servers item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: Successfully retrieved UserServiceItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: UserServiceItem item not found + security: + - udsApiAuth: [] + summary: Create a new Servers item + tags: + - Servicespools + put: + deprecated: true + description: 'Creates a new Servers item. Deprecated: use POST //servicespools/{uuid}/servers + instead.' + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true responses: '200': content: application/json: schema: - items: - $ref: '#/components/schemas/UserServiceItem' - type: array - description: Successfully retrieved all UserServiceItem items + $ref: '#/components/schemas/UserServiceItem' + description: Successfully retrieved UserServiceItem item '403': content: application/json: @@ -24625,13 +28341,24 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Get all Servers items + summary: Creates a new Servers item tags: - Servicespools - put: - description: Update an existing Servers item + query: + description: Query Servers items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. parameters: - description: The UUID of the item in: path @@ -24640,13 +28367,40 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false responses: '200': content: application/json: schema: - $ref: '#/components/schemas/UserServiceItem' - description: Successfully retrieved UserServiceItem item + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items '403': content: application/json: @@ -24657,18 +28411,9 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. - '404': - content: - application/json: - schema: - properties: - detail: - type: string - type: object - description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Creates a new Servers items + summary: Query Servers items with OData in body tags: - Servicespools /servicespools/{uuid}/servers/overview: @@ -25112,8 +28857,58 @@ paths: summary: Get all Services items tags: - Servicespools + post: + description: Create a new Services item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: Successfully retrieved UserServiceItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: UserServiceItem item not found + security: + - udsApiAuth: [] + summary: Create a new Services item + tags: + - Servicespools put: - description: Update an existing Services item + deprecated: true + description: 'Creates a new Services item. Deprecated: use POST //servicespools/{uuid}/services + instead.' parameters: - description: The UUID of the item in: path @@ -25122,6 +28917,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserServiceItem' + description: New UserServiceItem item to create + required: true responses: '200': content: @@ -25150,7 +28952,68 @@ paths: description: UserServiceItem item not found security: - udsApiAuth: [] - summary: Creates a new Services items + summary: Creates a new Services item + tags: + - Servicespools + query: + description: Query Services items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/UserServiceItem' + type: array + description: Successfully retrieved all UserServiceItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Services items with OData in body tags: - Servicespools /servicespools/{uuid}/services/overview: @@ -25223,8 +29086,9 @@ paths: tags: - Servicespools /servicespools/{uuid}/services/reset: - get: - description: Execute custom method reset for Services collection + post: + description: Reset a user service to its initial state, removing any cached + or intermediate data parameters: - description: The UUID of the item in: path @@ -25261,7 +29125,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method reset for Services collection + summary: Reset a user service to its initial state, removing any cached or intermediate + data (Services collection) tags: - Servicespools /servicespools/{uuid}/services/tableinfo: @@ -25568,8 +29433,9 @@ paths: tags: - Servicespools /servicespools/{uuid}/services/{uuid}/reset: - get: - description: Execute custom method reset for Services item + post: + description: Reset a user service to its initial state, removing any cached + or intermediate data parameters: - description: The UUID of the item in: path @@ -25606,7 +29472,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method reset for Services item + summary: Reset a user service to its initial state, removing any cached or intermediate + data (Services item) tags: - Servicespools /servicespools/{uuid}/setFallbackAccess: @@ -25664,8 +29531,8 @@ paths: tags: - Servicespools /servicespools/{uuid}/set_fallback_access: - get: - description: Execute custom method set_fallback_access for ServicePool + post: + description: Update the fallback access policy for a service pool parameters: - description: The UUID of the item in: path @@ -25674,6 +29541,17 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + properties: + fallbackAccess: + description: 'Fallback access policy: ALLOW (default) or DENY' + type: string + type: object + description: Parameters for set_fallback_access + required: true responses: '200': content: @@ -25702,7 +29580,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method set_fallback_access for ServicePool + summary: Update the fallback access policy for a service pool (ServicePool) tags: - Servicespools /servicespools/{uuid}/transports: @@ -25774,8 +29652,58 @@ paths: summary: Get all Transports items tags: - Servicespools + post: + description: Create a new Transports item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransportItem' + description: New TransportItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TransportItem' + description: Successfully retrieved TransportItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TransportItem item not found + security: + - udsApiAuth: [] + summary: Create a new Transports item + tags: + - Servicespools put: - description: Update an existing Transports item + deprecated: true + description: 'Creates a new Transports item. Deprecated: use POST //servicespools/{uuid}/transports + instead.' parameters: - description: The UUID of the item in: path @@ -25784,6 +29712,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransportItem' + description: New TransportItem item to create + required: true responses: '200': content: @@ -25801,18 +29736,79 @@ paths: type: object description: Forbidden. You do not have permission to access this resource with your current role. - '404': - content: - application/json: - schema: - properties: - detail: - type: string - type: object - description: TransportItem item not found + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TransportItem item not found + security: + - udsApiAuth: [] + summary: Creates a new Transports item + tags: + - Servicespools + query: + description: Query Transports items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/TransportItem' + type: array + description: Successfully retrieved all TransportItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. security: - udsApiAuth: [] - summary: Creates a new Transports items + summary: Query Transports items with OData in body tags: - Servicespools /servicespools/{uuid}/transports/overview: @@ -26285,8 +30281,51 @@ paths: summary: Get all Transport items tags: - Transports + post: + description: Create a new Transport item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransportItem' + description: New TransportItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TransportItem' + description: Successfully retrieved TransportItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TransportItem item not found + security: + - udsApiAuth: [] + summary: Create a new Transport item + tags: + - Transports put: - description: Creates a new, nonexisting Transport item + deprecated: true + description: 'Creates a new Transport item. Deprecated: use POST //transports + instead.' parameters: [] requestBody: content: @@ -26326,6 +30365,60 @@ paths: summary: Creates a new Transport item tags: - Transports + query: + description: Query Transport items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/TransportItem' + type: array + description: Successfully retrieved all TransportItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Transport items with OData in body + tags: + - Transports /transports/gui/{type}: get: description: Retrieve a Transport GUI representation by type @@ -26795,8 +30888,51 @@ paths: summary: Get all Tunnels items tags: - Tunnels + post: + description: Create a new Tunnels item + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelItem' + description: New TunnelItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelItem' + description: Successfully retrieved TunnelItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TunnelItem item not found + security: + - udsApiAuth: [] + summary: Create a new Tunnels item + tags: + - Tunnels put: - description: Creates a new, nonexisting Tunnels item + deprecated: true + description: 'Creates a new Tunnels item. Deprecated: use POST //tunnels/tunnels + instead.' parameters: [] requestBody: content: @@ -26836,6 +30972,60 @@ paths: summary: Creates a new Tunnels item tags: - Tunnels + query: + description: Query Tunnels items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: [] + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/TunnelItem' + type: array + description: Successfully retrieved all TunnelItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query Tunnels items with OData in body + tags: + - Tunnels /tunnels/tunnels/gui: get: description: Retrieve the GUI representation of Tunnels items @@ -27127,8 +31317,8 @@ paths: tags: - Tunnels /tunnels/tunnels/{uuid}/assign: - get: - description: Execute custom method assign for Tunnels + post: + description: Assign an existing server to this tunnel group parameters: - description: The UUID of the item in: path @@ -27165,7 +31355,7 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method assign for Tunnels + summary: Assign an existing server to this tunnel group (Tunnels) tags: - Tunnels /tunnels/tunnels/{uuid}/log: @@ -27272,8 +31462,58 @@ paths: summary: Get all TunnelServers items tags: - Tunnels + post: + description: Create a new TunnelServers item + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelServerItem' + description: New TunnelServerItem item to create + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelServerItem' + description: Successfully retrieved TunnelServerItem item + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + '404': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: TunnelServerItem item not found + security: + - udsApiAuth: [] + summary: Create a new TunnelServers item + tags: + - Tunnels put: - description: Update an existing TunnelServers item + deprecated: true + description: 'Creates a new TunnelServers item. Deprecated: use POST //tunnels/tunnels/{uuid}/servers + instead.' parameters: - description: The UUID of the item in: path @@ -27282,6 +31522,13 @@ paths: schema: format: uuid type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelServerItem' + description: New TunnelServerItem item to create + required: true responses: '200': content: @@ -27310,12 +31557,74 @@ paths: description: TunnelServerItem item not found security: - udsApiAuth: [] - summary: Creates a new TunnelServers items + summary: Creates a new TunnelServers item + tags: + - Tunnels + query: + description: Query TunnelServers items using OData parameters ($filter, $orderby, + $top, $skip, $select) in the request body. Equivalent to GET but allows complex + queries beyond URL length limits. + parameters: + - description: The UUID of the item + in: path + name: uuid + required: true + schema: + format: uuid + type: string + requestBody: + content: + application/json: + schema: + properties: + $filter: + description: Filter items by property values (e.g., name eq "value") + type: string + $orderby: + description: Order items by property values (e.g., name desc) + type: string + $select: + description: Select properties to be returned + type: string + $skip: + description: Skip the first N items + format: int32 + type: integer + $top: + description: Show only the first N items + format: int32 + type: integer + type: object + description: OData query parameters ($filter, $orderby, $top, $skip, $select) + required: false + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/TunnelServerItem' + type: array + description: Successfully retrieved all TunnelServerItem items + '403': + content: + application/json: + schema: + properties: + detail: + type: string + type: object + description: Forbidden. You do not have permission to access this resource + with your current role. + security: + - udsApiAuth: [] + summary: Query TunnelServers items with OData in body tags: - Tunnels /tunnels/tunnels/{uuid}/servers/maintenance: - get: - description: Execute custom method maintenance for TunnelServers collection + post: + description: Toggle maintenance mode for a tunnel server (enable if disabled, + disable if enabled) parameters: - description: The UUID of the item in: path @@ -27352,7 +31661,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method maintenance for TunnelServers collection + summary: Toggle maintenance mode for a tunnel server (enable if disabled, disable + if enabled) (TunnelServers collection) tags: - Tunnels /tunnels/tunnels/{uuid}/servers/overview: @@ -27693,8 +32003,9 @@ paths: tags: - Tunnels /tunnels/tunnels/{uuid}/servers/{uuid}/maintenance: - get: - description: Execute custom method maintenance for TunnelServers item + post: + description: Toggle maintenance mode for a tunnel server (enable if disabled, + disable if enabled) parameters: - description: The UUID of the item in: path @@ -27731,12 +32042,13 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method maintenance for TunnelServers item + summary: Toggle maintenance mode for a tunnel server (enable if disabled, disable + if enabled) (TunnelServers item) tags: - Tunnels /tunnels/tunnels/{uuid}/tunnels: get: - description: Execute custom method tunnels for Tunnels + description: List tunnel servers that are not yet assigned to this tunnel group parameters: - description: The UUID of the item in: path @@ -27773,7 +32085,8 @@ paths: description: object item not found security: - udsApiAuth: [] - summary: Custom method tunnels for Tunnels + summary: List tunnel servers that are not yet assigned to this tunnel group + (Tunnels) tags: - Tunnels /version: diff --git a/src/uds/REST/methods/op_calendars.py b/src/uds/REST/methods/op_calendars.py index 012eb93c6..149abe121 100644 --- a/src/uds/REST/methods/op_calendars.py +++ b/src/uds/REST/methods/op_calendars.py @@ -74,14 +74,14 @@ def as_item(item: "models.CalendarAccess|models.CalendarAccessMeta") -> AccessCa access=item.access, priority=item.priority, ) - + @typing.override def get_item_position(self, parent: "Model", item_uuid: str) -> int: # parent can be a ServicePool or a metaPool if isinstance(parent, models.ServicePool): parent = ensure.is_instance(parent, models.ServicePool) return self.calc_item_position(item_uuid, parent.calendarAccess.all()) - + parent = ensure.is_instance(parent, models.MetaPool) return self.calc_item_position(item_uuid, parent.calendarAccess.all()) @@ -167,8 +167,8 @@ class ActionCalendarItem(types.rest.BaseRestItem): events_offset: int params: dict[str, typing.Any] pretty_params: str - next_execution: typing.Optional[datetime.datetime] - last_execution: typing.Optional[datetime.datetime] + next_execution: datetime.datetime | None + last_execution: datetime.datetime | None class ActionsCalendars(DetailHandler[ActionCalendarItem]): @@ -202,7 +202,7 @@ def as_dict(item: "models.CalendarAction") -> ActionCalendarItem: next_execution=item.next_execution, last_execution=item.last_execution, ) - + @typing.override def get_item_position(self, parent: "Model", item_uuid: str) -> int: parent = ensure.is_instance(parent, models.ServicePool) diff --git a/src/uds/REST/methods/services.py b/src/uds/REST/methods/services.py index d5b0c1b4a..9267101cf 100644 --- a/src/uds/REST/methods/services.py +++ b/src/uds/REST/methods/services.py @@ -160,7 +160,7 @@ def service_item(item: models.Service, perm: int, full: bool = False) -> Service ret_value.info = Services.service_info(item) return ret_value - + @typing.override def get_item_position(self, parent: Model, item_uuid: str) -> int: parent = ensure.is_instance(parent, models.Provider) @@ -224,7 +224,9 @@ def save_item(self, parent: "Model", item: str | None) -> ServiceItem: service = parent.services.create(**fields) else: service = parent.services.get(uuid=process_uuid(item)) - typing.cast(dict[str, typing.Any], service.__dict__).update(fields) # pyrefly: ignore[redundant-cast] + typing.cast(dict[str, typing.Any], service.__dict__).update( # pyrefly: ignore[redundant-cast] + fields + ) service.tags.set([models.Tag.objects.get_or_create(tag=val)[0] for val in tags]) diff --git a/src/uds/REST/methods/tunnels_management.py b/src/uds/REST/methods/tunnels_management.py index f3e404069..df86a3d3c 100644 --- a/src/uds/REST/methods/tunnels_management.py +++ b/src/uds/REST/methods/tunnels_management.py @@ -78,7 +78,7 @@ def as_tunnel_server_item(item: models.Server) -> TunnelServerItem: mac=item.mac if item.mac != consts.NULL_MAC else "", maintenance=item.maintenance_mode, ) - + @typing.override def get_item_position(self, parent: Model, item_uuid: str) -> int: parent = ensure.is_instance(parent, models.ServerGroup) @@ -87,10 +87,7 @@ def get_item_position(self, parent: Model, item_uuid: str) -> int: @typing.override def get_items(self, parent: "Model") -> types.rest.ItemsResult[TunnelServerItem]: parent = ensure.is_instance(parent, models.ServerGroup) - return [ - TunnelServers.as_tunnel_server_item(i) - for i in self.odata_filter(parent.servers.all()) - ] + return [TunnelServers.as_tunnel_server_item(i) for i in self.odata_filter(parent.servers.all())] @typing.override def get_item(self, parent: "Model", item: str) -> TunnelServerItem: diff --git a/src/uds/REST/methods/user_services.py b/src/uds/REST/methods/user_services.py index a39d2ed47..b796a03df 100644 --- a/src/uds/REST/methods/user_services.py +++ b/src/uds/REST/methods/user_services.py @@ -50,8 +50,6 @@ from uds.core.util.model import process_uuid from uds.REST.model import DetailHandler -from ._overview_cache import cached_overview - logger = logging.getLogger(__name__) @@ -175,7 +173,7 @@ def get_qs(self, for_cached: bool, parent: "models.ServicePool") -> QuerySet[mod def do_get_item_position(self, for_cached: bool, parent: "Model", item_uuid: str) -> int: parent = ensure.is_instance(parent, models.ServicePool) return self.calc_item_position(item_uuid, self.get_qs(for_cached, parent).all()) - + @typing.override def get_item_position(self, parent: Model, item_uuid: str) -> int: return self.do_get_item_position(for_cached=False, parent=parent, item_uuid=item_uuid) @@ -358,7 +356,7 @@ class CachedService(AssignedUserService): """ CUSTOM_METHODS = [] # Remove custom methods from assigned services - + @typing.override def get_item_position(self, parent: Model, item_uuid: str) -> int: return self.do_get_item_position(for_cached=True, parent=parent, item_uuid=item_uuid) diff --git a/src/uds/core/types/rest/__init__.py b/src/uds/core/types/rest/__init__.py index 5dcefc635..451fe812b 100644 --- a/src/uds/core/types/rest/__init__.py +++ b/src/uds/core/types/rest/__init__.py @@ -202,7 +202,7 @@ def as_dict(self) -> dict[str, typing.Any]: Returns a dictionary representation of the managed object item. """ # Note: This should not be necessary, but on some python versions, dataclasses.asdict - # seems to recurse infinitely on generic types, or do weird things with them. + # seems to recurse infinitely on generic types, or do weird things with them. # So we avoid it by temporarily removing the item. tmp_item = self.item self.item = typing.cast(T_Model, None) # Avoid recursion on data @@ -266,6 +266,7 @@ class LogEntry(BaseRestItem): source: str = dataclasses.field(metadata={"description": "Source of the log entry"}) message: str = dataclasses.field(metadata={"description": "Message of the log entry"}) + @dataclasses.dataclass class TypeInfo: name: str = dataclasses.field(metadata={"description": "Name of the type (Human readable)"}) diff --git a/src/uds/core/types/rest/api.py b/src/uds/core/types/rest/api.py index 0250ee99e..e3c57f100 100644 --- a/src/uds/core/types/rest/api.py +++ b/src/uds/core/types/rest/api.py @@ -15,7 +15,11 @@ def _as_dict_without_none(v: typing.Any) -> typing.Any: elif dataclasses.is_dataclass(v): return _as_dict_without_none(dataclasses.asdict(typing.cast(typing.Any, v))) elif isinstance(v, list): - return [_as_dict_without_none(item) for item in typing.cast(list[typing.Any], v) if item is not None] + return [ + _as_dict_without_none(item) + for item in typing.cast(list[typing.Any], v) # pyrefly: ignore[redundant-cast] + if item is not None + ] elif isinstance(v, dict): return { k: _as_dict_without_none(val) for k, val in typing.cast(dict[str, typing.Any], v).items() if val is not None diff --git a/tests/REST/methods/users_groups/test_users.py b/tests/REST/methods/users_groups/test_users.py index bbcbf3a50..0724efa47 100644 --- a/tests/REST/methods/users_groups/test_users.py +++ b/tests/REST/methods/users_groups/test_users.py @@ -34,7 +34,6 @@ import functools import datetime import logging -from typing_extensions import override from django.utils import timezone @@ -53,7 +52,6 @@ class UsersTest(rest.test.RESTActorTestCase): Test users group rest api """ - @override def setUp(self) -> None: timezone.activate(datetime.timezone.utc) super().setUp() @@ -108,7 +106,7 @@ def test_users_tableinfo(self) -> None: functools.reduce( lambda x, y: x and y, # pyright: ignore typing.cast( - collections.abc.Iterable[bool], + typing.Iterable[bool], map( lambda f: next(iter(f.keys())) in MUST_HAVE_FIELDS, fields, diff --git a/tests/fixtures/images.py b/tests/fixtures/images.py index e2e66d69c..6fc110f3f 100644 --- a/tests/fixtures/images.py +++ b/tests/fixtures/images.py @@ -336,7 +336,7 @@ def createImage(use_big: bool = False) -> "models.Image": stamp=timezone.localtime(), ) - image.storeImageFromBase64(big if use_big else small) # type: ignore + image.image = big if use_big else small image.save() - - return image \ No newline at end of file + + return image diff --git a/tests/fixtures/mfas.py b/tests/fixtures/mfas.py index 3f96cdd1f..c1743af91 100644 --- a/tests/fixtures/mfas.py +++ b/tests/fixtures/mfas.py @@ -51,11 +51,13 @@ class TestMFA(mfas.MFA): type_description = "MFA for testing purposes" icon_file = "mfa.png" + @typing.override def send_code( self, request: "ExtendedHttpRequest", userid: str, username: str, identifier: str, code: str ) -> mfas.MFA.RESULT: return mfas.MFA.RESULT.OK + @typing.override def process( self, request: "ExtendedHttpRequest", @@ -68,6 +70,7 @@ def process( self._put_data(request, userid, "123456") return mfas.MFA.RESULT.OK + @typing.override def validate( self, request: "ExtendedHttpRequest", @@ -83,6 +86,7 @@ def validate( return raise exceptions.auth.MFAError("Invalid code") + @typing.override def label(self) -> str: return "Test Code" diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py index 24dca17ca..091497a2a 100644 --- a/tests/utils/__init__.py +++ b/tests/utils/__init__.py @@ -47,10 +47,10 @@ def compare_dicts( expected: collections.abc.Mapping[str, typing.Any], actual: collections.abc.Mapping[str, typing.Any], - ignore_keys: typing.Optional[list[str]] = None, - ignore_values: typing.Optional[list[str]] = None, - ignore_keys_startswith: typing.Optional[list[str]] = None, - ignore_values_startswith: typing.Optional[list[str]] = None, + ignore_keys: list[str] | None = None, + ignore_values: list[str] | None = None, + ignore_keys_startswith: list[str] | None = None, + ignore_values_startswith: list[str] | None = None, ) -> list[tuple[str, str]]: """ Compares two dictionaries, returning a list of differences @@ -88,8 +88,8 @@ def compare_dicts( def ensure_data( item: models.Model, dct: collections.abc.Mapping[str, typing.Any], - ignore_keys: typing.Optional[list[str]] = None, - ignore_values: typing.Optional[list[str]] = None, + ignore_keys: list[str] | None = None, + ignore_values: list[str] | None = None, ) -> bool: """ Reads model as dict, fix some fields if needed and compares to dct @@ -225,7 +225,7 @@ def check_userinterface_values(obj: ui.UserInterface, values: ui.gui.ValuesDictT """ for k, v in values.items(): if isinstance(v, MustBeOfType): - assert isinstance(getattr(obj, k), v._kind) + assert isinstance(getattr(obj, k), v._kind) # pyrefly: ignore[invalid-argument] elif v == mock.ANY: pass else: From f76fbd381aeaec0eaf2eb7e9b9f500fd0b913fa6 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Wed, 22 Jul 2026 23:08:21 +0200 Subject: [PATCH 10/14] revert(rest): drop the admin overview caches Admin listings cannot be cached: an administrator who saves a change and goes back to the list must see it. A short TTL only delays the stale read, and invalidating locally does not help a second admin with the same page open. Removes _overview_cache and its use in authenticators and users_groups. The bulk group computation stays: it removes N+1 queries without serving stale data. --- src/uds/REST/methods/_overview_cache.py | 82 ------------------------- src/uds/REST/methods/authenticators.py | 18 ++---- src/uds/REST/methods/users_groups.py | 34 ++++------ 3 files changed, 17 insertions(+), 117 deletions(-) delete mode 100644 src/uds/REST/methods/_overview_cache.py diff --git a/src/uds/REST/methods/_overview_cache.py b/src/uds/REST/methods/_overview_cache.py deleted file mode 100644 index bce5da45c..000000000 --- a/src/uds/REST/methods/_overview_cache.py +++ /dev/null @@ -1,82 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2014-2019 Virtual Cable S.L. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# * Neither the name of Virtual Cable S.L. nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -""" -Shared short-lived cache for REST overview (get_items) results. - -The dashboard drill-down hammers several overview endpoints (it asks every -authenticator / every service pool at once) yet the underlying data changes -seldom, so we memoize the assembled list for a short while. flush=1 bypasses it. - -Lives in its own module so both users_groups and user_services can use it -without an import cycle (users_groups imports user_services). -""" -import collections.abc -import typing - -from django.db import models as django_models - -from uds.core import consts -from uds.core.util.cache import Cache -from uds.models import Group, User - -# Authenticator/pool overviews are hammered by the dashboard drill-down yet change -# seldom, so we memoize the assembled list for a short while. flush=1 bypasses it. -_overview_cache: typing.Final = Cache('UsersGroupsOverview') - -_T = typing.TypeVar('_T') - - -class _SupportsQueryParams(typing.Protocol): - def query_params(self) -> collections.abc.Mapping[str, typing.Any]: ... - - -def cached_overview( - handler: _SupportsQueryParams, - cache_key: str, - builder: collections.abc.Callable[[], list[_T]], -) -> list[_T]: - flush = str(handler.query_params().get('flush', '')).lower() in ('1', 'true', 'yes') - if not flush: - cached = _overview_cache.get(cache_key, consts.cache.CACHE_NOT_FOUND) - if cached is not consts.cache.CACHE_NOT_FOUND: - return typing.cast('list[_T]', cached) - data = builder() - _overview_cache.put(cache_key, data, consts.cache.SHORT_CACHE_TIMEOUT) - return data - - -def invalidate_overviews(*args: typing.Any, **kwargs: typing.Any) -> None: - _overview_cache.clear() - - -# An edit must be visible on the next listing, so drop every overview on write. -# Deliberately not hooked to UserService: its churn would keep the cache empty, -# so the counts derived from it stay stale until the timeout. -for _model in (User, Group): - django_models.signals.post_save.connect(invalidate_overviews, sender=_model) - django_models.signals.post_delete.connect(invalidate_overviews, sender=_model) diff --git a/src/uds/REST/methods/authenticators.py b/src/uds/REST/methods/authenticators.py index bc124c4e5..086922088 100644 --- a/src/uds/REST/methods/authenticators.py +++ b/src/uds/REST/methods/authenticators.py @@ -49,7 +49,7 @@ from uds.models import MFA, Authenticator, Network, Tag from uds.REST.model import ModelHandler -from .users_groups import Groups, Users, UserItem, cached_overview +from .users_groups import Groups, Users, UserItem # Not imported at runtime, just for type checking @@ -345,17 +345,11 @@ def users_with_services(self, item: "models.Model") -> list[UserItem]: item = ensure.is_instance(item, Authenticator) self.check_access(item, types.permissions.PermissionType.READ) - # userServices is a RelatedManager: users with a valid (not removed/canceled) service assigned - return cached_overview( - self, - f'users_with_services:{item.uuid}', - lambda: [ - Users.as_user_item(i) - for i in item.users.filter( - userServices__state__in=types.states.State.VALID_STATES - ).distinct() - ], - ) + # all users from this authhenticator with userservices assigned, and not removed or canceled + # userServices is a RelatedManager, so we can filter it directly + users = item.users.filter(userServices__state__in=types.states.State.VALID_STATES).distinct() + + return [Users.as_user_item(i) for i in users] @typing.override def test(self, type_: str) -> typing.Any: diff --git a/src/uds/REST/methods/users_groups.py b/src/uds/REST/methods/users_groups.py index 8dcaf30e8..9313414d7 100644 --- a/src/uds/REST/methods/users_groups.py +++ b/src/uds/REST/methods/users_groups.py @@ -45,7 +45,6 @@ from uds.core.auths.user import User as AUser from uds.core.util import log, ensure, ui as ui_utils -from uds.core.util.cache import Cache from uds.core.util.model import process_uuid, sql_stamp_seconds from uds.models import Authenticator, User, Group, ServicePool, UserService from uds.core.managers.crypto import CryptoManager @@ -62,11 +61,6 @@ # Details of /auth -# cached_overview lives in its own module so user_services can share it without an -# import cycle (this module imports user_services). Re-exported here for callers -# (e.g. authenticators) that already import it from users_groups. -from ._overview_cache import cached_overview # noqa: F401 (re-exported) - def get_groups_from_metagroup(groups: collections.abc.Iterable[Group]) -> collections.abc.Iterable[Group]: for g in groups: @@ -202,18 +196,15 @@ def get_item_position(self, parent: "Model", item_uuid: str) -> int: def get_items(self, parent: "Model") -> types.rest.ItemsResult[UserItem]: parent = ensure.is_instance(parent, Authenticator) - def build() -> list[UserItem]: - users = self.odata_filter(parent.users.prefetch_related('groups')) - # groups filled in bulk; per-user get_groups() would cost O(N) extra queries - groups_of = bulk_groups_of_users(users, parent) - items: list[UserItem] = [] - for u in users: - item = self.as_user_item(u) - item.groups = groups_of[u.uuid] - items.append(item) - return items - - return cached_overview(self, f'users:{parent.uuid}:{self._odata}', build) + users = self.odata_filter(parent.users.prefetch_related('groups')) + # groups filled in bulk; per-user get_groups() would cost O(N) extra queries + groups_of = bulk_groups_of_users(users, parent) + items: list[UserItem] = [] + for u in users: + item = self.as_user_item(u) + item.groups = groups_of[u.uuid] + items.append(item) + return items @typing.override def get_item(self, parent: "Model", item: str) -> UserItem: @@ -471,11 +462,8 @@ def get_item_position(self, parent: "Model", item_uuid: str) -> int: @typing.override def get_items(self, parent: "Model") -> types.rest.ItemsResult["GroupItem"]: parent = ensure.is_instance(parent, Authenticator) - return cached_overview( - self, - f'groups:{parent.uuid}:{self._odata}', - lambda: [self.as_group_item(i) for i in self.odata_filter(parent.groups.all())], - ) + q = self.odata_filter(parent.groups.all()) + return [self.as_group_item(i) for i in q] @typing.override def get_item(self, parent: "Model", item: str) -> "GroupItem": From ebca5d35484869658a8df64626c8e1d246d61c89 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Wed, 22 Jul 2026 23:36:06 +0200 Subject: [PATCH 11/14] Update translations and HTML script references - Added new translation strings to `translations-fakejs.js` for improved localization. - Removed duplicate translation entries and ensured consistency in the translation file. - Updated script references in `index.html` to the latest versions for better performance and security. --- src/uds/static/admin/main.js | 120 +-- src/uds/static/admin/polyfills.js | 4 +- src/uds/static/admin/translations-fakejs.js | 860 ++++++++++---------- src/uds/templates/uds/admin/index.html | 2 +- 4 files changed, 493 insertions(+), 493 deletions(-) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index e41e388b1..614836a94 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,8 +1,8 @@ var b4=Object.defineProperty,y4=Object.defineProperties;var C4=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var LT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var FT=(t,i,e)=>i in t?b4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})LT.call(i,e)&&FT(t,e,i[e]);if(Vf)for(var e of Vf(i))VT.call(i,e)&&FT(t,e,i[e]);return t},Ye=(t,i)=>y4(t,C4(i));var uC=(t,i)=>{var e={};for(var n in t)LT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Vf)for(var n of Vf(t))i.indexOf(n)<0&&VT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var vo=null,Bf=!1,mC=1,x4=null,xi=Symbol("SIGNAL");function ut(t){let i=vo;return vo=t,i}function jf(){return vo}var ml={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pl(t){if(Bf)throw new Error("");if(vo===null)return;vo.consumerOnSignalRead(t);let i=vo.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=vo.recomputing;if(n&&(e=i!==void 0?i.nextProducer:vo.producers,e!==void 0&&e.producer===t)){vo.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===vo&&(!n||D4(o,vo)))return;let r=Xd(vo),a={producer:t,consumer:vo,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};vo.producersTail=a,i!==void 0?i.nextProducer=a:vo.producers=a,r&&UT(t,a)}function BT(){mC++}function gc(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Bf;Bf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||w4(n)}}finally{Bf=i}}function hC(){return vo?.consumerAllowSignalWrites!==!1}function w4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Es(t){return t&&jT(t),ut(t)}function jT(t){t.producersTail=void 0,t.recomputing=!0}function hl(t,i){ut(i),t&&zT(t)}function zT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function fl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function UT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)UT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){x4?.(t)}function D4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(S4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),pl(e),e.value===Xa)throw e.error;return e.value};return n[xi]=e,Zm(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Xa=Symbol("ERRORED"),S4=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Xa&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function E4(){throw new Error}var HT=E4;function WT(t){HT(t)}function gC(t){HT=t}var M4=null;function _C(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>$T(e);return n[xi]=e,Zm(e),[n,a=>_c(e,a),a=>zf(e,a)]}function $T(t){return pl(t),t.value}function _c(t,i){hC()||WT(t),t.equal(t.value,i)||(t.value=i,T4(t))}function zf(t,i){hC()||WT(t),_c(t,i(t.value))}var ep=Ye(G({},ml),{equal:Xm,value:void 0,kind:"signal"});function T4(t){t.version++,BT(),pC(t),M4?.(t)}var vC=Ye(G({},ml),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Es(t);try{t.cleanup(),t.fn()}finally{hl(t,i)}}function _t(t){return typeof t=="function"}function gl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Uf=gl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{GT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)GT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function GT(t){_t(t)?t():t.unsubscribe()}var ua={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ua;if(i)i(t);else throw t})}function bc(){}var qT=CC("C",void 0,void 0);function YT(t){return CC("E",void 0,t)}function QT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ua.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function KT(t){ua.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new ma(i,e,n)}next(i){this.isStopped?wC(QT(i),this):this._next(i)}error(i){this.isStopped?wC(YT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(qT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},ma=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ua.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ua.useDeprecatedSynchronousErrorHandling?KT(t):Wf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ua;e&&Jd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new ma(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ZT(n),new n((o,r)=>{let a=new ma({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=ZT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ZT(t){var i;return(i=t??ua.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function XT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return XT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var JT=gl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new JT}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Br=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;aeI(i)&&t()),i},clearImmediate(t){eI(t)}};var{setImmediate:N4,clearImmediate:F4}=tI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||F4)(t)},delegate:void 0};var Yf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var vl=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends vl{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var pa=new vl(_l),nI=pa;var Zf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends vl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Ja(t){return eg(AC(t))?t.pop():void 0}function iI(t,i){return typeof AC(t)=="number"?t.pop():i}function rI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function oI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function aI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function sI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof oI=="function"?oI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=L4();function sg(t){return _t(t?.[ag])}function lg(t){return aI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return V4(t);if(ou(t))return B4(t);if(ng(t))return j4(t);if(og(t))return lI(t);if(sg(t))return z4(t);if(cg(t))return U4(t)}throw rg(t)}function V4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function lI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return lI(lg(t))}function H4(t,i){var e,n,o,r;return rI(this,void 0,void 0,function*(){try{for(e=sI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function bo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>bo(n,t,()=>n.next(o),i),()=>bo(n,t,()=>n.complete(),i),o=>bo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function cI(t,i){return gn(t).pipe(ug(i),dg(i))}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function mI(t,i){return new dt(e=>{let n;return bo(e,i,()=>{n=t[ag](),bo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{bo(e,i,()=>{let n=t[Symbol.asyncIterator]();bo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function pI(t,i){return mg(lg(t),i)}function hI(t,i){if(t!=null){if(ig(t))return cI(t,i);if(ou(t))return uI(t,i);if(ng(t))return dI(t,i);if(og(t))return mg(t,i);if(sg(t))return mI(t,i);if(cg(t))return pI(t,i)}throw rg(t)}function Hn(t,i){return i?hI(t,i):gn(t)}function Me(...t){let i=Ja(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Ms=gl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ma({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Ms)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var W4=gl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??pa,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=bo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function et(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ru(t){return et(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function yo(...t){let i=Ja(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>gg(o,a):mr));return e?r.pipe(ru(e)):r}function J4(t,i,e=mr){return n=>{fI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function fI(t,i,e){t?bo(e,t,i):i()}function gI(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>et((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>gI(n,o,t,e)))}function bl(t=1/0){return wi(mr,t)}function _I(){return bl(1)}function es(...t){return _I()(Hn(t,Ja(t)))}function pr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(vI(t,i)):oz(t)?nz.map(vI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function vI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ts(t=0,i,e=nI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=pa){return t<0&&(t=0),Ts(t,t,i)}function rn(...t){let i=Ja(t),e=iI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):bl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function bI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=pa){return bI(()=>Ts(t,i))}function ao(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,ao(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function yl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Is(t,i=pa){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function yI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function CI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function xI(t){return et(()=>t)}function OC(t,i){return i?e=>es(i.pipe(bn(1),CI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),xI(e)))}function sp(t,i=pa){let e=Ts(t,i);return OC(()=>e)}function _g(t,i=mr){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function wI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Ms}function Cl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ks(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):mr,bn(1),e?yI(i):wI(()=>new Ms))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new ma({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ma({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Br(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Ja(t);return kt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Xe(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):mr}var FC;function Cg(){return FC}function ts(t){let i=FC;return FC=t,i}var DI=Symbol("NotFound");function su(t){return t===DI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),pl(n),n.value===Xa)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function SI(t,i){gc(t),_c(t,i),Kd(t)}function EI(t,i){if(gc(t),t.value===Xa)throw t.error;zf(t,i),Kd(t)}var lz=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Xa,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function MI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(fa(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function fa(t,i){return`${cz(t)}${i?": "+i:""}`}var xo=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function RI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function Bi(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return uz(t,kg)}function ZC(t){return gp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),TI=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ns(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function ga(t){return typeof t=="string"?t:t==null?"":String(t)}var OI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return PI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function PI(t,i,e){let n=new ie(i,t);return n[OI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[OI]}var jC;function NI(){return jC}function ko(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function vz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(NI()||vz)(Bi(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function VI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,BI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&zI(o,r),e}function zI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=Bi(t),!t)return!1;let o=null,r=BC(t),a=!r&&ns(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&zI(u,i)}if(!s){let u=xl(o)||(()=>new o);i({provide:o,useFactory:u,deps:Co},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:Rs,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function UI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function HI(t){return!!t.useClass}var yp=new L(""),xg={},II={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,Co,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=ts(this),n=ko(void 0),o;try{return i()}finally{ts(e),ko(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(TI))return i[TI](this);let o=Tc(n),r,a=ts(this),s=ko(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{ko(s),ts(a)}}resolveInjectorInitializers(){let i=ut(null),e=ts(this),n=ko(void 0),o;try{let r=this.get(Rs,Co,{self:!0});for(let a of r)a()}finally{ts(e),ko(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=Bi(i);let e=Ic(i)?i:Bi(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===II)throw ix("");return e.value===xg&&(e.value=II,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Bi(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:xl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(UI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=Bi(t);return xl(o)||HC(o)}else if(UI(t))n=()=>Bi(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(Bi(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=Bi(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return xl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function zi(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=ts(e),r=ko(void 0);try{return i()}finally{ts(o),ko(r)}}function ux(){return NI()!==void 0||Cg()!=null}var va=0,mt=1,Ot=2,ji=3,jr=4,Ro=5,Rc=6,uu=7,Di=8,Os=9,ba=10,Vn=11,mu=12,mx=13,Oc=14,Oo=15,El=16,Pc=17,is=18,Ps=19,px=20,As=21,Lg=22,wl=23,hr=24,Nc=25,Ml=26,si=27,WI=1,hx=6,Tl=7,Cp=8,Fc=9,vi=10;function Ns(t){return Array.isArray(t)&&typeof t[WI]=="object"}function ya(t){return Array.isArray(t)&&t[WI]===!0}function fx(t){return(t.flags&4)!==0}function os(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function Ca(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",$I="math";function zr(t){for(;Array.isArray(t);)t=t[va];return t}function _x(t,i){return zr(i[t])}function Ur(t,i){return zr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Hr(t,i){let e=i[t];return Ns(e)?e:e[va]}function GI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function qI(t){return ya(t[ji])}function fr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function YI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[hr]?.dirty)}function zg(t){t[ba].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ba].changeDetectionScheduler?.notify(0);let i=Dl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=Dl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[As]===null&&(t[As]=[]),t[As].push(i)}function QI(t,i){if(t[As]===null)return;let e=t[As].indexOf(i);e!==-1&&t[As].splice(e,1)}function Dl(t){let i=t[ji];return ya(i)?i[ji]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function KI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ut={lFrame:sk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function ZI(){return Ut.lFrame.elementDepthCount}function XI(){Ut.lFrame.elementDepthCount++}function Dx(){Ut.lFrame.elementDepthCount--}function Ug(){return Ut.bindingsEnabled}function Sx(){return Ut.skipHydrationRootTNode!==null}function Ex(t){return Ut.skipHydrationRootTNode===t}function Mx(){Ut.skipHydrationRootTNode=null}function lt(){return Ut.lFrame.lView}function $n(){return Ut.lFrame.tView}function I(t){return Ut.lFrame.contextLView=t,t[Di]}function k(t){return Ut.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ut.lFrame.currentTNode}function JI(){let t=Ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ut.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ut.lFrame.isParent}function kx(){Ut.lFrame.isParent=!1}function ek(){return Ut.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ut.lFrame.bindingIndex}function tk(t){return Ut.lFrame.bindingIndex=t}function rs(){return Ut.lFrame.bindingIndex++}function wp(t){let i=Ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function nk(){return Ut.lFrame.inI18n}function ik(t,i){let e=Ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function ok(){return Ut.lFrame.currentDirectiveIndex}function Hg(t){Ut.lFrame.currentDirectiveIndex=t}function rk(t){let i=Ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ut.lFrame.currentQueryIndex}function Dp(t){Ut.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Ro]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ut.lFrame=ak();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=ak(),e=t[mt];Ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ak(){let t=Ut.lFrame,i=t===null?null:t.child;return i===null?sk(t):i}function sk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function lk(){let t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=lk;function Gg(){let t=lk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ck(t){return(Ut.lFrame.contextLView=YI(t,Ut.lFrame.contextLView))[Di]}function xa(){return Ut.lFrame.selectedIndex}function Il(t){Ut.lFrame.selectedIndex=t}function _u(){let t=Ut.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ut.lFrame.currentNamespace=gx}function wa(){Az()}function Az(){Ut.lFrame.currentNamespace=null}function Nx(){return Ut.lFrame.currentNamespace}var dk=!0;function qg(){return dk}function Sp(t){dk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||Co,jI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),wo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends wo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>QI(e,i)}};function Rz(){return new Sg(lt())}var Lx=!1,uk=new L(""),as=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(uk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(wo,{optional:!0})??void 0,this.pendingTasks=p(as,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return kI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),AI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return kI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),AI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function kI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return pk(t,"__ignore_ng_zone__")}function Vz(t){return pk(t,"__scheduler_tick__")}function pk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ao=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ao),e.handleError(n))})}}}),hk={provide:Rs,useValue:()=>{let t=p(Ao,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new vu(lt(),ki())}var ha=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(as);scheduler=p(ha);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Fs(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(wo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(ha);return r!==null?(o=Uz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var fk=Ye(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ye(G({},fk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ye(G({},fk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[wl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=gk(n,e),t[wl]??=new Set,t[wl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=gk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function gk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Xk(t){let i=xo.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function Jk(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>eA;return t.ngInherit=!0,t})();function eA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=nA(this),i=t?.current;if(i){let e=t.previous;if(e===_a)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=nA(t)||Jz(t,{previous:_a,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===_a),Jk(t,i,o,e)}var tA="__ngSimpleChanges__";function nA(t){return t[tA]||null}function Jz(t,i){return t[tA]=i}var _k=[];var Un=function(t,i=null,e){for(let n=0;n<_k.length;n++){let o=_k[n];o(t,i,e)}},Sn=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Sn||{});function eU(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=eA(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}function iA(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,vk(s,r)):vk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var sU=256,sA=sU-1,lA=5,lU=0,ss={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&sA,r=1<>lA)]|=r}function u_(t,i){let e=cA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(aA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function cA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&Ca(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?ko(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&ko(g),d_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&sA:pU:i}function yk(t,i,e){let n=1<>lA)]&n)}function Ck(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return mA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(Bi(t));return i&&i()}:xl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=pA(r,a,e,n|2,ss);if(s!==ss)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,ss,n&-5);if(h!==ss)return h}l=hA(a),a=a[Oc]}r=l}return o}function hA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Ro]:null}function Lp(t){return dU(ki(),t)}function fU(){return Tu(ki(),lt())}function Tu(t,i){return new se(Ur(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function fA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var gr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=LI(i);(this._changesDetected=!FI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function gA(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),_A=new Map,_U=0;function vU(){return _U++}function bU(t){_A.set(t[Ps],t)}function ew(t){_A.delete(t[Ps])}var xk="__ngContext__";function Du(t,i){Ns(i)?(t[xk]=i[Ps],bU(i)):t[xk]=i}function vA(t){return yA(t[mu])}function bA(t){return yA(t[jr])}function yA(t){for(;t!==null&&!ya(t);)t=t[jr];return t}var tw;function Vw(t){tw=t}function CA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Rl=new L("",{factory:()=>yU}),yU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Ol=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var wA="di";var Bw=new L(""),DA=!1,SA=new L("",{factory:()=>DA});var S_=new L("");var wk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=wk.get(t);e||(e=new WeakSet,wk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var DU=()=>null;function EA(t,i,e=!1){return DU(t,i,e)}function MA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return SU()?.createHTML(t)||t}var Xg;function TA(){if(Xg===void 0&&(Xg=null,xo.trustedTypes))try{Xg=xo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Dk(t){return TA()?.createHTML(t)||t}function Sk(t){return TA()?.createScriptURL(t)||t}var Ls=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Ls{getTypeName(){return"HTML"}},ow=class extends Ls{getTypeName(){return"Style"}},rw=class extends Ls{getTypeName(){return"Script"}},aw=class extends Ls{getTypeName(){return"URL"}},sw=class extends Ls{getTypeName(){return"ResourceURL"}};function _r(t){return t instanceof Ls?t.changingThisBreaksApplicationSecurity:t}function cs(t,i){let e=IA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function IA(t){return t instanceof Ls&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Vs(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var kA=Vs("area,br,col,hr,img,wbr"),AA=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RA=Vs("rp,rt"),IU=Bp(RA,AA),kU=Bp(AA,Vs("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")),AU=Bp(RA,Vs("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")),Ek=Bp(kA,kU,AU,IU),OA=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Vs("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"),OU=Vs("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"),PU=Bp(OA,RU,OU),NU=Vs("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Mk(i).toLowerCase();if(!Ek.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Mk(i).toLowerCase();Ek.hasOwnProperty(e)&&!kA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Tk(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw PA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw PA(i);return i}function Mk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function PA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Tk(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||EU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(Ik(e)||e);return M_(s)}finally{if(e){let n=Ik(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ik(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function NA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function FA(t,i,e){t.appendChild(i,e)}function kk(t,i,e,n,o){n!==null?m_(t,i,e,n,o):FA(t,i,e)}function LA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function VA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Dk(i.sanitize(Ai.HTML,t)||""):cs(t,"HTML")?Dk(_r(t)):T_(CA(),ga(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":cs(t,"URL")?_r(t):Vp(ga(t))}function BA(t){let i=qw();if(i)return Sk(i.sanitize(Ai.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return Sk(_r(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?BA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ba].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function jA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var zA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Da(n))return!1;a=!0}}}}return Da(n)||a}function Da(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Da(a)&&(i+=Ak(r,o),o=""),n=a,r=r||!Da(n);e++}return o!==""&&(i+=Ak(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ta=new L(""),Rk=new Set;function Wr(t){Rk.has(t)||(Rk.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(ha);errorHandler=p(Ao,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ta,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Wr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ta,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(wo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var GA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function qA(t,i,e){let n=t.get(GA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(GA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)qA(t,n.animateFns)}function Ok(t,i,e,n){let o=t?.[Ml]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;ya(o)?l=o:Ns(o)&&(u=!0,o=o[va]);let h=zr(o);t===0&&n!==null?(Ok(s,n,r,e),a==null?FA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Ok(s,n,r,e),m_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[Ml]?.leave?.has(r.index)&&gH(r,h),Ep.delete(h),Pk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}LA(i,h,u,g)})):t===3&&(Ep.delete(h),Pk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){YA(t,i),i[va]=null,i[Ro]=null}function xH(t,i,e,n,o,r){n[va]=o,n[Ro]=i,O_(t,n,e,1,o,r)}function YA(t,i){i[ba].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ns(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[jr]&&i!==t;)Ns(i)&&Hx(i[mt],i),i=i[ji];i===null&&(i=t),Ns(i)&&Hx(i[mt],i),e=i&&i[jr]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[hr]&&fl(i[hr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[El];if(n!==null&&ya(i[ji])){n!==i[ji]&&nD(n,i);let o=i[is];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Pk(t,i,e,n){let o=t?.[Ml];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Ps]),qA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[Ml].running=void 0,zc.delete(t[Ps]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[As];if(o!==null){i[As]=null;for(let a=0;asi&&$A(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Il(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function zp(t,i,e=Ur){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function eR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){os(t)&&nR(i,t.index);return}t.type&3&&(e=FH(e)),tR(t,i,e,n,o,r)}function tR(t,i,e,n,o,r){if(t.type&3){let a=Ur(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function nR(t,i){let e=Hr(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;os(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function KH(t){let i=t[hr]??Object.create(ZH);return i.lView=t,i}var ZH=Ye(G({},ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Dl(t.lView);for(;i&&!sR(i[mt]);)i=Dl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[hr]=this}});function sR(t){return t.type!==2}function lR(t){if(t[wl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[wl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function cR(t,i=0){let n=t[ba].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(sR(t)?(u=GH(i),l=Es(u)):jf()===null?(s=!1,u=KH(i),l=Es(u)):i[hr]&&(fl(i[hr]),i[hr]=null));try{bx(i),tk(t.bindingStartIndex),e!==null&&JA(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||t5(i),lR(i),dR(i,0),t.contentQueries!==null&&MA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&mR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(rR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(hl(u,l),s&&YH(u)),Gg()}}function dR(t,i){for(let e=vA(t);e!==null;e=bA(e))for(let n=vi;n0&&(t[e-1][jr]=n[jr]);let r=bp(t,vi+i);CH(n[mt],n);let a=r[is];a!==null&&a.detachView(r[mt]),n[ji]=null,n[jr]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][jr]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,cR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[El];e!==null&&!i&&nD(e,this._lView),YA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[El];n!==null&&!e&&gR(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new kl(r)}}return t})();function r5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),nk()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=JI();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[ji][Vn],o=[];for(let r of i)r.data[wA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,m5=()=>null;function p_(t,i){return u5(t,i)}function _R(t,i,e){return m5(t,i,e)}var vR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Hr(i.index,t);return(Ns(e)?e:t)[Vn]}var bR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(zr(P[t.index])):t.index;DR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function DR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function jk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);DR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function SR(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ns(i);return new Al(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(bR,null),n=t.get(ha,null),o=t.get(Ta,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=ER(t);return NA(i,e,e==="svg"?gx:e==="math"?$I:null)}function ER(t){return(t.selectors[0][0]||"div").toLowerCase()}var Al=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(SR(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=O5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u),g=a?.some(zk)||r?.some(S=>typeof S!="function"&&S.bindings.some(zk)),y=Zw(null,l,null,512|HA(s),null,null,i,u,e,null,EA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);VA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&N5(S,this.ngContentSelectors,n),w=Hr(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function O5(t,i,e,n){let o=t?["ng-version","21.2.17"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function zk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends vR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Hr(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new kl(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Hr(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function N5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=F5}return t})();function F5(){let t=ki();return MR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(aA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Uk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new Al(ns(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ns(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(qI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[ji],u=new t(l,l[Ro],l[ji]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Uk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new kl(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Uk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function MR(t,i){let e,n=i[t.index];return ya(n)?e=n:(e=pR(n,i,null,t),i[t.index]=e,Xw(i,e)),V5(e,i,t,n),new vw(e,t,i)}function L5(t,i){let e=t[Vn],n=e.createComment(""),o=Ur(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var V5=z5,B5=()=>!1;function j5(t,i,e){return B5(t,i,e)}function z5(t,i,e,n){if(t[Tl])return;let o;e.type&8?o=zr(n):o=L5(i,e),t[Tl]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function RR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function q5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function OR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):TR(e,t,n,i)}function PR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Y5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return PR(!0,!1,t)}function vD(t){return PR(!0,!0,t)}function NR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Y5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:Co;let o=fD(e,n),r=OR(e,n);return o.reset(r,fA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,Q5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>K5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),Q5.delete(r)}));yield Promise.all(o)})}function FR(){return Dw.size===0}function K5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ls=class{},B_=class{};var Op=class extends ls{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=jA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function LR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ls{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var Z5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=BR(t),e=Ye(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(Z5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ea.Emulated,styles:t.styles||Co,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wr("NgStandalone"),jR(e);let n=t.dependencies;return e.directiveDefs=b_(n,VR),e.pipeDefs=b_(n,nx),e.id=e8(e),e})}function VR(t){return ns(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||Co,declarations:t.declarations||Co,imports:t.imports||Co,exports:t.exports||Co,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function X5(t,i){if(t==null)return _a;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function J5(t){if(t==null)return _a;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=BR(t);return jR(i),i})}function Ia(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||_a,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Co,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:X5(t.inputs,i),outputs:J5(t.outputs),debugInfo:null}}function jR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function e8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=t8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function t8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===_a?{}:t===Co?[]:t}function a8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function s8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function l8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function UR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=d8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=pR(l,i,l,t);i[n+si]=u,Xw(i,u),j5(u,t,i)}function c8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&yR(i,t,y,fr(i.consts,u),rD),iA(i,y)):y=i.data[g],UR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=fr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function ds(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return ds(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(wo,{optional:!0})??void 0),xD||(WR(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(HR),we(U_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),HR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function WR(t){xD=t}var xD;function js(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Sl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=zi(this.injector,o);if(js(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function $R(){gC(()=>{let t="";throw new ie(600,t)})}function GR(t){return t.isBoundToModule}var m8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(et(e=>!e))}constructor(){p(Ta,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=GR(l)?void 0:this._injector.get(ls),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=rs();if(Po(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))os(r)&&nR(e,r.index);else{let s=Ur(r,e);iR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=rs();if(Po(o,r,i)){let a=$n(),s=_u();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function p8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=Gk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)$k(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=Gk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)$k(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function $k(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Gk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Wr("NgControlFlow");let e=lt(),n=rs(),o=e[n]!==so?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(Po(e,n,t)){let s=ut(null);try{if(r!==void 0&&fR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=_R(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=hR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Wr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Oo][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,fr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,fr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),h8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,f8(this.lContainer,i),g8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Os];bH(r,o),zc.delete(n[Ps]),o.detachedLeaveAnimationFns=void 0}}function f8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[Ml]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function g8(t,i){return Rp(t,i)}function _8(t,i){return hR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(os(s)){let l=o[ba].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(SR(u),()=>(qk(t,i,o,s,n),c))}}return qk(t,i,o,s,n),c}function qk(t,i,e,n,o){if(aD(n,e,t,i,qR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,qR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function mo(t,i,e,n){return dn(t,i,e,n),pn(),mo}var qR=(t,i,e,n,o)=>(Sp(!0),NA(i[Vn],n,Nx()));function us(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",v8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),us}function ms(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),ms}function Ri(t,i,e){return us(t,i,e),ms(),Ri}var v8=(t,i,e,n,o)=>(Sp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var b8=Gp;function YR(t){typeof t=="string"&&(b8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return QR(o,n,n[Vn],r,t,i,e),x}function Pl(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&wR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Pl}function QR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),wR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function x8(t){return(t&2)==2}function w8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function D8(t){return(t&1)===1}function Pw(t){return t|1}function S8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=w8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Yk(t,h,n,!0),Yk(t,h,n,!1),E8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function E8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Yk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];M8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function M8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T8(t){return t.substring(Sa.key,Sa.keyEnd)}function I8(t){return k8(t),KR(t,ZR(t,0,Sa.textEnd))}function KR(t,i){let e=Sa.textEnd;return e===i?-1:(i=Sa.keyEnd=A8(t,Sa.key=i,e),ZR(t,i,e))}function k8(t){Sa.key=0,Sa.keyEnd=0,Sa.value=0,Sa.valueEnd=0,Sa.textEnd=t.length}function ZR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return XR(t,i,e,!1),Si}function le(t,i){return XR(t,i,null,!0),le}function Tn(t){O8(B8,R8,t,!0)}function R8(t,i){for(let e=I8(i);e>=0;e=KR(i,e))Ng(t,T8(i),!0)}function XR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&eO(r,t,a,n),i!==so&&Po(o,a,i)){let s=r.data[xa()];tO(r,s,o,o[Vn],t,o[a+1]=z8(i,e),n,a)}}function O8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&eO(o,null,r,n);let a=lt();if(e!==so&&Po(a,r,e)){let s=o.data[xa()];if(nO(s,n)&&!JR(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else j8(o,s,a,a[Vn],a[r+1],a[r+1]=V8(t,i,e),n,r)}}function JR(t,i){return i>=t.expandoStartIndex}function eO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=JR(t,e);nO(r,n)&&i===null&&!a&&(i=!1),i=P8(o,r,i,n),S8(o,r,i,e,a,n)}}function P8(t,i,e,n){let o=rk(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=N8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),F8(t,i,n,l))}else r=L8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function N8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function F8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function L8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===so&&(y=g?Co:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function z8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(_r(t)))),t}function nO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=U8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var U8=(t,i,e,n)=>(Sp(!0),GU(i[Vn],n));function H8(t,i,e,n=""){return Po(t,rs(),e)?i+ga(e)+n:so}function W8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+ga(e)+n+ga(o)+r:so}function $8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return wp(3),u?i+ga(e)+n+ga(o)+r+ga(a)+s:so}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=H8(n,t,i,e);return o!==so&&MD(n,xa(),o),H}function No(t,i,e,n,o){let r=lt(),a=W8(r,t,i,e,n,o);return a!==so&&MD(r,xa(),a),No}function Q_(t,i,e,n,o,r,a){let s=lt(),l=$8(s,t,i,e,n,o,r,a);return l!==so&&MD(s,xa(),l),Q_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=rs();if(Po(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return QR(n,e,e[Vn],o,t,i),te}function Nl(t){return Po(lt(),rs(),t)?ga(t):so}function Kk(t,i,e){let n=$n();n.firstCreatePass&&iO(i,n.data,n.blueprint,Ca(t),e)}function iO(t,i,e,n,o){if(t=Bi(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Y8(o?q8:G8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=oO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=HI(i);if(o||r){let l=(r?Bi(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function oO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Kk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Kk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,VR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===so?pD(n,e,i()):D5(n,e)}function po(t,i,e){return aO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return sO(lt(),gu(),t,i,e,n)}function rO(t,i){let e=t[i];return e===so?void 0:e}function aO(t,i,e,n,o,r){let a=i+e;return Po(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):rO(t,a+1)}function sO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):rO(t,s+2)}function $t(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=Q8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=xl(n.type,!0)),a,s=ko(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{ko(s)}}function Q8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return lO(o,n)?aO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return lO(r,o)?sO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function lO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function cO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=jA(o.declarations).reduce((a,s)=>{let l=ns(s);return l&&a.push(new Al(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dO=new L("");var uO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Ui);taskService=p(as);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ta,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?mk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mO(){return[{provide:ha,useExisting:uO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function K8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||K8()});function hn(t){return MI(t)}function Fo(t,i){return Jm(t,i?.equal)}var Z8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,Z8,i?.equal);return pO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return pO(e,t.debugName)}}function pO(t,i){let e=t[xi],n=t;return n.set=o=>SI(e,o),n.update=o=>EI(e,o),n.asReadonly=Yg.bind(t),n}var wO=Symbol("InputSignalNode#UNSET"),c6=Ye(G({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function DO(t,i){let e=Object.create(c6);e.value=t,e.transformFn=i?.transform;function n(){if(pl(e),e.value===wO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Hi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},SO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function hO(t,i){return DO(t,i)}function d6(t){return DO(wO,t)}var EO=(hO.required=d6,hO);function fO(t,i){return _D(i)}function u6(t,i){return vD(i)}var Qp=(fO.required=u6,fO);function gO(t,i){return _D(i)}function m6(t,i){return vD(i)}var MO=(gO.required=m6,gO);function p6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function _O(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var h6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(ha);applicationRef=p(Ui);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f6=new L("",{factory:()=>!1});function g6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye(G({},IO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:Rs,multi:!0,useFactory:()=>{let e=p(h6,{optional:!0});return()=>e.initialize()}},{provide:Rs,multi:!0,useFactory:()=>{let e=p(_6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function TO(t){let i=t?.scheduleInRootZone,e=g6({ngZoneFactory:()=>{let n=IO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Wr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Sl([{provide:f6,useValue:!0},e])}function IO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(as);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),v6=new L("");function Yp(t){return!t.moduleRef}function b6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return C6(n,e,()=>{let r=i.get(as),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(YR(l||Gp),!i.get(v6,!0))return Yp(t)?i.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Ui);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return kO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var kO;function vO(){kO=y6}function y6(t,i){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function C6(t,i,e){try{let n=e();return js(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var AO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[mO(),...n?.applicationProviders??[],hk],r=LR(e.moduleType,this.injector,o);return vO(),b6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return vO(),p6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function x6(t){if(HD())throw new ie(400,!1);$R(),zD=t;let i=t.get(AO);return S6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??x6(w6(s,n))}return D6(o)}}function w6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function D6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(AO)??null}function S6(t){let i=t.get(D_,null);zi(t,()=>{i?.forEach(e=>e())})}var E6=1e4;var F0e=E6-1e3;var Ke=(()=>{class t{static __NG_ELEMENT_ID__=M6}return t})();function M6(t){return T6(ki(),lt(),(t&16)===16)}function T6(t,i,e){if(os(t)&&!e){let n=Hr(t.index,i);return new kl(n,n)}else if(t.type&175){let n=i[Oo];return new kl(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},I6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||I6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function yO(){return new zs([new OD])}var zs=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:yO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||yO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function CO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:CO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var RO=UD(null,"core",[]),OO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Ui))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),PO=new Set,k6=Ye(G({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(pl(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??PO)e()}finally{fl(i)}}};function NO(t,i){let e=i?.injector??p(Te),n=e.get(ha),o=e.get(A_),r=e.get(Ta,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ns(t),n=i.elementInjector||du();return new Al(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function FO(t){let i=ns(t);if(!i)return null;let e=new Al(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var LO=null;function vr(){return LO}function WD(t){LO??=t}var Kp=class{},Us=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(VO),providedIn:"platform"})}return t})(),$D=new L(""),VO=(()=>{class t extends Us{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function BO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function ka(t){return t&&t[0]!=="?"?`?${t}`:t}var Aa=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Aa{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ka(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ps=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=O6(BO(jO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ka(n))}normalize(e){return t.stripTrailingSlash(R6(this._basePath,jO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ka(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=ka;static joinWithSlash=nv;static stripTrailingSlash=BO;static \u0275fac=function(n){return new(n||t)(we(Aa))};static \u0275prov=$({token:t,factory:()=>A6(),providedIn:"root"})}return t})();function A6(){return new ps(we(Aa))}function R6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function jO(t){return t.replace(/\/index\.html$/,"")}function O6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Aa{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+ka(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,zO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=zO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):zO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ma.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function P6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},N6=new YD,F6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(js(e))return N6;if(H_(e))return F6;throw P6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ke,16))};static \u0275pipe=Ia({name:"async",type:t,pure:!1})}return t})();function L6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=UO;transform(e,n=UO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(L6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=Ia({name:"keyvalue",type:t,pure:!1})}return t})();function UO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function HO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=B6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(fa(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye(G({},e),{left:o-a[0],top:r-a[1]}))}};function B6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function WO(t){for(let i of t)i.remove()}function $O(t,i){let e=i.createElement("style");return e.textContent=t,e}function j6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,j6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,$O);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(WO(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])WO(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,$O(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Rl),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var qO="%COMP%",z6=`_nghost-${qO}`,U6=`_ngcontent-${qO}`,H6=!0,W6=new L("",{factory:()=>H6});function $6(t){return U6.replace(rS,t)}function G6(t){return z6.replace(rS,t)}function YO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ea.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ea.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ea.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Rl),we(W6),we(ke),we(be),we(Wc),we(Ta,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(GO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(GO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ma.DashCase|Ma.Important)?i.style.setProperty(e,n,o&Ma.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ma.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=vr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function GO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=YO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?YO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=$6(u),this.hostAttr=G6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=q6();return e==null?null:Y6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function q6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Y6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){xo.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},xo.getAllAngularTestabilities=()=>i.getAllTestabilities(),xo.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=xo.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};xo.frameworkStabilizers||(xo.frameworkStabilizers=[]),xo.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?vr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Q6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),QO=["alt","control","meta","shift"],K6={"\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"},Z6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),QO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=K6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),QO.forEach(a=>{if(a!==o){let s=Z6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function X6(){cv.makeCurrent()}function J6(){return new Ao}function eW(){return Vw(document),document}var tW=[{provide:Hc,useValue:XD},{provide:D_,useValue:X6,multi:!0},{provide:ke,useFactory:eW}],aS=UD(RO,"browser",tW);var nW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],iW=[{provide:yp,useValue:"root"},{provide:Ao,useFactory:J6},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:KO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:Q6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...iW,...nW],imports:[eh,OO]})}return t})();var Jo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return ZO(i)}encodeValue(i){return ZO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function oW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var rW=/%(\d[a-f0-9])/gi,aW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZO(t){return encodeURIComponent(t).replace(rW,(i,e)=>aW[e]??i)}function uv(t){return`${t}`}var Hs=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=oW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function sW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function XO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function JO(t){return typeof Blob<"u"&&t instanceof Blob}function eP(t){return typeof FormData<"u"&&t instanceof FormData}function lW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tP="Content-Type",nP="Accept",oP="text/plain",rP="application/json",cW=`${rP}, ${oP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(sW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Jo,this.context??=new mv,!this.params)this.params=new Hs,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Jo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},dW=200,uW=204;var mW=new L("");var pW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ta,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(nP)||a.setRequestHeader(nP,cW),!e.headers.has(tP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(tP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Jo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==uW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?dW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(pW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aP(t,i){return i(t)}function hW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function fW(t,i,e){return(n,o)=>zi(e,()=>i(n,r=>t(r,o)))}var sP=new L(""),cS=new L("",{factory:()=>[]}),lP=new L(""),dS=new L("",{factory:()=>!0});function gW(){let t=null;return(i,e)=>{t===null&&(t=(p(sP,{optional:!0})??[]).reduceRight(hW,aP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(Cl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(lP,[])]));this.chain=n.reduceRight((o,r)=>fW(o,r,this.injector),aP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Cl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Jo?l=o.headers:l=new Jo(o.headers);let u;o.params&&(o.params instanceof Hs?u=o.params:u=new Hs({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(yl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(et(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(et(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(et(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Hs().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _W=new L("",{factory:()=>!0}),vW="XSRF-TOKEN",bW=new L("",{factory:()=>vW}),yW="X-XSRF-TOKEN",CW=new L("",{factory:()=>yW}),xW=(()=>{class t{cookieName=p(bW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(xW),o},providedIn:"root"})}return t})();function wW(t,i){if(!p(_W)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(Us).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(cP).getToken(),n=p(CW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function DW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(mW,{optional:!0})??p(lS)},{provide:cS,useValue:wW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var iP=new L("");function fS(){return DW(pS.LegacyInterceptors,[{provide:iP,useFactory:gW},{provide:cS,useExisting:iP,multi:!0}])}var uP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(SW),o},providedIn:"root"})}return t})(),SW=(()=>{class t extends Ws{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return cs(n,"HTML")?_r(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return cs(n,"Style")?_r(n):n;case Ai.SCRIPT:if(cs(n,"Script"))return _r(n);throw new ie(5200,!1);case Ai.URL:return cs(n,"URL")?_r(n):Vp(String(n));case Ai.RESOURCE_URL:if(cs(n,"ResourceURL"))return _r(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(ks()).subscribe({next:n=>i(n),error:n=>e(n)})})}function EW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function MW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:js(t)?Hn(Promise.resolve(t)):Me(t)}function CP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var TW={exact:DP,subset:SP},xP={exact:IW,subset:kW,ignored:()=>!0},wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mP(t,i,e){return TW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function IW(t,i){return hs(t,i)}function DP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!DP(t.children[n],i.children[n],e))return!1;return!0}function kW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yP(t[e],i[e]))}function SP(t,i,e){return EP(t,i,i.segments,e)}function EP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!SP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:EP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var yr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return OW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Fl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return TP(this)}};function AW(t,i){return Kc(t,i)&&t.every((e,n)=>hs(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function RW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Bl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new Gs,providedIn:"root"})}return t})(),Gs=class{parse(i){let e=new DS(i);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=FW(i.queryParams),o=typeof i.fragment=="string"?`#${PW(i.fragment)}`:"";return`${e}${n}${o}`}},OW=new Gs;function bv(t){return t.segments.map(i=>TP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=RW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function MP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return MP(t).replace(/%3B/gi,";")}function PW(t){return encodeURI(t)}function wS(t){return MP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function pP(t){return yv(t.replace(/\+/g,"%20"))}function TP(t){return`${wS(t.path)}${NW(t.parameters)}`}function NW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function FW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var LW=/^[^\/()?;#]+/;function _S(t){let i=t.match(LW);return i?i[0]:""}var VW=/^[^\/()?;=#]+/;function BW(t){let i=t.match(VW);return i?i[0]:""}var jW=/^[^=?&#]+/;function zW(t){let i=t.match(jW);return i?i[0]:""}var UW=/^[^&#]+/;function HW(t){let i=t.match(UW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Fl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=BW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=zW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=HW(this.remaining);a&&(n=a,this.capture(n))}let o=pP(e),r=pP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function IP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function kP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=kP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return WW(e)}function WW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Ll(t){return t instanceof yr}function AP(t,i,e=null,n=null,o=new Gs){let r=RP(t);return OP(r,i,e,n,o)}function RP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=IP(n);return i??o}function OP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=$W(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=GW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):NP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function hP(t,i,e){t||="\u0275";let n=new yr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>hP(u,g,r)):hP(u,h,r);let s;t===i?s=e:s=PP(t,i,e);let l=IP(kP(s));return new yr(l,a,o)}function PP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=PP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==MW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $W(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function GW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return qW(e,o,t.numberOfDoubleDots)}function qW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function YW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function NP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=QW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=NP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function QW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!gP(l,u,a))return r;n+=2}else{if(!gP(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function fP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function gP(t,i,e){return t==e.path&&hs(i,e.parameters)}var ju="imperative",Wi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Wi||{}),Cr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Vl=class extends Cr{type=Wi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends Cr{urlAfterRedirects;type=Wi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Do=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Do||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),$r=class extends Cr{reason;code;type=Wi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function FP(t){return t instanceof $r&&(t.code===Do.Redirect||t.code===Do.SupersededByNewNavigation)}var fs=class extends Cr{reason;code;type=Wi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends Cr{error;target;type=Wi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends Cr{urlAfterRedirects;state;type=Wi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends Cr{urlAfterRedirects;state;type=Wi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends Cr{urlAfterRedirects;state;shouldActivate;type=Wi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends Cr{urlAfterRedirects;state;type=Wi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends Cr{urlAfterRedirects;state;type=Wi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=Wi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=Wi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=Wi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=Wi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=Wi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=Wi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=Wi.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function ZW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var br=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function LP(t,i){let e=XW(t,i),n=new on([new Fl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new br(l,[]),e)}function XW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new br(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(et(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(et(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(et(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&BP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return VP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function VP(t){let i=t.children.length>0?` { ${t.children.map(VP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),EW(i.url,e.url)||t.urlSubject.next(e.url),hs(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=hs(t.params,i.params)&&AW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function BP(t){return typeof t.title=="string"||t.title===null}var jP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=EO();parentContexts=p(ed);location=p(En);changeDetector=p(Ke);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===jP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=yo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=FO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function JW(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=e$(t,i,e);return new br(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=t$(i.value),o=i.children.map(r=>bh(t,r));return new br(n,o)}}function e$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function t$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},zP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Ll(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=UP(!1,Do.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function UP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[zP]=!0,e.cancellationCode=i,e}function n$(t){return HP(t)&&Ll(t.url)}function HP(t){return!!t&&t[zP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function i$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function o$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{r$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function r$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=a$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function a$(t,i,e){if(typeof e=="function")return zi(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!hs(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function s$(t){return typeof t=="boolean"}function l$(t){return t&&Dh(t.canLoad)}function c$(t){return t&&Dh(t.canActivate)}function d$(t){return t&&Dh(t.canActivateChild)}function u$(t){return t&&Dh(t.canDeactivate)}function m$(t){return t&&Dh(t.canMatch)}function WP(t){return t instanceof Ms||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>yo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(et(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||p$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function p$(t){return Ll(t)||t instanceof qu}function $P(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function GP(t){return Xe($P(t))}function h$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye(G({},i),{guardsResult:!0})):f$(r,e,n).pipe(wi(a=>a&&s$(a)?g$(e,o,t):Me(a)),et(a=>Ye(G({},i),{guardsResult:a})))})}function f$(t,i,e){return Hn(t).pipe(wi(n=>C$(n.component,n.route,e,i)),ks(n=>n!==!0,!0))}function g$(t,i,e){return Hn(i).pipe(yl(n=>es(v$(n.route.parent,e),_$(n.route,e),y$(t,n.path),b$(t,n.route))),ks(n=>n!==!0,!0))}function _$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function v$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function b$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>pr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=c$(a)?a.canActivate(i,t):zi(r,()=>a(i,t));return Jc(s).pipe(ks())}));return Me(n).pipe(Yu())}function y$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>o$(r)).filter(r=>r!==null).map(r=>pr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=d$(u)?u.canActivateChild(e,t):zi(l,()=>u(e,t));return Jc(h).pipe(ks())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function C$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=u$(l)?l.canDeactivate(t,i,e,n):zi(s,()=>l(t,i,e,n));return Jc(u).pipe(ks())});return Me(r).pipe(Yu())}function x$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=l$(l)?l.canLoad(i,e):zi(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(GP(o)):h});return Me(a).pipe(Yu(),qP(n))}function qP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),et(i=>i===!0))}function w$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=m$(u)?u.canMatch(i,e,o):zi(t,()=>u(i,e,o));return Jc(h).pipe(GP(r))});return Me(s).pipe(Yu(),qP(n))}var $s=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function D$(t){throw new ie(4e3,!1)}function S$(t){throw UP(!1,Do.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw D$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield E$(e,o,r);if(a instanceof yr)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new yr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function E$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(zi(e,()=>n(i))))}function M$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Ra(t){return t.outlet||Vt}function T$(t,i){let e=t.filter(n=>Ra(n)===i);return e.push(...t.filter(n=>Ra(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function I$(t,i,e,n,o,r,a){let s=QP(t,i,e);if(!s.matched)return Me(s);let l=YP(r(s));return n=M$(i,n),w$(n,i,e,o,l,a).pipe(et(u=>u===!0?s:G({},RS)))}function QP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||bP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function _P(t,i,e,n,o){return e.length>0&&R$(t,e,n,o)?{segmentGroup:new In(i,A$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&O$(t,e,n)?{segmentGroup:new In(t.segments,k$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function k$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Ra(r)]){let a=new In([],{});o[Ra(r)]=a}return G(G({},n),o)}function A$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Ra(n)!==Vt){let o=new In([],{});e[Ra(n)]=o}return e}function R$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Ra(o)!==Vt)?!1:!(n!==void 0&&Ra(o)===n))}function O$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function P$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function N$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var F$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=_P(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new br(n,e),r=new vh("",o),a=AP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $s?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof br?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=T$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=KP(a);return L$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof $s||WP(u))continue;throw u}if(P$(n,o,r))return new OS;throw new $s(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Ra(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new $s(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new $s(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=QP(e,o,r);if(!l)throw new $s(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>F$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,YP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,B$(e),Ra(e),e.component??e._loadedComponent??null,e,j$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(I$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new $s(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=_P(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new br(S,ve)}if(u.length===0&&j.length===0)return new br(S,[]);let F=Ra(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new br(S,q instanceof br?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(x$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw S$(e)}return{routes:[],injector:i}})}};function L$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function V$(t){let i=t.value.routeConfig;return i&&i.path===""}function KP(t){let i=[],e=new Set;for(let n of t){if(!V$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=KP(n.children);i.push(new br(n.value,o))}return i.filter(n=>!e.has(n))}function B$(t){return t.data||{}}function j$(t){return t.resolve||{}}function z$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield N$(t,i,e,n,s.extractedUrl,o,r,a);return Ye(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function U$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of ZP(s))r.add(l);let a=0;return Hn(r).pipe(yl(s=>o.has(s)?H$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function ZP(t){let i=t.children.map(e=>ZP(e)).flat();return[t,...i]}function H$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!BP(n)&&(o[Ch]=n.title),pr(()=>(t.data=NS(t,t.parent,e).resolve,W$(o,t,i).pipe(et(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function W$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>$$(t[r],i,e).pipe(ks(),fi(a=>{if(a instanceof qu)throw Fv(new Gs,a);o[r]=a}))),vg(1),et(()=>o),ao(r=>WP(r)?hi:wc(r)))}function $$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):zi(n,()=>o(i,e));return Jc(r)}function vP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(et(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(XP),providedIn:"root"})}return t})(),XP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(uP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield CP(zi(e,()=>n.loadComponent())),a=yield tN(eN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield JP(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JP(t,i,e,n){return B(this,null,function*(){let o=yield CP(zi(e,()=>t.loadChildren())),r=yield tN(eN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function G$(t){return t&&typeof t=="object"&&"default"in t}function eN(t){return G$(t)?t.default:t}function tN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(q$),providedIn:"root"})}return t})(),q$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function nN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Y$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&zi(t,()=>l({transition:s,from:i,to:e})),a}function Y$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var Q$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(wo);urlSerializer=p(Bl);rootContexts=p(ed);location=p(ps);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(jl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Vl(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),z$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(et(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Vl(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=LP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),et(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye(G({},s),{guards:i$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),h$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",Do.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(U$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",Do.NoDataFromResolver)}}))}),vP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),vP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(et(()=>n)):Me(n)}),bn(1),yn(s=>{let l=JW(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=Q$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Xe($P(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",Do.Aborted)}))),fi({complete:()=>{o=!0}}),Xe(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),Cl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ao(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(HP(s))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),n$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=zi(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K$(t){return t!==ju}var iN=new L("");var oN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Z$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},Z$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Bl);options=p(jl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ps);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof yr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=LP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),X$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Vl?this.updateStateMemento():e instanceof fs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!FP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof er&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof er||e instanceof $r||e instanceof Xc||e instanceof fs),et(e=>e instanceof er||e instanceof fs?0:(e instanceof $r?e.code===Do.Redirect||e.code===Do.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var tr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(jl,{optional:!0})||{};pendingTasks=p(as);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Bl);location=p(ps);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(oN);injectorCleanup=p(iN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof $r&&n.code!==Do.Redirect&&n.code!==Do.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof er)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||K$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ZW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=RP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return OP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Ll(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return J$(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(fa(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},wP):n===!1?o=G({},xS):o=G(G({},xS),n),Ll(e))return mP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function J$(t){for(let i=0;i{class t{router=p(tr);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Bl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof er&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new yr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Hi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(jl,{optional:!0});reactiveRouterState=p(tG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Ll(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Ll(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(tr),D(tt),Lp("tabindex"),D(Zt),D(se),D(Aa))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var rN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof er),yl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(bl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(bl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(tr),we(Cn),we(Sh),we(jv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aN=new L(""),nG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Bl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Ui).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Vl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof er?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function iG(){return p(tr).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function oG(){let t=p(Te);return i=>{let e=t.get(Ui);if(i!==e.components[0])return;let n=t.get(tr),o=t.get(sN);t.get($S)===1&&n.initialNavigation(),t.get(dN,null,{optional:!0})?.setUpPreloading(),t.get(aN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function lN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(tr),r=i.get(sN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function cN(){let t=[W_(()=>{p(tr).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var dN=new L("");function uN(t){return Eh(0,[{provide:dN,useExisting:rN},{provide:Sh,useExisting:t}])}function mN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function pN(t){Wr("NgRouterViewTransitions");let i=[{provide:zS,useValue:nN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var hN=[ps,{provide:Bl,useClass:Gs},tr,ed,{provide:tt,useFactory:iG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[hN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:jl,useValue:n||{}},n?.useHash?aG():sG(),rG(),n?.preloadingStrategy?uN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?lG(n):[],n?.bindToComponentInputs?mN().\u0275providers:[],n?.enableViewTransitions?pN().\u0275providers:[],cG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function rG(){return{provide:aN,useFactory:()=>{let t=p(JD),i=p(jl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new nG(i)}}}function aG(){return{provide:Aa,useClass:QD}}function sG(){return{provide:Aa,useClass:ov}}function lG(t){return[t.initialNavigation==="disabled"?cN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lN().\u0275providers:[]]}var WS=new L("");function cG(){return[{provide:WS,useFactory:oG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?HO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function fN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(fN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Gr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function $i(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Ui),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qs(t){return Array.isArray(t)?t:[t]}function Oa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Lo(t){return t instanceof se?t.nativeElement:t}var dG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),uG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function gN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?uG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(dG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(gN(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pa=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pa||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Pa.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Pa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Pa.NEGATED:Pa.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Na=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Na||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Na.INSERTED:Na.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Na.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var mG=20,zl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=mG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Lo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(zl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Pa.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Pa.INVERTED?e.left=e.right:Zu()==Pa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Pa.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Pa.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),pG=20,ho=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=pG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _N=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,xr,pt,xr]})}return t})();var KS={},zt=class t{_appId=p(Rl);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},nr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},Gi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},Ul=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof nr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Gi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends Ul{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ls,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},bN=(()=>{class t extends Gi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Vo=(()=>{class t extends Ul{_moduleRef=p(ls,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var yN=Kv();function Hl(t){return new Xv(t.get(ho),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function MN(t,i){return new Jv(t.get(zl),t.get(be),t.get(ho),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function CN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function Dr(t,i){return new eb(t.get(zl),t.get(ho),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},TN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>MN(this._injector,e);block=()=>Hl(this._injector);reposition=e=>Dr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kN=(()=>{class t extends IN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends IN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=$i(e)};_clickListener=e=>{let n=$i(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var RN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{GT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)GT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function GT(t){_t(t)?t():t.unsubscribe()}var ma={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ma;if(i)i(t);else throw t})}function bc(){}var qT=CC("C",void 0,void 0);function YT(t){return CC("E",void 0,t)}function QT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ma.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function KT(t){ma.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new pa(i,e,n)}next(i){this.isStopped?wC(QT(i),this):this._next(i)}error(i){this.isStopped?wC(YT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(qT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},pa=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ma.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ma.useDeprecatedSynchronousErrorHandling?KT(t):Wf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ma;e&&Jd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new pa(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ZT(n),new n((o,r)=>{let a=new pa({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=ZT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ZT(t){var i;return(i=t??ma.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function XT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return XT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var JT=gl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new JT}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Br=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;aeI(i)&&t()),i},clearImmediate(t){eI(t)}};var{setImmediate:N4,clearImmediate:F4}=tI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||F4)(t)},delegate:void 0};var Yf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var vl=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends vl{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var ha=new vl(_l),nI=ha;var Zf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends vl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Ja(t){return eg(AC(t))?t.pop():void 0}function iI(t,i){return typeof AC(t)=="number"?t.pop():i}function rI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function oI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function aI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function sI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof oI=="function"?oI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=L4();function sg(t){return _t(t?.[ag])}function lg(t){return aI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return V4(t);if(ou(t))return B4(t);if(ng(t))return j4(t);if(og(t))return lI(t);if(sg(t))return z4(t);if(cg(t))return U4(t)}throw rg(t)}function V4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function lI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return lI(lg(t))}function H4(t,i){var e,n,o,r;return rI(this,void 0,void 0,function*(){try{for(e=sI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function bo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>bo(n,t,()=>n.next(o),i),()=>bo(n,t,()=>n.complete(),i),o=>bo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function cI(t,i){return gn(t).pipe(ug(i),dg(i))}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function mI(t,i){return new dt(e=>{let n;return bo(e,i,()=>{n=t[ag](),bo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{bo(e,i,()=>{let n=t[Symbol.asyncIterator]();bo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function pI(t,i){return mg(lg(t),i)}function hI(t,i){if(t!=null){if(ig(t))return cI(t,i);if(ou(t))return uI(t,i);if(ng(t))return dI(t,i);if(og(t))return mg(t,i);if(sg(t))return mI(t,i);if(cg(t))return pI(t,i)}throw rg(t)}function Hn(t,i){return i?hI(t,i):gn(t)}function Me(...t){let i=Ja(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Ms=gl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new pa({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Ms)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var W4=gl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??ha,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=bo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function Qe(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ru(t){return Qe(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function yo(...t){let i=Ja(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>gg(o,a):mr));return e?r.pipe(ru(e)):r}function J4(t,i,e=mr){return n=>{fI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function fI(t,i,e){t?bo(e,t,i):i()}function gI(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>Qe((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>gI(n,o,t,e)))}function bl(t=1/0){return wi(mr,t)}function _I(){return bl(1)}function es(...t){return _I()(Hn(t,Ja(t)))}function pr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(vI(t,i)):oz(t)?nz.map(vI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function vI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ts(t=0,i,e=nI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=ha){return t<0&&(t=0),Ts(t,t,i)}function rn(...t){let i=Ja(t),e=iI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):bl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function bI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=ha){return bI(()=>Ts(t,i))}function Bi(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,Bi(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function yl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Is(t,i=ha){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function yI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function CI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function xI(t){return Qe(()=>t)}function OC(t,i){return i?e=>es(i.pipe(bn(1),CI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),xI(e)))}function sp(t,i=ha){let e=Ts(t,i);return OC(()=>e)}function _g(t,i=mr){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function wI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Ms}function Cl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ks(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):mr,bn(1),e?yI(i):wI(()=>new Ms))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new pa({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new pa({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Br(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Ja(t);return kt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Je(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):mr}var FC;function Cg(){return FC}function ts(t){let i=FC;return FC=t,i}var DI=Symbol("NotFound");function su(t){return t===DI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),pl(n),n.value===Xa)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function SI(t,i){gc(t),_c(t,i),Kd(t)}function EI(t,i){if(gc(t),t.value===Xa)throw t.error;zf(t,i),Kd(t)}var lz=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Xa,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function MI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(ga(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function ga(t,i){return`${cz(t)}${i?": "+i:""}`}var xo=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function RI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function ji(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return uz(t,kg)}function ZC(t){return gp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),TI=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ns(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function _a(t){return typeof t=="string"?t:t==null?"":String(t)}var OI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return PI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function PI(t,i,e){let n=new ie(i,t);return n[OI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[OI]}var jC;function NI(){return jC}function Ao(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function vz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(NI()||vz)(ji(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function VI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,BI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&zI(o,r),e}function zI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=ji(t),!t)return!1;let o=null,r=BC(t),a=!r&&ns(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&zI(u,i)}if(!s){let u=xl(o)||(()=>new o);i({provide:o,useFactory:u,deps:Co},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:Rs,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function UI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function HI(t){return!!t.useClass}var yp=new L(""),xg={},II={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,Co,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=ts(this),n=Ao(void 0),o;try{return i()}finally{ts(e),Ao(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(TI))return i[TI](this);let o=Tc(n),r,a=ts(this),s=Ao(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{Ao(s),ts(a)}}resolveInjectorInitializers(){let i=ut(null),e=ts(this),n=Ao(void 0),o;try{let r=this.get(Rs,Co,{self:!0});for(let a of r)a()}finally{ts(e),Ao(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=ji(i);let e=Ic(i)?i:ji(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===II)throw ix("");return e.value===xg&&(e.value=II,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=ji(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:xl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(UI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=ji(t);return xl(o)||HC(o)}else if(UI(t))n=()=>ji(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(ji(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=ji(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return xl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function Ui(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=ts(e),r=Ao(void 0);try{return i()}finally{ts(o),Ao(r)}}function ux(){return NI()!==void 0||Cg()!=null}var ba=0,mt=1,Ot=2,zi=3,jr=4,Oo=5,Rc=6,uu=7,Di=8,Os=9,ya=10,Vn=11,mu=12,mx=13,Oc=14,Po=15,El=16,Pc=17,is=18,Ps=19,px=20,As=21,Lg=22,wl=23,hr=24,Nc=25,Ml=26,si=27,WI=1,hx=6,Tl=7,Cp=8,Fc=9,vi=10;function Ns(t){return Array.isArray(t)&&typeof t[WI]=="object"}function Ca(t){return Array.isArray(t)&&t[WI]===!0}function fx(t){return(t.flags&4)!==0}function os(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function xa(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",$I="math";function zr(t){for(;Array.isArray(t);)t=t[ba];return t}function _x(t,i){return zr(i[t])}function Ur(t,i){return zr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Hr(t,i){let e=i[t];return Ns(e)?e:e[ba]}function GI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function qI(t){return Ca(t[zi])}function fr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function YI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[hr]?.dirty)}function zg(t){t[ya].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ya].changeDetectionScheduler?.notify(0);let i=Dl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=Dl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[As]===null&&(t[As]=[]),t[As].push(i)}function QI(t,i){if(t[As]===null)return;let e=t[As].indexOf(i);e!==-1&&t[As].splice(e,1)}function Dl(t){let i=t[zi];return Ca(i)?i[zi]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function KI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ut={lFrame:sk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function ZI(){return Ut.lFrame.elementDepthCount}function XI(){Ut.lFrame.elementDepthCount++}function Dx(){Ut.lFrame.elementDepthCount--}function Ug(){return Ut.bindingsEnabled}function Sx(){return Ut.skipHydrationRootTNode!==null}function Ex(t){return Ut.skipHydrationRootTNode===t}function Mx(){Ut.skipHydrationRootTNode=null}function lt(){return Ut.lFrame.lView}function $n(){return Ut.lFrame.tView}function I(t){return Ut.lFrame.contextLView=t,t[Di]}function k(t){return Ut.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ut.lFrame.currentTNode}function JI(){let t=Ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ut.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ut.lFrame.isParent}function kx(){Ut.lFrame.isParent=!1}function ek(){return Ut.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ut.lFrame.bindingIndex}function tk(t){return Ut.lFrame.bindingIndex=t}function rs(){return Ut.lFrame.bindingIndex++}function wp(t){let i=Ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function nk(){return Ut.lFrame.inI18n}function ik(t,i){let e=Ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function ok(){return Ut.lFrame.currentDirectiveIndex}function Hg(t){Ut.lFrame.currentDirectiveIndex=t}function rk(t){let i=Ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ut.lFrame.currentQueryIndex}function Dp(t){Ut.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Oo]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ut.lFrame=ak();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=ak(),e=t[mt];Ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ak(){let t=Ut.lFrame,i=t===null?null:t.child;return i===null?sk(t):i}function sk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function lk(){let t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=lk;function Gg(){let t=lk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ck(t){return(Ut.lFrame.contextLView=YI(t,Ut.lFrame.contextLView))[Di]}function wa(){return Ut.lFrame.selectedIndex}function Il(t){Ut.lFrame.selectedIndex=t}function _u(){let t=Ut.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ut.lFrame.currentNamespace=gx}function Da(){Az()}function Az(){Ut.lFrame.currentNamespace=null}function Nx(){return Ut.lFrame.currentNamespace}var dk=!0;function qg(){return dk}function Sp(t){dk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||Co,jI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),wo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends wo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>QI(e,i)}};function Rz(){return new Sg(lt())}var Lx=!1,uk=new L(""),as=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(uk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(wo,{optional:!0})??void 0,this.pendingTasks=p(as,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return kI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),AI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return kI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),AI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function kI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return pk(t,"__ignore_ng_zone__")}function Vz(t){return pk(t,"__scheduler_tick__")}function pk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ro=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ro),e.handleError(n))})}}}),hk={provide:Rs,useValue:()=>{let t=p(Ro,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new vu(lt(),ki())}var fa=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(as);scheduler=p(fa);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Fs(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(wo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(fa);return r!==null?(o=Uz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var fk=Ye(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ye(G({},fk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ye(G({},fk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[wl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=gk(n,e),t[wl]??=new Set,t[wl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=gk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function gk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Xk(t){let i=xo.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function Jk(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>eA;return t.ngInherit=!0,t})();function eA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=nA(this),i=t?.current;if(i){let e=t.previous;if(e===va)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=nA(t)||Jz(t,{previous:va,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===va),Jk(t,i,o,e)}var tA="__ngSimpleChanges__";function nA(t){return t[tA]||null}function Jz(t,i){return t[tA]=i}var _k=[];var Un=function(t,i=null,e){for(let n=0;n<_k.length;n++){let o=_k[n];o(t,i,e)}},Sn=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Sn||{});function eU(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=eA(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}function iA(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,vk(s,r)):vk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var sU=256,sA=sU-1,lA=5,lU=0,ss={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&sA,r=1<>lA)]|=r}function u_(t,i){let e=cA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(aA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function cA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&xa(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?Ao(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&Ao(g),d_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&sA:pU:i}function yk(t,i,e){let n=1<>lA)]&n)}function Ck(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return mA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(ji(t));return i&&i()}:xl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=pA(r,a,e,n|2,ss);if(s!==ss)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,ss,n&-5);if(h!==ss)return h}l=hA(a),a=a[Oc]}r=l}return o}function hA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Oo]:null}function Lp(t){return dU(ki(),t)}function fU(){return Tu(ki(),lt())}function Tu(t,i){return new se(Ur(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function fA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var gr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=LI(i);(this._changesDetected=!FI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function gA(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),_A=new Map,_U=0;function vU(){return _U++}function bU(t){_A.set(t[Ps],t)}function ew(t){_A.delete(t[Ps])}var xk="__ngContext__";function Du(t,i){Ns(i)?(t[xk]=i[Ps],bU(i)):t[xk]=i}function vA(t){return yA(t[mu])}function bA(t){return yA(t[jr])}function yA(t){for(;t!==null&&!Ca(t);)t=t[jr];return t}var tw;function Vw(t){tw=t}function CA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Rl=new L("",{factory:()=>yU}),yU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Ol=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var wA="di";var Bw=new L(""),DA=!1,SA=new L("",{factory:()=>DA});var S_=new L("");var wk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=wk.get(t);e||(e=new WeakSet,wk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var DU=()=>null;function EA(t,i,e=!1){return DU(t,i,e)}function MA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return SU()?.createHTML(t)||t}var Xg;function TA(){if(Xg===void 0&&(Xg=null,xo.trustedTypes))try{Xg=xo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Dk(t){return TA()?.createHTML(t)||t}function Sk(t){return TA()?.createScriptURL(t)||t}var Ls=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Ls{getTypeName(){return"HTML"}},ow=class extends Ls{getTypeName(){return"Style"}},rw=class extends Ls{getTypeName(){return"Script"}},aw=class extends Ls{getTypeName(){return"URL"}},sw=class extends Ls{getTypeName(){return"ResourceURL"}};function _r(t){return t instanceof Ls?t.changingThisBreaksApplicationSecurity:t}function cs(t,i){let e=IA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function IA(t){return t instanceof Ls&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Vs(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var kA=Vs("area,br,col,hr,img,wbr"),AA=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RA=Vs("rp,rt"),IU=Bp(RA,AA),kU=Bp(AA,Vs("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")),AU=Bp(RA,Vs("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")),Ek=Bp(kA,kU,AU,IU),OA=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Vs("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"),OU=Vs("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"),PU=Bp(OA,RU,OU),NU=Vs("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Mk(i).toLowerCase();if(!Ek.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Mk(i).toLowerCase();Ek.hasOwnProperty(e)&&!kA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Tk(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw PA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw PA(i);return i}function Mk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function PA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Tk(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||EU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(Ik(e)||e);return M_(s)}finally{if(e){let n=Ik(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ik(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function NA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function FA(t,i,e){t.appendChild(i,e)}function kk(t,i,e,n,o){n!==null?m_(t,i,e,n,o):FA(t,i,e)}function LA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function VA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Dk(i.sanitize(Ai.HTML,t)||""):cs(t,"HTML")?Dk(_r(t)):T_(CA(),_a(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":cs(t,"URL")?_r(t):Vp(_a(t))}function BA(t){let i=qw();if(i)return Sk(i.sanitize(Ai.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return Sk(_r(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?BA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ya].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function jA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var zA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Sa(n))return!1;a=!0}}}}return Sa(n)||a}function Sa(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Sa(a)&&(i+=Ak(r,o),o=""),n=a,r=r||!Sa(n);e++}return o!==""&&(i+=Ak(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ia=new L(""),Rk=new Set;function Wr(t){Rk.has(t)||(Rk.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(fa);errorHandler=p(Ro,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ia,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Wr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ia,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(wo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var GA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function qA(t,i,e){let n=t.get(GA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(GA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)qA(t,n.animateFns)}function Ok(t,i,e,n){let o=t?.[Ml]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;Ca(o)?l=o:Ns(o)&&(u=!0,o=o[ba]);let h=zr(o);t===0&&n!==null?(Ok(s,n,r,e),a==null?FA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Ok(s,n,r,e),m_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[Ml]?.leave?.has(r.index)&&gH(r,h),Ep.delete(h),Pk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}LA(i,h,u,g)})):t===3&&(Ep.delete(h),Pk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){YA(t,i),i[ba]=null,i[Oo]=null}function xH(t,i,e,n,o,r){n[ba]=o,n[Oo]=i,O_(t,n,e,1,o,r)}function YA(t,i){i[ya].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ns(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[jr]&&i!==t;)Ns(i)&&Hx(i[mt],i),i=i[zi];i===null&&(i=t),Ns(i)&&Hx(i[mt],i),e=i&&i[jr]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[hr]&&fl(i[hr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[El];if(n!==null&&Ca(i[zi])){n!==i[zi]&&nD(n,i);let o=i[is];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Pk(t,i,e,n){let o=t?.[Ml];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Ps]),qA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[Ml].running=void 0,zc.delete(t[Ps]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[As];if(o!==null){i[As]=null;for(let a=0;asi&&$A(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Il(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function zp(t,i,e=Ur){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function eR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){os(t)&&nR(i,t.index);return}t.type&3&&(e=FH(e)),tR(t,i,e,n,o,r)}function tR(t,i,e,n,o,r){if(t.type&3){let a=Ur(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function nR(t,i){let e=Hr(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;os(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function KH(t){let i=t[hr]??Object.create(ZH);return i.lView=t,i}var ZH=Ye(G({},ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Dl(t.lView);for(;i&&!sR(i[mt]);)i=Dl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[hr]=this}});function sR(t){return t.type!==2}function lR(t){if(t[wl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[wl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function cR(t,i=0){let n=t[ya].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(sR(t)?(u=GH(i),l=Es(u)):jf()===null?(s=!1,u=KH(i),l=Es(u)):i[hr]&&(fl(i[hr]),i[hr]=null));try{bx(i),tk(t.bindingStartIndex),e!==null&&JA(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||t5(i),lR(i),dR(i,0),t.contentQueries!==null&&MA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&mR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(rR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(hl(u,l),s&&YH(u)),Gg()}}function dR(t,i){for(let e=vA(t);e!==null;e=bA(e))for(let n=vi;n0&&(t[e-1][jr]=n[jr]);let r=bp(t,vi+i);CH(n[mt],n);let a=r[is];a!==null&&a.detachView(r[mt]),n[zi]=null,n[jr]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][jr]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,cR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[El];e!==null&&!i&&nD(e,this._lView),YA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[El];n!==null&&!e&&gR(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new kl(r)}}return t})();function r5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),nk()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=JI();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[zi][Vn],o=[];for(let r of i)r.data[wA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,m5=()=>null;function p_(t,i){return u5(t,i)}function _R(t,i,e){return m5(t,i,e)}var vR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Hr(i.index,t);return(Ns(e)?e:t)[Vn]}var bR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(zr(P[t.index])):t.index;DR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function DR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function jk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);DR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function SR(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ns(i);return new Al(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(bR,null),n=t.get(fa,null),o=t.get(Ia,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=ER(t);return NA(i,e,e==="svg"?gx:e==="math"?$I:null)}function O5(t){if(t?.toLowerCase()==="script")throw new ie(905,!1)}function ER(t){return(t.selectors[0][0]||"div").toLowerCase()}var Al=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(SR(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=P5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u);O5(h?.tagName);let g=a?.some(zk)||r?.some(S=>typeof S!="function"&&S.bindings.some(zk)),y=Zw(null,l,null,512|HA(s),null,null,i,u,e,null,EA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);VA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&F5(S,this.ngContentSelectors,n),w=Hr(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function P5(t,i,e,n){let o=t?["ng-version","21.2.18"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function zk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends vR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Hr(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new kl(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Hr(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function F5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=L5}return t})();function L5(){let t=ki();return MR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(aA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Uk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new Al(ns(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ns(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(qI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[zi],u=new t(l,l[Oo],l[zi]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Uk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new kl(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Uk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function MR(t,i){let e,n=i[t.index];return Ca(n)?e=n:(e=pR(n,i,null,t),i[t.index]=e,Xw(i,e)),B5(e,i,t,n),new vw(e,t,i)}function V5(t,i){let e=t[Vn],n=e.createComment(""),o=Ur(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var B5=U5,j5=()=>!1;function z5(t,i,e){return j5(t,i,e)}function U5(t,i,e,n){if(t[Tl])return;let o;e.type&8?o=zr(n):o=V5(i,e),t[Tl]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function RR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function Y5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function OR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):TR(e,t,n,i)}function PR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Q5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return PR(!0,!1,t)}function vD(t){return PR(!0,!0,t)}function NR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Q5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:Co;let o=fD(e,n),r=OR(e,n);return o.reset(r,fA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,K5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>Z5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),K5.delete(r)}));yield Promise.all(o)})}function FR(){return Dw.size===0}function Z5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ls=class{},B_=class{};var Op=class extends ls{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=jA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function LR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ls{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var X5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=BR(t),e=Ye(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(X5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ma.Emulated,styles:t.styles||Co,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wr("NgStandalone"),jR(e);let n=t.dependencies;return e.directiveDefs=b_(n,VR),e.pipeDefs=b_(n,nx),e.id=t8(e),e})}function VR(t){return ns(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||Co,declarations:t.declarations||Co,imports:t.imports||Co,exports:t.exports||Co,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function J5(t,i){if(t==null)return va;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function e8(t){if(t==null)return va;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=BR(t);return jR(i),i})}function ka(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||va,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Co,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:J5(t.inputs,i),outputs:e8(t.outputs),debugInfo:null}}function jR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function t8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=n8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function n8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===va?{}:t===Co?[]:t}function s8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function l8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function c8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function UR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=u8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=pR(l,i,l,t);i[n+si]=u,Xw(i,u),z5(u,t,i)}function d8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&yR(i,t,y,fr(i.consts,u),rD),iA(i,y)):y=i.data[g],UR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=fr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function ds(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return ds(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(wo,{optional:!0})??void 0),xD||(WR(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(HR),we(U_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),HR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function WR(t){xD=t}var xD;function js(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Sl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=Ui(this.injector,o);if(js(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function $R(){gC(()=>{let t="";throw new ie(600,t)})}function GR(t){return t.isBoundToModule}var p8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Hi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Qe(e=>!e))}constructor(){p(Ia,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=GR(l)?void 0:this._injector.get(ls),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=rs();if(No(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))os(r)&&nR(e,r.index);else{let s=Ur(r,e);iR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=rs();if(No(o,r,i)){let a=$n(),s=_u();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function h8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=Gk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)$k(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=Gk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)$k(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function $k(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Gk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Wr("NgControlFlow");let e=lt(),n=rs(),o=e[n]!==so?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(No(e,n,t)){let s=ut(null);try{if(r!==void 0&&fR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=_R(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=hR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Wr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Po][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,fr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,fr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),f8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,g8(this.lContainer,i),_8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Os];bH(r,o),zc.delete(n[Ps]),o.detachedLeaveAnimationFns=void 0}}function g8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[Ml]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _8(t,i){return Rp(t,i)}function v8(t,i){return hR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(os(s)){let l=o[ya].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(SR(u),()=>(qk(t,i,o,s,n),c))}}return qk(t,i,o,s,n),c}function qk(t,i,e,n,o){if(aD(n,e,t,i,qR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,qR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function mo(t,i,e,n){return dn(t,i,e,n),pn(),mo}var qR=(t,i,e,n,o)=>(Sp(!0),NA(i[Vn],n,Nx()));function us(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",b8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),us}function ms(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),ms}function Ri(t,i,e){return us(t,i,e),ms(),Ri}var b8=(t,i,e,n,o)=>(Sp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var y8=Gp;function YR(t){typeof t=="string"&&(y8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return QR(o,n,n[Vn],r,t,i,e),x}function Pl(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&wR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Pl}function QR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),wR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function w8(t){return(t&2)==2}function D8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function S8(t){return(t&1)===1}function Pw(t){return t|1}function E8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=D8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Yk(t,h,n,!0),Yk(t,h,n,!1),M8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function M8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Yk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];T8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function T8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Ea={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(Ea.key,Ea.keyEnd)}function k8(t){return A8(t),KR(t,ZR(t,0,Ea.textEnd))}function KR(t,i){let e=Ea.textEnd;return e===i?-1:(i=Ea.keyEnd=R8(t,Ea.key=i,e),ZR(t,i,e))}function A8(t){Ea.key=0,Ea.keyEnd=0,Ea.value=0,Ea.valueEnd=0,Ea.textEnd=t.length}function ZR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return XR(t,i,e,!1),Si}function le(t,i){return XR(t,i,null,!0),le}function Tn(t){P8(j8,O8,t,!0)}function O8(t,i){for(let e=k8(i);e>=0;e=KR(i,e))Ng(t,I8(i),!0)}function XR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&eO(r,t,a,n),i!==so&&No(o,a,i)){let s=r.data[wa()];tO(r,s,o,o[Vn],t,o[a+1]=U8(i,e),n,a)}}function P8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&eO(o,null,r,n);let a=lt();if(e!==so&&No(a,r,e)){let s=o.data[wa()];if(nO(s,n)&&!JR(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else z8(o,s,a,a[Vn],a[r+1],a[r+1]=B8(t,i,e),n,r)}}function JR(t,i){return i>=t.expandoStartIndex}function eO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[wa()],a=JR(t,e);nO(r,n)&&i===null&&!a&&(i=!1),i=N8(o,r,i,n),E8(o,r,i,e,a,n)}}function N8(t,i,e,n){let o=rk(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=F8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),L8(t,i,n,l))}else r=V8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function F8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function L8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function V8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===so&&(y=g?Co:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function U8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(_r(t)))),t}function nO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=H8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var H8=(t,i,e,n)=>(Sp(!0),GU(i[Vn],n));function W8(t,i,e,n=""){return No(t,rs(),e)?i+_a(e)+n:so}function $8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+_a(e)+n+_a(o)+r:so}function G8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return wp(3),u?i+_a(e)+n+_a(o)+r+_a(a)+s:so}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=W8(n,t,i,e);return o!==so&&MD(n,wa(),o),H}function Fo(t,i,e,n,o){let r=lt(),a=$8(r,t,i,e,n,o);return a!==so&&MD(r,wa(),a),Fo}function Q_(t,i,e,n,o,r,a){let s=lt(),l=G8(s,t,i,e,n,o,r,a);return l!==so&&MD(s,wa(),l),Q_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return QR(n,e,e[Vn],o,t,i),te}function Nl(t){return No(lt(),rs(),t)?_a(t):so}function Kk(t,i,e){let n=$n();n.firstCreatePass&&iO(i,n.data,n.blueprint,xa(t),e)}function iO(t,i,e,n,o){if(t=ji(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Q8(o?Y8:q8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=oO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=HI(i);if(o||r){let l=(r?ji(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function oO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Kk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Kk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,VR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===so?pD(n,e,i()):D5(n,e)}function po(t,i,e){return aO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return sO(lt(),gu(),t,i,e,n)}function rO(t,i){let e=t[i];return e===so?void 0:e}function aO(t,i,e,n,o,r){let a=i+e;return No(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):rO(t,a+1)}function sO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):rO(t,s+2)}function $t(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=K8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=xl(n.type,!0)),a,s=Ao(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{Ao(s)}}function K8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return lO(o,n)?aO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return lO(r,o)?sO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function lO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function cO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=jA(o.declarations).reduce((a,s)=>{let l=ns(s);return l&&a.push(new Al(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dO=new L("");var uO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Hi);taskService=p(as);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ia,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?mk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mO(){return[{provide:fa,useExisting:uO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function Z8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||Z8()});function hn(t){return MI(t)}function Lo(t,i){return Jm(t,i?.equal)}var X8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,X8,i?.equal);return pO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return pO(e,t.debugName)}}function pO(t,i){let e=t[xi],n=t;return n.set=o=>SI(e,o),n.update=o=>EI(e,o),n.asReadonly=Yg.bind(t),n}var wO=Symbol("InputSignalNode#UNSET"),d6=Ye(G({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function DO(t,i){let e=Object.create(d6);e.value=t,e.transformFn=i?.transform;function n(){if(pl(e),e.value===wO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Wi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},SO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function hO(t,i){return DO(t,i)}function u6(t){return DO(wO,t)}var EO=(hO.required=u6,hO);function fO(t,i){return _D(i)}function m6(t,i){return vD(i)}var Qp=(fO.required=m6,fO);function gO(t,i){return _D(i)}function p6(t,i){return vD(i)}var MO=(gO.required=p6,gO);function h6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function _O(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var f6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(fa);applicationRef=p(Hi);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g6=new L("",{factory:()=>!1});function _6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye(G({},IO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:Rs,multi:!0,useFactory:()=>{let e=p(f6,{optional:!0});return()=>e.initialize()}},{provide:Rs,multi:!0,useFactory:()=>{let e=p(v6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function TO(t){let i=t?.scheduleInRootZone,e=_6({ngZoneFactory:()=>{let n=IO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Wr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Sl([{provide:g6,useValue:!0},e])}function IO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var v6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(as);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),b6=new L("");function Yp(t){return!t.moduleRef}function y6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return x6(n,e,()=>{let r=i.get(as),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(YR(l||Gp),!i.get(b6,!0))return Yp(t)?i.get(Hi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Hi);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return kO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var kO;function vO(){kO=C6}function C6(t,i){let e=t.injector.get(Hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function x6(t,i,e){try{let n=e();return js(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var AO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[mO(),...n?.applicationProviders??[],hk],r=LR(e.moduleType,this.injector,o);return vO(),y6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return vO(),h6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function w6(t){if(HD())throw new ie(400,!1);$R(),zD=t;let i=t.get(AO);return E6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??w6(D6(s,n))}return S6(o)}}function D6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function S6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(AO)??null}function E6(t){let i=t.get(D_,null);Ui(t,()=>{i?.forEach(e=>e())})}var M6=1e4;var L0e=M6-1e3;var Ze=(()=>{class t{static __NG_ELEMENT_ID__=T6}return t})();function T6(t){return I6(ki(),lt(),(t&16)===16)}function I6(t,i,e){if(os(t)&&!e){let n=Hr(t.index,i);return new kl(n,n)}else if(t.type&175){let n=i[Po];return new kl(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},k6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||k6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function yO(){return new zs([new OD])}var zs=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:yO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||yO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function CO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:CO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var RO=UD(null,"core",[]),OO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Hi))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),PO=new Set,A6=Ye(G({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(pl(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??PO)e()}finally{fl(i)}}};function NO(t,i){let e=i?.injector??p(Te),n=e.get(fa),o=e.get(A_),r=e.get(Ia,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ns(t),n=i.elementInjector||du();return new Al(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function FO(t){let i=ns(t);if(!i)return null;let e=new Al(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var LO=null;function vr(){return LO}function WD(t){LO??=t}var Kp=class{},Us=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(VO),providedIn:"platform"})}return t})(),$D=new L(""),VO=(()=>{class t extends Us{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function BO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Aa(t){return t&&t[0]!=="?"?`?${t}`:t}var Ra=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Ra{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Aa(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ps=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=P6(BO(jO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Aa(n))}normalize(e){return t.stripTrailingSlash(O6(this._basePath,jO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=Aa;static joinWithSlash=nv;static stripTrailingSlash=BO;static \u0275fac=function(n){return new(n||t)(we(Ra))};static \u0275prov=$({token:t,factory:()=>R6(),providedIn:"root"})}return t})();function R6(){return new ps(we(Ra))}function O6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function jO(t){return t.replace(/\/index\.html$/,"")}function P6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Ra{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,zO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=zO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):zO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ta.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function N6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},F6=new YD,L6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(js(e))return F6;if(H_(e))return L6;throw N6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ze,16))};static \u0275pipe=ka({name:"async",type:t,pure:!1})}return t})();function V6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=UO;transform(e,n=UO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(V6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=ka({name:"keyvalue",type:t,pure:!1})}return t})();function UO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function HO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=j6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(ga(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye(G({},e),{left:o-a[0],top:r-a[1]}))}};function j6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function WO(t){for(let i of t)i.remove()}function $O(t,i){let e=i.createElement("style");return e.textContent=t,e}function z6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,z6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,$O);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(WO(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])WO(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,$O(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Rl),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var qO="%COMP%",U6=`_nghost-${qO}`,H6=`_ngcontent-${qO}`,W6=!0,$6=new L("",{factory:()=>W6});function G6(t){return H6.replace(rS,t)}function q6(t){return U6.replace(rS,t)}function YO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ma.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ma.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ma.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Rl),we($6),we(ke),we(be),we(Wc),we(Ia,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(GO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(GO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ta.DashCase|Ta.Important)?i.style.setProperty(e,n,o&Ta.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ta.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=vr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function GO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=YO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?YO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=G6(u),this.hostAttr=q6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Y6();return e==null?null:Q6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function Y6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Q6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){xo.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},xo.getAllAngularTestabilities=()=>i.getAllTestabilities(),xo.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=xo.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};xo.frameworkStabilizers||(xo.frameworkStabilizers=[]),xo.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?vr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},K6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),QO=["alt","control","meta","shift"],Z6={"\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"},X6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),QO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=Z6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),QO.forEach(a=>{if(a!==o){let s=X6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function J6(){cv.makeCurrent()}function eW(){return new Ro}function tW(){return Vw(document),document}var nW=[{provide:Hc,useValue:XD},{provide:D_,useValue:J6,multi:!0},{provide:ke,useFactory:tW}],aS=UD(RO,"browser",nW);var iW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],oW=[{provide:yp,useValue:"root"},{provide:Ro,useFactory:eW},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:KO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:K6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...oW,...iW],imports:[eh,OO]})}return t})();var Jo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return ZO(i)}encodeValue(i){return ZO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function rW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var aW=/%(\d[a-f0-9])/gi,sW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZO(t){return encodeURIComponent(t).replace(aW,(i,e)=>sW[e]??i)}function uv(t){return`${t}`}var Hs=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=rW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function lW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function XO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function JO(t){return typeof Blob<"u"&&t instanceof Blob}function eP(t){return typeof FormData<"u"&&t instanceof FormData}function cW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tP="Content-Type",nP="Accept",oP="text/plain",rP="application/json",dW=`${rP}, ${oP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(lW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Jo,this.context??=new mv,!this.params)this.params=new Hs,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Jo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},uW=200,mW=204;var pW=new L("");var hW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ia,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(nP)||a.setRequestHeader(nP,dW),!e.headers.has(tP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(tP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Jo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==mW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?uW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(hW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aP(t,i){return i(t)}function fW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function gW(t,i,e){return(n,o)=>Ui(e,()=>i(n,r=>t(r,o)))}var sP=new L(""),cS=new L("",{factory:()=>[]}),lP=new L(""),dS=new L("",{factory:()=>!0});function _W(){let t=null;return(i,e)=>{t===null&&(t=(p(sP,{optional:!0})??[]).reduceRight(fW,aP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(Cl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(lP,[])]));this.chain=n.reduceRight((o,r)=>gW(o,r,this.injector),aP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Cl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Jo?l=o.headers:l=new Jo(o.headers);let u;o.params&&(o.params instanceof Hs?u=o.params:u=new Hs({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(yl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(Qe(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(Qe(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Hs().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vW=new L("",{factory:()=>!0}),bW="XSRF-TOKEN",yW=new L("",{factory:()=>bW}),CW="X-XSRF-TOKEN",xW=new L("",{factory:()=>CW}),wW=(()=>{class t{cookieName=p(yW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(wW),o},providedIn:"root"})}return t})();function DW(t,i){if(!p(vW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(Us).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(cP).getToken(),n=p(xW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function SW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(pW,{optional:!0})??p(lS)},{provide:cS,useValue:DW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var iP=new L("");function fS(){return SW(pS.LegacyInterceptors,[{provide:iP,useFactory:_W},{provide:cS,useExisting:iP,multi:!0}])}var uP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(EW),o},providedIn:"root"})}return t})(),EW=(()=>{class t extends Ws{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return cs(n,"HTML")?_r(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return cs(n,"Style")?_r(n):n;case Ai.SCRIPT:if(cs(n,"Script"))return _r(n);throw new ie(5200,!1);case Ai.URL:return cs(n,"URL")?_r(n):Vp(String(n));case Ai.RESOURCE_URL:if(cs(n,"ResourceURL"))return _r(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(ks()).subscribe({next:n=>i(n),error:n=>e(n)})})}function MW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function TW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:js(t)?Hn(Promise.resolve(t)):Me(t)}function CP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var IW={exact:DP,subset:SP},xP={exact:kW,subset:AW,ignored:()=>!0},wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mP(t,i,e){return IW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function kW(t,i){return hs(t,i)}function DP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!DP(t.children[n],i.children[n],e))return!1;return!0}function AW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yP(t[e],i[e]))}function SP(t,i,e){return EP(t,i,i.segments,e)}function EP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!SP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:EP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var yr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return PW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Fl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return TP(this)}};function RW(t,i){return Kc(t,i)&&t.every((e,n)=>hs(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function OW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Bl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new Gs,providedIn:"root"})}return t})(),Gs=class{parse(i){let e=new DS(i);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=LW(i.queryParams),o=typeof i.fragment=="string"?`#${NW(i.fragment)}`:"";return`${e}${n}${o}`}},PW=new Gs;function bv(t){return t.segments.map(i=>TP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=OW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function MP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return MP(t).replace(/%3B/gi,";")}function NW(t){return encodeURI(t)}function wS(t){return MP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function pP(t){return yv(t.replace(/\+/g,"%20"))}function TP(t){return`${wS(t.path)}${FW(t.parameters)}`}function FW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function LW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var VW=/^[^\/()?;#]+/;function _S(t){let i=t.match(VW);return i?i[0]:""}var BW=/^[^\/()?;=#]+/;function jW(t){let i=t.match(BW);return i?i[0]:""}var zW=/^[^=?&#]+/;function UW(t){let i=t.match(zW);return i?i[0]:""}var HW=/^[^&#]+/;function WW(t){let i=t.match(HW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Fl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=jW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=UW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=WW(this.remaining);a&&(n=a,this.capture(n))}let o=pP(e),r=pP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function IP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function kP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=kP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return $W(e)}function $W(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Ll(t){return t instanceof yr}function AP(t,i,e=null,n=null,o=new Gs){let r=RP(t);return OP(r,i,e,n,o)}function RP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=IP(n);return i??o}function OP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=GW(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=qW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):NP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function hP(t,i,e){t||="\u0275";let n=new yr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>hP(u,g,r)):hP(u,h,r);let s;t===i?s=e:s=PP(t,i,e);let l=IP(kP(s));return new yr(l,a,o)}function PP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=PP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==TW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function GW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function qW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return YW(e,o,t.numberOfDoubleDots)}function YW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function QW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function NP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=KW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=NP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function KW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!gP(l,u,a))return r;n+=2}else{if(!gP(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function fP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function gP(t,i,e){return t==e.path&&hs(i,e.parameters)}var ju="imperative",$i=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})($i||{}),Cr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Vl=class extends Cr{type=$i.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends Cr{urlAfterRedirects;type=$i.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Do=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Do||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),$r=class extends Cr{reason;code;type=$i.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function FP(t){return t instanceof $r&&(t.code===Do.Redirect||t.code===Do.SupersededByNewNavigation)}var fs=class extends Cr{reason;code;type=$i.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends Cr{error;target;type=$i.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends Cr{urlAfterRedirects;state;type=$i.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends Cr{urlAfterRedirects;state;type=$i.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends Cr{urlAfterRedirects;state;shouldActivate;type=$i.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends Cr{urlAfterRedirects;state;type=$i.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends Cr{urlAfterRedirects;state;type=$i.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=$i.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=$i.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=$i.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=$i.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=$i.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=$i.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=$i.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function XW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var br=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function LP(t,i){let e=JW(t,i),n=new on([new Fl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new br(l,[]),e)}function JW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new br(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Qe(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(Qe(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Qe(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&BP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return VP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function VP(t){let i=t.children.length>0?` { ${t.children.map(VP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),MW(i.url,e.url)||t.urlSubject.next(e.url),hs(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=hs(t.params,i.params)&&RW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function BP(t){return typeof t.title=="string"||t.title===null}var jP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=EO();parentContexts=p(ed);location=p(En);changeDetector=p(Ze);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===jP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=yo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=FO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function e$(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=t$(t,i,e);return new br(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=n$(i.value),o=i.children.map(r=>bh(t,r));return new br(n,o)}}function t$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function n$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},zP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Ll(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=UP(!1,Do.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function UP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[zP]=!0,e.cancellationCode=i,e}function i$(t){return HP(t)&&Ll(t.url)}function HP(t){return!!t&&t[zP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function o$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function r$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{a$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function a$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=s$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function s$(t,i,e){if(typeof e=="function")return Ui(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!hs(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function l$(t){return typeof t=="boolean"}function c$(t){return t&&Dh(t.canLoad)}function d$(t){return t&&Dh(t.canActivate)}function u$(t){return t&&Dh(t.canActivateChild)}function m$(t){return t&&Dh(t.canDeactivate)}function p$(t){return t&&Dh(t.canMatch)}function WP(t){return t instanceof Ms||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>yo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(Qe(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||h$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function h$(t){return Ll(t)||t instanceof qu}function $P(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function GP(t){return Je($P(t))}function f$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye(G({},i),{guardsResult:!0})):g$(r,e,n).pipe(wi(a=>a&&l$(a)?_$(e,o,t):Me(a)),Qe(a=>Ye(G({},i),{guardsResult:a})))})}function g$(t,i,e){return Hn(t).pipe(wi(n=>x$(n.component,n.route,e,i)),ks(n=>n!==!0,!0))}function _$(t,i,e){return Hn(i).pipe(yl(n=>es(b$(n.route.parent,e),v$(n.route,e),C$(t,n.path),y$(t,n.route))),ks(n=>n!==!0,!0))}function v$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function b$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function y$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>pr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=d$(a)?a.canActivate(i,t):Ui(r,()=>a(i,t));return Jc(s).pipe(ks())}));return Me(n).pipe(Yu())}function C$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>r$(r)).filter(r=>r!==null).map(r=>pr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=u$(u)?u.canActivateChild(e,t):Ui(l,()=>u(e,t));return Jc(h).pipe(ks())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function x$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=m$(l)?l.canDeactivate(t,i,e,n):Ui(s,()=>l(t,i,e,n));return Jc(u).pipe(ks())});return Me(r).pipe(Yu())}function w$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=c$(l)?l.canLoad(i,e):Ui(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(GP(o)):h});return Me(a).pipe(Yu(),qP(n))}function qP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),Qe(i=>i===!0))}function D$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=p$(u)?u.canMatch(i,e,o):Ui(t,()=>u(i,e,o));return Jc(h).pipe(GP(r))});return Me(s).pipe(Yu(),qP(n))}var $s=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function S$(t){throw new ie(4e3,!1)}function E$(t){throw UP(!1,Do.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw S$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield M$(e,o,r);if(a instanceof yr)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new yr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function M$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(Ui(e,()=>n(i))))}function T$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Oa(t){return t.outlet||Vt}function I$(t,i){let e=t.filter(n=>Oa(n)===i);return e.push(...t.filter(n=>Oa(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function k$(t,i,e,n,o,r,a){let s=QP(t,i,e);if(!s.matched)return Me(s);let l=YP(r(s));return n=T$(i,n),D$(n,i,e,o,l,a).pipe(Qe(u=>u===!0?s:G({},RS)))}function QP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||bP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function _P(t,i,e,n,o){return e.length>0&&O$(t,e,n,o)?{segmentGroup:new In(i,R$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&P$(t,e,n)?{segmentGroup:new In(t.segments,A$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function A$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Oa(r)]){let a=new In([],{});o[Oa(r)]=a}return G(G({},n),o)}function R$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Oa(n)!==Vt){let o=new In([],{});e[Oa(n)]=o}return e}function O$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Oa(o)!==Vt)?!1:!(n!==void 0&&Oa(o)===n))}function P$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function N$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function F$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var L$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=_P(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new br(n,e),r=new vh("",o),a=AP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $s?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof br?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=I$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=KP(a);return V$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof $s||WP(u))continue;throw u}if(N$(n,o,r))return new OS;throw new $s(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Oa(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new $s(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new $s(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=QP(e,o,r);if(!l)throw new $s(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>L$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,YP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,j$(e),Oa(e),e.component??e._loadedComponent??null,e,z$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(k$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new $s(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=_P(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new br(S,ve)}if(u.length===0&&j.length===0)return new br(S,[]);let F=Oa(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new br(S,q instanceof br?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(w$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw E$(e)}return{routes:[],injector:i}})}};function V$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function B$(t){let i=t.value.routeConfig;return i&&i.path===""}function KP(t){let i=[],e=new Set;for(let n of t){if(!B$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=KP(n.children);i.push(new br(n.value,o))}return i.filter(n=>!e.has(n))}function j$(t){return t.data||{}}function z$(t){return t.resolve||{}}function U$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield F$(t,i,e,n,s.extractedUrl,o,r,a);return Ye(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function H$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of ZP(s))r.add(l);let a=0;return Hn(r).pipe(yl(s=>o.has(s)?W$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function ZP(t){let i=t.children.map(e=>ZP(e)).flat();return[t,...i]}function W$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!BP(n)&&(o[Ch]=n.title),pr(()=>(t.data=NS(t,t.parent,e).resolve,$$(o,t,i).pipe(Qe(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function $$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>G$(t[r],i,e).pipe(ks(),fi(a=>{if(a instanceof qu)throw Fv(new Gs,a);o[r]=a}))),vg(1),Qe(()=>o),Bi(r=>WP(r)?hi:wc(r)))}function G$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):Ui(n,()=>o(i,e));return Jc(r)}function vP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(Qe(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(XP),providedIn:"root"})}return t})(),XP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(uP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield CP(Ui(e,()=>n.loadComponent())),a=yield tN(eN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield JP(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JP(t,i,e,n){return B(this,null,function*(){let o=yield CP(Ui(e,()=>t.loadChildren())),r=yield tN(eN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function q$(t){return t&&typeof t=="object"&&"default"in t}function eN(t){return q$(t)?t.default:t}function tN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Y$),providedIn:"root"})}return t})(),Y$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function nN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Q$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&Ui(t,()=>l({transition:s,from:i,to:e})),a}function Q$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var K$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(wo);urlSerializer=p(Bl);rootContexts=p(ed);location=p(ps);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(jl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Vl(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),U$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(Qe(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Vl(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=LP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),Qe(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye(G({},s),{guards:o$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),f$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",Do.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(H$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",Do.NoDataFromResolver)}}))}),vP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),vP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(Qe(()=>n)):Me(n)}),bn(1),yn(s=>{let l=e$(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=K$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Je($P(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",Do.Aborted)}))),fi({complete:()=>{o=!0}}),Je(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),Cl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Bi(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(HP(s))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),i$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=Ui(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z$(t){return t!==ju}var iN=new L("");var oN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},X$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Bl);options=p(jl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ps);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof yr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=LP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(J$),providedIn:"root"})}return t})(),J$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Vl?this.updateStateMemento():e instanceof fs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!FP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof er&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof er||e instanceof $r||e instanceof Xc||e instanceof fs),Qe(e=>e instanceof er||e instanceof fs?0:(e instanceof $r?e.code===Do.Redirect||e.code===Do.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var tr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(jl,{optional:!0})||{};pendingTasks=p(as);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Bl);location=p(ps);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(oN);injectorCleanup=p(iN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof $r&&n.code!==Do.Redirect&&n.code!==Do.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof er)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Z$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}XW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=RP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return OP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Ll(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return eG(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(ga(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},wP):n===!1?o=G({},xS):o=G(G({},xS),n),Ll(e))return mP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eG(t){for(let i=0;i{class t{router=p(tr);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Bl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof er&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new yr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Wi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(jl,{optional:!0});reactiveRouterState=p(nG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Ll(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Lo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Ll(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(tr),D(tt),Lp("tabindex"),D(Zt),D(se),D(Ra))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var rN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof er),yl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(bl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(bl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(tr),we(Cn),we(Sh),we(jv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aN=new L(""),iG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Bl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Hi).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Vl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof er?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function oG(){return p(tr).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function rG(){let t=p(Te);return i=>{let e=t.get(Hi);if(i!==e.components[0])return;let n=t.get(tr),o=t.get(sN);t.get($S)===1&&n.initialNavigation(),t.get(dN,null,{optional:!0})?.setUpPreloading(),t.get(aN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function lN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(tr),r=i.get(sN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function cN(){let t=[W_(()=>{p(tr).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var dN=new L("");function uN(t){return Eh(0,[{provide:dN,useExisting:rN},{provide:Sh,useExisting:t}])}function mN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function pN(t){Wr("NgRouterViewTransitions");let i=[{provide:zS,useValue:nN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var hN=[ps,{provide:Bl,useClass:Gs},tr,ed,{provide:tt,useFactory:oG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[hN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:jl,useValue:n||{}},n?.useHash?sG():lG(),aG(),n?.preloadingStrategy?uN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?cG(n):[],n?.bindToComponentInputs?mN().\u0275providers:[],n?.enableViewTransitions?pN().\u0275providers:[],dG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function aG(){return{provide:aN,useFactory:()=>{let t=p(JD),i=p(jl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new iG(i)}}}function sG(){return{provide:Ra,useClass:QD}}function lG(){return{provide:Ra,useClass:ov}}function cG(t){return[t.initialNavigation==="disabled"?cN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lN().\u0275providers:[]]}var WS=new L("");function dG(){return[{provide:WS,useFactory:rG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?HO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function fN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(fN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Gr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Gi(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Hi),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qs(t){return Array.isArray(t)?t:[t]}function Pa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Vo(t){return t instanceof se?t.nativeElement:t}var uG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),mG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function gN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?mG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(uG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(gN(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Na=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Na||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Na.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Na.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Na.NEGATED:Na.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Fa=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Fa||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Fa.INSERTED:Fa.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Fa.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var pG=20,zl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Vo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(zl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Na.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Na.INVERTED?e.left=e.right:Zu()==Na.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Na.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Na.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),hG=20,ho=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=hG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _N=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,xr,pt,xr]})}return t})();var KS={},zt=class t{_appId=p(Rl);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},nr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},qi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},Ul=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof nr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof qi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends Ul{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ls,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},bN=(()=>{class t extends qi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Bo=(()=>{class t extends Ul{_moduleRef=p(ls,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var yN=Kv();function Hl(t){return new Xv(t.get(ho),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function MN(t,i){return new Jv(t.get(zl),t.get(be),t.get(ho),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function CN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function Dr(t,i){return new eb(t.get(zl),t.get(ho),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},TN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>MN(this._injector,e);block=()=>Hl(this._injector);reposition=e=>Dr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kN=(()=>{class t extends IN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends IN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Gi(e)};_clickListener=e=>{let n=Gi(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var RN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -141,7 +141,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=qs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},wN="cdk-overlay-connected-position-bounding-box",hG=/([A-Za-z%]+)$/;function Fa(t,i){return new em(i,t.get(ho),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(wN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=SN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=DN(this._overlayRef.getConfig().minHeight),s=DN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=SN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:CN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&qs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(hG);return!e||e==="px"?parseFloat(i):null}return t||null}function SN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function fG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EN="cdk-global-overlay-wrapper";function gs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},ON=(()=>{class t{_injector=p(Te);constructor(){}global(){return gs()}flexibleConnectedTo(e){return Fa(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function zo(t,i){t.get(an).load(RN);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Ui),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new Bo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(kN),n,t.get(ps),t.get(AN),i?.disableAnimations??t.get(Ol,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var PN=(()=>{class t{scrollStrategies=p(TN);_positionBuilder=p(ON);_injector=p(Te);constructor(){}create(e){return zo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gG=[{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"}],_G=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),NN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(_G);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(NN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new Gi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gG);let e=this._overlayRef=zo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=$i(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Bo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Fa(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[PN],imports:[pt,wr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function FN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return FN()?t:!!t.capture}var LN=new L("cdk-input-modality-detector-options"),VN={ignoreKeys:[18,17,224,91,16]},BN=650,tE={passive:!0,capture:!0},jN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=$i(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=$i(e)};constructor(){let e=p(be),n=p(ke),o=p(LN,{optional:!0});if(this._options=G(G({},VN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),zN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(jN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(zN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=$i(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Lo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Lo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Lo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?BN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=$i(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { +`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=qs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},wN="cdk-overlay-connected-position-bounding-box",fG=/([A-Za-z%]+)$/;function La(t,i){return new em(i,t.get(ho),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(wN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=SN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=DN(this._overlayRef.getConfig().minHeight),s=DN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=SN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:CN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&qs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(fG);return!e||e==="px"?parseFloat(i):null}return t||null}function SN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function gG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EN="cdk-global-overlay-wrapper";function gs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},ON=(()=>{class t{_injector=p(Te);constructor(){}global(){return gs()}flexibleConnectedTo(e){return La(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function Uo(t,i){t.get(an).load(RN);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Hi),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new jo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(kN),n,t.get(ps),t.get(AN),i?.disableAnimations??t.get(Ol,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var PN=(()=>{class t{scrollStrategies=p(TN);_positionBuilder=p(ON);_injector=p(Te);constructor(){}create(e){return Uo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_G=[{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"}],vG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),NN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(vG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(NN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new qi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_G);let e=this._overlayRef=Uo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Gi(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new jo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=La(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[PN],imports:[pt,wr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function FN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return FN()?t:!!t.capture}var LN=new L("cdk-input-modality-detector-options"),VN={ignoreKeys:[18,17,224,91,16]},BN=650,tE={passive:!0,capture:!0},jN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(e)};constructor(){let e=p(be),n=p(ke),o=p(LN,{optional:!0});if(this._options=G(G({},VN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),zN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(jN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(zN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Gi(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Vo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Vo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Vo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?BN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Gi(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -160,14 +160,14 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),ab;function vG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return vG()?.createHTML(t)||t}function UN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var HN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bG(t,i){if(!HN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),HN.add(t))}catch(e){console.error(e)}}function yG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WN(qs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=WN(qs(e)).map(a=>this._registerQuery(a).observable),r=yo(o);return r=es(r.pipe(bn(1)),r.pipe(Ec(1),Is(0))),r.pipe(et(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),et(({matches:a})=>({query:e,matches:a})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WN(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function CG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=(()=>{class t{_mutationObserverFactory=p($N);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Lo(e);return new dt(o=>{let a=this._observeElement(n).pipe(et(s=>s.filter(l=>!CG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_contentObserver=p(GN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Oa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Is(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$N]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=xG(AG(e));if(n&&(YN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=YN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!IG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return kG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xG(t){try{return t.frameElement}catch(i){return null}}function wG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SG(t){return MG(t)&&t.type=="hidden"}function EG(t){return TG(t)&&t.hasAttribute("href")}function MG(t){return t.nodeName.toLowerCase()=="input"}function TG(t){return t.nodeName.toLowerCase()=="a"}function ZN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function YN(t){if(!ZN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function IG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function kG(t){return SG(t)?!1:DG(t)||EG(t)||t.hasAttribute("contenteditable")||ZN(t)}function AG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(qr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Gr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),XN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),JN=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),RG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(JN,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Ws);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(XN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:UN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Wl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Wl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Wl.BLACK_ON_WHITE}return Wl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,QN,KN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Wl.BLACK_ON_WHITE?e.add(nE,QN):n===Wl.WHITE_ON_BLACK&&e.add(nE,KN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(eF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function OG(t,i){}var $l=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends Ul{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ke);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p($l,{optional:!0})||new $l,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Gr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Gr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,OG,0,0,"ng-template",0)},dependencies:[Vo],styles:[`.cdk-dialog-container { +`],encapsulation:2,changeDetection:0})}return t})(),ab;function bG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return bG()?.createHTML(t)||t}function UN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var HN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yG(t,i){if(!HN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),HN.add(t))}catch(e){console.error(e)}}function CG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WN(qs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=WN(qs(e)).map(a=>this._registerQuery(a).observable),r=yo(o);return r=es(r.pipe(bn(1)),r.pipe(Ec(1),Is(0))),r.pipe(Qe(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),Qe(({matches:a})=>({query:e,matches:a})),Je(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WN(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=(()=>{class t{_mutationObserverFactory=p($N);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Vo(e);return new dt(o=>{let a=this._observeElement(n).pipe(Qe(s=>s.filter(l=>!xG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_contentObserver=p(GN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Pa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Is(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$N]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return DG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=wG(RG(e));if(n&&(YN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=YN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return AG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wG(t){try{return t.frameElement}catch(i){return null}}function DG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function SG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function EG(t){return TG(t)&&t.type=="hidden"}function MG(t){return IG(t)&&t.hasAttribute("href")}function TG(t){return t.nodeName.toLowerCase()=="input"}function IG(t){return t.nodeName.toLowerCase()=="a"}function ZN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function YN(t){if(!ZN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function AG(t){return EG(t)?!1:SG(t)||MG(t)||t.hasAttribute("contenteditable")||ZN(t)}function RG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(qr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Gr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),XN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),JN=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),OG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(JN,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Ws);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(XN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:UN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Wl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Wl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Wl.BLACK_ON_WHITE}return Wl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,QN,KN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Wl.BLACK_ON_WHITE?e.add(nE,QN):n===Wl.WHITE_ON_BLACK&&e.add(nE,KN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(eF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function PG(t,i){}var $l=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends Ul{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ze);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p($l,{optional:!0})||new $l,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Gr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Gr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,PG,0,0,"ng-template",0)},dependencies:[Bo],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } -`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},PG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),NG=new L("DialogData"),FG=new L("DefaultDialogConfig");function LG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(FG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(PG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new $l;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=zo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new Bo({positionStrategy:e.positionStrategy||gs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:$l,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new nr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Gi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new nr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:NG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:LG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var tF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[fo,wr,cd,wr]})}return t})();function Yr(t){return t!=null&&`${t}`!="false"}function nF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 VG=new L("MATERIAL_ANIMATIONS"),iF=null;function cE(){return p(VG,{optional:!0})?.animationsDisabled||p(Ol,{optional:!0})==="NoopAnimations"?"di-disabled":(iF??=p(im).matchMedia("(prefers-reduced-motion)").matches,iF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var BG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:BG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Is(i),At(()=>this._pressedLetters.length>0),et(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof gr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ds(i)&&(this._effectRef=Fs(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Ys=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var aF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(aF)))}function Gl(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(aF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var sF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(qr),this._id=p(Rl)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(rF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(sF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Gl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function rF(t,i){t.id||(t.id=`${sF}-${i}-${uE++}`)}function jG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",lF="mdc-dialog--opening",cF="mdc-dialog--closing",zG=150,UG=75,HG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uF(this._config.enterAnimationDuration)??zG:0;_exitAnimationDuration=this._animationsEnabled?uF(this._config.exitAnimationDuration)??UG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(lF,cF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,jG,0,0,"ng-template",2),d()())},dependencies:[Vo],styles:[`.mat-mdc-dialog-container { +`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},NG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),FG=new L("DialogData"),LG=new L("DefaultDialogConfig");function VG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(LG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(NG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new $l;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=Uo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new jo({positionStrategy:e.positionStrategy||gs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:$l,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new nr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new qi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new nr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:FG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:VG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var tF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[fo,wr,cd,wr]})}return t})();function Yr(t){return t!=null&&`${t}`!="false"}function nF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 BG=new L("MATERIAL_ANIMATIONS"),iF=null;function cE(){return p(BG,{optional:!0})?.animationsDisabled||p(Ol,{optional:!0})==="NoopAnimations"?"di-disabled":(iF??=p(im).matchMedia("(prefers-reduced-motion)").matches,iF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var jG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:jG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Is(i),At(()=>this._pressedLetters.length>0),Qe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof gr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ds(i)&&(this._effectRef=Fs(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Ys=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var aF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(aF)))}function Gl(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(aF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var sF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(qr),this._id=p(Rl)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(rF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(sF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Gl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function rF(t,i){t.id||(t.id=`${sF}-${i}-${uE++}`)}function zG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",lF="mdc-dialog--opening",cF="mdc-dialog--closing",UG=150,HG=75,WG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uF(this._config.enterAnimationDuration)??UG:0;_exitAnimationDuration=this._animationsEnabled?uF(this._config.exitAnimationDuration)??HG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(lF,cF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,zG,0,0,"ng-template",2),d()())},dependencies:[Bo],styles:[`.mat-mdc-dialog-container { width: 100%; height: 100%; display: block; @@ -356,8 +356,8 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-dialog-component-host { display: contents; } -`],encapsulation:2})}return t})(),dF="--mat-dialog-transition-duration";function uF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Oa(t.substring(0,t.length-2)):t.endsWith("s")?Oa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Br(1);_beforeClosed=new Br(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function mF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),WG=new L("mat-mdc-dialog-default-options"),$G=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),jh=(()=>{class t{_defaultOptions=p(WG,{optional:!0});_scrollStrategy=p($G);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=HG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye(G({},n),{positionStrategy:gs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:$l,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=hF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){mF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),pF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=hF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends pF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends pF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function hF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var fF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[tF,fo,wr,pt]})}return t})();var gF,_F=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],vF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var bF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},ql=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||YG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=GG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Ho(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Ho(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Ho(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Ho(yF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Ho(l,3);case"k":return Ho(i.getHours(),y===void 0?" ":y);case"L":return Ho(Math.floor(r%1e3),3);case"l":return Ho(yF(i),y===void 0?" ":y);case"M":return Ho(i.getMinutes(),y);case"m":return Ho(i.getMonth()+1,y);case"n":return` -`;case"o":return String(i.getDate())+qG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Ho(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Ho(CF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Ho(CF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Ho(Math.abs(g/60))+Ho(g%60));default:return s}})},GG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Ho=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},qG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},CF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),qi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=ql(pE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),wF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,YG={days:_F,shortDays:bF(_F),months:vF,shortMonths:bF(vF),AM:"AM",PM:"PM",am:"am",pm:"pm"},Wo=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{gF=Symbol.toStringTag}constructor(){this[gF]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,DF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(DF),cm;let t=document.createElement("input");return cm=new Set(DF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},SF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,SF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,SF)))}_delegateEventHandler=i=>{let e=$i(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},QG=800,EF=nm({passive:!0,capture:!0}),MF=["mousedown","touchstart"],TF=["mouseup","mouseleave","touchend","touchcancel"],KG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { +`],encapsulation:2})}return t})(),dF="--mat-dialog-transition-duration";function uF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Pa(t.substring(0,t.length-2)):t.endsWith("s")?Pa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Br(1);_beforeClosed=new Br(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function mF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),$G=new L("mat-mdc-dialog-default-options"),GG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),jh=(()=>{class t{_defaultOptions=p($G,{optional:!0});_scrollStrategy=p(GG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=WG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye(G({},n),{positionStrategy:gs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:$l,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=hF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){mF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),pF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=hF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends pF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends pF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function hF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var fF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[tF,fo,wr,pt]})}return t})();var gF,_F=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],vF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var bF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},ql=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||QG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=qG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Wo(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Wo(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Wo(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Wo(yF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Wo(l,3);case"k":return Wo(i.getHours(),y===void 0?" ":y);case"L":return Wo(Math.floor(r%1e3),3);case"l":return Wo(yF(i),y===void 0?" ":y);case"M":return Wo(i.getMinutes(),y);case"m":return Wo(i.getMonth()+1,y);case"n":return` +`;case"o":return String(i.getDate())+YG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Wo(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Wo(CF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Wo(CF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Wo(Math.abs(g/60))+Wo(g%60));default:return s}})},qG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Wo=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},YG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},CF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),Yi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=ql(pE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),wF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,QG={days:_F,shortDays:bF(_F),months:vF,shortMonths:bF(vF),AM:"AM",PM:"PM",am:"am",pm:"pm"},So=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{gF=Symbol.toStringTag}constructor(){this[gF]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,DF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(DF),cm;let t=document.createElement("input");return cm=new Set(DF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},SF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,SF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,SF)))}_delegateEventHandler=i=>{let e=Gi(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},KG=800,EF=nm({passive:!0,capture:!0}),MF=["mousedown","touchstart"],TF=["mouseup","mouseleave","touchend","touchcancel"],ZG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -385,7 +385,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Lo(n)),r&&r.get(an).load(KG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||ZG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Lo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,MF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TF.forEach(e=>{this._triggerElement.addEventListener(e,this,EF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(MF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(TF.forEach(e=>i.removeEventListener(e,this,EF)),this._pointerUpEventsRegistered=!1))}};function ZG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Sr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var XG={capture:!0},JG=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",IF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>JG.map(n=>e.listen(this._document,n,this._onInteraction,XG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(IF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=$i(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(IF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Vo(n)),r&&r.get(an).load(ZG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||XG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Vo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,MF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TF.forEach(e=>{this._triggerElement.addEventListener(e,this,EF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(MF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(TF.forEach(e=>i.removeEventListener(e,this,EF)),this._pointerUpEventsRegistered=!1))}};function XG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Sr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var JG={capture:!0},e7=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",IF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>e7.map(n=>e.listen(this._document,n,this._onInteraction,JG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(IF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=Gi(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(IF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -411,7 +411,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var e7=["mat-icon-button",""],t7=["*"],n7=new L("MAT_BUTTON_CONFIG");function kF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(n7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",kF],_tabindex:[2,"tabindex","_tabindex",kF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:e7,ngContentSelectors:t7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),mo(0,"span",0),Ie(1),mo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var t7=["mat-icon-button",""],n7=["*"],i7=new L("MAT_BUTTON_CONFIG");function kF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(i7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",kF],_tabindex:[2,"tabindex","_tabindex",kF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:t7,ngContentSelectors:n7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),mo(0,"span",0),Ie(1),mo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -536,7 +536,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var i7=["matButton",""],o7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],r7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var AF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=a7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AF.get(this._appearance):null,r=AF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:i7,ngContentSelectors:r7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(o7),mo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),mo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var o7=["matButton",""],r7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],a7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var AF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=s7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AF.get(this._appearance):null,r=AF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:o7,ngContentSelectors:a7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(r7),mo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),mo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -1080,7 +1080,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function a7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var vs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Ws,16))}}static{this.\u0275pipe=Ia({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function s7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function l7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),$t(1,"safeHtml"),O(2,"mat-dialog-content",1),$t(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,s7,4,1,"button",2),A(6,l7,3,1,"button",3),A(7,c7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var BF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),jF=(()=>{class t extends BF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var d7={provide:Go,useExisting:Wn(()=>Ht),multi:!0};function u7(){let t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var m7=new L(""),Ht=(()=>{class t extends BF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!u7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(m7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Qe([d7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),p7=/^(?=.{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])?)*$/,bs=class{static min(i){return h7(i)}static max(i){return f7(i)}static required(i){return zF(i)}static requiredTrue(i){return g7(i)}static email(i){return _7(i)}static minLength(i){return v7(i)}static maxLength(i){return UF(i)}static pattern(i){return b7(i)}static nullValidator(i){return xb()}static compose(i){return YF(i)}static composeAsync(i){return QF(i)}};function h7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function zF(t){return wE(t.value)?{required:!0}:null}function g7(t){return t.value===!0?null:{required:!0}}function _7(t){return wE(t.value)||p7.test(t.value)?null:{email:!0}}function v7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function b7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function HF(t){return t!=null}function WF(t){return js(t)?Hn(t):t}function $F(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function GF(t,i){return i.map(e=>e(t))}function y7(t){return!t.validate}function qF(t){return t.map(i=>y7(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){return $F(GF(e,i))}}function SE(t){return t!=null?YF(qF(t)):null}function QF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){let n=GF(e,i).map(WF);return rp(n).pipe(et($F))}}function EE(t){return t!=null?QF(qF(t)):null}function OF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function KF(t){return t._rawValidators}function ZF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function PF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function NF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Qs=class extends Db{name;get formDirective(){return null}get path(){return null}},ir=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(ir,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Qs,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",Yl=class{},Eb=class extends Yl{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends Yl{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends Yl{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends Yl{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends Yl{source;constructor(i){super(),this.source=i}},Tb=class extends Yl{source;constructor(i){super(),this.source=i}};function XF(t){return(Fb(t)?t.validators:t)||null}function C7(t){return Array.isArray(t)?SE(t):t||null}function JF(t,i){return(Fb(i)?i.asyncValidators:t)||null}function x7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function w7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function D7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Fo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Fo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Fo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(PF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(PF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(NF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=WF(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=C7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=x7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(XF(e),JF(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){D7(this,!0,i),Object.keys(i).forEach(n=>{w7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function S7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),M7(t,i),I7(t,i),T7(t,i),E7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function E7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=KF(t);i.validator!==null?t.setValidators(OF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ZF(t);i.asyncValidator!==null?t.setAsyncValidators(OF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=KF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function M7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&e2(t,i)})}function T7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&e2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function e2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function I7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t2(t,i){t==null,ME(t,i)}function k7(t,i){return Ob(t,i)}function n2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function A7(t){return Object.getPrototypeOf(t.constructor)===jF}function i2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function o2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Ht?e=r:A7(r)?n=r:o=r}),o||n||e||null}function R7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var O7={provide:Qs,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Fo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});t2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),i2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([O7]),We]})}return t})();function FF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function LF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(XF(e),JF(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(LF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){LF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var P7=t=>t instanceof Vb;var N7={provide:ir,useExisting:Wn(()=>Ze)},VF=Promise.resolve(),Ze=(()=>{class t extends ir{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=o2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),n2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){VF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);VF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?S7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Qs,9),D(Xr,10),D(Pb,10),D(Go,10),D(Ke,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Qe([N7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),F7={provide:Go,useExisting:Wn(()=>Er),multi:!0},Er=(()=>{class t extends jF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Qe([F7]),We]})}return t})();var L7=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Fo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),R7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,i2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),P7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);t2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&k7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var r2=new L(""),V7={provide:ir,useExisting:Wn(()=>TE)},TE=(()=>{class t extends ir{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=o2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}n2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(Go,10),D(r2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Qe([V7]),We,Ct]})}return t})();var B7={provide:Qs,useExisting:Wn(()=>Ql)},Ql=(()=>{class t extends L7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Qe([B7]),We]})}return t})();function j7(t){return typeof t=="number"?t:parseInt(t,10)}var a2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var z7={provide:Xr,useExisting:Wn(()=>Yi),multi:!0};var Yi=(()=>{class t extends a2{required;inputName="required";normalizeInput=K;createValidator=e=>zF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Qe([z7]),We]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends a2{maxlength;inputName="maxlength";normalizeInput=e=>j7(e);createValidator=e=>UF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Qe([U7]),We]})}return t})();var s2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var l2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:r2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function H7(t,i){t&1&&Ie(0)}var W7=["tabListContainer"],$7=["tabList"],G7=["tabListInner"],q7=["nextPaginator"],Y7=["previousPaginator"],Q7=["content"];function K7(t,i){}var Z7=["tabBodyWrapper"],X7=["tabHeader"];function J7(t,i){}function e9(t,i){if(t&1&&xe(0,J7,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function t9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function n9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,e9,1,1,null,12)(7,t9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function i9(t,i){t&1&&Ie(0)}function o9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var r9=new L("MatTabContent"),a9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Qe([{provide:r9,useExisting:t}])]})}return t})(),s9=new L("MatTabLabel"),m2=new L("MAT_TAB"),Yn=(()=>{class t extends bN{_closestTab=p(m2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Qe([{provide:s9,useExisting:t}]),We]})}return t})(),p2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(p2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Gi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,a9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Qe([{provide:m2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Bs(0,H7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",c2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},l9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(c2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(c2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var h2=(()=>{class t extends l9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),d2={passive:!0},c9=650,d9=100,u9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_viewportRuler=p(ho);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),d2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),d2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Is(32),Xe(this._destroyed)),o=this._viewportRuler.change(150).pipe(Xe(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ys(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Xe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ts(c9,d9).pipe(Xe(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),m9=(()=>{class t extends u9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,h2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at(W7,7)($7,7)(G7,7)(q7,5)(Y7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Sr,qN],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return t})();function s7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var vs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Ws,16))}}static{this.\u0275pipe=ka({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function l7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function d7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),$t(1,"safeHtml"),O(2,"mat-dialog-content",1),$t(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,l7,4,1,"button",2),A(6,c7,3,1,"button",3),A(7,d7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var BF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),jF=(()=>{class t extends BF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var u7={provide:Go,useExisting:Wn(()=>Ht),multi:!0};function m7(){let t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p7=new L(""),Ht=(()=>{class t extends BF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!m7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(p7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ke([u7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),h7=/^(?=.{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])?)*$/,bs=class{static min(i){return f7(i)}static max(i){return g7(i)}static required(i){return zF(i)}static requiredTrue(i){return _7(i)}static email(i){return v7(i)}static minLength(i){return b7(i)}static maxLength(i){return UF(i)}static pattern(i){return y7(i)}static nullValidator(i){return xb()}static compose(i){return YF(i)}static composeAsync(i){return QF(i)}};function f7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function zF(t){return wE(t.value)?{required:!0}:null}function _7(t){return t.value===!0?null:{required:!0}}function v7(t){return wE(t.value)||h7.test(t.value)?null:{email:!0}}function b7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function y7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function HF(t){return t!=null}function WF(t){return js(t)?Hn(t):t}function $F(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function GF(t,i){return i.map(e=>e(t))}function C7(t){return!t.validate}function qF(t){return t.map(i=>C7(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){return $F(GF(e,i))}}function SE(t){return t!=null?YF(qF(t)):null}function QF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){let n=GF(e,i).map(WF);return rp(n).pipe(Qe($F))}}function EE(t){return t!=null?QF(qF(t)):null}function OF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function KF(t){return t._rawValidators}function ZF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function PF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function NF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Qs=class extends Db{name;get formDirective(){return null}get path(){return null}},ir=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(ir,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Qs,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",Yl=class{},Eb=class extends Yl{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends Yl{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends Yl{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends Yl{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends Yl{source;constructor(i){super(),this.source=i}},Tb=class extends Yl{source;constructor(i){super(),this.source=i}};function XF(t){return(Fb(t)?t.validators:t)||null}function x7(t){return Array.isArray(t)?SE(t):t||null}function JF(t,i){return(Fb(i)?i.asyncValidators:t)||null}function w7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function D7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function S7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Lo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Lo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Lo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(PF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(PF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(NF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=WF(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=x7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=w7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(XF(e),JF(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){S7(this,!0,i),Object.keys(i).forEach(n=>{D7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function E7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),T7(t,i),k7(t,i),I7(t,i),M7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function M7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=KF(t);i.validator!==null?t.setValidators(OF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ZF(t);i.asyncValidator!==null?t.setAsyncValidators(OF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=KF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function T7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&e2(t,i)})}function I7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&e2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function e2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function k7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t2(t,i){t==null,ME(t,i)}function A7(t,i){return Ob(t,i)}function n2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function R7(t){return Object.getPrototypeOf(t.constructor)===jF}function i2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function o2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Ht?e=r:R7(r)?n=r:o=r}),o||n||e||null}function O7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var P7={provide:Qs,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Lo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});t2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),i2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([P7]),We]})}return t})();function FF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function LF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(XF(e),JF(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(LF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){LF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var N7=t=>t instanceof Vb;var F7={provide:ir,useExisting:Wn(()=>Xe)},VF=Promise.resolve(),Xe=(()=>{class t extends ir{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=o2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),n2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){VF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);VF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?E7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Qs,9),D(Xr,10),D(Pb,10),D(Go,10),D(Ze,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ke([F7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),L7={provide:Go,useExisting:Wn(()=>Er),multi:!0},Er=(()=>{class t extends jF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ke([L7]),We]})}return t})();var V7=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Lo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),O7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,i2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),N7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);t2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&A7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var r2=new L(""),B7={provide:ir,useExisting:Wn(()=>TE)},TE=(()=>{class t extends ir{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=o2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}n2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(Go,10),D(r2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ke([B7]),We,Ct]})}return t})();var j7={provide:Qs,useExisting:Wn(()=>Ql)},Ql=(()=>{class t extends V7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([j7]),We]})}return t})();function z7(t){return typeof t=="number"?t:parseInt(t,10)}var a2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>Qi),multi:!0};var Qi=(()=>{class t extends a2{required;inputName="required";normalizeInput=K;createValidator=e=>zF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ke([U7]),We]})}return t})();var H7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends a2{maxlength;inputName="maxlength";normalizeInput=e=>z7(e);createValidator=e=>UF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ke([H7]),We]})}return t})();var s2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var l2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:r2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Je(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function W7(t,i){t&1&&Ie(0)}var $7=["tabListContainer"],G7=["tabList"],q7=["tabListInner"],Y7=["nextPaginator"],Q7=["previousPaginator"],K7=["content"];function Z7(t,i){}var X7=["tabBodyWrapper"],J7=["tabHeader"];function e9(t,i){}function t9(t,i){if(t&1&&xe(0,e9,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function n9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function i9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,t9,1,1,null,12)(7,n9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function o9(t,i){t&1&&Ie(0)}function r9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var a9=new L("MatTabContent"),s9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ke([{provide:a9,useExisting:t}])]})}return t})(),l9=new L("MatTabLabel"),m2=new L("MAT_TAB"),Yn=(()=>{class t extends bN{_closestTab=p(m2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ke([{provide:l9,useExisting:t}]),We]})}return t})(),p2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(p2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,s9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ke([{provide:m2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Bs(0,W7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",c2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},c9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(c2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(c2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var h2=(()=>{class t extends c9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),d2={passive:!0},d9=650,u9=100,m9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_viewportRuler=p(ho);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),d2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),d2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Is(32),Je(this._destroyed)),o=this._viewportRuler.change(150).pipe(Je(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ys(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ts(d9,u9).pipe(Je(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),p9=(()=>{class t extends m9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,h2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at($7,7)(G7,7)(q7,7)(Y7,5)(Q7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Sr,qN],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -1199,7 +1199,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` color: GrayText; } } -`],encapsulation:2})}return t})(),p9=new L("MAT_TABS_CONFIG"),u2=(()=>{class t extends Vo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ke);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(u2,5)(Q7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,K7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[u2,Th],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return t})(),h9=new L("MAT_TABS_CONFIG"),u2=(()=>{class t extends Bo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ze);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(u2,5)(K7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,Z7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[u2,Th],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -1251,7 +1251,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(p9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(Z7,5)(X7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Qe([{provide:p2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,n9,8,17,"div",4,De),d(),A(4,i9,1,0),c(5,"div",5,1),fe(7,o9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[m9,h2,Nh,Sr,Vo,RE],styles:[`.mdc-tab { +`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(h9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(X7,5)(J7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ke([{provide:p2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,i9,8,17,"div",4,De),d(),A(4,o9,1,0),c(5,"div",5,1),fe(7,r9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[p9,h2,Nh,Sr,Bo,RE],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -1472,15 +1472,15 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transition: none !important; animation: none !important; } -`],encapsulation:2})}return t})(),OE=class{index;tab};var f2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function h9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function f9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,h9,1,1,"uds-field-text",1)(2,f9,1,1,"uds-field-autocomplete",1)(3,g9,1,1,"uds-field-textbox",1)(4,_9,1,1,"uds-field-numeric",1)(5,v9,1,1,"uds-field-password",1)(6,b9,1,1,"uds-field-hidden",1)(7,y9,1,1,"uds-field-choice",1)(8,C9,1,1,"uds-field-multichoice",1)(9,x9,1,1,"uds-field-editlist",1)(10,w9,1,1,"uds-field-checkbox",1)(11,D9,1,1,"uds-field-imgchoice",1)(12,S9,1,1,"uds-field-date",1)(13,E9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function T9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function I9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function k9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,T9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,I9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function A9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,k9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function R9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function O9(t,i){if(t&1&&(c(0,"div",1),fe(1,R9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var g2=django.gettext("Main"),P9=django.gettext("Advanced"),_2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?g2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===g2?-1:e===P9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,A9,3,2,"mat-tab-group",0)(1,O9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function F9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var v2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),$t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,F9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,_2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(v2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("
")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var L9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return Wo(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Gt=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Gt||{});var NE="provider",FE="service",Zh="pool",V9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",B9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+B9[i]+"",type:Gt.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case V9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function j9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var z9=["label"];function U9(t,i){}var H9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,H9))}_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}},b2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},W9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),y2=(()=>{class t{snackBarRef=p(Jh);data=p(b2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,j9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` -`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,W9,$9,G9],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2})}return t})(),OE=class{index;tab};var f2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function f9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function M9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,f9,1,1,"uds-field-text",1)(2,g9,1,1,"uds-field-autocomplete",1)(3,_9,1,1,"uds-field-textbox",1)(4,v9,1,1,"uds-field-numeric",1)(5,b9,1,1,"uds-field-password",1)(6,y9,1,1,"uds-field-hidden",1)(7,C9,1,1,"uds-field-choice",1)(8,x9,1,1,"uds-field-multichoice",1)(9,w9,1,1,"uds-field-editlist",1)(10,D9,1,1,"uds-field-checkbox",1)(11,S9,1,1,"uds-field-imgchoice",1)(12,E9,1,1,"uds-field-date",1)(13,M9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function I9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function k9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function A9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,I9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,k9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function R9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,A9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function O9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function P9(t,i){if(t&1&&(c(0,"div",1),fe(1,O9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var g2=django.gettext("Main"),N9=django.gettext("Advanced"),_2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?g2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===g2?-1:e===N9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,R9,3,2,"mat-tab-group",0)(1,P9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function L9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var v2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),$t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,L9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,_2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(v2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id,r._etag):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var V9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return So(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Gt=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Gt||{});var NE="provider",FE="service",Zh="pool",B9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",j9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+j9[i]+"",type:Gt.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case B9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function z9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var U9=["label"];function H9(t,i){}var W9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W9))}_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}},b2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),y2=(()=>{class t{snackBarRef=p(Jh);data=p(b2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,z9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` +`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,$9,G9,q9],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",q9=(()=>{class t extends Ul{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Vo,7)(z9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,U9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Vo],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",Y9=(()=>{class t extends Ul{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7)(U9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,H9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Bo],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1596,7 +1596,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return t})(),Y9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Y9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=y2;snackBarContainerComponent=q9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new nr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new Gi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new nr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Xe(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Bo;n.direction=e.direction;let o=gs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,zo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:b2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[fo,wr,vs,y2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",lo=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Kl=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2})}return t})(),Q9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Q9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=y2;snackBarContainerComponent=Y9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new nr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new qi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new nr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Je(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new jo;n.direction=e.direction;let o=gs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,Uo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:b2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[fo,wr,vs,y2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",lo=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Kl=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1702,7 +1702,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();var K9=["text"],Z9=[[["mat-icon"]],"*"],X9=["mat-icon","*"];function J9(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function tq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ke);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(qr),this._signalDisableRipple=!!this._parent&&ds(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(K9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:X9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(Z9),A(0,J9,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,eq,1,1,"mat-pseudo-checkbox",3),A(6,tq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Sr],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return t})();var Z9=["text"],X9=[[["mat-icon"]],"*"],J9=["mat-icon","*"];function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function tq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function nq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ze);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(qr),this._signalDisableRipple=!!this._parent&&ds(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(Z9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:J9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(X9),A(0,eq,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,tq,1,1,"mat-pseudo-checkbox",3),A(6,nq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Sr],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -1823,7 +1823,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,x2,Mt,pt]})}return t})();var Zl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var nq=["mat-internal-form-field",""],iq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:nq,ngContentSelectors:iq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,x2,Mt,pt]})}return t})();var Zl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var iq=["mat-internal-form-field",""],oq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:iq,ngContentSelectors:oq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var oq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,rq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(oq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(rq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var sq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lq()]})}return t})();function lq(t=sq){return[{provide:lo,useClass:aq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,dq,7,1,"div",2),A(6,uq,7,1,"div",2),A(7,mq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var La=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return Wo(this.api.http.get(n,{headers:this.headers,observe:"response"}),La).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e){return e=e!==void 0?e:i.id,this.typedPut(i,e)}test(i,e){return Wo(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(ao(n=>this.handleError(n))),La)}delete(i){return Wo(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(ao(e=>this.handleError(e))),La)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return Wo(this.api.http.put(r,a,{headers:this.headers}).pipe(ao(s=>this.handleError(s))),La)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Wo(this.api.http.put(e,n,{headers:this.headers}).pipe(ao(o=>this.handleError(o))),La)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return Wo(this.api.http.get(i,{headers:this.headers}).pipe(ao(e=>this.handleError(e))),La)}typedGet(i){return this.doGet(this.getPath(this.base,i))}typedPut(i,e){return Wo(this.api.http.put(this.getPath(this.base,e),i,{headers:this.headers}).pipe(ao(n=>this.handleError(n,!0))),La)}typedPost(i,e){return Wo(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(ao(n=>this.handleError(n,!0))),La)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?Wo(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(ao(r=>this.handleError(r,!0))),La):Wo(this.api.http.post(o,{},{headers:this.headers}).pipe(ao(r=>this.handleError(r,!0))),La)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return Wo(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return Wo(this.api.http.get(this.getPath(this.base),{headers:this.headers}),La).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hq=["determinateSpinner"];function fq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var gq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,_q=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(gq),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-_q)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(hq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,fq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),wa(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:lo,useClass:sq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var ea=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return So(this.api.http.get(n,{headers:this.headers,observe:"response"}),ea).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e,n){return e=e!==void 0?e:i.id,this.typedPut(i,e,n)}test(i,e){return So(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(Bi(n=>this.handleError(n))),ea)}delete(i){return So(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return So(this.api.http.put(r,a,{headers:this.headers}).pipe(Bi(s=>this.handleError(s))),ea)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return So(this.api.http.put(e,n,{headers:this.headers}).pipe(Bi(o=>this.handleError(o))),ea)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return So(this.api.http.get(i,{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}doGetWithEtag(i){return So(this.api.http.get(i,{headers:this.headers,observe:"response"}).pipe(Qe(e=>{let n=e.body;return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n._etag=e.headers.get("ETag")??null),n}),Bi(e=>this.handleError(e))),ea)}typedGet(i){return this.doGetWithEtag(this.getPath(this.base,i))}typedPut(i,e,n){let o=n!=null?this.headers.set("If-Match",n):this.headers;return So(this.api.http.put(this.getPath(this.base,e),i,{headers:o}).pipe(Bi(r=>this.handleError(r,!0))),ea)}typedPost(i,e){return So(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(Bi(n=>this.handleError(n,!0))),ea)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?So(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea):So(this.api.http.post(o,{},{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return So(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return So(this.api.http.get(this.getPath(this.base),{headers:this.headers}),ea).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fq=["determinateSpinner"];function gq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var _q=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,vq=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(_q),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-vq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(fq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,gq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),Da(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; @@ -2032,9 +2032,9 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transform: rotate(-265deg); } } -`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vq="uplot",bq="u-hz",yq="u-vt",Cq="u-title",xq="u-wrap",wq="u-under",Dq="u-over",Sq="u-axis",gd="u-off",Eq="u-select",Mq="u-cursor-x",Tq="u-cursor-y",Iq="u-cursor-pt",kq="u-legend",Aq="u-live",Rq="u-inline",Oq="u-series",Pq="u-marker",R2="u-label",Nq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Fq="resize",Lq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Vq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Tr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function Va(t,i,e,n){let o=eM.createElement(t);return i!=null&&Tr(o,i),e?.insertBefore(o,n),o}function ea(t,i){return Va("div",t,i)}var j2=new WeakMap;function ys(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Tr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},Bq=Ye(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?Bq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Ba(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Ir((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),jq=vL(yL);function zq(t,i,e,n=0,o=!1){let r=o?jq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Zs:CL,s=o==1?Ir:ta,l=r==1?ta:Ir,u=s(a(Zi(t))),h=l(a(Zi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Uq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Uq))}function wn(t,i){return t??i}function Hq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Zs(w),P=qo(Zi(t),Zi(i)),j=Zs(P),F=Zi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Zs(q),oe=Dm(10,Ir(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,Je=qo(s,Ce=Le?Le:ja(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=ja(l,ht>Se&&i<=Se?Se:qo(Se,ht));return Je==Tt&&Je==0&&(Tt=100),[Je,Tt]}var Wq=new Intl.NumberFormat(Tm?Vq.language:"en-US"),fM=t=>Wq.format(t),kr=Math,C0=kr.PI,Zi=kr.abs,Ir=kr.floor,Ki=kr.round,ta=kr.ceil,ja=kr.min,qo=kr.max,Dm=kr.pow,q2=kr.sign,Zs=kr.log10,CL=kr.log2,$q=(t,i=1)=>kr.sinh(t)*i,KE=(t,i=1)=>kr.asinh(t/i),Kn=1/0;function Y2(t){return(Zs((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return ja(qo(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var Gq=()=>{},wL=t=>t,DL=(t,i)=>i,qq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Yq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Yq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(ta(vd(t/i))*i)}function SL(t,i){return vd(Ir(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Ki(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Qq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Kq(t){return t!=null&&typeof t=="object"}var Zq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function oY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Ir((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var sY=kL.map(AL),lY=IL.map(AL),cY={MMMM:IL,MMM:lY,WWWW:kL,WWW:sY};function of(t){return(t<10?"0":"")+t}function dY(t){return(t<10?"00":t<100?"0":"")+t}var uY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>dY(t.getMilliseconds())};function _M(t,i){i=i||cY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?uY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],hY=df(10,-32,0,D0),OL=df(10,0,32,D0),fY=OL.filter(RL),fd=hY.concat(OL),vM=` -`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",gY="{h}:{mm}",xm=gY+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Ir(S)-Ir(Ce),Se=Je+ht+M0(Ce-Je,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Ir(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[_Y,vY,bY]=LL(1),[yY,CY,xY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function wY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var DY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function SY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function EY(t,i){return t.series[i].fill(t,i)}var MY={show:!0,live:!0,isolate:!1,mount:Gq,markers:{show:!0,width:2,stroke:SY,fill:EY,dash:"solid"},idx:null,idxs:null,values:[]};function TY(t,i){let e=t.cursor.points,n=ea(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function IY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function kY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function AY(t,i){return t.series[i].points.size}var XE=[0,0];function RY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var OY={show:!0,x:!0,y:!0,lock:!1,move:RY,points:{one:!1,show:TY,size:AY,width:0,stroke:kY,fill:IY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},PY="Value",NY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function FY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function LY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Zs:CL,h=Ir(u(e));o=Dm(l,h),l==10&&(o=fd[Ba(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Ba(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Ba(y,fd)]));while(g<=n);return s}function VY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,BY=/[12357]/,jY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function zY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?BY:l(5,a)-h>=u?jY:sL;if(g==sL){let y=Zi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:$Y,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function GY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},qY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),Je=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,Je,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function QY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Ki:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=ja(u,s/2,l/2),h=ja(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),Je=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(Je,pe+Ce,ae),oe(Je,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?Je:null,fill:Je,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var KY=JL(Im),ZY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=KY):(oe=km,Ne=ZY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Je=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(Je,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(Je,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(Je,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(Je,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(Je),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Xs(e,n,o,r,Je,-1),Xs(e,n,o,r,Je,1)]:Xs(e,n,o,r,Je,Tt)),Le})}function XY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),Je=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=Je(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=Je(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=Je(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Xs(r,a,s,l,Se,-1),Xs(r,a,s,l,Se,1)]:Xs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,Je,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,Ga,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,Ga)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),Ji=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,ws=null,Or=null,al=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,ws=g.values(w,S,P,j),Or=new Map,new Set(ws).forEach(Pe=>{Pe!=null&&Or.set(Pe,new Path2D)}),jn>0&&(al=y.values(w,S,P,j),Ad=new Map,new Set(al).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(Je+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,Je)-Ce(0,oe,ht,Je),Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,Je,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let Eo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Qo?null:new Path2D,Ds=null;if(ft!=null)Ds=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),Ds=Pe.values(w,S,P,j))}let rc=ae*Rt,Wt=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(Ds!=null){let Ko=Ds[Pe]??0;if(ei-Ko==0)continue;Ji=Le(Ko,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,Je),ac=Le(wn(ei,jt),Ne,Se,Nt),Ga=Tt(Pd-Xn),sc=Tt(qo(ac,Ji)),lr=Tt(ja(ac,Ji)),Pr=sc-lr;if(ei!=null){let Ko=ei<0?Wt:rc,sa=ei<0?rc:Wt;Qo?(jn>0&&al[Pe]!=null&>(Ad.get(al[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa),ws[Pe]!=null&>(Or.get(ws[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa)):gt(Od,Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,sa),Qt(w,S,Pe,Ga-jn/2,lr,Rt+jn,Pr)}}return jn>0?Eo.stroke=Qo?Ad:Od:Qo||(Eo._fill=F.width==0?F._fill:F._stroke??F._fill,Eo.width=0),Eo.fill=Qo?Or:Od,Eo})}function eQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let Je=h.dir*(h.ori==0?1:-1),Nt=ve(l[Je==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=Je==1?r:a;ae>=r&&ae<=a;ae+=Je)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,Je,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Xs(n,o,r,a,It,-1),Xs(n,o,r,a,It,1)]:Xs(n,o,r,a,It,pe)),qe})}function tQ(t){return eQ(nQ,t)}function nQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var iQ=eV(),oQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function rQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var aQ=tV;function sQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var lQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var cQ=iV;function dQ(t,i,e,n,o){let r=qo(Y2(t),Y2(i)),a=i-t,s=Ba(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Ki((e=+o)*kn))+"px"),[t,i,e]}function uQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ea(vq);if(t.id!=null&&(u.id=t.id),Tr(u,t.class),t.title){let v=ea(Cq,u);v.textContent=t.title}let h=Va("canvas"),g=n.ctx=h.getContext("2d"),y=ea(xq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&uo.click(n,v)},!0);let w=n.under=ea(wq,y);y.appendChild(h);let S=n.over=ea(Dq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):rQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},Je=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Zs(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:qY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?aQ:v==Ce?C.distr==3?lQ:C.distr==4?cQ:tV:C.distr==3?nV:C.distr==4?iV:sQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||GY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Tr(u,bq),qe=r,It=a):(Tr(u,yq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Ki(v/F))),ae=t.fmtDate||_M,He=F==1?bY(pe):xY(pe),nt=nL(pe,tL(F==1?vY:CY,ae)),gt=oL(pe,iL(DY,ae)),Qt=[],ft=n.legend=Ni({},MY,t.legend),Ve=n.cursor=Ni({},OY,{drag:{y:o==2}},t.cursor),jt=ft.show,Ji=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Qo=[],ws,Or=!1,al={};if(ft.live){let v=q[1]?q[1].values:null;Or=v!=null,ws=Or?v(n,1,0):{_:0};for(let C in ws)al[C]=uM}if(jt)if(Rt=Va("table",kq,u),Jn=Va("tbody",null,Rt),ft.mount(n,Rt),Or){Li=Va("thead",null,Rt,Jn);let v=Va("tr",null,Li);Va("th",null,v);for(var Ad in ws)Va("th",R2,v).textContent=Ad}else Tr(Rt,Rq),ft.live&&Tr(Rt,Aq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Or||!ft.live||o==2))return Sm;let E=[],M=Va("tr",Oq,Jn,Jn.childNodes[C]);Tr(M,v.class),v.show||Tr(M,gd);let N=Va("th",null,M);if(Xn.show){let he=ea(Pq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ea(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),Eo("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&Ya(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else Ya(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&Eo(F2,N,he=>{Ve._lock||(cc(he),Ya(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in ws){let he=Va("td",Nq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function Eo(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let Ds=0,rc=0,Wt=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,Ga=Wt,sc=Pe,lr=0,Pr=0,Ko=0,sa=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Nr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&aT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function aT(v,C){n.width=Ds=Wt=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;lr=E.left=hd(ei*kn,.5),Pr=E.top=hd(Vi*kn,.5),Ko=E.width=hd(Wt*kn,.5),sa=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(aT(n.width,n.height),If=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?(Wt-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,Wt-=sl[1]+sl[3],ei+=sl[3],Pe-=sl[2]+sl[0],Vi+=sl[0]}function qj(){let v=ei+Wt,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let _o=Ve.points;_o.show=ln(_o.show),_o.size=ln(_o.size),_o.stroke=ln(_o.stroke),_o.width=ln(_o.width),_o.fill=ln(_o.fill);let qa=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=qa.prox>=0,Ld=Fd&&_o.one,Fr=[],Vd=[],Bd=[];function sT(v,C){let E=_o.show(n,C);if(E instanceof HTMLElement)return Tr(E,Iq),Tr(E,v.class),ys(E,-10,-10,Wt,Pe),S.insertBefore(E,Fr[C]),E}function lT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||HY,v.label=v.label||(E?NY:PY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||iQ||qq,v.fillTo=ln(v.fillTo||YY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=WY(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:oQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(Ji){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=sT(v,C)):C>0&&(E=sT(v,C)),Fr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}oo("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),lT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}Ji&&(Qt.splice(v,1),Fr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),oo("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?fY:N?F==1?_Y:yY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?VY:LY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?wY(pe,U):U||nt:U||FY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?zY:M.distr==3&&M.log==2?UY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ea(Sq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Ki(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Ki(lL.size/2):0),Ae}let cT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),sl=n._padding=cT.map((v,C)=>v(n,C,dc,0)),co,eo=null,to=null,Af=o==1?q[0].idxs:null,la=null,$m=!1;function dT(v,C){if(i=v??[],n.data=n._data=i,o==2){co=0;for(let E=1;E=0,Nr=!0,Ud()}}n.setData=dT;function Wy(){$m=!0;let v,C;o==1&&(co>0?(eo=Af[0]=0,to=Af[1]=co-1,v=i[0][eo],C=i[0][to],Tt==2?(v=eo,C=to):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Ki(86400/F):[v,C]=w0(v,C,hM,!0))):(eo=Af[0]=v=null,to=Af[1]=C=null)),cl(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Zo;function uT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function mT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(eo,0),re=wn(to,M.length-1),he=E.min==null?zq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=ja(v.min,E.min=he[0]),v.max=qo(v.max,E.max=he[1])}}let pT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=pT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=pT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Kq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(co==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(co>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],eo=Ba(he.min,i[0]),to=Ba(he.max,i[0]),to-eo>1&&(i[0][eo]he.max&&to--),M.min=la[eo],M.max=la[to]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=eo,M.idxs[1]=to}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Zs(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Zs(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,oo("setScale",M);Ji&&Ve.left>=0&&(lc=Nr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(eo-1,0,co-1),E=oM(to+1,0,co-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Zo!=qa.alpha;v&&(g.globalAlpha=Zo=qa.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(hT(E,!1),hT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&fT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,eo,to,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,eo,to,re),fT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),oo("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function hT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function fT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=lr-Ae/2,vn=Pr-Ae/2,tn=Ko+Ae,St=sa+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Hq(tn,eo,to)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let gT=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){uT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&gT)==gT?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=dQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),uT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?Wt:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>la[rt]):Lt,vn=N.distr==2?la[Lt[1]]-la[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=ta(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return cT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=sl[M]&&(C=!1),sl[M]=N}),C}function o4(){for(let v=0;vla[To]):Dn,tn=Oe.distr==2?la[Dn[1]]-la[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Ki(ai*kn),ro=Ki((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),cr=(gi+ro)*he,Mo=_i+cr;U=M==0?Mo:0,N=M==1?Mo:0;let Lr=C.font[0],ca=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Ka=zn||M==1?"middle":E==2?"top":O2;mT(Lr,re,ca,Ka);let dr=C.font[1]*C.lineGap,Vr=Dn.map(To=>j(s(To,Oe,Be,Lt))),da=C._values;for(let To=0;To{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function r4(){tC=!1;for(let v=0;v0&&queueMicrotask(r4)}n.batch=a4;function _T(){if(Uy&&(Zj(),Uy=!1),Nd&&(Wj(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,Wt),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,Wt),di(S,af,Pe),di(y,rf,Ds),di(y,af,rc),h.width=Ki(Ds*kn),h.height=Ki(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:Wt),nM(v,gd)}else Tr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Zo=1,Qm(!0),ei!=Pd||Vi!=ac||Wt!=Ga||Pe!=sc){zd(!1);let v=Wt/Ga,C=Pe/sc;if(Ji&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&ys(Hd,Ki(Ve.left),0,Wt,Pe),Wd&&ys(Wd,0,Ki(Ve.top),Wt,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,Ga=Wt,sc=Pe}oo("setSize"),If=!1}Ds>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),oo("drawClear"),Je.forEach(v=>v()),oo("draw")),ri.show&&kf&&(Ff(ri),kf=!1),Ji&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Nr&&(rC(),Nr=!1),l||(l=!0,n.status=1,oo("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?cl(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(co==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(co>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&co>0&&(C.min=Ba(C.min,i[0]),C.max=Ba(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,vT,bT,$d,Gd,yT,CT,oi,ui,ll=!1,uo=Ve.drag,no=uo.x,io=uo.y;Ji&&(Ve.x&&(iC=ea(Mq,S)),Ve.y&&(oC=ea(Tq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ea(Eq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&oo("setSelect")}}n.setSelect=Ff;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Tr(jn[v],gd),Ji){let E=Ld?Fr[0]:Fr[v];E!=null&&ys(E,-10,-10,Wt,Pe)}}function cl(v,C,E){nC(v,{min:C,max:E})}function Ya(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(cl(N.facets[0].scale,null,null),cl(N.facets[1].scale,null,null)):cl(N.scale,null,null),Ud())}),E!==!1&&oo("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=Ya;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,Ji&&Fr[v]!=null&&(Fr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ss,dl,uc,Yd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=qa.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:qa.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&Eo(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&Ya(null,Yd,!0,Ii.setSeries))});function Qa(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=Wt;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?$q(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Qa(v,Ce,C);return Ba(E,i[0],eo,to)}n.valToIdx=v=>Ba(v,i[0]),n.posToIdx=p4,n.posToVal=Qa,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:Wt,E?lr:0):a(v,oe[C],E?sa:Pe,E?Pr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function xT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function wT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?xT:wT,Ym=Se.ori==1?xT:wT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Qq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Or)&&f4(E,Qt[E]);h4()}Nr=!1,C!==!1&&oo("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?la:i[v],N;Or?N=E.values(n,v,C)??al:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?al:{_:N}),ft.values[v]=N}function mc(v,C,E){yT=oi,CT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,Ji&&(Hd&&ys(Hd,Ki(oi),0,Wt,Pe),Wd&&ys(Wd,0,Ki(ui),Wt,Pe));let M,N=eo>to;Ss=Kn,dl=null;let U=Se.ori==0?Wt:Pe,re=Se.ori==1?Wt:Pe;if(oi<0||co==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let cr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),Mo=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Lr=Se.ori==1?oi:ui,ca=Zi(qa.dist(n,rt,zn,Mo,Lr));if(ca=0?1:-1,da=dr>=0?1:-1;da==Vr&&(da==1?Ka==1?_i>=dr:_i<=dr:Ka==1?_i<=dr:_i>=dr)&&(Ss=ca,dl=rt)}else Ss=ca,dl=rt}}if(Nr||Ld){let Lr,ca;Se.ori==0?(Lr=cr,ca=Mo):(Lr=Mo,ca=cr);let Ka,dr,Vr,da,Za,To,ur=!0,pc=_o.bbox;if(pc!=null){ur=!1;let Io=pc(n,rt);Vr=Io.left,da=Io.top,Ka=Io.width,dr=Io.height}else Vr=Lr,da=ca,Ka=dr=_o.size(n,rt);if(To=_o.fill(n,rt),Za=_o.stroke(n,rt),Ld)rt==dl&&Ss<=qa.prox&&(Oe=Vr,Be=da,Lt=Ka,Dn=dr,vn=ur,tn=To,St=Za);else{let Io=Fr[rt];Io!=null&&(Vd[rt]=Vr,Bd[rt]=da,W2(Io,Ka,dr,ur),U2(Io,To,Za),ys(Io,ta(Vr),ta(da),Wt,Pe))}}}}if(Ld){let rt=qa.prox,ai=uc==null?Ss<=rt:Ss>rt||dl!=uc;if(Nr||ai){let gi=Fr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),ys(gi,ta(Oe),ta(Be),Wt,Pe))}}}if(ri.show&&ll)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(no=Dn._x,io=Dn._y,no||io){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ro,zn,_i,cr,Mo,Lr=he!=null&&Ae(he,Be),ca=ye!=null&&Oe(ye,Lt);Lr&&no?(ai==0?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[he],cr=qe(gi(ro,Be),_i,U,0),Mo=qe(gi(ro+zn,Be),_i,U,0),qm(ja(cr,Mo),Zi(Mo-cr))):qm(0,U),ca&&io?(ai==1?(ro=vn,zn=St):(ro=tn,zn=rt),_i=oe[ye],cr=It(gi(ro,Lt),_i,re,0),Mo=It(gi(ro+zn,Lt),_i,re,0),Ym(ja(cr,Mo),Zi(Mo-cr))):Ym(0,re)}else lC()}else{let he=Zi(yT-vT),ye=Zi(CT-bT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}no=uo.x&&he>=uo.dist,io=uo.y&&ye>=uo.dist;let Ae=uo.uni;Ae!=null?no&&io&&(no=he>=Ae,io=ye>=Ae,!no&&!io&&(ye>he?io=!0:no=!0)):uo.x&&uo.y&&(no||io)&&(no=io=!0);let Oe,Be;no&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(ja(Oe,Be),Zi(Be-Oe)),io||Ym(0,re)),io&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(ja(Oe,Be),Zi(Be-Oe)),no||qm(0,U)),!no&&!io&&(qm(0,0),Ym(0,0))}if(uo._x=no,uo._y=io,v==null){if(E){if(PT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Qa(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Qa(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,Wt,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=qa.prox;uc==null?Ss<=ye&&Ya(dl,Yd,!0,he):Ss>ye?Ya(null,Yd,!0,he):dl!=uc&&Ya(dl,Yd,!0,he)}}Nr&&(ft.idx=M,rC()),C!==!1&&oo("setCursor")}let ul=null;Object.defineProperty(n,"rect",{get(){return ul==null&&Qm(!1),ul}});function Qm(v=!1){v?ul=null:(ul=S.getBoundingClientRect(),oo("syncRect",ul))}function DT(v,C,E,M,N,U,re){Ve._lock||ll&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(ul==null&&Qm(!1),cc(v),v!=null)E=v.clientX-ul.left,M=v.clientY-ul.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?Wt:Pe,ro=Se.ori==1?Wt:Pe,zn=ai?U:N,_i=ai?N:U,cr=ai?M:E,Mo=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(cr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ro,0):-10:M=ro*(Mo/_i),Se.ori==1){let Lr=E;E=M,M=Lr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=Wt-1)&&(E=hd(E,Wt)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(vT=E,bT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ST,ET,MT,TT;function IT(v,C,E,M,N,U,re){ll=!0,no=io=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(Eo(QE,eM,kT,!1),Km(N2,n,$d,Gd,Wt,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ST=he,ET=ye,MT=Ae,TT=Oe}function kT(v,C,E,M,N,U,re){ll=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ST!=he||ET!=ye||MT!=Ae||TT!=Oe;if(Be&&Lt&&Ff(ri),uo.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),no&&cl(Ce,Qa(Dn,Ce),Qa(Dn+vn,Ce)),io)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&cl(rt,Qa(tn+St,rt),Qa(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,Wt,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=ll;if(ll){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=no,Lt=io):(Be=io,Lt=no),Be&&Lt&&(ye=oi<=Oe||oi>=Wt-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:Wt),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&Ya(E,M,!0,!1)},Ji&&(Eo(N2,S,IT),Eo(YE,S,DT),Eo(F2,S,v=>{cc(v),Qm(!1)}),Eo(L2,S,g4),Eo(V2,S,AT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function oo(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let OT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,OT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(OT),Ve.sync=Ii;let PT=Ii.key,cC=GL(PT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,RT),u.remove(),Rt?.remove(),oo("destroy")}n.destroy=v4;function dC(){oo("init",t,i),dT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Nr=!0,Hy(t.width,t.height)}return q.forEach(lT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=nY;Ti.fmtDate=_M,Ti.tzDate=pY;Ti.sync=GL;{Ti.addGap=QY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=XY,t.bars=JY,t.spline=tQ}var mQ=["host"],pQ=["donut"],oV=(t,i)=>i.name;function hQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function fQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,hQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function gQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function _Q(t,i){if(t&1&&(c(0,"div",10),fe(1,gQ,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function vQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function bQ(t,i){if(t&1&&(c(0,"div",3),A(1,_Q,3,0,"div",10),O(2,"div",11,0),A(4,vQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function yQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>qi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>qi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,Je)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[Je]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[yQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(mQ,5)(pQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,fQ,8,0,"div",2)(1,bQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var xQ=(t,i)=>i.value,wQ=(t,i)=>i.user;function DQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function SQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function EQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function TQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function IQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,EQ,6,1)(2,MQ,9,2)(3,TQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function kQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),No(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function AQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function RQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function OQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function PQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function QQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function KQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function ZQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function XQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function JQ(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function eK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,JQ,11,5,"tr",null,wQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function tK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function nK(t,i){if(t&1&&(A(0,RQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,OQ,1,1,"uds-uplot-chart",19)(7,PQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,NQ,1,1,"uds-uplot-chart",19)(13,FQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,LQ,1,1,"uds-uplot-chart",19)(19,VQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,BQ,1,1,"uds-uplot-chart",19)(25,jQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,zQ,1,1,"uds-uplot-chart",19)(31,UQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,HQ,1,1,"uds-uplot-chart",19)(37,WQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,$Q,1,1,"uds-uplot-chart",19)(43,GQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,qQ,1,1,"uds-uplot-chart",19)(49,YQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,QQ,1,1,"uds-uplot-chart",19)(55,KQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,ZQ,1,1,"uds-uplot-chart",19)(61,XQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,eK,25,0,"div",23),c(74,"div",24),A(75,tK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var aV=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.cache=o,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){this.cache.has("cachedEnterpriseInfo")||this.cache.set("cachedEnterpriseInfo",(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?qi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return this.cache.get("cachedEnterpriseInfo")}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(M2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(T2))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,DQ,2,3,"button",3,xQ),d(),c(5,"div",4),A(6,SQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,IQ,4,5,"div",8),A(11,kQ,2,2,"div",9),d()(),A(12,AQ,5,0,"div",10)(13,nK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function oK(t,i){t&1&&O(0,"uds-dashboard")}function rK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,oK,1,0,"uds-dashboard")(3,rK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var Cs=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Na.INSERTED}else l==null?(e.remove(s),h=Na.REMOVED):(u=e.get(s),e.move(u,l),h=Na.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var aK=["notch"],sK=["matFormFieldNotchedOutline",""],lK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],cK=["textField"],dK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mK(t,i){t&1&&O(0,"span",21)}function pK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,mK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function hK(t,i){if(t&1&&A(0,pK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function fK(t,i){t&1&&O(0,"div",7)}function gK(t,i){}function _K(t,i){if(t&1&&xe(0,gK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function vK(t,i){if(t&1&&(c(0,"div",9),A(1,_K,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function bK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function yK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function CK(t,i){}function xK(t,i){if(t&1&&xe(0,CK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function wK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function DK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function SK(t,i){t&1&&O(0,"div",16)}function EK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function MK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function TK(t,i){if(t&1&&(c(0,"div",19),A(1,MK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var DM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var SM=new L("MatSuffix"),Ar=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Qe([{provide:SM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return IK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function IK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(aK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:sK,ngContentSelectors:lK,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&&(vt(),mo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),mo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Js=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var na=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",kK="auto",_V="fixed",AK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Fo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Yr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||kK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Fs(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Fo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),et(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Xe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){NO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Fo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${AK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Js,5)(r,bV,5)(r,SM,5)(r,vV,5)(r,DM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(cK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Qe([{provide:na,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:uK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(dK),xe(0,hK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,fK,1,0,"div",7),c(5,"div",8),A(6,vK,2,2,"div",9),A(7,bK,3,0,"div",10),A(8,yK,3,0,"div",11),c(9,"div",12),A(10,xK,1,1,null,13),Ie(11),d(),A(12,wK,3,0,"div",14),A(13,DK,3,0,"div",15),d(),A(14,SK,1,0,"div",16),d(),c(15,"div",17),A(16,EK,2,0,"div",18)(17,TK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,DM],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bq="uplot",yq="u-hz",Cq="u-vt",xq="u-title",wq="u-wrap",Dq="u-under",Sq="u-over",Eq="u-axis",gd="u-off",Mq="u-select",Tq="u-cursor-x",Iq="u-cursor-y",kq="u-cursor-pt",Aq="u-legend",Rq="u-live",Oq="u-inline",Pq="u-series",Nq="u-marker",R2="u-label",Fq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Lq="resize",Vq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Bq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Tr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function Va(t,i,e,n){let o=eM.createElement(t);return i!=null&&Tr(o,i),e?.insertBefore(o,n),o}function ta(t,i){return Va("div",t,i)}var j2=new WeakMap;function ys(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Tr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},jq=Ye(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?jq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Ba(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Ir((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),zq=vL(yL);function Uq(t,i,e,n=0,o=!1){let r=o?zq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Zs:CL,s=o==1?Ir:na,l=r==1?na:Ir,u=s(a(Xi(t))),h=l(a(Xi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Hq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Hq))}function wn(t,i){return t??i}function Wq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Zs(w),P=qo(Xi(t),Xi(i)),j=Zs(P),F=Xi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Zs(q),oe=Dm(10,Ir(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,et=qo(s,Ce=Le?Le:ja(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=ja(l,ht>Se&&i<=Se?Se:qo(Se,ht));return et==Tt&&et==0&&(Tt=100),[et,Tt]}var $q=new Intl.NumberFormat(Tm?Bq.language:"en-US"),fM=t=>$q.format(t),kr=Math,C0=kr.PI,Xi=kr.abs,Ir=kr.floor,Zi=kr.round,na=kr.ceil,ja=kr.min,qo=kr.max,Dm=kr.pow,q2=kr.sign,Zs=kr.log10,CL=kr.log2,Gq=(t,i=1)=>kr.sinh(t)*i,KE=(t,i=1)=>kr.asinh(t/i),Kn=1/0;function Y2(t){return(Zs((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return ja(qo(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var qq=()=>{},wL=t=>t,DL=(t,i)=>i,Yq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Qq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Qq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(na(vd(t/i))*i)}function SL(t,i){return vd(Ir(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Zi(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Kq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Zq(t){return t!=null&&typeof t=="object"}var Xq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function rY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Ir((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var lY=kL.map(AL),cY=IL.map(AL),dY={MMMM:IL,MMM:cY,WWWW:kL,WWW:lY};function of(t){return(t<10?"0":"")+t}function uY(t){return(t<10?"00":t<100?"0":"")+t}var mY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>uY(t.getMilliseconds())};function _M(t,i){i=i||dY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?mY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],fY=df(10,-32,0,D0),OL=df(10,0,32,D0),gY=OL.filter(RL),fd=fY.concat(OL),vM=` +`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",_Y="{h}:{mm}",xm=_Y+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Ir(S)-Ir(Ce),Se=et+ht+M0(Ce-et,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Ir(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[vY,bY,yY]=LL(1),[CY,xY,wY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function DY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var SY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function EY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function MY(t,i){return t.series[i].fill(t,i)}var TY={show:!0,live:!0,isolate:!1,mount:qq,markers:{show:!0,width:2,stroke:EY,fill:MY,dash:"solid"},idx:null,idxs:null,values:[]};function IY(t,i){let e=t.cursor.points,n=ta(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function kY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function AY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function RY(t,i){return t.series[i].points.size}var XE=[0,0];function OY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var PY={show:!0,x:!0,y:!0,lock:!1,move:OY,points:{one:!1,show:IY,size:RY,width:0,stroke:AY,fill:kY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},NY="Value",FY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function LY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function VY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Zs:CL,h=Ir(u(e));o=Dm(l,h),l==10&&(o=fd[Ba(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Ba(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Ba(y,fd)]));while(g<=n);return s}function BY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,jY=/[12357]/,zY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function UY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?jY:l(5,a)-h>=u?zY:sL;if(g==sL){let y=Xi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:GY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function qY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},YY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),et=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,et,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function KY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Zi:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=ja(u,s/2,l/2),h=ja(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),et=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(et,pe+Ce,ae),oe(et,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?et:null,fill:et,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var ZY=JL(Im),XY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=ZY):(oe=km,Ne=XY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},et=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(et,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(et,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(et,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(et),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Xs(e,n,o,r,et,-1),Xs(e,n,o,r,et,1)]:Xs(e,n,o,r,et,Tt)),Le})}function JY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),et=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=et(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=et(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=et(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Xs(r,a,s,l,Se,-1),Xs(r,a,s,l,Se,1)]:Xs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,et,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,Ga,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,Ga)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),eo=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,ws=null,Or=null,al=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,ws=g.values(w,S,P,j),Or=new Map,new Set(ws).forEach(Pe=>{Pe!=null&&Or.set(Pe,new Path2D)}),jn>0&&(al=y.values(w,S,P,j),Ad=new Map,new Set(al).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(et+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,et)-Ce(0,oe,ht,et),Jn=hL(q,ve,Ce,oe,ht,et,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,et,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let Mo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Qo?null:new Path2D,Ds=null;if(ft!=null)Ds=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),Ds=Pe.values(w,S,P,j))}let rc=ae*Rt,Wt=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(Ds!=null){let Ko=Ds[Pe]??0;if(ei-Ko==0)continue;eo=Le(Ko,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,et),ac=Le(wn(ei,jt),Ne,Se,Nt),Ga=Tt(Pd-Xn),sc=Tt(qo(ac,eo)),lr=Tt(ja(ac,eo)),Pr=sc-lr;if(ei!=null){let Ko=ei<0?Wt:rc,la=ei<0?rc:Wt;Qo?(jn>0&&al[Pe]!=null&>(Ad.get(al[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),ws[Pe]!=null&>(Or.get(ws[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la)):gt(Od,Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),Qt(w,S,Pe,Ga-jn/2,lr,Rt+jn,Pr)}}return jn>0?Mo.stroke=Qo?Ad:Od:Qo||(Mo._fill=F.width==0?F._fill:F._stroke??F._fill,Mo.width=0),Mo.fill=Qo?Or:Od,Mo})}function tQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let et=h.dir*(h.ori==0?1:-1),Nt=ve(l[et==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=et==1?r:a;ae>=r&&ae<=a;ae+=et)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,et,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Xs(n,o,r,a,It,-1),Xs(n,o,r,a,It,1)]:Xs(n,o,r,a,It,pe)),qe})}function nQ(t){return tQ(iQ,t)}function iQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var oQ=eV(),rQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function aQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var sQ=tV;function lQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var cQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var dQ=iV;function uQ(t,i,e,n,o){let r=qo(Y2(t),Y2(i)),a=i-t,s=Ba(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Zi((e=+o)*kn))+"px"),[t,i,e]}function mQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ta(bq);if(t.id!=null&&(u.id=t.id),Tr(u,t.class),t.title){let v=ta(xq,u);v.textContent=t.title}let h=Va("canvas"),g=n.ctx=h.getContext("2d"),y=ta(wq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&uo.click(n,v)},!0);let w=n.under=ta(Dq,y);y.appendChild(h);let S=n.over=ta(Sq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):aQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},et=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Zs(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:YY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?sQ:v==Ce?C.distr==3?cQ:C.distr==4?dQ:tV:C.distr==3?nV:C.distr==4?iV:lQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||qY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Tr(u,yq),qe=r,It=a):(Tr(u,Cq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Zi(v/F))),ae=t.fmtDate||_M,He=F==1?yY(pe):wY(pe),nt=nL(pe,tL(F==1?bY:xY,ae)),gt=oL(pe,iL(SY,ae)),Qt=[],ft=n.legend=Ni({},TY,t.legend),Ve=n.cursor=Ni({},PY,{drag:{y:o==2}},t.cursor),jt=ft.show,eo=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Qo=[],ws,Or=!1,al={};if(ft.live){let v=q[1]?q[1].values:null;Or=v!=null,ws=Or?v(n,1,0):{_:0};for(let C in ws)al[C]=uM}if(jt)if(Rt=Va("table",Aq,u),Jn=Va("tbody",null,Rt),ft.mount(n,Rt),Or){Li=Va("thead",null,Rt,Jn);let v=Va("tr",null,Li);Va("th",null,v);for(var Ad in ws)Va("th",R2,v).textContent=Ad}else Tr(Rt,Oq),ft.live&&Tr(Rt,Rq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Or||!ft.live||o==2))return Sm;let E=[],M=Va("tr",Pq,Jn,Jn.childNodes[C]);Tr(M,v.class),v.show||Tr(M,gd);let N=Va("th",null,M);if(Xn.show){let he=ta(Nq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ta(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),Mo("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&Ya(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else Ya(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&Mo(F2,N,he=>{Ve._lock||(cc(he),Ya(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in ws){let he=Va("td",Fq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function Mo(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let Ds=0,rc=0,Wt=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,Ga=Wt,sc=Pe,lr=0,Pr=0,Ko=0,la=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Nr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&aT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function aT(v,C){n.width=Ds=Wt=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;lr=E.left=hd(ei*kn,.5),Pr=E.top=hd(Vi*kn,.5),Ko=E.width=hd(Wt*kn,.5),la=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(aT(n.width,n.height),If=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?(Wt-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,Wt-=sl[1]+sl[3],ei+=sl[3],Pe-=sl[2]+sl[0],Vi+=sl[0]}function qj(){let v=ei+Wt,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let _o=Ve.points;_o.show=ln(_o.show),_o.size=ln(_o.size),_o.stroke=ln(_o.stroke),_o.width=ln(_o.width),_o.fill=ln(_o.fill);let qa=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=qa.prox>=0,Ld=Fd&&_o.one,Fr=[],Vd=[],Bd=[];function sT(v,C){let E=_o.show(n,C);if(E instanceof HTMLElement)return Tr(E,kq),Tr(E,v.class),ys(E,-10,-10,Wt,Pe),S.insertBefore(E,Fr[C]),E}function lT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||WY,v.label=v.label||(E?FY:NY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||oQ||Yq,v.fillTo=ln(v.fillTo||QY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=$Y(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:rQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(eo){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=sT(v,C)):C>0&&(E=sT(v,C)),Fr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}ro("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),lT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}eo&&(Qt.splice(v,1),Fr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),ro("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?gY:N?F==1?vY:CY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?BY:VY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?DY(pe,U):U||nt:U||LY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?UY:M.distr==3&&M.log==2?HY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ta(Eq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Zi(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Zi(lL.size/2):0),Ae}let cT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),sl=n._padding=cT.map((v,C)=>v(n,C,dc,0)),co,to=null,no=null,Af=o==1?q[0].idxs:null,ca=null,$m=!1;function dT(v,C){if(i=v??[],n.data=n._data=i,o==2){co=0;for(let E=1;E=0,Nr=!0,Ud()}}n.setData=dT;function Wy(){$m=!0;let v,C;o==1&&(co>0?(to=Af[0]=0,no=Af[1]=co-1,v=i[0][to],C=i[0][no],Tt==2?(v=to,C=no):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Zi(86400/F):[v,C]=w0(v,C,hM,!0))):(to=Af[0]=v=null,no=Af[1]=C=null)),cl(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Zo;function uT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function mT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(to,0),re=wn(no,M.length-1),he=E.min==null?Uq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=ja(v.min,E.min=he[0]),v.max=qo(v.max,E.max=he[1])}}let pT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=pT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=pT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Zq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(co==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(co>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],to=Ba(he.min,i[0]),no=Ba(he.max,i[0]),no-to>1&&(i[0][to]he.max&&no--),M.min=ca[to],M.max=ca[no]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=to,M.idxs[1]=no}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Zs(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Zs(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,ro("setScale",M);eo&&Ve.left>=0&&(lc=Nr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(to-1,0,co-1),E=oM(no+1,0,co-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Zo!=qa.alpha;v&&(g.globalAlpha=Zo=qa.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(hT(E,!1),hT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&fT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,to,no,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,to,no,re),fT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),ro("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function hT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function fT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=lr-Ae/2,vn=Pr-Ae/2,tn=Ko+Ae,St=la+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Wq(tn,to,no)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let gT=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){uT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&gT)==gT?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=uQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),uT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?Wt:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>ca[rt]):Lt,vn=N.distr==2?ca[Lt[1]]-ca[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=na(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return cT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=sl[M]&&(C=!1),sl[M]=N}),C}function o4(){for(let v=0;vca[Io]):Dn,tn=Oe.distr==2?ca[Dn[1]]-ca[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Zi(ai*kn),ao=Zi((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),cr=(gi+ao)*he,To=_i+cr;U=M==0?To:0,N=M==1?To:0;let Lr=C.font[0],da=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Ka=zn||M==1?"middle":E==2?"top":O2;mT(Lr,re,da,Ka);let dr=C.font[1]*C.lineGap,Vr=Dn.map(Io=>j(s(Io,Oe,Be,Lt))),ua=C._values;for(let Io=0;Io{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function r4(){tC=!1;for(let v=0;v0&&queueMicrotask(r4)}n.batch=a4;function _T(){if(Uy&&(Zj(),Uy=!1),Nd&&(Wj(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,Wt),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,Wt),di(S,af,Pe),di(y,rf,Ds),di(y,af,rc),h.width=Zi(Ds*kn),h.height=Zi(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:Wt),nM(v,gd)}else Tr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Zo=1,Qm(!0),ei!=Pd||Vi!=ac||Wt!=Ga||Pe!=sc){zd(!1);let v=Wt/Ga,C=Pe/sc;if(eo&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&ys(Hd,Zi(Ve.left),0,Wt,Pe),Wd&&ys(Wd,0,Zi(Ve.top),Wt,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,Ga=Wt,sc=Pe}ro("setSize"),If=!1}Ds>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),ro("drawClear"),et.forEach(v=>v()),ro("draw")),ri.show&&kf&&(Ff(ri),kf=!1),eo&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Nr&&(rC(),Nr=!1),l||(l=!0,n.status=1,ro("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?cl(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(co==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(co>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&co>0&&(C.min=Ba(C.min,i[0]),C.max=Ba(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,vT,bT,$d,Gd,yT,CT,oi,ui,ll=!1,uo=Ve.drag,io=uo.x,oo=uo.y;eo&&(Ve.x&&(iC=ta(Tq,S)),Ve.y&&(oC=ta(Iq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ta(Mq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&ro("setSelect")}}n.setSelect=Ff;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Tr(jn[v],gd),eo){let E=Ld?Fr[0]:Fr[v];E!=null&&ys(E,-10,-10,Wt,Pe)}}function cl(v,C,E){nC(v,{min:C,max:E})}function Ya(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(cl(N.facets[0].scale,null,null),cl(N.facets[1].scale,null,null)):cl(N.scale,null,null),Ud())}),E!==!1&&ro("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=Ya;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,eo&&Fr[v]!=null&&(Fr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ss,dl,uc,Yd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=qa.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:qa.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&Mo(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&Ya(null,Yd,!0,Ii.setSeries))});function Qa(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=Wt;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?Gq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Qa(v,Ce,C);return Ba(E,i[0],to,no)}n.valToIdx=v=>Ba(v,i[0]),n.posToIdx=p4,n.posToVal=Qa,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:Wt,E?lr:0):a(v,oe[C],E?la:Pe,E?Pr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function xT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function wT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?xT:wT,Ym=Se.ori==1?xT:wT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Kq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Or)&&f4(E,Qt[E]);h4()}Nr=!1,C!==!1&&ro("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?ca:i[v],N;Or?N=E.values(n,v,C)??al:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?al:{_:N}),ft.values[v]=N}function mc(v,C,E){yT=oi,CT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,eo&&(Hd&&ys(Hd,Zi(oi),0,Wt,Pe),Wd&&ys(Wd,0,Zi(ui),Wt,Pe));let M,N=to>no;Ss=Kn,dl=null;let U=Se.ori==0?Wt:Pe,re=Se.ori==1?Wt:Pe;if(oi<0||co==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let cr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),To=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Lr=Se.ori==1?oi:ui,da=Xi(qa.dist(n,rt,zn,To,Lr));if(da=0?1:-1,ua=dr>=0?1:-1;ua==Vr&&(ua==1?Ka==1?_i>=dr:_i<=dr:Ka==1?_i<=dr:_i>=dr)&&(Ss=da,dl=rt)}else Ss=da,dl=rt}}if(Nr||Ld){let Lr,da;Se.ori==0?(Lr=cr,da=To):(Lr=To,da=cr);let Ka,dr,Vr,ua,Za,Io,ur=!0,pc=_o.bbox;if(pc!=null){ur=!1;let ko=pc(n,rt);Vr=ko.left,ua=ko.top,Ka=ko.width,dr=ko.height}else Vr=Lr,ua=da,Ka=dr=_o.size(n,rt);if(Io=_o.fill(n,rt),Za=_o.stroke(n,rt),Ld)rt==dl&&Ss<=qa.prox&&(Oe=Vr,Be=ua,Lt=Ka,Dn=dr,vn=ur,tn=Io,St=Za);else{let ko=Fr[rt];ko!=null&&(Vd[rt]=Vr,Bd[rt]=ua,W2(ko,Ka,dr,ur),U2(ko,Io,Za),ys(ko,na(Vr),na(ua),Wt,Pe))}}}}if(Ld){let rt=qa.prox,ai=uc==null?Ss<=rt:Ss>rt||dl!=uc;if(Nr||ai){let gi=Fr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),ys(gi,na(Oe),na(Be),Wt,Pe))}}}if(ri.show&&ll)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(io=Dn._x,oo=Dn._y,io||oo){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ao,zn,_i,cr,To,Lr=he!=null&&Ae(he,Be),da=ye!=null&&Oe(ye,Lt);Lr&&io?(ai==0?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[he],cr=qe(gi(ao,Be),_i,U,0),To=qe(gi(ao+zn,Be),_i,U,0),qm(ja(cr,To),Xi(To-cr))):qm(0,U),da&&oo?(ai==1?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[ye],cr=It(gi(ao,Lt),_i,re,0),To=It(gi(ao+zn,Lt),_i,re,0),Ym(ja(cr,To),Xi(To-cr))):Ym(0,re)}else lC()}else{let he=Xi(yT-vT),ye=Xi(CT-bT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}io=uo.x&&he>=uo.dist,oo=uo.y&&ye>=uo.dist;let Ae=uo.uni;Ae!=null?io&&oo&&(io=he>=Ae,oo=ye>=Ae,!io&&!oo&&(ye>he?oo=!0:io=!0)):uo.x&&uo.y&&(io||oo)&&(io=oo=!0);let Oe,Be;io&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(ja(Oe,Be),Xi(Be-Oe)),oo||Ym(0,re)),oo&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(ja(Oe,Be),Xi(Be-Oe)),io||qm(0,U)),!io&&!oo&&(qm(0,0),Ym(0,0))}if(uo._x=io,uo._y=oo,v==null){if(E){if(PT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Qa(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Qa(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,Wt,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=qa.prox;uc==null?Ss<=ye&&Ya(dl,Yd,!0,he):Ss>ye?Ya(null,Yd,!0,he):dl!=uc&&Ya(dl,Yd,!0,he)}}Nr&&(ft.idx=M,rC()),C!==!1&&ro("setCursor")}let ul=null;Object.defineProperty(n,"rect",{get(){return ul==null&&Qm(!1),ul}});function Qm(v=!1){v?ul=null:(ul=S.getBoundingClientRect(),ro("syncRect",ul))}function DT(v,C,E,M,N,U,re){Ve._lock||ll&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(ul==null&&Qm(!1),cc(v),v!=null)E=v.clientX-ul.left,M=v.clientY-ul.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?Wt:Pe,ao=Se.ori==1?Wt:Pe,zn=ai?U:N,_i=ai?N:U,cr=ai?M:E,To=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(cr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ao,0):-10:M=ao*(To/_i),Se.ori==1){let Lr=E;E=M,M=Lr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=Wt-1)&&(E=hd(E,Wt)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(vT=E,bT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ST,ET,MT,TT;function IT(v,C,E,M,N,U,re){ll=!0,io=oo=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(Mo(QE,eM,kT,!1),Km(N2,n,$d,Gd,Wt,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ST=he,ET=ye,MT=Ae,TT=Oe}function kT(v,C,E,M,N,U,re){ll=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ST!=he||ET!=ye||MT!=Ae||TT!=Oe;if(Be&&Lt&&Ff(ri),uo.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),io&&cl(Ce,Qa(Dn,Ce),Qa(Dn+vn,Ce)),oo)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&cl(rt,Qa(tn+St,rt),Qa(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,Wt,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=ll;if(ll){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=io,Lt=oo):(Be=oo,Lt=io),Be&&Lt&&(ye=oi<=Oe||oi>=Wt-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:Wt),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&Ya(E,M,!0,!1)},eo&&(Mo(N2,S,IT),Mo(YE,S,DT),Mo(F2,S,v=>{cc(v),Qm(!1)}),Mo(L2,S,g4),Mo(V2,S,AT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function ro(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let OT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,OT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(OT),Ve.sync=Ii;let PT=Ii.key,cC=GL(PT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,RT),u.remove(),Rt?.remove(),ro("destroy")}n.destroy=v4;function dC(){ro("init",t,i),dT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Nr=!0,Hy(t.width,t.height)}return q.forEach(lT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=iY;Ti.fmtDate=_M,Ti.tzDate=hY;Ti.sync=GL;{Ti.addGap=KY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=JY,t.bars=eQ,t.spline=nQ}var pQ=["host"],hQ=["donut"],oV=(t,i)=>i.name;function fQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function gQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,fQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function _Q(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function vQ(t,i){if(t&1&&(c(0,"div",10),fe(1,_Q,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function bQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function yQ(t,i){if(t&1&&(c(0,"div",3),A(1,vQ,3,0,"div",10),O(2,"div",11,0),A(4,bQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function CQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>Yi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>Yi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,et)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[et]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[CQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(pQ,5)(hQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,gQ,8,0,"div",2)(1,yQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var wQ=(t,i)=>i.value,DQ=(t,i)=>i.user;function SQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function EQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function TQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function IQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function kQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,MQ,6,1)(2,TQ,9,2)(3,IQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function AQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),Fo(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function RQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function OQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function PQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function NQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function FQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function LQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function VQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function BQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function jQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function zQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function UQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function HQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function WQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function $Q(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function GQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function qQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function YQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function QQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function KQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function ZQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function XQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function JQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function eK(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function tK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,eK,11,5,"tr",null,DQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function nK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function iK(t,i){if(t&1&&(A(0,OQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,PQ,1,1,"uds-uplot-chart",19)(7,NQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,FQ,1,1,"uds-uplot-chart",19)(13,LQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,VQ,1,1,"uds-uplot-chart",19)(19,BQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,jQ,1,1,"uds-uplot-chart",19)(25,zQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,UQ,1,1,"uds-uplot-chart",19)(31,HQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,WQ,1,1,"uds-uplot-chart",19)(37,$Q,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,GQ,1,1,"uds-uplot-chart",19)(43,qQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,YQ,1,1,"uds-uplot-chart",19)(49,QQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,KQ,1,1,"uds-uplot-chart",19)(55,ZQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,XQ,1,1,"uds-uplot-chart",19)(61,JQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,tK,25,0,"div",23),c(74,"div",24),A(75,nK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var aV=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.cache=o,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){this.cache.has("cachedEnterpriseInfo")||this.cache.set("cachedEnterpriseInfo",(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?Yi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return this.cache.get("cachedEnterpriseInfo")}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(M2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(T2))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,SQ,2,3,"button",3,wQ),d(),c(5,"div",4),A(6,EQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,kQ,4,5,"div",8),A(11,AQ,2,2,"div",9),d()(),A(12,RQ,5,0,"div",10)(13,iK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function rK(t,i){t&1&&O(0,"uds-dashboard")}function aK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,rK,1,0,"uds-dashboard")(3,aK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var Cs=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Fa.INSERTED}else l==null?(e.remove(s),h=Fa.REMOVED):(u=e.get(s),e.move(u,l),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var sK=["notch"],lK=["matFormFieldNotchedOutline",""],cK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],dK=["textField"],uK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function pK(t,i){t&1&&O(0,"span",21)}function hK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,pK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function fK(t,i){if(t&1&&A(0,hK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function gK(t,i){t&1&&O(0,"div",7)}function _K(t,i){}function vK(t,i){if(t&1&&xe(0,_K,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function bK(t,i){if(t&1&&(c(0,"div",9),A(1,vK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function yK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function CK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function xK(t,i){}function wK(t,i){if(t&1&&xe(0,xK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function DK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function SK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function EK(t,i){t&1&&O(0,"div",16)}function MK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function TK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function IK(t,i){if(t&1&&(c(0,"div",19),A(1,TK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var DM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var SM=new L("MatSuffix"),Ar=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ke([{provide:SM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return kK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function kK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(sK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:lK,ngContentSelectors:cK,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&&(vt(),mo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),mo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Js=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var ia=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",AK="auto",_V="fixed",RK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Lo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Yr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||AK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Fs(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Lo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),Qe(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){NO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Lo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${RK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Js,5)(r,bV,5)(r,SM,5)(r,vV,5)(r,DM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(dK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ke([{provide:ia,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:mK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(uK),xe(0,fK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,gK,1,0,"div",7),c(5,"div",8),A(6,bK,2,2,"div",9),A(7,yK,3,0,"div",10),A(8,CK,3,0,"div",11),c(9,"div",12),A(10,wK,1,1,null,13),Ie(11),d(),A(12,DK,3,0,"div",14),A(13,SK,3,0,"div",15),d(),A(14,EK,1,0,"div",16),d(),c(15,"div",17),A(16,MK,2,0,"div",18)(17,IK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,DM],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -2983,7 +2983,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var RK=["trigger"],OK=["panel"],PK=[[["mat-select-trigger"]],"*"],NK=["mat-select-trigger","*"];function FK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function LK(t,i){t&1&&Ie(0)}function VK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function BK(t,i){if(t&1&&(c(0,"span",5),A(1,LK,1,0)(2,VK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function jK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var zK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),UK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),EM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(ho);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(na,{optional:!0});ngControl=p(ir,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(UK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EM(this,e)}_scrollStrategyFactory=p(zK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=pr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),et(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),et(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Ql,{optional:!0}),r=p(new Hi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Zl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Cs(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Xe(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(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=$i(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(RK,5)(OK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Qe([{provide:Js,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:NK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(PK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,FK,2,1,"span",4)(5,BK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,jK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var OK=["trigger"],PK=["panel"],NK=[[["mat-select-trigger"]],"*"],FK=["mat-select-trigger","*"];function LK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function VK(t,i){t&1&&Ie(0)}function BK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function jK(t,i){if(t&1&&(c(0,"span",5),A(1,VK,1,0)(2,BK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function zK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var UK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),HK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),EM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(ho);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(ia,{optional:!0});ngControl=p(ir,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(HK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EM(this,e)}_scrollStrategyFactory=p(UK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=pr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),Qe(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),Qe(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Ql,{optional:!0}),r=p(new Wi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Zl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Cs(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Je(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(Je(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Je(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=Gi(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(OK,5)(PK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ke([{provide:Js,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:FK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(NK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,LK,2,1,"span",4)(5,jK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,zK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -3172,7 +3172,7 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Qe([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,pt,xr,yd,bm]})}return t})();var HK=["tooltip"],WK=20;var $K=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t,{scrollThrottle:WK})}}),GK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",qK={passive:!0},YK=8,QK=8,KK=24,ZK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(GK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Yr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Yr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Oa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Oa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=YK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 nr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(zl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=Fa(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Xe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=zo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get($K)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=QK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,qK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>KK&&e.width>=ZK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(HK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Pl("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { +`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ke([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,pt,xr,yd,bm]})}return t})();var WK=["tooltip"],$K=20;var GK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t,{scrollThrottle:$K})}}),qK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",YK={passive:!0},QK=8,KK=8,ZK=24,XK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(qK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Yr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Yr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=QK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 nr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(zl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=La(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Je(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Uo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(GK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=KK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,YK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>ZK&&e.width>=XK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(WK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Pl("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -3277,7 +3277,7 @@ div.mat-mdc-select-panel { .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,fo,pt,xr]})}return t})();function XK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function JK(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,XK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function eZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function tZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,JK,6,7,"mat-form-field",14),A(4,eZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function nZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ke);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Br(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(rZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,tZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,nZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),wa(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,iZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { +`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,fo,pt,xr]})}return t})();function JK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function eZ(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,JK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function tZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function nZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,eZ,6,7,"mat-form-field",14),A(4,tZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function oZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ze);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Br(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(aZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,nZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,iZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),Da(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,oZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3378,10 +3378,10 @@ div.mat-mdc-select-panel { transform: translate(-50%, -50%); cursor: pointer; } -`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[vs,V0,B0,el]})}return t})();var aZ=[[["caption"]],[["colgroup"],["col"]],"*"],sZ=["caption","colgroup, col","*"];function lZ(t,i){t&1&&Ie(0,2)}function cZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function dZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var za=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(za,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var TM=(()=>{class t{template=p(mn);_differs=p(zs);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof IM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),IM=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends TM{_table=p(za,{optional:!0});when;constructor(){super(p(mn),p(zs))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),kM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],MM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&uZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function uZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var RM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),FM=(()=>{class t{_differs=p(zs);_changeDetectorRef=p(Ke);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(ho);_injector=p(Te);_virtualScrollViewport=p(_N,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Hi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Xe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Na.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=yo([e,this.viewChange]).pipe(Xe(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new MM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Xe(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Xe(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),yo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Xe(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,IM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Qe([{provide:za,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:sZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(aZ),Ie(0),Ie(1,1),A(2,lZ,1,0),A(3,cZ,7,0)(4,dZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.cdk-table-fixed-layout { +`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[vs,V0,B0,el]})}return t})();var sZ=[[["caption"]],[["colgroup"],["col"]],"*"],lZ=["caption","colgroup, col","*"];function cZ(t,i){t&1&&Ie(0,2)}function dZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function uZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var za=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(za,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var TM=(()=>{class t{template=p(mn);_differs=p(zs);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof IM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),IM=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends TM{_table=p(za,{optional:!0});when;constructor(){super(p(mn),p(zs))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),kM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],MM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&mZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function mZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var RM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),FM=(()=>{class t{_differs=p(zs);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(ho);_injector=p(Te);_virtualScrollViewport=p(_N,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Wi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Je(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Fa.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=yo([e,this.viewChange]).pipe(Je(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new MM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Je(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Je(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),yo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Je(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,IM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ke([{provide:za,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:lZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(sZ),Ie(0),Ie(1,1),A(2,cZ,1,0),A(3,dZ,7,0)(4,uZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.cdk-table-fixed-layout { table-layout: fixed; } -`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var mZ=["mat-sort-header",""],pZ=["*",[["","matSortHeaderIcon",""]]],hZ=["*","[matSortHeaderIcon]"];function fZ(t,i){t&1&&(Gn(),dn(0,"svg",3),mo(1,"path",4),pn())}function gZ(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,fZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),tl=(()=>{class t{_defaultOptions;_initializedStream=new Br(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=_Z(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function _Z(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(tl,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ke);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:mZ,ngContentSelectors:hZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(pZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,gZ,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { +`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var pZ=["mat-sort-header",""],hZ=["*",[["","matSortHeaderIcon",""]]],fZ=["*","[matSortHeaderIcon]"];function gZ(t,i){t&1&&(Gn(),dn(0,"svg",3),mo(1,"path",4),pn())}function _Z(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,gZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),tl=(()=>{class t{_defaultOptions;_initializedStream=new Br(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=vZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function vZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(tl,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ze);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:pZ,ngContentSelectors:fZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(hZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,_Z,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { cursor: pointer; } @@ -3480,7 +3480,7 @@ div.mat-mdc-select-panel { .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { margin: 0 6px 0 0; } -`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var vZ=["input"],bZ=["label"],yZ=["*"],LM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},CZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>LM}),So=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(So||{}),VM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_ngZone=p(be);_animationsDisabled=Bt();_options=p(CZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new VM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=So.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0});this._options=this._options||LM,this.color=this._options.color||LM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(So.Indeterminate):this._transitionCheckState(this.checked?So.Checked:So.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?So.Checked:So.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case So.Init:if(n===So.Checked)return this._animationClasses.uncheckedToChecked;if(n==So.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case So.Unchecked:return n===So.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case So.Checked:return n===So.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case So.Indeterminate:return n===So.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(vZ,5)(bZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:yZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),wa(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Sr,Yb],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bZ=["input"],yZ=["label"],CZ=["*"],LM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},xZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>LM}),Eo=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Eo||{}),VM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_animationsDisabled=Bt();_options=p(xZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new VM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Eo.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0});this._options=this._options||LM,this.color=this._options.color||LM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Eo.Indeterminate):this._transitionCheckState(this.checked?Eo.Checked:Eo.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Eo.Checked:Eo.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Eo.Init:if(n===Eo.Checked)return this._animationClasses.uncheckedToChecked;if(n==Eo.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Eo.Unchecked:return n===Eo.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Eo.Checked:return n===Eo.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Eo.Indeterminate:return n===Eo.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(bZ,5)(yZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:CZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),Da(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Sr,Yb],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -3973,7 +3973,7 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function DZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var nl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new nl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new nl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new nl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new nl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new nl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),et(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(et(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ao(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(et(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),et(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),Cl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],IZ=HV.map(t=>`[${t}]`).join(", "),kZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(TZ);_errorHandler=p(Ao);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Hi("aria-hidden"),{optional:!0}),n=p(MZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(IZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(kZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:EZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function SZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var nl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new nl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new nl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new nl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new nl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new nl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),Qe(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Qe(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Bi(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(Qe(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),Qe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),Cl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kZ=HV.map(t=>`[${t}]`).join(", "),AZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(IZ);_errorHandler=p(Ro);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Wi("aria-hidden"),{optional:!0}),n=p(TZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(kZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(AZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:MZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -4009,8 +4009,8 @@ div.mat-mdc-select-panel { .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})();var AZ=["searchSelectInput"],RZ=["innerSelectSearch"],OZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],PZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function NZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function FZ(t,i){t&1&&O(0,"mat-spinner",7)}function LZ(t,i){t&1&&Ie(0,1)}function VZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function BZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function jZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,LZ,1,0)(2,VZ,1,1,"mat-icon",12)(3,BZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function zZ(t,i){t&1&&Ie(0,2)}function UZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function HZ(t,i){if(t&1&&(c(0,"div",9),A(1,zZ,1,0)(2,UZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var WZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),$Z=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],GZ=new L("mat-selectsearch-default-options"),qZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),BM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(et(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(et(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=yo([this._formControl.valueChanges,this.optionsLength$]).pipe(et(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of $Z)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Xe(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Xe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Xe(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Xe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Xe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Xe(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Xe(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ke),D(ho),D(Mt,8),D(ze,8),D(GZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,WZ,5)(r,qZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(AZ,7,se)(RZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:PZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(OZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,NZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,FZ,1,0,"mat-spinner",7),A(8,jZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,HZ,3,1,"div",9),$t(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Ht,$e,TE,hf,q0,Yo,ym,WV,vs,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[BM]})}return t})();function QZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,QZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Ze,Mt,BM],encapsulation:2})}}return t})();function KZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function XZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,KZ,2,0,"uds-translate")(2,ZZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,XZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,JZ,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,eX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var tX=(t,i)=>[t,i];function nX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),No(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function iX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,nX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,iX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,tX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var oX="text/csv",YV=",",QV=`\r -`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=qi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=qi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=qi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=qi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:oX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var jM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new jM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var aX=["mat-menu-item",""],sX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lX=["mat-icon, [matMenuItemIcon]","*"];function cX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var dX=["*"];function uX(t,i){if(t&1){let e=W();dn(0,"div",0),Pl("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var UM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(UM,{optional:!0});_changeDetectorRef=p(Ke);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Ui);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ke);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new Gi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Qe([{provide:JV,useExisting:t}])]})}return t})(),mX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),zM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(mX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ys(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===zM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===zM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?zM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Qe([{provide:UM,useExisting:t}])],ngContentSelectors:dX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Bs(0,uX,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return t})();var RZ=["searchSelectInput"],OZ=["innerSelectSearch"],PZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],NZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function FZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function LZ(t,i){t&1&&O(0,"mat-spinner",7)}function VZ(t,i){t&1&&Ie(0,1)}function BZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function jZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function zZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,VZ,1,0)(2,BZ,1,1,"mat-icon",12)(3,jZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function UZ(t,i){t&1&&Ie(0,2)}function HZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function WZ(t,i){if(t&1&&(c(0,"div",9),A(1,UZ,1,0)(2,HZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var $Z=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),GZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],qZ=new L("mat-selectsearch-default-options"),YZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),BM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(Qe(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(Qe(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=yo([this._formControl.valueChanges,this.optionsLength$]).pipe(Qe(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;_removePanelKeydownListener;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of GZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Je(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus(),this._installPanelKeydownListener()):(this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this.clearSearchInput&&this._reset())}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Je(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Je(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Je(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Je(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_installPanelKeydownListener(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0;let e=this.matSelect.panel?.nativeElement;if(!e)return;let n=o=>{o.key!=="Escape"&&o.stopPropagation()};e.addEventListener("keydown",n),this._removePanelKeydownListener=()=>e.removeEventListener("keydown",n)}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Je(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Je(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ze),D(ho),D(Mt,8),D(ze,8),D(qZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,$Z,5)(r,YZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(RZ,7,se)(OZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:NZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(PZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,FZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,LZ,1,0,"mat-spinner",7),A(8,zZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,WZ,3,1,"div",9),$t(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Ht,$e,TE,hf,q0,Yo,ym,WV,vs,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[BM]})}return t})();function KZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,KZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Xe,Mt,BM],encapsulation:2})}}return t})();function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function XZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function tX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ZZ,2,0,"uds-translate")(2,XZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,JZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,eX,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,tX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var nX=(t,i)=>[t,i];function iX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),Fo(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function oX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,iX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,oX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,nX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var rX="text/csv",YV=",",QV=`\r +`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=Yi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=Yi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=Yi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=Yi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:rX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var jM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new jM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var sX=["mat-menu-item",""],lX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],cX=["mat-icon, [matMenuItemIcon]","*"];function dX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var uX=["*"];function mX(t,i){if(t&1){let e=W();dn(0,"div",0),Pl("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var UM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(UM,{optional:!0});_changeDetectorRef=p(Ze);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Hi);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ze);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new qi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ke([{provide:JV,useExisting:t}])]})}return t})(),pX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),zM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(pX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ys(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===zM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===zM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?zM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ke([{provide:UM,useExisting:t}])],ngContentSelectors:uX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Bs(0,mX,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -4202,7 +4202,7 @@ div.mat-mdc-select-panel { position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return t})(),pX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}});var Am=new WeakMap,hX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(pX);_changeDetectorRef=p(Ke);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(UM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Xe(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=zo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Bo({positionStrategy:Fa(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Gi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends hX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,fo,pt,xr]})}return t})();var fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { +`],encapsulation:2,changeDetection:0})}return t})(),hX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}});var Am=new WeakMap,fX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(hX);_changeDetectorRef=p(Ze);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(UM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Je(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Uo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new jo({positionStrategy:La(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends fX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,fo,pt,xr]})}return t})();var gX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { resize: none; } @@ -4228,7 +4228,7 @@ textarea.cdk-textarea-autosize-measuring-firefox { .cdk-text-field-autofill-monitored:not(:-webkit-autofill) { animation: cdk-text-field-autofill-end 0s 1ms; } -`],encapsulation:2,changeDetection:0})}return t})(),gX={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(fX);let n=Lo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,gX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Lo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var _X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(ir,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(na,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(vX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Yr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=Yr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Yr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ds(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Fs(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_X.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Qe([{provide:Js,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var bX=[[["caption"]],[["colgroup"],["col"]],"*"],yX=["caption","colgroup, col","*"];function CX(t,i){t&1&&Ie(0,2)}function xX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function wX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends FM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Qe([{provide:FM,useExisting:t},{provide:za,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:yX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(bX),Ie(0),Ie(1,1),A(2,CX,1,0),A(3,xX,7,0)(4,wX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.mat-mdc-table-sticky { +`],encapsulation:2,changeDetection:0})}return t})(),_X={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(gX);let n=Vo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,_X)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Vo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var vX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],bX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(ir,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(ia,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(bX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Yr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=Yr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Yr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ds(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Fs(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){vX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ke([{provide:Js,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var yX=[[["caption"]],[["colgroup"],["col"]],"*"],CX=["caption","colgroup, col","*"];function xX(t,i){t&1&&Ie(0,2)}function wX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function DX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends FM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ke([{provide:FM,useExisting:t},{provide:za,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:CX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(yX),Ie(0),Ie(1,1),A(2,xX,1,0),A(3,wX,7,0)(4,DX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.mat-mdc-table-sticky { position: sticky !important; } @@ -4405,9 +4405,9 @@ mat-cell.mat-mdc-cell, mat-footer-cell.mat-mdc-footer-cell { align-self: stretch; } -`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Qe([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Qe([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Qe([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Qe([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Qe([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends kM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Qe([{provide:kM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Qe([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),DX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=yo([n,this._filter]).pipe(et(([s])=>this._filterData(s))),r=yo([o,i]).pipe(et(([s])=>this._orderData(s))),a=yo([r,e]).pipe(et(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Ia({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var EX=["trigger"],MX=()=>[5,10,25,100,1e3];function TX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function IX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function kX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,IX,1,1,"button",43,De),$t(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function AX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,kX,7,6,null,null,De),$t(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function RX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function OX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,RX,1,1,"button",45,De),$t(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function PX(t,i){if(t&1&&(A(0,AX,13,4),A(1,OX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function NX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function FX(t,i){if(t&1&&(A(0,PX,2,2),A(1,NX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function jX(t,i){if(t&1&&fe(0,BX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function zX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function UX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function HX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function WX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $X(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function GX(t,i){t&1&&(us(0,26),xe(1,WX,2,2,"mat-header-cell",54)(2,$X,2,1,"mat-cell",55),ms())}function qX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function YX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function QX(t,i){if(t&1&&(us(0,27),xe(1,qX,2,5,"mat-header-cell",59)(2,YX,2,2,"mat-cell",60),ms()),t&2){let e=i.$implicit;b("matColumnDef",Nl(e.name))}}function KX(t,i){t&1&&O(0,"mat-header-row")}function ZX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function XX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function JX(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function oJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function rJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function aJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,rJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function sJ(t,i){if(t&1&&(A(0,JX,5,0,"button",65),A(1,eJ,5,0,"button",65),A(2,tJ,5,0,"button",65),A(3,nJ,5,0,"button",65),fe(4,iJ,1,2,"button",66,De),A(6,oJ,5,0,"button",67),A(7,aJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Cs(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Ks.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Ks.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new Cs(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ONLY_MENU&&e.type!==Gt.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Gt.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=qi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=qi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=qi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=qi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Gt.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Gt.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Gt.ALWAYS||(e.type===Gt.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl),D(ZV),D(Ke))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(EX,7)(el,7)(tl,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,TX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,FX,2,2),A(11,LX,6,1,"a",12),A(12,VX,6,1,"a",12),A(13,jX,2,0),A(14,zX,6,0,"a",13),A(15,UX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,HX,3,0,"button",18),$t(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,GX,3,0,"ng-container",26),fe(34,QX,3,2,"ng-container",27,De),xe(36,KX,1,0,"mat-header-row",28)(37,ZX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,XX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,sJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,MX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Ht,$e,Ze,Fe,yi,nc,xd,e3,X0,ze,st,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",lJ='pause'+django.gettext("Exit maintenance mode")+"",cJ='pause'+django.gettext("Enter maintenance mode")+"",HM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=lJ:this.customButtons[0].html=cJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var dJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function uJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(dJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function mJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>uJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(mJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Jo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Ks.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e,n){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var pJ=()=>[5,10,25,100,1e3];function hJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function fJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function gJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function _J(t,i){if(t&1&&(us(0,20),xe(1,fJ,2,1,"mat-header-cell",25)(2,gJ,2,1,"mat-cell",26),ms()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function vJ(t,i){t&1&&O(0,"mat-header-row")}function bJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var rr=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new Cs}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=qi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(el,7)(tl,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,hJ,3,0,"button",13),$t(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,_J,3,1,"ng-container",20,De),xe(35,vJ,1,0,"mat-header-row",21)(36,bJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,pJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Ht,$e,Ze,Fe,yi,ze,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function yJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var xJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new or(django.gettext("Service pools"),e,xJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,yJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,CJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` -`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr],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}"]})}}return t})();var wJ=(t,i)=>i.tab;function DJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function SJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,DJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var EJ=django.gettext("Main"),oa=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||EJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,SJ,6,1,"div",1,wJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var MJ=t=>["/services","providers",t];function TJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function IJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function OJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,TJ,2,0,"ng-template",8),c(5,"div",9),A(6,IJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,kJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,AJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,RJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,OJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,MJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa],encapsulation:2})}}return t})();var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Ht,$e,Ze,Fe,Yo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var PJ=t=>["/services","servers",t];function NJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function LJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,NJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,FJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",VJ='pause'+django.gettext("Exit maintenance mode")+"",BJ='pause'+django.gettext("Enter maintenance mode")+"",jJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Gt.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:jJ,type:Gt.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.invoke(n.id+"/maintenance",void 0,"POST").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=VJ:this.customButtons[0].html=BJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,LJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,PJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var zJ=["panel"],UJ=["*"];function HJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var YM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new YM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(zJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Qe([{provide:_m,useExisting:t}])],ngContentSelectors:UJ,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&&(vt(),Bs(0,HJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { +`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ke([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ke([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ke([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ke([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ke([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends kM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ke([{provide:kM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ke([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),SX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=yo([n,this._filter]).pipe(Qe(([s])=>this._filterData(s))),r=yo([o,i]).pipe(Qe(([s])=>this._orderData(s))),a=yo([r,e]).pipe(Qe(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var MX=["trigger"],TX=()=>[5,10,25,100,1e3];function IX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function kX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function AX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,kX,1,1,"button",43,De),$t(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function RX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,AX,7,6,null,null,De),$t(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function OX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function PX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,OX,1,1,"button",45,De),$t(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function NX(t,i){if(t&1&&(A(0,RX,13,4),A(1,PX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function FX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function LX(t,i){if(t&1&&(A(0,NX,2,2),A(1,FX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function jX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function zX(t,i){if(t&1&&fe(0,jX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function UX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function HX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function WX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function $X(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function GX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function qX(t,i){t&1&&(us(0,26),xe(1,$X,2,2,"mat-header-cell",54)(2,GX,2,1,"mat-cell",55),ms())}function YX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function QX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function KX(t,i){if(t&1&&(us(0,27),xe(1,YX,2,5,"mat-header-cell",59)(2,QX,2,2,"mat-cell",60),ms()),t&2){let e=i.$implicit;b("matColumnDef",Nl(e.name))}}function ZX(t,i){t&1&&O(0,"mat-header-row")}function XX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function JX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function oJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function rJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function aJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function sJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,aJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function lJ(t,i){if(t&1&&(A(0,eJ,5,0,"button",65),A(1,tJ,5,0,"button",65),A(2,nJ,5,0,"button",65),A(3,iJ,5,0,"button",65),fe(4,oJ,1,2,"button",66,De),A(6,rJ,5,0,"button",67),A(7,sJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Cs(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Ks.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Ks.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new Cs(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ONLY_MENU&&e.type!==Gt.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Gt.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=Yi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=Yi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=Yi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=Yi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Gt.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Gt.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Gt.ALWAYS||(e.type===Gt.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl),D(ZV),D(Ze))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(MX,7)(el,7)(tl,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,IX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,LX,2,2),A(11,VX,6,1,"a",12),A(12,BX,6,1,"a",12),A(13,zX,2,0),A(14,UX,6,0,"a",13),A(15,HX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,WX,3,0,"button",18),$t(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,qX,3,0,"ng-container",26),fe(34,KX,3,2,"ng-container",27,De),xe(36,ZX,1,0,"mat-header-row",28)(37,XX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,JX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,lJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,TX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Ht,$e,Xe,Fe,yi,nc,xd,e3,X0,ze,st,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",cJ='pause'+django.gettext("Exit maintenance mode")+"",dJ='pause'+django.gettext("Enter maintenance mode")+"",HM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=cJ:this.customButtons[0].html=dJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var uJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function mJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(uJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function pJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>mJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(pJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Jo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Ks.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e,n){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var hJ=()=>[5,10,25,100,1e3];function fJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function gJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function _J(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function vJ(t,i){if(t&1&&(us(0,20),xe(1,gJ,2,1,"mat-header-cell",25)(2,_J,2,1,"mat-cell",26),ms()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function bJ(t,i){t&1&&O(0,"mat-header-row")}function yJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var rr=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new Cs}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=Yi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(el,7)(tl,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,fJ,3,0,"button",13),$t(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,vJ,3,1,"ng-container",20,De),xe(35,bJ,1,0,"mat-header-row",21)(36,yJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,hJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Ht,$e,Xe,Fe,yi,ze,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function xJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var wJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new or(django.gettext("Service pools"),e,wJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,CJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,xJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` +`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr],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}"]})}}return t})();var DJ=(t,i)=>i.tab;function SJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function EJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,SJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var MJ=django.gettext("Main"),ra=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||MJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,EJ,6,1,"div",1,DJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var TJ=t=>["/services","providers",t];function IJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function kJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function OJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function PJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,IJ,2,0,"ng-template",8),c(5,"div",9),A(6,kJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,AJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,RJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,OJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,PJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,TJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra],encapsulation:2})}}return t})();var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Ht,$e,Xe,Fe,Yo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var NJ=t=>["/services","servers",t];function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function LJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function VJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,FJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,LJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",BJ='pause'+django.gettext("Exit maintenance mode")+"",jJ='pause'+django.gettext("Enter maintenance mode")+"",zJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Gt.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:zJ,type:Gt.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.invoke(n.id+"/maintenance",void 0,"POST").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=BJ:this.customButtons[0].html=jJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,VJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,NJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var UJ=["panel"],HJ=["*"];function WJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var YM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new YM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(UJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ke([{provide:_m,useExisting:t}])],ngContentSelectors:HJ,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&&(vt(),Bs(0,WJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { width: 100%; max-height: 256px; visibility: hidden; @@ -4461,11 +4461,11 @@ div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, mat-autocomplete { display: none; } -`],encapsulation:2,changeDetection:0})}return t})();var WJ={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var $J=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_formField=p(na,{optional:!0,host:!0});_viewportRuler=p(ho);_scrollStrategy=p($J);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=qs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&Gl(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(et(e=>e instanceof gm?e:null))}optionSelections=pr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=$i(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Gr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=zo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new Bo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Fa(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Qe([WJ]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,xr,bm,pt]})}return t})();function GJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function qJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function YJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function QJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,QJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function JJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var KM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,GJ,4,1,"div")(2,qJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,YJ,4,3,"mat-form-field"),A(6,KJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,ZJ,4,2,"mat-form-field"),A(43,XJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,JJ,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function eee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function tee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function nee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function iee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),No(" ",e.id," (",e.name,") ")}}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,iee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function ree(t,i){if(t&1&&(A(0,nee,4,3,"mat-form-field"),A(1,oee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function aee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function see(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function lee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,see,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function cee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function dee(t,i){if(t&1&&A(0,cee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function uee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,dee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,eee,4,1,"div")(2,tee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,ree,2,2)(6,aee,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,lee,7,1,"mat-form-field")(35,uee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function pee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,mee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function fee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,hee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function gee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function _ee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,gee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var bee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],yee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Cee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/services_pools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/user_services")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new or(django.gettext("Groups"),e,bee,this.user.id+"infogrp"),this.servicesPools=new or(django.gettext("Services Pools"),n,yee,this.user.id+"infopool"),this.userServices=new or(django.gettext("Assigned services"),o,Cee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,pee,3,2,"mat-tab"),$t(7,"notEmpty"),A(8,fee,3,2,"mat-tab"),$t(9,"notEmpty"),A(10,_ee,3,2,"mat-tab"),$t(11,"notEmpty"),c(12,"mat-tab"),xe(13,vee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` -`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function xee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function wee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,xee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function Dee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function See(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Dee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Mee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Eee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Tee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Iee=[{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:sn.DATETIME}],kee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/services_pools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new or(django.gettext("Service pools"),n,Tee,this.data.group.id+"infopls"),this.users=new or(django.gettext("Users"),o,Iee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new or(django.gettext("Groups"),r,kee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,wee,3,2,"mat-tab"),$t(6,"notEmpty"),A(7,See,3,2,"mat-tab"),$t(8,"notEmpty"),A(9,Mee,3,2,"mat-tab"),$t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Aee=t=>["/authenticators",t];function Ree(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Oee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Nee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Bee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ree,2,0,"ng-template",8),c(5,"div",9),A(6,Oee,1,2,"uds-information",10),$t(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Pee,2,0,"ng-template",8),c(10,"div",9),A(11,Nee,1,6,"uds-table",11),A(12,Fee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Lee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Vee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:Gt.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:Gt.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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){KM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){KM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){ZM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ZM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Bee,21,16,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Aee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa,Ci],encapsulation:2})}}return t})();var XM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,jee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var zee=t=>["/connectivity","tunnels",t];function Uee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Wee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Uee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Hee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.tunnel=null,this.gui=[],this.servers={}}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","deleteAction","loaded","rest","multiSelect","allowExport","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Wee,11,8,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,zee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,oa,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function $ee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,$ee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,Gee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Kee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Zee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Kee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,qee,2,0,"uds-translate"),A(2,Yee,2,0,"uds-translate"),A(3,Qee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Zee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` -`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Xee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Jee(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ete(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,Jee,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Xee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,ete,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function tte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function nte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,tte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var C3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,nte,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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),"POST").then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.reason))},dependencies:[Ht,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ite=["switch"],ote=["*"];function rte(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ate=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},il=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ke);defaults=p(ate);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Hi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ite,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Qe([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:ote,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,rte,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Sr,Yb],styles:[`.mdc-switch { +`],encapsulation:2,changeDetection:0})}return t})();var $J={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var GJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ze);_dir=p(xn,{optional:!0});_formField=p(ia,{optional:!0,host:!0});_viewportRuler=p(ho);_scrollStrategy=p(GJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=qs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&Gl(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(Qe(e=>e instanceof gm?e:null))}optionSelections=pr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=Gi(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Gr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new qi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=Uo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new jo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=La(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ke([$J]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,xr,bm,pt]})}return t})();function qJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function YJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function QJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function KJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,KJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function JJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function eee(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var KM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,qJ,4,1,"div")(2,YJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,QJ,4,3,"mat-form-field"),A(6,ZJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,XJ,4,2,"mat-form-field"),A(43,JJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,eee,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function tee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function nee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function iee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function oee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function ree(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,oee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function aee(t,i){if(t&1&&(A(0,iee,4,3,"mat-form-field"),A(1,ree,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function see(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function lee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function cee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,lee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function dee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function uee(t,i){if(t&1&&A(0,dee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function mee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,uee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,tee,4,1,"div")(2,nee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,aee,2,2)(6,see,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,cee,7,1,"mat-form-field")(35,mee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function hee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,pee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function gee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,fee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function _ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function vee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,_ee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var yee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Cee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],xee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/services_pools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/user_services")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new or(django.gettext("Groups"),e,yee,this.user.id+"infogrp"),this.servicesPools=new or(django.gettext("Services Pools"),n,Cee,this.user.id+"infopool"),this.userServices=new or(django.gettext("Assigned services"),o,xee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,hee,3,2,"mat-tab"),$t(7,"notEmpty"),A(8,gee,3,2,"mat-tab"),$t(9,"notEmpty"),A(10,vee,3,2,"mat-tab"),$t(11,"notEmpty"),c(12,"mat-tab"),xe(13,bee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` +`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function Dee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,wee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function See(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Eee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,See,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Tee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Mee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Iee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],kee=[{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:sn.DATETIME}],Aee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/services_pools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new or(django.gettext("Service pools"),n,Iee,this.data.group.id+"infopls"),this.users=new or(django.gettext("Users"),o,kee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new or(django.gettext("Groups"),r,Aee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,Dee,3,2,"mat-tab"),$t(6,"notEmpty"),A(7,Eee,3,2,"mat-tab"),$t(8,"notEmpty"),A(9,Tee,3,2,"mat-tab"),$t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Ree=t=>["/authenticators",t];function Oee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Pee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Nee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function jee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Oee,2,0,"ng-template",8),c(5,"div",9),A(6,Pee,1,2,"uds-information",10),$t(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Nee,2,0,"ng-template",8),c(10,"div",9),A(11,Fee,1,6,"uds-table",11),A(12,Lee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Vee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Bee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:Gt.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:Gt.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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){KM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){KM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){ZM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ZM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,jee,21,16,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Ree,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],encapsulation:2})}}return t})();var XM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function zee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,zee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Uee=t=>["/connectivity","tunnels",t];function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function $ee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Hee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Wee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.tunnel=null,this.gui=[],this.servers={}}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","deleteAction","loaded","rest","multiSelect","allowExport","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,$ee,11,8,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Uee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,Gee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,qee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Zee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Xee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Zee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Yee,2,0,"uds-translate"),A(2,Qee,2,0,"uds-translate"),A(3,Kee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Xee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` +`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ete(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function tte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ete,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Jee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,tte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function nte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ite(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,nte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var C3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ite,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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),"POST").then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.reason))},dependencies:[Ht,$e,Xe,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ote=["switch"],rte=["*"];function ate(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ste=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},il=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ze);defaults=p(ste);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ote,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:rte,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ate,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Sr,Yb],styles:[`.mdc-switch { align-items: center; background: none; border: none; @@ -4893,15 +4893,15 @@ mat-autocomplete { right: 50%; transform: translate(50%, -50%); } -`],encapsulation:2,changeDetection:0})}return t})(),D3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[il,pt]})}return t})();var ste=()=>["transport","group","bool"];function lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function dte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function pte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,mte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,hte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,fte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function _te(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function vte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var i1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,lte,2,0,"uds-translate")(2,cte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,dte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,ute,2,2,"mat-option",4,De),d()(),A(30,pte,8,2,"mat-form-field"),A(31,gte,15,3),A(32,_te,5,2,"div",8),A(33,vte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,ste).includes(o.parameter.type)?33:-1))},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` -`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,rr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function bte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var S3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,bte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,yte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,Cte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Ze,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var xte=["chart"],E3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>qi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(xte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Dte=t=>["/pools","service-pools",t];function Ste(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Ete(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Mte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Tte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Mte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ite(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ate(t,i){if(t&1&&(A(0,Ite,3,0,"span"),A(1,kte,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Rte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ate,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ote(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Pte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Ote,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Vte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Lte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function zte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,jte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Hte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Ute,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Wte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function $te(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ste,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Ete,1,2,"uds-information",12),d()(),A(11,Tte,4,8,"mat-tab"),A(12,Rte,4,9,"mat-tab"),A(13,Pte,4,7,"mat-tab"),A(14,Fte,4,7,"mat-tab"),A(15,Vte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,Bte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,zte,4,8,"mat-tab"),A(21,Hte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,Wte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",Gte='computer'+django.gettext("VNC")+"",qte='schedule'+django.gettext("Launch now")+"",o1='perm_identity'+django.gettext("Change owner")+"",Yte='perm_identity'+django.gettext("Assign service")+"",Qte='cancel'+django.gettext("Cancel")+"",Kte='event'+django.gettext("Changelog")+"",M3='perm_identity'+django.gettext("Fallback: Allow")+"",Zte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:qte,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:M3,type:Gt.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Gt.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Qte,type:Gt.SINGLE_SELECT},{id:"changelog",html:Kte,type:Gt.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:Gte,type:Gt.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Yte,type:Gt.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] +`],encapsulation:2,changeDetection:0})}return t})(),D3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[il,pt]})}return t})();var lte=()=>["transport","group","bool"];function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function hte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,pte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,fte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,gte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function vte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function bte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var i1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,cte,2,0,"uds-translate")(2,dte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,ute,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,mte,2,2,"mat-option",4,De),d()(),A(30,hte,8,2,"mat-form-field"),A(31,_te,15,3),A(32,vte,5,2,"div",8),A(33,bte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,lte).includes(o.parameter.type)?33:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` +`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,rr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var S3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,yte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,Cte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,xte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var wte=["chart"],E3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>Yi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(wte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ste=t=>["/pools","service-pools",t];function Ete(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Mte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Tte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Ite(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Tte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Rte(t,i){if(t&1&&(A(0,kte,3,0,"span"),A(1,Ate,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Ote(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Rte,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Pte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Nte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Pte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Fte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Lte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Fte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Vte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Bte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Vte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Ute(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,zte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Hte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Wte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Hte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function $te(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Gte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ete,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Mte,1,2,"uds-information",12),d()(),A(11,Ite,4,8,"mat-tab"),A(12,Ote,4,9,"mat-tab"),A(13,Nte,4,7,"mat-tab"),A(14,Lte,4,7,"mat-tab"),A(15,Bte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,jte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Ute,4,8,"mat-tab"),A(21,Wte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,$te,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",qte='computer'+django.gettext("VNC")+"",Yte='schedule'+django.gettext("Launch now")+"",o1='perm_identity'+django.gettext("Change owner")+"",Qte='perm_identity'+django.gettext("Assign service")+"",Kte='cancel'+django.gettext("Cancel")+"",Zte='event'+django.gettext("Changelog")+"",M3='perm_identity'+django.gettext("Fallback: Allow")+"",Xte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Yte,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:M3,type:Gt.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Gt.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Kte,type:Gt.SINGLE_SELECT},{id:"changelog",html:Zte,type:Gt.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:qte,type:Gt.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Qte,type:Gt.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});lm(o,e.ip+".vnc")}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?ff.launch(this.api,n,this.assignedServices,this.servicePool?.name):e.param.id==="assign-service"?(yield S3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage():e.param.id==="vnc"&&this.vnc(n)})}onCustomCached(e){let n=e.table.selection.selected[0];e.param.id==="log"&&this.cache&&ff.launch(this.api,n,this.cache,this.servicePool?.name)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}onDeleteAssigned(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}checkLocked(){return B(this,null,function*(){return this.servicePool.state==="Q"?(this.api.gui.alert(django.gettext("Service pool is locked"),django.gettext("Service pool is locked, no changes allowed")),!0):!1})}onNewGroup(e){return B(this,null,function*(){(yield this.checkLocked())||(yield py.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return B(this,null,function*(){(yield this.checkLocked())||(yield C3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return B(this,null,function*(){(yield x3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return B(this,null,function*(){e.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))})}onCustomPublication(e){return B(this,null,function*(){e.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel",void 0,"POST").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&w3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute",void 0,"POST").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=M3:this.customButtonAccessCalendars[0].html=Zte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,$te,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,Dte,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Ge,rr,oa,E3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var T3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],Xte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],Jte=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],I3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Xte],users:[()=>this.users(),T3],"users-with-services":[()=>this.usersWithServices(),T3],"user-services":[()=>this.userServices(!0),I3],"assigned-services":[()=>this.userServices(!1),I3],"restrained-pools":[()=>this.pools(!0),Jte]},[s,l]=a[r.list];this.selectedRest=new or(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var r1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function ene(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function nne(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function ine(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var a1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ene,2,0,"uds-translate"),A(2,tne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,nne,1,0,"uds-cond-select-search"),fe(16,ine,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Ht,Er,$e,Ze,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var one=t=>["/pools","meta-pools",t];function rne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function ane(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function mne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,rne,2,0,"ng-template",8),c(5,"div",9),A(6,ane,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,sne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,lne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,cne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,dne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,une,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,mne,27,31,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,one,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,oa,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var s1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var pne=["mat-calendar-body",""];function hne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function fne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function gne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function _ne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Pl("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),mo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function vne(t,i){if(t&1&&(dn(0,"tr",1),A(1,gne,2,6,"td",4),fe(2,_ne,5,49,"td",5,L3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function bne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var yne=["*"];function Cne(t,i){}function xne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function wne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){}var Ene=["button"],Mne=[[["","matDatepickerToggleIcon",""]]],Tne=["[matDatepickerToggleIcon]"];function Ine(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kne=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=kne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Ane={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Ane),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return u1(e,this.startValue,this.endValue)}_isRangeEnd(e){return m1(e,this.startValue,this.endValue)}_isInRange(e){return p1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return u1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return p1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return u1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return m1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return p1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),d1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=d1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=d1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:pne,decls:11,vars:11,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","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&&(A(0,fne,3,6,"tr",0),fe(1,vne,4,1,"tr",1,hne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel",void 0,"POST").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&w3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute",void 0,"POST").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=M3:this.customButtonAccessCalendars[0].html=Xte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Gte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,Ste,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Ge,rr,ra,E3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var T3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],Jte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],ene=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],I3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Jte],users:[()=>this.users(),T3],"users-with-services":[()=>this.usersWithServices(),T3],"user-services":[()=>this.userServices(!0),I3],"assigned-services":[()=>this.userServices(!1),I3],"restrained-pools":[()=>this.pools(!0),ene]},[s,l]=a[r.list];this.selectedRest=new or(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var r1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function ine(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function one(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var a1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,tne,2,0,"uds-translate"),A(2,nne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,ine,1,0,"uds-cond-select-search"),fe(16,one,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Ht,Er,$e,Xe,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var rne=t=>["/pools","meta-pools",t];function ane(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function sne(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function mne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function pne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,ane,2,0,"ng-template",8),c(5,"div",9),A(6,sne,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,lne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,cne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,dne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,une,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,mne,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,pne,27,31,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,rne,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var s1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var hne=["mat-calendar-body",""];function fne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function gne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function _ne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function vne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Pl("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),mo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function bne(t,i){if(t&1&&(dn(0,"tr",1),A(1,_ne,2,6,"td",4),fe(2,vne,5,49,"td",5,L3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function yne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var Cne=["*"];function xne(t,i){}function wne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ene(t,i){}var Mne=["button"],Tne=[[["","matDatepickerToggleIcon",""]]],Ine=["[matDatepickerToggleIcon]"];function kne(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ane=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=Ane++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Rne={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Rne),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return u1(e,this.startValue,this.endValue)}_isRangeEnd(e){return m1(e,this.startValue,this.endValue)}_isInRange(e){return p1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return u1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return p1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return u1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return m1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return p1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),d1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=d1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=d1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:hne,decls:11,vars:11,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","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&&(A(0,gne,3,6,"tr",0),fe(1,bne,4,1,"tr",1,fne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset=i&&t===e}function p1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var ra=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Rne=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(lo))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new Rne(p(lo))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var h1=7,One=0,O3=(()=>{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof ra?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((h1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%h1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:One++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ra?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,bne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Rr=24,f1=4,P3=(()=>{class t{_changeDetectorRef=p(Ke);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-f1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,f1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Rr-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Rr*10:-Rr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Rr*10:Rr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ke);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(g1);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(qr);let e=p(Ke);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Rr))}nextClicked(){this.nextEnabled()&&(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:Rr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Rr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:yne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),wa(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),wa(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),g1=(()=>{class t{_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_changeDetectorRef=p(Ke);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof ra?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Gr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof ra||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Qe([V3]),Ct],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&&(xe(0,Cne,0,0,"ng-template",0),c(1,"div",1),A(2,xne,1,11,"mat-month-view",2)(3,wne,1,6,"mat-year-view",3)(4,Dne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Vo,Nh,O3,N3,P3],styles:[`.mat-calendar { +`],encapsulation:2,changeDetection:0})}return t})();function c1(t){return t?.nodeName==="TD"}function d1(t){let i;return c1(t)?i=t:c1(t.parentNode)?i=t.parentNode:c1(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function u1(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function p1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var aa=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),One=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(lo))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new One(p(lo))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var h1=7,Pne=0,O3=(()=>{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof aa?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((h1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%h1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Pne++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof aa?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,yne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Rr=24,f1=4,P3=(()=>{class t{_changeDetectorRef=p(Ze);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-f1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,f1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Rr-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Rr*10:-Rr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Rr*10:Rr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(g1);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(qr);let e=p(Ze);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Rr))}nextClicked(){this.nextEnabled()&&(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:Rr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Rr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Cne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),Da(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),Da(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),g1=(()=>{class t{_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_changeDetectorRef=p(Ze);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Gr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof aa||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ke([V3]),Ct],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&&(xe(0,xne,0,0,"ng-template",0),c(1,"div",1),A(2,wne,1,11,"mat-month-view",2)(3,Dne,1,6,"mat-year-view",3)(4,Sne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Bo,Nh,O3,N3,P3],styles:[`.mat-calendar { display: block; line-height: normal; font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); @@ -5291,7 +5291,7 @@ port=5900 .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),Nne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ke);_globalModel=p(vf);_dateAdapter=p(lo);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(qr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof ra;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(g1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Sne,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,g1,Vo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { +`],encapsulation:2,changeDetection:0})}return t})(),Fne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ze);_globalModel=p(vf);_dateAdapter=p(lo);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(qr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof aa;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(g1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Ene,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,g1,Bo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { from { opacity: 0; transform: scaleY(0.8); @@ -5394,7 +5394,7 @@ port=5900 height: 115vw; } } -`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Nne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=nF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ke);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Gr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new nr(H3,this._viewContainerRef),o=this._overlayRef=zo(this._injector,new Bo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Hl(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return gs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Fa(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Qe([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Fne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Lne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Lne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Vne={provide:Go,useExisting:Wn(()=>Lm),multi:!0},Bne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Fne{_formField=p(na,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=bs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Qe([Vne,Bne,{provide:J0,useExisting:t}]),We]})}return t})(),jne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ke);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Hi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,jne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Ene,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Tne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Mne),c(0,"button",1,0),A(2,Ine,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { +`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Fne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=nF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ze);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Gr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new nr(H3,this._viewContainerRef),o=this._overlayRef=Uo(this._injector,new jo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Hl(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return gs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=La(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ke([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Lne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Vne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Vne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Bne={provide:Go,useExisting:Wn(()=>Lm),multi:!0},jne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Lne{_formField=p(ia,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=bs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Ke([Bne,jne,{provide:J0,useExisting:t}]),We]})}return t})(),zne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ze);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Wi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,zne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Mne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Ine,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Tne),c(0,"button",1,0),A(2,kne,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { pointer-events: auto; color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); } @@ -5411,7 +5411,7 @@ port=5900 color: CanvasText; } } -`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[vs,fo,cd,wr,H3,bf,U3,pt,xr]})}return t})();function zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Hne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,$ne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},v1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+ql(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+ql(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,zne,2,0,"uds-translate"),$t(2,"notEmpty"),A(3,Une,2,0,"uds-translate"),$t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Hne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,Wne,2,2,"mat-option",9,De),d()(),A(63,Gne,7,1,"mat-form-field",10),A(64,qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Ht,Er,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Ar,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Yne=t=>["/pools","calendars",t];function Qne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Kne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Qne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){v1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){v1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Kne,7,7,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Yne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Zne='event'+django.gettext("Set time mark")+"",b1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Zne,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Xne=t=>["/pools","accounts",t];function Jne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function eie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Jne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,eie,7,6,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Xne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var y1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,tie,2,0,"uds-translate"),A(2,nie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),No(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Ht,$e,Ze,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var C1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){y1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){y1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var iie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:iie,type:Gt.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function oie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function rie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function cie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,cie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function mie(t,i){}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1&&A(0,rie,5,4,"div")(1,aie,5,3,"div")(2,sie,5,3,"div")(3,lie,4,3,"div")(4,die,7,3,"div")(5,uie,5,3,"div")(6,mie,0,0)(7,pie,5,3,"div")(8,hie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function gie(t,i){if(t&1&&(c(0,"div",10),A(1,fie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function _ie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,oie,1,1,"ng-template",8),c(2,"div",9),fe(3,gie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function vie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,_ie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,vie,9,1,"div",3),$t(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Ht,Er,$e,Ze,Fe,Yo,ze,st,Yt,en,Mt,Yn,Qn,ii,il,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var bie=[{path:"",canActivate:[E2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:HM},{path:"services/providers/:provider/detail",component:WM},{path:"services/providers/:provider",component:HM},{path:"services/providers/:provider/detail/:service",component:WM},{path:"services/servers",component:$M},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:$M},{path:"authenticators",component:GM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:GM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:qM},{path:"mfas/:mfa",component:qM},{path:"osmanagers",component:XM},{path:"osmanagers/:osmanager",component:XM},{path:"connectivity/transports",component:JM},{path:"connectivity/transports/:transport",component:JM},{path:"connectivity/networks",component:e1},{path:"connectivity/networks/:network",component:e1},{path:"connectivity/tunnels",component:t1},{path:"connectivity/tunnels/:tunnel",component:t1},{path:"connectivity/tunnels/:tunnel/detail",component:y3},{path:"pools/service-pools",component:n1},{path:"pools/service-pools/:pool",component:n1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:r1},{path:"pools/meta-pools/:metapool",component:r1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:s1},{path:"pools/pool-groups/:poolgroup",component:s1},{path:"pools/calendars",component:l1},{path:"pools/calendars/:calendar",component:l1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:b1},{path:"pools/accounts/:account",component:b1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:C1},{path:"tools/gallery/:image",component:C1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(bie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ha="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var ol=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function aB(t){return new ie(3e3,!1)}function yie(){return new ie(3100,!1)}function Cie(){return new ie(3101,!1)}function xie(t){return new ie(3001,!1)}function wie(t){return new ie(3003,!1)}function Die(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Sie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function rl(t){switch(t.length){case 0:return new ol;case 1:return t[0];default:return new Vm(t)}}function E1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ha:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Sie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&w1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&w1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&w1(e,"destroy",t)));break}}function w1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function M1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Eie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Eie?null:i}function Mie(t){return t.substring(1,6)=="ebkit"}var Md=null,sB=!1;function OB(t){Md||(Md=Tie()||{},sB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Mie(t)&&(i=t in Md.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function Tie(){return typeof document<"u"?document.body:null}function T1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function I1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Iie=1e3,k1="{{",kie="}}",A1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",R1="ng-animating",Ey=".ng-animating";function xs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:D1(parseFloat(i[1]),i[2])}function D1(t,i){return i==="s"?t*Iie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Rie(t,i,e)}var Aie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Rie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Aie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=D1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=D1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(yie()),a=!0),o<0&&(i.push(Cie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Wa(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=O1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(xie(r))})}var S1=new RegExp(`${k1}\\s*(.+?)\\s*${kie}`,"g");function O1(t){let i=[];if(typeof t=="string"){let e;for(;e=S1.exec(t);)i.push(e[1]);S1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(S1,(r,a)=>{let s=i[a];return s==null&&(e.push(wie(a)),s=""),s.toString()});return o==n?t:o}var Oie=/-+([a-z0-9])/g;function My(t){return t.replace(Oie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function sr(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Die(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var K1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return T1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return I1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new ol(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new K1},kd=class{};var Pie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Pie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Nie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Fie(n,e,i)):e.push(t),e}function Fie(t,i,e){if(t[0]==":"){let l=Lie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Lie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Vie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new B1(t).build(i,e,n)}var BB="",B1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new j1(e);return this._resetContextStyleTimingState(o),sr(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{O1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,Bm(i.animation),e),o=Nie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Uie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ha?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(k1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:zie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:sr(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=Bie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:sr(this,Bm(i.animation),e),timings:n,options:null}}};function Bie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Vie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function jie(t){return t?G({},t):null}var j1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function zie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Uie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return P1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=P1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return P1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=G({},t),t.params&&(t.params=jie(t.params))):t={},t}function P1(t,i,e){return{duration:t,delay:i,easing:e}}function Z1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Hie=1,Wie=":enter",$ie=new RegExp(Wie,"g"),Gie=":leave",qie=new RegExp(Gie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new z1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var z1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new U1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?xs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),sr(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[Z1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:xs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?xs(n.duration):null,s=n.delay!=null?xs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=xs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?xs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),sr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?xs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),sr(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},U1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=xs(n.duration)),n.delay!=null&&(o.delay=xs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new H1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace($ie,"."+this._enterClassName),i=i.replace(qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Hie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Yie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ha&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},H1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return Z1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Yie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ha)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var N1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Qie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||N1,w=s&&s.params||N1,S=this.buildStyles(n,w,g),P=l&&l.params||N1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(Je=>{Le=Math.max(Je.duration+Je.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(Je=>{let Nt=Je.element,ht=ar(q,Nt,new Set);Je.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=ar(ve,Nt,new Set);Je.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Qie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var W1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Kie(t,i,e){return new $1(t,i,e)}var $1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new W1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Zie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Zie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Xie=new Sf,G1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=E1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,A1,Sy,new Map,new Map,n,Xie,o),a.forEach(h=>{let g=ar(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ha))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=rl(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",Jie=".ng-animate-queued",F1="ng-animate-disabled",eoe=".ng-animate-disabled",toe="ng-star-inserted",noe=".ng-star-inserted",ioe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ooe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$a="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=aoe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",L1=new Ef(Df),q1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,aa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!soe(n))throw IB(n,e);let r=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(aa(i,Cf),aa(i,Cf+"-"+e),s.set(e,L1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(aa(i,Cf),aa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=L1),!(u.value===Df)&&l.value===u.value){if(!doe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Wa(i,F)})}return}let y=ar(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(aa(i,HB),a.onStart(()=>{zm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[$a])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&rl(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||L1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[$a];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){aa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Y1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new q1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[$a];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),aa(i,F1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,F1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[$a]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return rl(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[$a];if(e&&e.setForRemoval){if(i[$a]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(F1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,eoe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?rl(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,Jie,!0);for(let He=0;He{let He=A1+P++;S.set(ae,He),pe.forEach(nt=>aa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>aa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[$a];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}let Ji=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||Ji.push(Rt)}),jt.timelines=Ji,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>ar(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,Je=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(Je.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{ar(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ha).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Wa(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(Je.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=Je.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>Je.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=rl(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Wa(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=rl(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?loe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=ar(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[$a];if(j&&j.removedBeforeQueried)return new ol(S.duration,S.delay);let F=P!==l,q=coe((n.get(P)||ioe).map(Le=>Le.getRealPlayer())).filter(Le=>{let Je=Le;return Je.element?Je.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=E1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{ar(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>roe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>aa(S,R1));let w=rl(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,R1)),Wa(l,e.toStyles)}),g.forEach(S=>{ar(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ol(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new ol;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function roe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function aoe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function soe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[$a]=ooe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function aa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function loe(t,i,e){rl(e).onDone(()=>t.processLeaveNode(i))}function coe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Y1(i.body,e,n),this._timelineEngine=new G1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Kie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=M1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=M1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function uoe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=V1(i[0]),i.length>1&&(n=V1(i[i.length-1]))):i instanceof Map&&(e=V1(i)),e||n?new moe(t,e,n):null}var moe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Wa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wa(this._element,this._initialStyles),this._endStyles&&(Wa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Wa(this._element,this._initialStyles),this._state=3)}}return t})();function V1(t){let i=null;return t.forEach((e,n)=>{poe(n)&&(i=i||new Map,i.set(n,e))}),i}function poe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return T1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return I1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=uoe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Q1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=hoe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=foe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function hoe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function foe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new Q1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var _oe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function voe(){return new Oy}function boe(){return new zy(p(rh),p(Um),p(be))}var nj=[{provide:kd,useFactory:voe},{provide:Um,useClass:_oe},{provide:bi,useFactory:boe}],yoe=[{provide:Id,useClass:K1},{provide:Ol,useValue:"NoopAnimations"},...nj],tj=[{provide:Id,useFactory:()=>new By},{provide:Ol,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?yoe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[sh]})}return t})();var Coe=["button"],xoe=["*"];function woe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Doe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Soe=new L("MatButtonToggleGroup");var X1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Eoe=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Soe,{optional:!0}),n=p(new Hi("tabindex"),{optional:!0})||"",o=p(Doe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 X1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(Coe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:xoe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,woe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Sr,qb],styles:[`.mat-button-toggle-standalone, +`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[vs,fo,cd,wr,H3,bf,U3,pt,xr]})}return t})();function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Hne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,Gne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function Yne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},v1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+ql(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+ql(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Une,2,0,"uds-translate"),$t(2,"notEmpty"),A(3,Hne,2,0,"uds-translate"),$t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Wne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,$ne,2,2,"mat-option",9,De),d()(),A(63,qne,7,1,"mat-form-field",10),A(64,Yne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Ar,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Qne=t=>["/pools","calendars",t];function Kne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Zne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Kne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){v1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){v1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Zne,7,7,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Qne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Xne='event'+django.gettext("Set time mark")+"",b1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Xne,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Jne=t=>["/pools","accounts",t];function eie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function tie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,eie,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,tie,7,6,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Jne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function iie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var y1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,nie,2,0,"uds-translate"),A(2,iie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),Fo(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var C1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){y1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){y1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var oie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:oie,type:Gt.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function rie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function cie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function die(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,die,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function mie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function pie(t,i){}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function gie(t,i){if(t&1&&A(0,aie,5,4,"div")(1,sie,5,3,"div")(2,lie,5,3,"div")(3,cie,4,3,"div")(4,uie,7,3,"div")(5,mie,5,3,"div")(6,pie,0,0)(7,hie,5,3,"div")(8,fie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function _ie(t,i){if(t&1&&(c(0,"div",10),A(1,gie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function vie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,rie,1,1,"ng-template",8),c(2,"div",9),fe(3,_ie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function bie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,vie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,bie,9,1,"div",3),$t(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Yo,ze,st,Yt,en,Mt,Yn,Qn,ii,il,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var yie=[{path:"",canActivate:[E2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:HM},{path:"services/providers/:provider/detail",component:WM},{path:"services/providers/:provider",component:HM},{path:"services/providers/:provider/detail/:service",component:WM},{path:"services/servers",component:$M},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:$M},{path:"authenticators",component:GM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:GM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:qM},{path:"mfas/:mfa",component:qM},{path:"osmanagers",component:XM},{path:"osmanagers/:osmanager",component:XM},{path:"connectivity/transports",component:JM},{path:"connectivity/transports/:transport",component:JM},{path:"connectivity/networks",component:e1},{path:"connectivity/networks/:network",component:e1},{path:"connectivity/tunnels",component:t1},{path:"connectivity/tunnels/:tunnel",component:t1},{path:"connectivity/tunnels/:tunnel/detail",component:y3},{path:"pools/service-pools",component:n1},{path:"pools/service-pools/:pool",component:n1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:r1},{path:"pools/meta-pools/:metapool",component:r1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:s1},{path:"pools/pool-groups/:poolgroup",component:s1},{path:"pools/calendars",component:l1},{path:"pools/calendars/:calendar",component:l1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:b1},{path:"pools/accounts/:account",component:b1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:C1},{path:"tools/gallery/:image",component:C1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(yie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ha="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var ol=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function aB(t){return new ie(3e3,!1)}function Cie(){return new ie(3100,!1)}function xie(){return new ie(3101,!1)}function wie(t){return new ie(3001,!1)}function Die(t){return new ie(3003,!1)}function Sie(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Eie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function rl(t){switch(t.length){case 0:return new ol;case 1:return t[0];default:return new Vm(t)}}function E1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ha:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Eie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&w1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&w1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&w1(e,"destroy",t)));break}}function w1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function M1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Mie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Mie?null:i}function Tie(t){return t.substring(1,6)=="ebkit"}var Md=null,sB=!1;function OB(t){Md||(Md=Iie()||{},sB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Tie(t)&&(i=t in Md.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function Iie(){return typeof document<"u"?document.body:null}function T1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function I1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var kie=1e3,k1="{{",Aie="}}",A1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",R1="ng-animating",Ey=".ng-animating";function xs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:D1(parseFloat(i[1]),i[2])}function D1(t,i){return i==="s"?t*kie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Oie(t,i,e)}var Rie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Oie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Rie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=D1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=D1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(Cie()),a=!0),o<0&&(i.push(xie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Wa(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=O1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(wie(r))})}var S1=new RegExp(`${k1}\\s*(.+?)\\s*${Aie}`,"g");function O1(t){let i=[];if(typeof t=="string"){let e;for(;e=S1.exec(t);)i.push(e[1]);S1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(S1,(r,a)=>{let s=i[a];return s==null&&(e.push(Die(a)),s=""),s.toString()});return o==n?t:o}var Pie=/-+([a-z0-9])/g;function My(t){return t.replace(Pie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function sr(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Sie(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var K1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return T1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return I1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new ol(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new K1},kd=class{};var Nie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Nie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Fie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Lie(n,e,i)):e.push(t),e}function Lie(t,i,e){if(t[0]==":"){let l=Vie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Vie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Bie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new B1(t).build(i,e,n)}var BB="",B1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new j1(e);return this._resetContextStyleTimingState(o),sr(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{O1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,Bm(i.animation),e),o=Fie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Hie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ha?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(k1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:Uie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:sr(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=jie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:sr(this,Bm(i.animation),e),timings:n,options:null}}};function jie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Bie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function zie(t){return t?G({},t):null}var j1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Uie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Hie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return P1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=P1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return P1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=G({},t),t.params&&(t.params=zie(t.params))):t={},t}function P1(t,i,e){return{duration:t,delay:i,easing:e}}function Z1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Wie=1,$ie=":enter",Gie=new RegExp($ie,"g"),qie=":leave",Yie=new RegExp(qie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new z1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var z1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new U1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?xs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),sr(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[Z1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:xs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?xs(n.duration):null,s=n.delay!=null?xs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=xs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?xs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),sr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?xs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),sr(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},U1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=xs(n.duration)),n.delay!=null&&(o.delay=xs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new H1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(Gie,"."+this._enterClassName),i=i.replace(Yie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Wie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Qie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ha&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},H1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return Z1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Qie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ha)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var N1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Kie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||N1,w=s&&s.params||N1,S=this.buildStyles(n,w,g),P=l&&l.params||N1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(et=>{Le=Math.max(et.duration+et.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(et=>{let Nt=et.element,ht=ar(q,Nt,new Set);et.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=ar(ve,Nt,new Set);et.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Kie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var W1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Zie(t,i,e){return new $1(t,i,e)}var $1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new W1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Xie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Xie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Jie=new Sf,G1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=E1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,A1,Sy,new Map,new Map,n,Jie,o),a.forEach(h=>{let g=ar(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ha))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=rl(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",eoe=".ng-animate-queued",F1="ng-animate-disabled",toe=".ng-animate-disabled",noe="ng-star-inserted",ioe=".ng-star-inserted",ooe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},roe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$a="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=soe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",L1=new Ef(Df),q1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,sa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!loe(n))throw IB(n,e);let r=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(sa(i,Cf),sa(i,Cf+"-"+e),s.set(e,L1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(sa(i,Cf),sa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=L1),!(u.value===Df)&&l.value===u.value){if(!uoe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Wa(i,F)})}return}let y=ar(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(sa(i,HB),a.onStart(()=>{zm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[$a])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&rl(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||L1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[$a];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){sa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Y1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new q1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[$a];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),sa(i,F1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,F1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[$a]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return rl(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[$a];if(e&&e.setForRemoval){if(i[$a]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(F1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,toe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?rl(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,eoe,!0);for(let He=0;He{let He=A1+P++;S.set(ae,He),pe.forEach(nt=>sa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>sa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[$a];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}let eo=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||eo.push(Rt)}),jt.timelines=eo,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>ar(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,et=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(et.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{ar(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ha).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Wa(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(et.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=et.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>et.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=rl(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Wa(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=rl(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?coe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=ar(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[$a];if(j&&j.removedBeforeQueried)return new ol(S.duration,S.delay);let F=P!==l,q=doe((n.get(P)||ooe).map(Le=>Le.getRealPlayer())).filter(Le=>{let et=Le;return et.element?et.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=E1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{ar(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>aoe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>sa(S,R1));let w=rl(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,R1)),Wa(l,e.toStyles)}),g.forEach(S=>{ar(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ol(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new ol;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function aoe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function soe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function loe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[$a]=roe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function sa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function coe(t,i,e){rl(e).onDone(()=>t.processLeaveNode(i))}function doe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Y1(i.body,e,n),this._timelineEngine=new G1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Zie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=M1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=M1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function moe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=V1(i[0]),i.length>1&&(n=V1(i[i.length-1]))):i instanceof Map&&(e=V1(i)),e||n?new poe(t,e,n):null}var poe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Wa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wa(this._element,this._initialStyles),this._endStyles&&(Wa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Wa(this._element,this._initialStyles),this._state=3)}}return t})();function V1(t){let i=null;return t.forEach((e,n)=>{hoe(n)&&(i=i||new Map,i.set(n,e))}),i}function hoe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return T1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return I1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=moe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Q1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=foe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=goe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function foe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function goe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new Q1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var voe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function boe(){return new Oy}function yoe(){return new zy(p(rh),p(Um),p(be))}var nj=[{provide:kd,useFactory:boe},{provide:Um,useClass:voe},{provide:bi,useFactory:yoe}],Coe=[{provide:Id,useClass:K1},{provide:Ol,useValue:"NoopAnimations"},...nj],tj=[{provide:Id,useFactory:()=>new By},{provide:Ol,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Coe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[sh]})}return t})();var xoe=["button"],woe=["*"];function Doe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Soe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Eoe=new L("MatButtonToggleGroup");var X1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Moe=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Eoe,{optional:!0}),n=p(new Wi("tabindex"),{optional:!0})||"",o=p(Soe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 X1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(xoe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:woe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,Doe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Sr,qb],styles:[`.mat-button-toggle-standalone, .mat-button-toggle-group { position: relative; display: inline-flex; @@ -5686,7 +5686,7 @@ port=5900 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); } -`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,Eoe,pt]})}return t})();var Toe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Ioe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function koe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Aoe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Roe=`.mdc-evolution-chip, +`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,Moe,pt]})}return t})();var Ioe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],koe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Aoe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Roe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Ooe=`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6234,7 +6234,7 @@ port=5900 img.mdc-evolution-chip__icon { min-height: 0; } -`,Ooe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Poe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Noe(t,i){t&1&&O(0,"span",0)}function Foe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Loe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Voe(t,i){t&1&&Ie(0,2)}function Boe(t,i){t&1&&O(0,"span",7)}function joe(t,i){if(t&1&&A(0,Voe,1,0)(1,Boe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function zoe(t,i){t&1&&Ie(0,3)}function Uoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Hoe=`.mat-mdc-chip-set { +`,Poe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Noe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Foe(t,i){t&1&&O(0,"span",0)}function Loe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Voe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Boe(t,i){t&1&&Ie(0,2)}function joe(t,i){t&1&&O(0,"span",7)}function zoe(t,i){if(t&1&&A(0,Boe,1,0)(1,joe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Uoe(t,i){t&1&&Ie(0,3)}function Hoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Woe=`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6302,7 +6302,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),eT=new L("MatChipRemove"),iT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(iT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),oT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends oT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Qe([{provide:eT,useExisting:t}]),We]})}return t})(),tT=(()=>{class t{_changeDetectorRef=p(Ke);_elementRef=p(se);_tagName=p(SO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,eT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,eT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(oT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Qe([{provide:iT,useExisting:t}])],ngContentSelectors:Ioe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Toe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,koe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Aoe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, +`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),eT=new L("MatChipRemove"),iT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(iT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),oT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends oT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Ke([{provide:eT,useExisting:t}]),We]})}return t})(),tT=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_tagName=p(SO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,eT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,eT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(oT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ke([{provide:iT,useExisting:t}])],ngContentSelectors:koe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Ioe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,Aoe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Roe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6850,7 +6850,7 @@ input.mat-mdc-chip-input { img.mdc-evolution-chip__icon { min-height: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var J1=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),rT=(()=>{class t extends tT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Xe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,J1,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(J1,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Qe([{provide:tT,useExisting:t},{provide:iT,useExisting:t}]),We],ngContentSelectors:Poe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Ooe),A(0,Noe,1,0,"span",0),A(1,Foe,2,0,"span",1),c(2,"span",2),A(3,Loe,2,0,"span",3),c(4,"span",4),A(5,joe,2,1)(6,zoe,1,0),O(7,"span",5),d()(),A(8,Uoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[oT,J1],styles:[Roe],encapsulation:2,changeDetection:0})}return t})(),Woe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ke);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Ys(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Xe(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Xe(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Xe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Xe(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,tT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { +`],encapsulation:2,changeDetection:0})}return t})();var J1=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),rT=(()=>{class t extends tT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Je(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,J1,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(J1,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ke([{provide:tT,useExisting:t},{provide:iT,useExisting:t}]),We],ngContentSelectors:Noe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Poe),A(0,Foe,1,0,"span",0),A(1,Loe,2,0,"span",1),c(2,"span",2),A(3,Voe,2,0,"span",3),c(4,"span",4),A(5,zoe,2,1)(6,Uoe,1,0),O(7,"span",5),d()(),A(8,Hoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[oT,J1],styles:[Ooe],encapsulation:2,changeDetection:0})}return t})(),$oe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Ys(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Je(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Je(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Je(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Je(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,tT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6918,7 +6918,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var nT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends Woe{ngControl=p(ir,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Xe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Xe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new nT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Qe([{provide:Js,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[Hoe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(na,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[_s,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,wr,pt]})}return t})();var Goe=["*",[["mat-toolbar-row"]]],qoe=["*","mat-toolbar-row"],Yoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Goe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { +`],encapsulation:2,changeDetection:0})}return t})();var nT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends $oe{ngControl=p(ir,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Je(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Je(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new nT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ke([{provide:Js,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[Woe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(ia,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[_s,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,wr,pt]})}return t})();var qoe=["*",[["mat-toolbar-row"]]],Yoe=["*","mat-toolbar-row"],Qoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Yoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(qoe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); } @@ -6983,5 +6983,5 @@ input.mat-mdc-chip-input { min-height: var(--mat-toolbar-mobile-height, 56px); } } -`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,l2,jb,vj,vs,t3,B0,gj,fF,yd,r3,V0,W3,w2,a3,DV,PV,k2,FV,f2,hj,oj,D3,g3,C2,LV,XV,$V]})}}return t})();function Koe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Zoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function nre(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ire(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function ore(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,nre,3,1,"a",22),A(4,ire,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function rre(t,i){t&1&&A(0,ore,7,3,"div",20),t&2&&R(i.title?0:-1)}function are(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Koe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Zoe,2,0,"uds-translate")(18,Xoe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,Joe,2,0,"uds-translate")(30,ere,2,0,"uds-translate"),d(),A(31,tre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,rre,1,1),$t(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,are,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Nl(o.api.config.urls.change_language),it),m(),b("name",Nl(o.api.csrfField))("value",Nl(o.api.csrfToken)),m(),b("value",Nl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,_j,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function cre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function dre(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof er)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(tr))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,cre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,dre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function pre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,pre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var fre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(fre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Yi,md,Ze,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function _re(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,_re,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Ht,$e,Yi,md,Ze,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Ht,Er,$e,Yi,Ze,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Ht,$e,Yi,Ze,yi,ze,st,Ar,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Yi,md,Ze,ze,st,Yt],encapsulation:2})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,vre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,yre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` -`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Ht,$e,Ze,Fe,yi,xt,Dt,wt,ze,Ar,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){wF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Yi,Ze,il],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function Cre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function xre(t,i){if(t&1&&(c(0,"div"),A(1,Cre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function wre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,xre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,wre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Yi,Ze,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=ql("%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=ql("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ql("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Ht,$e,Ze,ze,st,Ar,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Dre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Dre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,rT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Mj},hS(fS())],imports:[sh,oB,ij,bj]})}}return t})();TD(Ub,[Yo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);$b.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[TO()]}).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,l2,jb,vj,vs,t3,B0,gj,fF,yd,r3,V0,W3,w2,a3,DV,PV,k2,FV,f2,hj,oj,D3,g3,C2,LV,XV,$V]})}}return t})();function Zoe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function tre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function nre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function ire(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ore(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function rre(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,ire,3,1,"a",22),A(4,ore,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function are(t,i){t&1&&A(0,rre,7,3,"div",20),t&2&&R(i.title?0:-1)}function sre(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Zoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Xoe,2,0,"uds-translate")(18,Joe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,ere,2,0,"uds-translate")(30,tre,2,0,"uds-translate"),d(),A(31,nre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,are,1,1),$t(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,sre,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Nl(o.api.config.urls.change_language),it),m(),b("name",Nl(o.api.csrfField))("value",Nl(o.api.csrfToken)),m(),b("value",Nl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,_j,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function dre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function ure(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof er)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(tr))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,dre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,ure,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function hre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,hre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var gre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(gre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,vre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Ht,$e,Qi,md,Xe,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Ht,Er,$e,Qi,Xe,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Ht,$e,Qi,Xe,yi,ze,st,Ar,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,yre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function Cre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,Cre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` +`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Ht,$e,Xe,Fe,yi,xt,Dt,wt,ze,Ar,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){wF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Qi,Xe,il],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function xre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function wre(t,i){if(t&1&&(c(0,"div"),A(1,xre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function Dre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,wre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,Dre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=ql("%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=ql("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ql("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Ht,$e,Xe,ze,st,Ar,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Sre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Sre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,rT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Mj},hS(fS())],imports:[sh,oB,ij,bj]})}}return t})();TD(Ub,[Yo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);$b.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[TO()]}).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/polyfills.js b/src/uds/static/admin/polyfills.js index ddf899362..37d1d0857 100644 --- a/src/uds/static/admin/polyfills.js +++ b/src/uds/static/admin/polyfills.js @@ -1,2 +1,2 @@ -var Tt=Object.defineProperty,Et=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ie=(t,e,a)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,Je=(t,e)=>{for(var a in e||(e={}))gt.call(e,a)&&Ie(t,a,e[a]);if($e)for(var a of $e(e))yt.call(e,a)&&Ie(t,a,e[a]);return t},mt=(t,e)=>Et(t,pt(e)),C=(t,e,a)=>(Ie(t,typeof e!="symbol"?e+"":e,a),a),le=globalThis;function te(t){return(le.__Zone_symbol_prefix||"__zone_symbol__")+t}function kt(){let t=le.performance;function e(F){t&&t.mark&&t.mark(F)}function a(F,s){t&&t.measure&&t.measure(F,s)}e("Zone");let n=class Me{constructor(s,o){C(this,"_parent"),C(this,"_name"),C(this,"_properties"),C(this,"_zoneDelegate"),this._parent=s,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(le.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=Me.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return K}static __load_patch(s,o,r=!1){if(S.hasOwnProperty(s)){let k=le[te("forceDuplicateZoneCheck")]===!0;if(!r&&k)throw Error("Already loaded patch: "+s)}else if(!le["__Zone_disable_"+s]){let k="Zone:"+s;e(k),S[s]=o(le,Me,L),a(k,k)}}get parent(){return this._parent}get name(){return this._name}get(s){let o=this.getZoneWith(s);if(o)return o._properties[s]}getZoneWith(s){let o=this;for(;o;){if(o._properties.hasOwnProperty(s))return o;o=o._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,o){if(typeof s!="function")throw new Error("Expecting function got: "+s);let r=this._zoneDelegate.intercept(this,s,o),k=this;return function(){return k.runGuarded(r,this,arguments,o)}}run(s,o,r,k){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,o,r,k)}finally{b=b.parent}}runGuarded(s,o=null,r,k){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,o,r,k)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,o,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||Y).name+"; Execution: "+this.name+")");let k=s,{type:V,data:{isPeriodic:I=!1,isRefreshable:re=!1}={}}=s;if(s.state===y&&(V===D||V===X))return;let ue=s.state!=A;ue&&k._transitionTo(A,G);let he=K;K=k,b={parent:b,zone:this};try{V==X&&s.data&&!I&&!re&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,k,o,r)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{let oe=s.state;if(oe!==y&&oe!==x)if(V==D||I||re&&oe===_)ue&&k._transitionTo(G,A,_);else{let h=k._zoneDelegates;this._updateTaskCount(k,-1),ue&&k._transitionTo(y,A,y),re&&(k._zoneDelegates=h)}b=b.parent,K=he}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(_,y);let o=[];s._zoneDelegates=o,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(x,_,y),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===o&&this._updateTaskCount(s,1),s.state==_&&s._transitionTo(G,_),s}scheduleMicroTask(s,o,r,k){return this.scheduleTask(new d(p,s,o,r,k,void 0))}scheduleMacroTask(s,o,r,k,V){return this.scheduleTask(new d(X,s,o,r,k,V))}scheduleEventTask(s,o,r,k,V){return this.scheduleTask(new d(D,s,o,r,k,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||Y).name+"; Execution: "+this.name+")");if(!(s.state!==G&&s.state!==A)){s._transitionTo(W,G,A);try{this._zoneDelegate.cancelTask(this,s)}catch(o){throw s._transitionTo(x,W),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(s,-1),s._transitionTo(y,W),s.runCount=-1,s}}_updateTaskCount(s,o){let r=s._zoneDelegates;o==-1&&(s._zoneDelegates=null);for(let k=0;kF.hasTask(o,r),onScheduleTask:(F,s,o,r)=>F.scheduleTask(o,r),onInvokeTask:(F,s,o,r,k,V)=>F.invokeTask(o,r,k,V),onCancelTask:(F,s,o,r)=>F.cancelTask(o,r)};class v{constructor(s,o,r){C(this,"_zone"),C(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),C(this,"_parentDelegate"),C(this,"_forkDlgt"),C(this,"_forkZS"),C(this,"_forkCurrZone"),C(this,"_interceptDlgt"),C(this,"_interceptZS"),C(this,"_interceptCurrZone"),C(this,"_invokeDlgt"),C(this,"_invokeZS"),C(this,"_invokeCurrZone"),C(this,"_handleErrorDlgt"),C(this,"_handleErrorZS"),C(this,"_handleErrorCurrZone"),C(this,"_scheduleTaskDlgt"),C(this,"_scheduleTaskZS"),C(this,"_scheduleTaskCurrZone"),C(this,"_invokeTaskDlgt"),C(this,"_invokeTaskZS"),C(this,"_invokeTaskCurrZone"),C(this,"_cancelTaskDlgt"),C(this,"_cancelTaskZS"),C(this,"_cancelTaskCurrZone"),C(this,"_hasTaskDlgt"),C(this,"_hasTaskDlgtOwner"),C(this,"_hasTaskZS"),C(this,"_hasTaskCurrZone"),this._zone=s,this._parentDelegate=o,this._forkZS=r&&(r&&r.onFork?r:o._forkZS),this._forkDlgt=r&&(r.onFork?o:o._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:o._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:o._interceptZS),this._interceptDlgt=r&&(r.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:o._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:o._invokeZS),this._invokeDlgt=r&&(r.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:o._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:o._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:o._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:o._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:o._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:o._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:o._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:o._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let k=r&&r.onHasTask,V=o&&o._hasTaskZS;(k||V)&&(this._hasTaskZS=k?r:u,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(s,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,o):new c(s,o)}intercept(s,o,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,o,r):o}invoke(s,o,r,k,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,o,r,k,V):o.apply(r,k)}handleError(s,o){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,o):!0}scheduleTask(s,o){let r=o;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,o),r||(r=o);else if(o.scheduleFn)o.scheduleFn(o);else if(o.type==p)q(o);else throw new Error("Task is missing scheduleFn.");return r}invokeTask(s,o,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,o,r,k):o.callback.apply(r,k)}cancelTask(s,o){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");r=o.cancelFn(o)}return r}hasTask(s,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,o)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,o){let r=this._taskCounts,k=r[s],V=r[s]=k+o;if(V<0)throw new Error("More tasks executed then were scheduled.");if(k==0||V==0){let I={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s};this.hasTask(this._zone,I)}}}class d{constructor(s,o,r,k,V,I){if(C(this,"type"),C(this,"source"),C(this,"invoke"),C(this,"callback"),C(this,"data"),C(this,"scheduleFn"),C(this,"cancelFn"),C(this,"_zone",null),C(this,"runCount",0),C(this,"_zoneDelegates",null),C(this,"_state","notScheduled"),this.type=s,this.source=o,this.data=k,this.scheduleFn=V,this.cancelFn=I,!r)throw new Error("callback is not defined");this.callback=r;let re=this;s===D&&k&&k.useG?this.invoke=d.invokeTask:this.invoke=function(){return d.invokeTask.call(le,re,this,arguments)}}static invokeTask(s,o,r){s||(s=this),ee++;try{return s.runCount++,s.zone.runTask(s,o,r)}finally{ee==1&&Q(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,_)}_transitionTo(s,o,r){if(this._state===o||this._state===r)this._state=s,s==y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${o}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let m=te("setTimeout"),R=te("Promise"),E=te("then"),w=[],M=!1,j;function J(F){if(j||le[R]&&(j=le[R].resolve(0)),j){let s=j[E];s||(s=j.then),s.call(j,F)}else le[m](F,0)}function q(F){ee===0&&w.length===0&&J(Q),F&&w.push(F)}function Q(){if(!M){for(M=!0;w.length;){let F=w;w=[];for(let s=0;sb,onUnhandledError:B,microtaskDrainDone:B,scheduleMicroTask:q,showUncaughtError:()=>!c[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:B,patchMethod:()=>B,bindArguments:()=>[],patchThen:()=>B,patchMacroTask:()=>B,patchEventPrototype:()=>B,getGlobalObjects:()=>{},ObjectDefineProperty:()=>B,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>B,wrapWithCurrentZone:()=>B,filterProperties:()=>[],attachOriginToPatched:()=>B,_redefineProperty:()=>B,patchCallbacks:()=>B,nativeScheduleMicroTask:J},b={parent:null,zone:new c(null,null)},K=null,ee=0;function B(){}return a("Zone","Zone"),c}function vt(){var t;let e=globalThis,a=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(a||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return(t=e.Zone)!=null||(e.Zone=kt()),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,He=Object.getPrototypeOf,bt=Object.create,Pt=Array.prototype.slice,Fe="addEventListener",Ve="removeEventListener",Ze=te(Fe),Le=te(Ve),fe="true",_e="false",be=te("");function Ge(t,e){return Zone.current.wrap(t,e)}function xe(t,e,a,n,c){return Zone.current.scheduleMacroTask(t,e,a,n,c)}var H=te,Se=typeof window<"u",Ce=Se?window:void 0,$=Se&&Ce||globalThis,wt="removeAttribute";function Be(t,e){for(let a=t.length-1;a>=0;a--)typeof t[a]=="function"&&(t[a]=Ge(t[a],e+"_"+a));return t}function Rt(t,e){let a=t.constructor.name;for(let n=0;n{let m=function(){return d.apply(this,Be(arguments,a+"."+c))};return Te(m,d),m})(u)}}}function rt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var ot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",ze=!De&&!ot&&!!(Se&&Ce.HTMLElement),st=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!ot&&!!(Se&&Ce.HTMLElement),Re={},St=H("enable_beforeunload"),Ke=function(t){if(t=t||$.event,!t)return;let e=Re[t.type];e||(e=Re[t.type]=H("ON_PROPERTY"+t.type));let a=this||t.target||$,n=a[e],c;if(ze&&a===Ce&&t.type==="error"){let u=t;c=n&&n.call(this,u.message,u.filename,u.lineno,u.colno,u.error),c===!0&&t.preventDefault()}else c=n&&n.apply(this,arguments),t.type==="beforeunload"&&$[St]&&typeof c=="string"?t.returnValue=c:c!=null&&!c&&t.preventDefault();return c};function Qe(t,e,a){let n=ve(t,e);if(!n&&a&&ve(a,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let c=H("on"+e+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete n.writable,delete n.value;let u=n.get,v=n.set,d=e.slice(2),m=Re[d];m||(m=Re[d]=H("ON_PROPERTY"+d)),n.set=function(R){let E=this;if(!E&&t===$&&(E=$),!E)return;typeof E[m]=="function"&&E.removeEventListener(d,Ke),v?.call(E,null),E[m]=R,typeof R=="function"&&E.addEventListener(d,Ke,!1)},n.get=function(){let R=this;if(!R&&t===$&&(R=$),!R)return null;let E=R[m];if(E)return E;if(u){let w=u.call(this);if(w)return n.set.call(this,w),typeof R[wt]=="function"&&R.removeAttribute(e),w}return null},Ae(t,e,n),t[c]=!0}function it(t,e,a){if(e)for(let n=0;n{let c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,{get:function(){return t[n]},set:function(u){c&&(!c.writable||typeof c.set!="function")||(t[n]=u)},enumerable:c?c.enumerable:!0,configurable:c?c.configurable:!0})})}var Dt=!1;function de(t,e,a){let n=t;for(;n&&!n.hasOwnProperty(e);)n=He(n);!n&&t[e]&&(n=t);let c=H(e),u=null;if(n&&(!(u=n[c])||!n.hasOwnProperty(c))){u=n[c]=n[e];let v=n&&ve(n,e);if(rt(v)){let d=a(u,c,e);n[e]=function(){return d(this,arguments)},Te(n[e],u),Dt&&Ct(u,n[e])}}return u}function Ot(t,e,a){let n=null;function c(u){let v=u.data;return v.args[v.cbIdx]=function(){u.invoke.apply(this,arguments)},n.apply(v.target,v.args),u}n=de(t,e,u=>function(v,d){let m=a(v,d);return m.cbIdx>=0&&typeof d[m.cbIdx]=="function"?xe(m.name,d[m.cbIdx],m,c):u.apply(v,d)})}function Te(t,e){t[H("OriginalDelegate")]=e}function et(t){return typeof t=="function"}function tt(t){return typeof t=="number"}var Nt={useG:!0},ne={},ct={},at=new RegExp("^"+be+"(\\w+)(true|false)$"),lt=H("propagationStopped");function ut(t,e){let a=(e?e(t):t)+_e,n=(e?e(t):t)+fe,c=be+a,u=be+n;ne[t]={},ne[t][_e]=c,ne[t][fe]=u}function Zt(t,e,a,n){let c=n&&n.add||Fe,u=n&&n.rm||Ve,v=n&&n.listeners||"eventListeners",d=n&&n.rmAll||"removeAllListeners",m=H(c),R="."+c+":",E="prependListener",w="."+E+":",M=function(y,_,G){if(y.isRemoved)return;let A=y.callback;typeof A=="object"&&A.handleEvent&&(y.callback=p=>A.handleEvent(p),y.originalDelegate=A);let W;try{y.invoke(y,_,[G])}catch(p){W=p}let x=y.options;if(x&&typeof x=="object"&&x.once){let p=y.originalDelegate?y.originalDelegate:y.callback;_[u].call(_,G.type,p,x)}return W};function j(y,_,G){if(_=_||t.event,!_)return;let A=y||_.target||t,W=A[ne[_.type][G?fe:_e]];if(W){let x=[];if(W.length===1){let p=M(W[0],A,_);p&&x.push(p)}else{let p=W.slice();for(let X=0;X{throw X})}}}let J=function(y){return j(this,y,!1)},q=function(y){return j(this,y,!0)};function Q(y,_){if(!y)return!1;let G=!0;_&&_.useG!==void 0&&(G=_.useG);let A=_&&_.vh,W=!0;_&&_.chkDup!==void 0&&(W=_.chkDup);let x=!1;_&&_.rt!==void 0&&(x=_.rt);let p=y;for(;p&&!p.hasOwnProperty(c);)p=He(p);if(!p&&y[c]&&(p=y),!p||p[m])return!1;let X=_&&_.eventNameToString,D={},S=p[m]=p[c],L=p[H(u)]=p[u],b=p[H(v)]=p[v],K=p[H(d)]=p[d],ee;_&&_.prepend&&(ee=p[H(_.prepend)]=p[_.prepend]);function B(i,f){return f?typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?mt(Je({},i),{passive:!0}):i:{passive:!0}:i}let F=function(i){if(!D.isExisting)return S.call(D.target,D.eventName,D.capture?q:J,D.options)},s=function(i){if(!i.isRemoved){let f=ne[i.eventName],g;f&&(g=f[i.capture?fe:_e]);let P=g&&i.target[g];if(P){for(let T=0;Tie.zone.cancelTask(ie);i.call(pe,"abort",ae,{once:!0}),ie.removeAbortListener=()=>pe.removeEventListener("abort",ae)}if(D.target=null,me&&(me.taskData=null),Ue&&(D.options.once=!0),typeof ie.options!="boolean"&&(ie.options=se),ie.target=N,ie.capture=Oe,ie.eventName=Z,U&&(ie.originalDelegate=z),O?ge.unshift(ie):ge.push(ie),T)return N}};return p[c]=l(S,R,V,I,x),ee&&(p[E]=l(ee,w,r,I,x,!0)),p[u]=function(){let i=this||t,f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));let g=arguments[2],P=g?typeof g=="boolean"?!0:g.capture:!1,T=arguments[1];if(!T)return L.apply(this,arguments);if(A&&!A(L,T,i,arguments))return;let O=ne[f],N;O&&(N=O[P?fe:_e]);let Z=N&&i[N];if(Z)for(let z=0;zfunction(c,u){c[lt]=!0,n&&n.apply(c,u)})}function It(t,e){e.patchMethod(t,"queueMicrotask",a=>function(n,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var we=H("zoneTask");function ye(t,e,a,n){let c=null,u=null;e+=n,a+=n;let v={};function d(R){let E=R.data;E.args[0]=function(){return R.invoke.apply(this,arguments)};let w=c.apply(t,E.args);return tt(w)?E.handleId=w:(E.handle=w,E.isRefreshable=et(w.refresh)),R}function m(R){let{handle:E,handleId:w}=R.data;return u.call(t,E??w)}c=de(t,e,R=>function(E,w){var M;if(et(w[0])){let j={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},J=w[0];w[0]=function(){try{return J.apply(this,arguments)}finally{let{handle:A,handleId:W,isPeriodic:x,isRefreshable:p}=j;!x&&!p&&(W?delete v[W]:A&&(A[we]=null))}};let q=xe(e,w[0],j,d,m);if(!q)return q;let{handleId:Q,handle:Y,isRefreshable:y,isPeriodic:_}=q.data;if(Q)v[Q]=q;else if(Y&&(Y[we]=q,y&&!_)){let G=Y.refresh;Y.refresh=function(){let{zone:A,state:W}=q;return W==="notScheduled"?(q._state="scheduled",A._updateTaskCount(q,1)):W==="running"&&(q._state="scheduling"),G.call(this)}}return(M=Y??Q)!=null?M:q}else return R.apply(t,w)}),u=de(t,a,R=>function(E,w){let M=w[0],j;tt(M)?(j=v[M],delete v[M]):(j=M?.[we],j?M[we]=null:j=M),j?.type?j.cancelFn&&j.zone.cancelTask(j):R.apply(t,w)})}function Mt(t,e){let{isBrowser:a,isMix:n}=e.getGlobalObjects();if(!a&&!n||!t.customElements||!("customElements"in t))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",c)}function jt(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:n,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:v}=e.getGlobalObjects();for(let m=0;mu.target===t);if(n.length===0)return e;let c=n[0].ignoreProperties;return e.filter(u=>c.indexOf(u)===-1)}function nt(t,e,a,n){if(!t)return;let c=ft(t,e,a);it(t,c,n)}function je(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function Ht(t,e){if(De&&!st||Zone[t.symbol("patchEvents")])return;let a=e.__Zone_ignore_on_properties,n=[];if(ze){let c=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),nt(c,je(c),a,He(c))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let n="clear";ye(e,"set",n,"Timeout"),ye(e,"set",n,"Interval"),ye(e,"set",n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{ye(e,"request","cancel","AnimationFrame"),ye(e,"mozRequest","mozCancel","AnimationFrame"),ye(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,a)=>{let n=["alert","prompt","confirm"];for(let c=0;cfunction(R,E){return a.current.run(v,e,E,m)})}}),t.__load_patch("EventTarget",(e,a,n)=>{At(e,n),jt(e,n);let c=e.XMLHttpRequestEventTarget;c&&c.prototype&&n.patchEventTarget(e,n,[c.prototype])}),t.__load_patch("MutationObserver",(e,a,n)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,a,n)=>{ke("IntersectionObserver")}),t.__load_patch("FileReader",(e,a,n)=>{ke("FileReader")}),t.__load_patch("on_property",(e,a,n)=>{Ht(n,e)}),t.__load_patch("customElements",(e,a,n)=>{Mt(e,n)}),t.__load_patch("XHR",(e,a)=>{R(e);let n=H("xhrTask"),c=H("xhrSync"),u=H("xhrListener"),v=H("xhrScheduled"),d=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function R(E){let w=E.XMLHttpRequest;if(!w)return;let M=w.prototype;function j(S){return S[n]}let J=M[Ze],q=M[Le];if(!J){let S=E.XMLHttpRequestEventTarget;if(S){let L=S.prototype;J=L[Ze],q=L[Le]}}let Q="readystatechange",Y="scheduled";function y(S){let L=S.data,b=L.target;b[v]=!1,b[m]=!1;let K=b[u];J||(J=b[Ze],q=b[Le]),K&&q.call(b,Q,K);let ee=b[u]=()=>{if(b.readyState===b.DONE)if(!L.aborted&&b[v]&&S.state===Y){let F=b[a.__symbol__("loadfalse")];if(b.status!==0&&F&&F.length>0){let s=S.invoke;S.invoke=function(){let o=b[a.__symbol__("loadfalse")];for(let r=0;rfunction(S,L){return S[c]=L[2]==!1,S[d]=L[1],A.apply(S,L)}),W="XMLHttpRequest.send",x=H("fetchTaskAborting"),p=H("fetchTaskScheduling"),X=de(M,"send",()=>function(S,L){if(a.current[p]===!0||S[c])return X.apply(S,L);{let b={target:S,url:S[d],isPeriodic:!1,args:L,aborted:!1},K=xe(W,_,b,y,G);S&&S[m]===!0&&!b.aborted&&K.state===Y&&K.invoke()}}),D=de(M,"abort",()=>function(S,L){let b=j(S);if(b&&typeof b.type=="string"){if(b.cancelFn==null||b.data&&b.data.aborted)return;b.zone.cancelTask(b)}else if(a.current[x]===!0)return D.apply(S,L)})}}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&Rt(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,a)=>{function n(c){return function(u){ht(e,c).forEach(d=>{let m=e.PromiseRejectionEvent;if(m){let R=new m(c,{promise:u.promise,reason:u.rejection});d.invoke(R)}})}}e.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),a[H("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,a,n)=>{It(e,n)})}function Vt(t){t.__load_patch("ZoneAwarePromise",(e,a,n)=>{let c=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function v(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let d=n.symbol,m=[],R=e[d("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,E=d("Promise"),w=d("then"),M="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){J(l)}}};let j=d("unhandledPromiseRejectionHandler");function J(h){n.onUnhandledError(h);try{let l=a[j];typeof l=="function"&&l.call(this,h)}catch{}}function q(h){return h&&typeof h.then=="function"}function Q(h){return h}function Y(h){return I.reject(h)}let y=d("state"),_=d("value"),G=d("finally"),A=d("parentPromiseValue"),W=d("parentPromiseState"),x="Promise.then",p=null,X=!0,D=!1,S=0;function L(h,l){return i=>{try{B(h,l,i)}catch(f){B(h,!1,f)}}}let b=function(){let h=!1;return function(i){return function(){h||(h=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",ee=d("currentTaskTrace");function B(h,l,i){let f=b();if(h===i)throw new TypeError(K);if(h[y]===p){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(P){return f(()=>{B(h,!1,P)})(),h}if(l!==D&&i instanceof I&&i.hasOwnProperty(y)&&i.hasOwnProperty(_)&&i[y]!==p)s(i),B(h,i[y],i[_]);else if(l!==D&&typeof g=="function")try{g.call(i,f(L(h,l)),f(L(h,!1)))}catch(P){f(()=>{B(h,!1,P)})()}else{h[y]=l;let P=h[_];if(h[_]=i,h[G]===G&&l===X&&(h[y]=h[W],h[_]=h[A]),l===D&&i instanceof Error){let T=a.currentTask&&a.currentTask.data&&a.currentTask.data[M];T&&u(i,ee,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{let O=h[_],N=!!i&&G===i[G];N&&(i[A]=O,i[W]=P);let Z=l.run(T,void 0,N&&T!==Y&&T!==Q?[]:[O]);B(i,!0,Z)}catch(O){B(i,!1,O)}},i)}let r="function ZoneAwarePromise() { [native code] }",k=function(){},V=e.AggregateError;class I{static toString(){return r}static resolve(l){return l instanceof I?l:B(new this(null),X,l)}static reject(l){return B(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new I((i,f)=>{l.resolve=i,l.reject=f}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new V([],"All promises were rejected"));let i=[],f=0;try{for(let T of l)f++,i.push(I.resolve(T))}catch{return Promise.reject(new V([],"All promises were rejected"))}if(f===0)return Promise.reject(new V([],"All promises were rejected"));let g=!1,P=[];return new I((T,O)=>{for(let N=0;N{g||(g=!0,T(Z))},Z=>{P.push(Z),f--,f===0&&(g=!0,O(new V(P,"All promises were rejected")))})})}static race(l){let i,f,g=new this((O,N)=>{i=O,f=N});function P(O){i(O)}function T(O){f(O)}for(let O of l)q(O)||(O=this.resolve(O)),O.then(P,T);return g}static all(l){return I.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof I?this:I).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,i){let f,g,P=new this((Z,z)=>{f=Z,g=z}),T=2,O=0,N=[];for(let Z of l){q(Z)||(Z=this.resolve(Z));let z=O;try{Z.then(U=>{N[z]=i?i.thenCallback(U):U,T--,T===0&&f(N)},U=>{i?(N[z]=i.errorCallback(U),T--,T===0&&f(N)):g(U)})}catch(U){g(U)}T++,O++}return T-=2,T===0&&f(N),P}constructor(l){let i=this;if(!(i instanceof I))throw new Error("Must be an instanceof Promise.");i[y]=p,i[_]=[];try{let f=b();l&&l(f(L(i,X)),f(L(i,D)))}catch(f){B(i,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return I}then(l,i){var f;let g=(f=this.constructor)==null?void 0:f[Symbol.species];(!g||typeof g!="function")&&(g=this.constructor||I);let P=new g(k),T=a.current;return this[y]==p?this[_].push(T,P,l,i):o(this,T,P,l,i),P}catch(l){return this.then(null,l)}finally(l){var i;let f=(i=this.constructor)==null?void 0:i[Symbol.species];(!f||typeof f!="function")&&(f=I);let g=new f(k);g[G]=G;let P=a.current;return this[y]==p?this[_].push(P,g,l,l):o(this,P,g,l,l),g}}I.resolve=I.resolve,I.reject=I.reject,I.race=I.race,I.all=I.all;let re=e[E]=e.Promise;e.Promise=I;let ue=d("thenPatched");function he(h){let l=h.prototype,i=c(l,"then");if(i&&(i.writable===!1||!i.configurable))return;let f=l.then;l[w]=f,h.prototype.then=function(g,P){return new I((O,N)=>{f.call(this,O,N)}).then(g,P)},h[ue]=!0}n.patchThen=he;function oe(h){return function(l,i){let f=h.apply(l,i);if(f instanceof I)return f;let g=f.constructor;return g[ue]||he(g),f}}if(re){he(re);let h=re.try;h&&typeof h=="function"&&(I.try=h),de(e,"fetch",l=>oe(l))}return Promise[a.__symbol__("uncaughtPromiseErrors")]=m,I})}function Gt(t){t.__load_patch("toString",e=>{let a=Function.prototype.toString,n=H("OriginalDelegate"),c=H("Promise"),u=H("Error"),v=function(){if(typeof this=="function"){let E=this[n];if(E)return typeof E=="function"?a.call(E):Object.prototype.toString.call(E);if(this===Promise){let w=e[c];if(w)return a.call(w)}if(this===Error){let w=e[u];if(w)return a.call(w)}}return a.call(this)};v[n]=a,Function.prototype.toString=v;let d=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:d.call(this)}})}function xt(t,e,a,n,c){let u=Zone.__symbol__(n);if(e[u])return;let v=e[u]=e[n];e[n]=function(d,m,R){return m&&m.prototype&&c.forEach(function(E){let w=`${a}.${n}::`+E,M=m.prototype;try{if(M.hasOwnProperty(E)){let j=t.ObjectGetOwnPropertyDescriptor(M,E);j&&j.value?(j.value=t.wrapWithCurrentZone(j.value,w),t._redefineProperty(m.prototype,E,j)):M[E]&&(M[E]=t.wrapWithCurrentZone(M[E],w))}else M[E]&&(M[E]=t.wrapWithCurrentZone(M[E],w))}catch{}}),v.call(e,d,m,R)},t.attachOriginToPatched(e[n],v)}function Bt(t){t.__load_patch("util",(e,a,n)=>{let c=je(e);n.patchOnProperties=it,n.patchMethod=de,n.bindArguments=Be,n.patchMacroTask=Ot;let u=a.__symbol__("BLACK_LISTED_EVENTS"),v=a.__symbol__("UNPATCHED_EVENTS");e[v]&&(e[u]=e[v]),e[u]&&(a[u]=a[v]=e[u]),n.patchEventPrototype=Lt,n.patchEventTarget=Zt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=ve,n.ObjectCreate=bt,n.ArraySlice=Pt,n.patchClass=ke,n.wrapWithCurrentZone=Ge,n.filterProperties=ft,n.attachOriginToPatched=Te,n._redefineProperty=Object.defineProperty,n.patchCallbacks=xt,n.getGlobalObjects=()=>({globalSources:ct,zoneSymbolEventNames:ne,eventNames:c,isBrowser:ze,isMix:st,isNode:De,TRUE_STR:fe,FALSE_STR:_e,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ve})})}function zt(t){Vt(t),Gt(t),Bt(t)}var _t=vt();zt(_t);Ft(_t); +var Tt=Object.defineProperty,Et=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ie=(t,e,c)=>e in t?Tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:c}):t[e]=c,Je=(t,e)=>{for(var c in e||(e={}))gt.call(e,c)&&Ie(t,c,e[c]);if($e)for(var c of $e(e))yt.call(e,c)&&Ie(t,c,e[c]);return t},mt=(t,e)=>Et(t,pt(e)),S=(t,e,c)=>(Ie(t,typeof e!="symbol"?e+"":e,c),c),te=globalThis;function ne(t){return(te.__Zone_symbol_prefix||"__zone_symbol__")+t}function kt(){let t=te.performance;function e(x){t&&t.mark&&t.mark(x)}function c(x,r){t&&t.measure&&t.measure(x,r)}e("Zone");let n=class Me{constructor(r,o){S(this,"_parent"),S(this,"_name"),S(this,"_properties"),S(this,"_zoneDelegate"),this._parent=r,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(te.Promise!==M.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=Me.current;for(;r.parent;)r=r.parent;return r}static get current(){return U.zone}static get currentTask(){return ee}static __load_patch(r,o,i=!1){if(M.hasOwnProperty(r)){let g=te[ne("forceDuplicateZoneCheck")]===!0;if(!i&&g)throw Error("Already loaded patch: "+r)}else if(!te["__Zone_disable_"+r]){let g="Zone:"+r;e(g),M[r]=o(te,Me,C),c(g,g)}}get parent(){return this._parent}get name(){return this._name}get(r){let o=this.getZoneWith(r);if(o)return o._properties[r]}getZoneWith(r){let o=this;for(;o;){if(o._properties.hasOwnProperty(r))return o;o=o._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,o){if(typeof r!="function")throw new Error("Expecting function got: "+r);let i=this._zoneDelegate.intercept(this,r,o),g=this;return function(){return g.runGuarded(i,this,arguments,o)}}run(r,o,i,g){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,r,o,i,g)}finally{U=U.parent}}runGuarded(r,o=null,i,g){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,r,o,i,g)}catch(k){if(this._zoneDelegate.handleError(this,k))throw k}}finally{U=U.parent}}runTask(r,o,i){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||P).name+"; Execution: "+this.name+")");let g=r,{type:k,data:{isPeriodic:re=!1,isRefreshable:se=!1}={}}=r;if(r.state===_&&(k===w||k===O))return;let ie=r.state!=V;ie&&g._transitionTo(V,F);let pe=ee;ee=g,U={parent:U,zone:this};try{k==O&&r.data&&!re&&!se&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,o,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{let h=r.state;if(h!==_&&h!==E)if(k==w||re||se&&h===H)ie&&g._transitionTo(F,V,H);else{let l=g._zoneDelegates;this._updateTaskCount(g,-1),ie&&g._transitionTo(_,V,_),se&&(g._zoneDelegates=l)}U=U.parent,ee=pe}}scheduleTask(r){if(r.zone&&r.zone!==this){let i=this;for(;i;){if(i===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);i=i.parent}}r._transitionTo(H,_);let o=[];r._zoneDelegates=o,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(i){throw r._transitionTo(E,H,_),this._zoneDelegate.handleError(this,i),i}return r._zoneDelegates===o&&this._updateTaskCount(r,1),r.state==H&&r._transitionTo(F,H),r}scheduleMicroTask(r,o,i,g){return this.scheduleTask(new d(q,r,o,i,g,void 0))}scheduleMacroTask(r,o,i,g,k){return this.scheduleTask(new d(O,r,o,i,g,k))}scheduleEventTask(r,o,i,g,k){return this.scheduleTask(new d(w,r,o,i,g,k))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||P).name+"; Execution: "+this.name+")");if(!(r.state!==F&&r.state!==V)){r._transitionTo(G,F,V);try{this._zoneDelegate.cancelTask(this,r)}catch(o){throw r._transitionTo(E,G),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(r,-1),r._transitionTo(_,G),r.runCount=-1,r}}_updateTaskCount(r,o){let i=r._zoneDelegates;o==-1&&(r._zoneDelegates=null);for(let g=0;gx.hasTask(o,i),onScheduleTask:(x,r,o,i)=>x.scheduleTask(o,i),onInvokeTask:(x,r,o,i,g,k)=>x.invokeTask(o,i,g,k),onCancelTask:(x,r,o,i)=>x.cancelTask(o,i)};class v{constructor(r,o,i){S(this,"_zone"),S(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),S(this,"_forkDlgt"),S(this,"_forkZS"),S(this,"_forkCurrZone"),S(this,"_interceptDlgt"),S(this,"_interceptZS"),S(this,"_interceptCurrZone"),S(this,"_invokeDlgt"),S(this,"_invokeZS"),S(this,"_invokeCurrZone"),S(this,"_handleErrorDlgt"),S(this,"_handleErrorZS"),S(this,"_handleErrorCurrZone"),S(this,"_scheduleTaskDlgt"),S(this,"_scheduleTaskZS"),S(this,"_scheduleTaskCurrZone"),S(this,"_invokeTaskDlgt"),S(this,"_invokeTaskZS"),S(this,"_invokeTaskCurrZone"),S(this,"_cancelTaskDlgt"),S(this,"_cancelTaskZS"),S(this,"_cancelTaskCurrZone"),S(this,"_hasTaskDlgt"),S(this,"_hasTaskDlgtOwner"),S(this,"_hasTaskZS"),S(this,"_hasTaskCurrZone"),this._zone=r,this._forkZS=i&&(i&&i.onFork?i:o._forkZS),this._forkDlgt=i&&(i.onFork?o:o._forkDlgt),this._forkCurrZone=i&&(i.onFork?this._zone:o._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:o._interceptZS),this._interceptDlgt=i&&(i.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this._zone:o._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:o._invokeZS),this._invokeDlgt=i&&(i.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this._zone:o._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:o._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this._zone:o._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:o._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this._zone:o._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:o._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this._zone:o._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:o._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this._zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let g=i&&i.onHasTask,k=o&&o._hasTaskZS;(g||k)&&(this._hasTaskZS=g?i:u,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,i.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this._zone),i.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this._zone),i.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(r,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,o):new a(r,o)}intercept(r,o,i){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,o,i):o}invoke(r,o,i,g,k){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,o,i,g,k):o.apply(i,g)}handleError(r,o){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,o):!0}scheduleTask(r,o){let i=o;if(this._scheduleTaskZS)this._hasTaskZS&&i._zoneDelegates.push(this._hasTaskDlgtOwner),i=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,o),i||(i=o);else if(o.scheduleFn)o.scheduleFn(o);else if(o.type==q)Q(o);else throw new Error("Task is missing scheduleFn.");return i}invokeTask(r,o,i,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,o,i,g):o.callback.apply(i,g)}cancelTask(r,o){let i;if(this._cancelTaskZS)i=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");i=o.cancelFn(o)}return i}hasTask(r,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,o)}catch(i){this.handleError(r,i)}}_updateTaskCount(r,o){let i=this._taskCounts,g=i[r],k=i[r]=g+o;if(k<0)throw new Error("More tasks executed then were scheduled.");if(g==0||k==0){let re={microTask:i.microTask>0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:r};this.hasTask(this._zone,re)}}}class d{constructor(r,o,i,g,k,re){if(S(this,"type"),S(this,"source"),S(this,"invoke"),S(this,"callback"),S(this,"data"),S(this,"scheduleFn"),S(this,"cancelFn"),S(this,"_zone",null),S(this,"runCount",0),S(this,"_zoneDelegates",null),S(this,"_state","notScheduled"),this.type=r,this.source=o,this.data=g,this.scheduleFn=k,this.cancelFn=re,!i)throw new Error("callback is not defined");this.callback=i;let se=this;r===w&&g&&g.useG?this.invoke=d.invokeTask:this.invoke=function(){return d.invokeTask.call(te,se,this,arguments)}}static invokeTask(r,o,i){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,o,i)}finally{K===1&&!te[D]&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(_,H)}_transitionTo(r,o,i){if(this._state===o||this._state===i)this._state=r,r==_&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${o}'${i?" or '"+i+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let m=ne("setTimeout"),R=ne("Promise"),p=ne("then"),D=ne("enable_native_microtask_draining"),Z=[],j=!1,Y;function W(x){var r;!Y&&te[R]&&(Y=te[R].resolve(0)),Y?((r=Y[p])!=null?r:Y.then).call(Y,x):te[m](x,0)}function Q(x){let r=te[D],o=r&&Z.length===0&&!j,i=!r&&K===0&&Z.length===0;(o||i)&&W($),x&&Z.push(x)}function $(){if(!j){for(j=!0;Z.length;){let x=Z;Z=[];for(let r of x)try{r.zone.runTask(r,null,null)}catch(o){C.onUnhandledError(o)}}te[D]?(j=!1,C.microtaskDrainDone()):(C.microtaskDrainDone(),j=!1)}}let P={name:"NO ZONE"},_="notScheduled",H="scheduling",F="scheduled",V="running",G="canceling",E="unknown",q="microTask",O="macroTask",w="eventTask",M={},C={symbol:ne,currentZoneFrame:()=>U,onUnhandledError:X,microtaskDrainDone:X,scheduleMicroTask:Q,showUncaughtError:()=>!a[ne("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:X,patchMethod:()=>X,bindArguments:()=>[],patchThen:()=>X,patchMacroTask:()=>X,patchEventPrototype:()=>X,getGlobalObjects:()=>{},ObjectDefineProperty:()=>X,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>X,wrapWithCurrentZone:()=>X,filterProperties:()=>[],attachOriginToPatched:()=>X,_redefineProperty:()=>X,patchCallbacks:()=>X,nativeScheduleMicroTask:W},U={parent:null,zone:new a(null,null)},ee=null,K=0;function X(){}return c("Zone","Zone"),a}function vt(){var t;let e=globalThis,c=e[ne("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(c||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return(t=e.Zone)!=null||(e.Zone=kt()),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,He=Object.getPrototypeOf,bt=Object.create,Pt=Array.prototype.slice,Fe="addEventListener",Ve="removeEventListener",Ze=ne(Fe),Le=ne(Ve),he="true",fe="false",be=ne("");function Ge(t,e){return Zone.current.wrap(t,e)}function xe(t,e,c,n,a){return Zone.current.scheduleMacroTask(t,e,c,n,a)}var A=ne,De=typeof window<"u",Se=De?window:void 0,J=De&&Se||globalThis,wt="removeAttribute";function Be(t,e){for(let c=t.length-1;c>=0;c--)typeof t[c]=="function"&&(t[c]=Ge(t[c],e+"_"+c));return t}function Rt(t,e){let c=t.constructor.name;for(let n=0;n{let m=function(){return d.apply(this,Be(arguments,c+"."+a))};return de(m,d),m})(u)}}}function rt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var ot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ce=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",ze=!Ce&&!ot&&!!(De&&Se.HTMLElement),st=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!ot&&!!(De&&Se.HTMLElement),Re={},Dt=A("enable_beforeunload"),Ke=function(t){if(t=t||J.event,!t)return;let e=Re[t.type];e||(e=Re[t.type]=A("ON_PROPERTY"+t.type));let c=this||t.target||J,n=c[e],a;if(ze&&c===Se&&t.type==="error"){let u=t;a=n&&n.call(this,u.message,u.filename,u.lineno,u.colno,u.error),a===!0&&t.preventDefault()}else a=n&&n.apply(this,arguments),t.type==="beforeunload"&&J[Dt]&&typeof a=="string"?t.returnValue=a:a!=null&&!a&&t.preventDefault();return a};function Qe(t,e,c){let n=ve(t,e);if(!n&&c&&ve(c,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let a=A("on"+e+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;let u=n.get,v=n.set,d=e.slice(2),m=Re[d];m||(m=Re[d]=A("ON_PROPERTY"+d)),n.set=function(R){let p=this;if(!p&&t===J&&(p=J),!p)return;typeof p[m]=="function"&&p.removeEventListener(d,Ke),v?.call(p,null),p[m]=R,typeof R=="function"&&p.addEventListener(d,Ke,!1)},n.get=function(){let R=this;if(!R&&t===J&&(R=J),!R)return null;let p=R[m];if(p)return p;if(u){let D=u.call(this);if(D)return n.set.call(this,D),typeof R[wt]=="function"&&R.removeAttribute(e),D}return null},Ae(t,e,n),t[a]=!0}function it(t,e,c){if(e)for(let n=0;n{let a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,{get:function(){return t[n]},set:function(u){a&&(!a.writable||typeof a.set!="function")||(t[n]=u)},enumerable:a?a.enumerable:!0,configurable:a?a.configurable:!0})})}var Ct=!1;function _e(t,e,c){let n=t;for(;n&&!n.hasOwnProperty(e);)n=He(n);!n&&t[e]&&(n=t);let a=A(e),u=null;if(n&&(!(u=n[a])||!n.hasOwnProperty(a))){u=n[a]=n[e];let v=n&&ve(n,e);if(rt(v)){let d=c(u,a,e);n[e]=function(){return d(this,arguments)},de(n[e],u),Ct&&St(u,n[e])}}return u}function Ot(t,e,c){let n=null;function a(u){let v=u.data;return v.args[v.cbIdx]=function(){u.invoke.apply(this,arguments)},n.apply(v.target,v.args),u}n=_e(t,e,u=>function(v,d){let m=c(v,d);return m.cbIdx>=0&&typeof d[m.cbIdx]=="function"?xe(m.name,d[m.cbIdx],m,a):u.apply(v,d)})}function de(t,e){t[A("OriginalDelegate")]=e}function et(t){return typeof t=="function"}function tt(t){return typeof t=="number"}var Nt={useG:!0},oe={},at={},ct=new RegExp("^"+be+"(\\w+)(true|false)$"),lt=A("propagationStopped");function ut(t,e){let c=(e?e(t):t)+fe,n=(e?e(t):t)+he,a=be+c,u=be+n;oe[t]={},oe[t][fe]=a,oe[t][he]=u}function Zt(t,e,c,n){let a=n&&n.add||Fe,u=n&&n.rm||Ve,v=n&&n.listeners||"eventListeners",d=n&&n.rmAll||"removeAllListeners",m=A(a),R="."+a+":",p="prependListener",D="."+p+":",Z=function(P,_,H){if(P.isRemoved)return;let F=P.callback;typeof F=="object"&&F.handleEvent&&(P.callback=E=>F.handleEvent(E),P.originalDelegate=F);let V;try{P.invoke(P,_,[H])}catch(E){V=E}let G=P.options;if(G&&typeof G=="object"&&G.once){let E=P.originalDelegate?P.originalDelegate:P.callback;_[u].call(_,H.type,E,G)}return V};function j(P,_,H){if(_=_||t.event,!_)return;let F=P||_.target||t,V=F[oe[_.type][H?he:fe]];if(V){let G=[];if(V.length===1){let E=Z(V[0],F,_);E&&G.push(E)}else{let E=V.slice();for(let q=0;q{throw q})}}}let Y=function(P){return j(this,P,!1)},W=function(P){return j(this,P,!0)};function Q(P,_){if(!P)return!1;let H=!0;_&&_.useG!==void 0&&(H=_.useG);let F=_&&_.vh,V=!0;_&&_.chkDup!==void 0&&(V=_.chkDup);let G=!1;_&&_.rt!==void 0&&(G=_.rt);let E=P;for(;E&&!E.hasOwnProperty(a);)E=He(E);if(!E&&P[a]&&(E=P),!E||E[m])return!1;let q=_&&_.eventNameToString,O={},w=E[m]=E[a],M=E[A(u)]=E[u],C=E[A(v)]=E[v],U=E[A(d)]=E[d],ee;_&&_.prepend&&(ee=E[A(_.prepend)]=E[_.prepend]);function K(s,f){return f?typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?mt(Je({},s),{passive:!0}):s:{passive:!0}:s}let X=function(s){if(!O.isExisting)return w.call(O.target,O.eventName,O.capture?W:Y,O.options)},x=function(s){if(!s.isRemoved){let f=oe[s.eventName],y;f&&(y=f[s.capture?he:fe]);let b=y&&s.target[y];if(b){for(let T=0;Tce.zone.cancelTask(ce);s.call(Ee,"abort",ue,{once:!0}),ce.removeAbortListener=()=>Ee.removeEventListener("abort",ue)}if(O.target=null,me&&(me.taskData=null),Ue&&(O.options.once=!0),typeof ce.options!="boolean"&&(ce.options=ae),ce.target=L,ce.capture=Oe,ce.eventName=I,z&&(ce.originalDelegate=B),N?ge.unshift(ce):ge.push(ce),T)return L}};return E[a]=l(w,R,g,k,G),ee&&(E[p]=l(ee,D,o,k,G,!0)),E[u]=function(){let s=this||t,f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));let y=arguments[2],b=y?typeof y=="boolean"?!0:y.capture:!1,T=arguments[1];if(!T)return M.apply(this,arguments);if(F&&!F(M,T,s,arguments))return;let N=oe[f],L;N&&(L=N[b?he:fe]);let I=L&&s[L];if(I)for(let B=0;Bfunction(a,u){a[lt]=!0,n&&n.apply(a,u)})}function It(t,e){e.patchMethod(t,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var we=A("zoneTask");function ye(t,e,c,n){let a=null,u=null;e+=n,c+=n;let v={};function d(R){let p=R.data;p.args[0]=function(){return R.invoke.apply(this,arguments)};let D=a.apply(t,p.args);return tt(D)?p.handleId=D:(p.handle=D,p.isRefreshable=et(D.refresh)),R}function m(R){let{handle:p,handleId:D}=R.data;return u.call(t,p??D)}a=_e(t,e,R=>function(p,D){var Z;if(et(D[0])){let j={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?D[1]||0:void 0,args:D},Y=D[0];D[0]=function(){try{return Y.apply(this,arguments)}finally{let{handle:F,handleId:V,isPeriodic:G,isRefreshable:E}=j;!G&&!E&&(V?delete v[V]:F&&(F[we]=null))}};let W=xe(e,D[0],j,d,m);if(!W)return W;let{handleId:Q,handle:$,isRefreshable:P,isPeriodic:_}=W.data;if(Q)v[Q]=W;else if($&&($[we]=W,P&&!_)){let H=$.refresh;$.refresh=function(){let{zone:F,state:V}=W;return V==="notScheduled"?(W._state="scheduled",F._updateTaskCount(W,1)):V==="running"&&(W._state="scheduling"),H.call(this)}}return(Z=$??Q)!=null?Z:W}else return R.apply(t,D)}),u=_e(t,c,R=>function(p,D){let Z=D[0],j;tt(Z)?(j=v[Z],delete v[Z]):(j=Z?.[we],j?Z[we]=null:j=Z),j?.type?j.cancelFn&&j.zone.cancelTask(j):R.apply(t,D)})}function Mt(t,e){let{isBrowser:c,isMix:n}=e.getGlobalObjects();if(!c&&!n||!t.customElements||!("customElements"in t))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",a)}function jt(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:u,ZONE_SYMBOL_PREFIX:v}=e.getGlobalObjects();for(let m=0;mu.target===t);if(n.length===0)return e;let a=n[0].ignoreProperties;return e.filter(u=>a.indexOf(u)===-1)}function nt(t,e,c,n){if(!t)return;let a=ft(t,e,c);it(t,a,n)}function je(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function Ht(t,e){if(Ce&&!st||Zone[t.symbol("patchEvents")])return;let c=e.__Zone_ignore_on_properties,n=[];if(ze){let a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),nt(a,je(a),c,He(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let n="clear";ye(e,"set",n,"Timeout"),ye(e,"set",n,"Interval"),ye(e,"set",n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{ye(e,"request","cancel","AnimationFrame"),ye(e,"mozRequest","mozCancel","AnimationFrame"),ye(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,c)=>{let n=["alert","prompt","confirm"];for(let a=0;afunction(R,p){return c.current.run(v,e,p,m)})}}),t.__load_patch("EventTarget",(e,c,n)=>{At(e,n),jt(e,n);let a=e.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(e,n,[a.prototype])}),t.__load_patch("MutationObserver",(e,c,n)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,c,n)=>{ke("IntersectionObserver")}),t.__load_patch("FileReader",(e,c,n)=>{ke("FileReader")}),t.__load_patch("on_property",(e,c,n)=>{Ht(n,e)}),t.__load_patch("customElements",(e,c,n)=>{Mt(e,n)}),t.__load_patch("XHR",(e,c)=>{R(e);let n=A("xhrTask"),a=A("xhrSync"),u=A("xhrListener"),v=A("xhrScheduled"),d=A("xhrURL"),m=A("xhrErrorBeforeScheduled");function R(p){let D=p.XMLHttpRequest;if(!D)return;let Z=D.prototype;function j(w){return w[n]}let Y=Z[Ze],W=Z[Le];if(!Y){let w=p.XMLHttpRequestEventTarget;if(w){let M=w.prototype;Y=M[Ze],W=M[Le]}}let Q="readystatechange",$="scheduled";function P(w){let M=w.data,C=M.target;C[v]=!1,C[m]=!1;let U=C[u];Y||(Y=C[Ze],W=C[Le]),U&&W.call(C,Q,U);let ee=C[u]=()=>{if(C.readyState===C.DONE)if(!M.aborted&&C[v]&&w.state===$){let X=C[c.__symbol__("loadfalse")];if(C.status!==0&&X&&X.length>0){let x=w.invoke;w.invoke=function(){let r=C[c.__symbol__("loadfalse")];for(let o=0;ofunction(w,M){return w[a]=M[2]==!1,w[d]=M[1],F.apply(w,M)}),V="XMLHttpRequest.send",G=A("fetchTaskAborting"),E=A("fetchTaskScheduling"),q=_e(Z,"send",()=>function(w,M){if(c.current[E]===!0||w[a])return q.apply(w,M);{let C={target:w,url:w[d],isPeriodic:!1,args:M,aborted:!1},U=xe(V,_,C,P,H);w&&w[m]===!0&&!C.aborted&&U.state===$&&U.invoke()}}),O=_e(Z,"abort",()=>function(w,M){let C=j(w);if(C&&typeof C.type=="string"){if(C.cancelFn==null||C.data&&C.data.aborted)return;C.zone.cancelTask(C)}else if(c.current[G]===!0)return O.apply(w,M)})}}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&Rt(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,c)=>{function n(a){return function(u){ht(e,a).forEach(d=>{let m=e.PromiseRejectionEvent;if(m){let R=new m(a,{promise:u.promise,reason:u.rejection});d.invoke(R)}})}}e.PromiseRejectionEvent&&(c[A("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[A("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,c,n)=>{It(e,n)})}function Vt(t){t.__load_patch("ZoneAwarePromise",(e,c,n)=>{let a=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function v(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let d=n.symbol,m=[],R=e[d("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,p=d("Promise"),D=d("then"),Z="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){Y(l)}}};let j=d("unhandledPromiseRejectionHandler");function Y(h){n.onUnhandledError(h);try{let l=c[j];typeof l=="function"&&l.call(this,h)}catch{}}function W(h){return h&&typeof h.then=="function"}function Q(h){return h}function $(h){return k.reject(h)}let P=d("state"),_=d("value"),H=d("finally"),F=d("parentPromiseValue"),V=d("parentPromiseState"),G="Promise.then",E=null,q=!0,O=!1,w=0;function M(h,l){return s=>{try{K(h,l,s)}catch(f){K(h,!1,f)}}}let C=function(){let h=!1;return function(s){return function(){h||(h=!0,s.apply(null,arguments))}}},U="Promise resolved with itself",ee=d("currentTaskTrace");function K(h,l,s){let f=C();if(h===s)throw new TypeError(U);if(h[P]===E){let y=null;try{(typeof s=="object"||typeof s=="function")&&(y=s&&s.then)}catch(b){return f(()=>{K(h,!1,b)})(),h}if(l!==O&&s instanceof k&&s.hasOwnProperty(P)&&s.hasOwnProperty(_)&&s[P]!==E)x(s),K(h,s[P],s[_]);else if(l!==O&&typeof y=="function")try{y.call(s,f(M(h,l)),f(M(h,!1)))}catch(b){f(()=>{K(h,!1,b)})()}else{h[P]=l;let b=h[_];if(h[_]=s,h[H]===H&&l===q&&(h[P]=h[V],h[_]=h[F]),l===O&&s instanceof Error){let T=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];T&&u(s,ee,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{let N=h[_],L=!!s&&H===s[H];L&&(s[F]=N,s[V]=b);let I=l.run(T,void 0,L&&T!==$&&T!==Q?[]:[N]);K(s,!0,I)}catch(N){K(s,!1,N)}},s)}let o="function ZoneAwarePromise() { [native code] }",i=function(){},g=e.AggregateError;class k{static toString(){return o}static resolve(l){return l instanceof k?l:K(new this(null),q,l)}static reject(l){return K(new this(null),O,l)}static withResolvers(){let l={};return l.promise=new k((s,f)=>{l.resolve=s,l.reject=f}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new g([],"All promises were rejected"));let s=[],f=0;try{for(let T of l)f++,s.push(k.resolve(T))}catch{return Promise.reject(new g([],"All promises were rejected"))}if(f===0)return Promise.reject(new g([],"All promises were rejected"));let y=!1,b=[];return new k((T,N)=>{for(let L=0;L{y||(y=!0,T(I))},I=>{b.push(I),f--,f===0&&(y=!0,N(new g(b,"All promises were rejected")))})})}static race(l){let s,f,y=new this((N,L)=>{s=N,f=L});function b(N){s(N)}function T(N){f(N)}for(let N of l)W(N)||(N=this.resolve(N)),N.then(b,T);return y}static all(l){return k.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof k?this:k).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,s){let f,y,b=new this((I,B)=>{f=I,y=B}),T=2,N=0,L=[];for(let I of l){W(I)||(I=this.resolve(I));let B=N;try{I.then(z=>{L[B]=s?s.thenCallback(z):z,T--,T===0&&f(L)},z=>{s?(L[B]=s.errorCallback(z),T--,T===0&&f(L)):y(z)})}catch(z){y(z)}T++,N++}return T-=2,T===0&&f(L),b}constructor(l){let s=this;if(!(s instanceof k))throw new Error("Must be an instanceof Promise.");s[P]=E,s[_]=[];try{let f=C();l&&l(f(M(s,q)),f(M(s,O)))}catch(f){K(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return k}then(l,s){var f;let y=(f=this.constructor)==null?void 0:f[Symbol.species];(!y||typeof y!="function")&&(y=this.constructor||k);let b=new y(i),T=c.current;return this[P]==E?this[_].push(T,b,l,s):r(this,T,b,l,s),b}catch(l){return this.then(null,l)}finally(l){var s;let f=(s=this.constructor)==null?void 0:s[Symbol.species];(!f||typeof f!="function")&&(f=k);let y=new f(i);y[H]=H;let b=c.current;return this[P]==E?this[_].push(b,y,l,l):r(this,b,y,l,l),y}}k.resolve=k.resolve,k.reject=k.reject,k.race=k.race,k.all=k.all;let re=e[p]=e.Promise;e.Promise=k;let se=d("thenPatched");function ie(h){let l=h.prototype,s=a(l,"then");if(s&&(s.writable===!1||!s.configurable))return;let f=l.then;l[D]=f,h.prototype.then=function(y,b){return new k((N,L)=>{f.call(this,N,L)}).then(y,b)},h[se]=!0}n.patchThen=ie;function pe(h){return function(l,s){let f=h.apply(l,s);if(f instanceof k)return f;let y=f.constructor;return y[se]||ie(y),f}}if(re){ie(re);let h=re.try;h&&typeof h=="function"&&(k.try=h),_e(e,"fetch",l=>pe(l))}return Promise[c.__symbol__("uncaughtPromiseErrors")]=m,k})}function Gt(t){t.__load_patch("toString",e=>{let c=Function.prototype.toString,n=A("OriginalDelegate"),a=A("Promise"),u=A("Error"),v=function(){if(typeof this=="function"){let p=this[n];if(p)return typeof p=="function"?c.call(p):Object.prototype.toString.call(p);if(this===Promise){let D=e[a];if(D)return c.call(D)}if(this===Error){let D=e[u];if(D)return c.call(D)}}return c.call(this)};v[n]=c,Function.prototype.toString=v;let d=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:d.call(this)}})}function xt(t,e,c,n,a){let u=Zone.__symbol__(n);if(e[u])return;let v=e[u]=e[n];e[n]=function(d,m,R){return m&&m.prototype&&a.forEach(function(p){let D=`${c}.${n}::`+p,Z=m.prototype;try{if(Z.hasOwnProperty(p)){let j=t.ObjectGetOwnPropertyDescriptor(Z,p);j&&j.value?(j.value=t.wrapWithCurrentZone(j.value,D),t._redefineProperty(m.prototype,p,j)):Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],D))}else Z[p]&&(Z[p]=t.wrapWithCurrentZone(Z[p],D))}catch{}}),v.call(e,d,m,R)},t.attachOriginToPatched(e[n],v)}function Bt(t){t.__load_patch("util",(e,c,n)=>{let a=je(e);n.patchOnProperties=it,n.patchMethod=_e,n.bindArguments=Be,n.patchMacroTask=Ot;let u=c.__symbol__("BLACK_LISTED_EVENTS"),v=c.__symbol__("UNPATCHED_EVENTS");e[v]&&(e[u]=e[v]),e[u]&&(c[u]=c[v]=e[u]),n.patchEventPrototype=Lt,n.patchEventTarget=Zt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=ve,n.ObjectCreate=bt,n.ArraySlice=Pt,n.patchClass=ke,n.wrapWithCurrentZone=Ge,n.filterProperties=ft,n.attachOriginToPatched=de,n._redefineProperty=Object.defineProperty,n.patchCallbacks=xt,n.getGlobalObjects=()=>({globalSources:at,zoneSymbolEventNames:oe,eventNames:a,isBrowser:ze,isMix:st,isNode:Ce,TRUE_STR:he,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ve})})}function zt(t){Vt(t),Gt(t),Bt(t)}var _t=vt();zt(_t);Ft(_t); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index 933d45d8e..a52be2d17 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -1,5 +1,36 @@ // "Fake" javascript file for translations // Typescript +gettext("Error saving element"); +gettext("Error handling your request"); +gettext("Search"); +gettext("No entries found"); +gettext(", (%i more items)"); +gettext("Yes"); +gettext("No"); +gettext("Search"); +gettext("No entries found"); +gettext("Select"); +gettext("Main"); +gettext("Advanced"); +gettext("Filter"); +gettext("No entries found"); +gettext("Main"); +gettext("Yes"); +gettext("No"); +gettext("(hidden)"); +gettext("Selected items :"); +gettext("Error"); +gettext("Please, fill in require fields: "); +gettext("Remove"); +gettext("Confirm revokation of permission"); +gettext("Read only"); +gettext("Full Access"); +gettext("User"); +gettext("Group"); +gettext("Authenticator"); +gettext("Permission"); +gettext("Sorting is not available for this column"); +gettext("Close"); gettext("Test"); gettext("Loading data..."); gettext("dismiss"); @@ -18,42 +49,22 @@ gettext("dismiss"); gettext("Are you sure do you want to delete the following items?"); gettext("Deletion finished"); gettext("dismiss"); -gettext("seconds"); -gettext("Main"); -gettext("Advanced"); -gettext(", (%i more items)"); -gettext("Search"); -gettext("No entries found"); -gettext("Search"); -gettext("No entries found"); -gettext("Select"); -gettext("Yes"); -gettext("No"); -gettext("Error"); -gettext("Please, fill in require fields: "); -gettext("Sorting is not available for this column"); -gettext("Close"); -gettext("Read only"); -gettext("Full Access"); -gettext("User"); -gettext("Group"); -gettext("Authenticator"); -gettext("Permission"); -gettext("Remove"); -gettext("Confirm revokation of permission"); -gettext("Filter"); -gettext("No entries found"); -gettext("Main"); -gettext("Yes"); -gettext("No"); -gettext("(hidden)"); -gettext("Selected items :"); gettext("Cache flushed"); gettext("dismiss"); -gettext("yes"); -gettext("no"); -gettext("Error saving element"); -gettext("Error handling your request"); +gettext("seconds"); +gettext("provider"); +gettext("service"); +gettext("service pool"); +gettext("authenticator"); +gettext("MFA"); +gettext("user"); +gettext("group"); +gettext("transport"); +gettext("OS manager"); +gettext("calendar"); +gettext("pool group"); +gettext("Go to"); +gettext("Items per page"); gettext("Sunday"); gettext("Monday"); gettext("Tuesday"); @@ -74,41 +85,102 @@ gettext("October"); gettext("November"); gettext("December"); gettext("Never"); -gettext("provider"); -gettext("service"); -gettext("service pool"); -gettext("authenticator"); -gettext("MFA"); -gettext("user"); -gettext("group"); -gettext("transport"); -gettext("OS manager"); -gettext("calendar"); -gettext("pool group"); -gettext("Go to"); -gettext("Items per page"); -gettext("New Transport"); -gettext("Edit Transport"); -gettext("Delete Transport"); -gettext("New Network"); -gettext("Edit Network"); -gettext("Delete Network"); -gettext("New tunnel"); -gettext("Edit tunnel"); -gettext("Delete tunnel"); +gettext("yes"); +gettext("no"); +gettext("Maintenance"); +gettext("Exit maintenance mode"); +gettext("Enter maintenance mode"); +gettext("New provider"); +gettext("Edit provider"); +gettext("Delete provider"); +gettext("Exit maintenance mode?"); +gettext("Enter maintenance mode?"); +gettext("Maintenance mode for"); gettext("In Maintenance"); gettext("Active"); -gettext("Error"); -gettext("Please, select a valid server"); -gettext("Error"); -gettext("This tunnel already has all the tunnel servers available"); -gettext("Remove member from tunnel"); -gettext("New OS Manager"); -gettext("Edit OS Manager"); -gettext("Delete OS Manager"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Service pools"); +gettext("Information"); +gettext("New service"); +gettext("Edit service"); +gettext("Delete service"); +gettext("Delete user service"); +gettext("Maintenance"); +gettext("Exit maintenance mode"); +gettext("Enter maintenance mode"); +gettext("Import CSV"); +gettext("Exit maintenance mode?"); +gettext("Enter maintenance mode?"); +gettext("Maintenance mode for"); +gettext("Import Servers"); +gettext("New server"); +gettext("Edit server"); +gettext("Remove server from server group"); +gettext("New server"); +gettext("Edit server"); +gettext("Delete server"); +gettext("In Maintenance"); +gettext("Active"); +gettext("User"); +gettext("Name"); +gettext("Authenticator"); +gettext("State"); +gettext("Last access"); +gettext("Role"); +gettext("Group"); +gettext("Authenticator"); +gettext("Comments"); +gettext("State"); +gettext("Name"); +gettext("State"); +gettext("User services"); +gettext("In preparation"); +gettext("Usage"); +gettext("Pool group"); +gettext("Name"); +gettext("Service pool"); +gettext("Unique ID"); +gettext("State"); +gettext("IP"); +gettext("In use"); +gettext("Last 7 days"); +gettext("Last 30 days"); +gettext("Last 90 days"); +gettext("Last year"); +gettext("Assigned services"); +gettext("Services in use"); +gettext("Peak sessions"); +gettext("Saturation %"); +gettext("Hits"); +gettext("Misses"); +gettext("Opens"); +gettext("Closes"); +gettext("Hours"); +gettext("Sessions"); +gettext("Errors"); +gettext("Failed attempts"); +gettext("No data for this period"); gettext("New Authenticator"); gettext("Edit Authenticator"); gettext("Delete Authenticator"); +gettext("Match mode"); +gettext("Any"); +gettext("All"); +gettext("Group"); +gettext("Comments"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Unique ID"); +gettext("Friendly Name"); +gettext("In Use"); +gettext("IP"); +gettext("Services Pool"); +gettext("Groups"); +gettext("Services Pools"); +gettext("Assigned services"); gettext("Information"); gettext("Information"); gettext("Clean related (mfa,...)"); @@ -140,46 +212,12 @@ gettext("Blocked"); gettext("Service pools"); gettext("Users"); gettext("Groups"); -gettext("Group"); -gettext("Comments"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Unique ID"); -gettext("Friendly Name"); -gettext("In Use"); -gettext("IP"); -gettext("Services Pool"); -gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned services"); -gettext("Match mode"); -gettext("Any"); -gettext("All"); gettext("New MFA"); gettext("Edit MFA"); gettext("Delete MFA"); -gettext("New Notifier"); -gettext("Edit Notifier"); -gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); -gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"); -gettext("Generate report"); -gettext("Generate report"); -gettext("Generating report..."); -gettext("Report finished"); -gettext("dismiss"); -gettext("Delete image"); -gettext("Error"); -gettext("Image is too big (max. upload size is 256Kb)"); -gettext("Error"); -gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"); -gettext("Error"); -gettext("Please, provide a name and a image"); -gettext("Successfully saved"); -gettext("dismiss"); -gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); -gettext("Configuration saved"); -gettext("dismiss"); +gettext("New pool group"); +gettext("Edit pool group"); +gettext("Delete pool group"); gettext("Delete account usage"); gettext("Set time mark"); gettext("New account"); @@ -189,58 +227,9 @@ gettext("Time mark"); gettext("Set time mark for $NAME to current date/time?"); gettext("Time mark stablished"); gettext("dismiss"); -gettext("Error"); -gettext("Please, select a valid service pool"); -gettext("Remove member pool"); -gettext("Delete assigned service"); -gettext("Delete assigned group"); -gettext("Delete calendar access rule"); -gettext("New meta pool"); -gettext("Edit meta pool"); -gettext("Delete meta pool"); -gettext("(This service does not requires an OS Manager)"); -gettext("New service Pool"); -gettext("Service Pool is locked"); -gettext("This service pool is locked and cannot be edited"); -gettext("Edit Service Pool"); -gettext("Delete service pool"); -gettext("Error"); -gettext("Please, select a valid user"); -gettext("Error"); -gettext("Please, select a valid transport"); -gettext("Error"); -gettext("Please, select a valid user"); -gettext("Logs"); -gettext("VNC"); -gettext("Launch now"); -gettext("Change owner"); -gettext("Assign service"); -gettext("Cancel"); -gettext("Changelog"); -gettext("Fallback: Allow"); -gettext("Fallback: Deny"); -gettext("Refresh"); -gettext("Delete assigned service"); -gettext("Delete cached service"); -gettext("Service pool is locked"); -gettext("Service pool is locked, no changes allowed"); -gettext("Delete assigned group"); -gettext("Delete assigned transport"); -gettext("Publication"); -gettext("Cancel publication?"); -gettext("Publication canceled"); -gettext("dismiss"); -gettext("Delete scheduled action"); -gettext("Execute scheduled action"); -gettext("Execute scheduled action right now?"); -gettext("Scheduled action executed"); -gettext("dismiss"); -gettext("Delete calendar access rule"); -gettext("Cached"); -gettext("Assigned"); -gettext("In use"); -gettext("Error"); -gettext("Please, select a valid group"); +gettext("New calendar"); +gettext("Edit calendar"); +gettext("Delete calendar"); gettext("day"); gettext("days"); gettext("Daily"); @@ -282,97 +271,132 @@ gettext("starting at"); gettext("and every event will be active for"); gettext("with no duration"); gettext("Delete calendar rule"); -gettext("New calendar"); -gettext("Edit calendar"); -gettext("Delete calendar"); -gettext("New pool group"); -gettext("Edit pool group"); -gettext("Delete pool group"); -gettext("Dashboard"); -gettext("Maintenance"); -gettext("Exit maintenance mode"); -gettext("Enter maintenance mode"); -gettext("Import CSV"); -gettext("Exit maintenance mode?"); -gettext("Enter maintenance mode?"); -gettext("Maintenance mode for"); -gettext("Import Servers"); -gettext("New server"); -gettext("Edit server"); -gettext("Remove server from server group"); -gettext("New server"); -gettext("Edit server"); -gettext("Delete server"); -gettext("In Maintenance"); -gettext("Active"); -gettext("Maintenance"); -gettext("Exit maintenance mode"); -gettext("Enter maintenance mode"); -gettext("New provider"); -gettext("Edit provider"); -gettext("Delete provider"); -gettext("Exit maintenance mode?"); -gettext("Enter maintenance mode?"); -gettext("Maintenance mode for"); +gettext("(This service does not requires an OS Manager)"); +gettext("New service Pool"); +gettext("Service Pool is locked"); +gettext("This service pool is locked and cannot be edited"); +gettext("Edit Service Pool"); +gettext("Delete service pool"); +gettext("Error"); +gettext("Please, select a valid transport"); +gettext("Error"); +gettext("Please, select a valid user"); +gettext("Error"); +gettext("Please, select a valid user"); +gettext("Error"); +gettext("Please, select a valid group"); +gettext("Logs"); +gettext("VNC"); +gettext("Launch now"); +gettext("Change owner"); +gettext("Assign service"); +gettext("Cancel"); +gettext("Changelog"); +gettext("Fallback: Allow"); +gettext("Fallback: Deny"); +gettext("Refresh"); +gettext("Delete assigned service"); +gettext("Delete cached service"); +gettext("Service pool is locked"); +gettext("Service pool is locked, no changes allowed"); +gettext("Delete assigned group"); +gettext("Delete assigned transport"); +gettext("Publication"); +gettext("Cancel publication?"); +gettext("Publication canceled"); +gettext("dismiss"); +gettext("Delete scheduled action"); +gettext("Execute scheduled action"); +gettext("Execute scheduled action right now?"); +gettext("Scheduled action executed"); +gettext("dismiss"); +gettext("Delete calendar access rule"); +gettext("Cached"); +gettext("Assigned"); +gettext("In use"); +gettext("Remove member pool"); +gettext("Delete assigned service"); +gettext("Delete assigned group"); +gettext("Delete calendar access rule"); +gettext("Error"); +gettext("Please, select a valid service pool"); +gettext("New meta pool"); +gettext("Edit meta pool"); +gettext("Delete meta pool"); +gettext("New tunnel"); +gettext("Edit tunnel"); +gettext("Delete tunnel"); gettext("In Maintenance"); gettext("Active"); -gettext("Information"); -gettext("New service"); -gettext("Edit service"); -gettext("Delete service"); -gettext("Delete user service"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Service pools"); -gettext("Last 7 days"); -gettext("Last 30 days"); -gettext("Last 90 days"); -gettext("Last year"); -gettext("Assigned services"); -gettext("Services in use"); -gettext("Peak sessions"); -gettext("Saturation %"); -gettext("Hits"); -gettext("Misses"); -gettext("Opens"); -gettext("Closes"); -gettext("Hours"); -gettext("Sessions"); -gettext("Errors"); -gettext("Failed attempts"); -gettext("No data for this period"); -gettext("User"); -gettext("Name"); -gettext("Authenticator"); -gettext("State"); -gettext("Last access"); -gettext("Role"); -gettext("Group"); -gettext("Authenticator"); -gettext("Comments"); -gettext("State"); -gettext("Name"); -gettext("State"); -gettext("User services"); -gettext("In preparation"); -gettext("Usage"); -gettext("Pool group"); -gettext("Name"); -gettext("Service pool"); -gettext("Unique ID"); -gettext("State"); -gettext("IP"); -gettext("In use"); +gettext("Error"); +gettext("Please, select a valid server"); +gettext("Error"); +gettext("This tunnel already has all the tunnel servers available"); +gettext("Remove member from tunnel"); +gettext("New Network"); +gettext("Edit Network"); +gettext("Delete Network"); +gettext("New Transport"); +gettext("Edit Transport"); +gettext("Delete Transport"); +gettext("New OS Manager"); +gettext("Edit OS Manager"); +gettext("Delete OS Manager"); +gettext("Configuration saved"); +gettext("dismiss"); +gettext("New Notifier"); +gettext("Edit Notifier"); +gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); +gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"); +gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"); +gettext("Error"); +gettext("Image is too big (max. upload size is 256Kb)"); +gettext("Error"); +gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"); +gettext("Error"); +gettext("Please, provide a name and a image"); +gettext("Successfully saved"); +gettext("dismiss"); +gettext("Delete image"); +gettext("Generate report"); +gettext("Generate report"); +gettext("Generating report..."); +gettext("Report finished"); +gettext("dismiss"); +gettext("Dashboard"); // HTML -gettext("Close"); -gettext("Yes"); -gettext("No"); +gettext("User mode"); +gettext("Light theme"); +gettext("Dark theme"); +gettext("Logout"); +gettext("Light theme"); +gettext("Dark theme"); gettext("Remove all"); gettext("Cancel"); gettext("Ok"); +gettext("CVS Import options for"); +gettext("Header"); +gettext("CSV contains header line"); +gettext("CSV DOES NOT contains header line"); +gettext("Separator"); +gettext("Use comma"); +gettext("Use semicolon"); +gettext("Use pipe"); +gettext("Use tab"); +gettext("File"); +gettext("Ok"); +gettext("Cancel"); gettext("Discard & close"); gettext("Save"); +gettext("Permissions for"); +gettext("Users"); +gettext("Groups"); +gettext("New permission..."); +gettext("Ok"); +gettext("New user permission for"); +gettext("New group permission for"); +gettext("Cancel"); +gettext("Ok"); gettext("Logs"); gettext("Export"); gettext("Filter"); @@ -390,66 +414,119 @@ gettext("Detail"); gettext("Edit"); gettext("Permissions"); gettext("Delete"); -gettext("CVS Import options for"); -gettext("Header"); -gettext("CSV contains header line"); -gettext("CSV DOES NOT contains header line"); -gettext("Separator"); -gettext("Use comma"); -gettext("Use semicolon"); -gettext("Use pipe"); -gettext("Use tab"); -gettext("File"); +gettext("Summary"); +gettext("Services"); +gettext("Providers"); +gettext("Servers"); +gettext("Authentication"); +gettext("Authenticators"); +gettext("Multi Factor"); +gettext("Os Managers"); +gettext("Connectivity"); +gettext("Transports"); +gettext("Networks"); +gettext("Tunnels"); +gettext("Pools"); +gettext("Service pools"); +gettext("Meta pools"); +gettext("Groups"); +gettext("Calendars"); +gettext("Accounting"); +gettext("Tools"); +gettext("Gallery"); +gettext("Reports"); +gettext("Notifiers"); +gettext("Tokens"); +gettext("Actor"); +gettext("Servers"); +gettext("Configuration"); +gettext("Flush Cache"); +gettext("Close"); +gettext("Yes"); +gettext("No"); +gettext("Summary"); +gettext("Services"); +gettext("Usage"); +gettext("Logs"); +gettext("Information for"); +gettext("Services pools"); +gettext("Logs"); gettext("Ok"); -gettext("Cancel"); -gettext("Permissions for"); +gettext("Summary"); +gettext("Servers"); +gettext("License information"); +gettext("UDS ID"); +gettext("Brand"); +gettext("Support level"); +gettext("Licensed users"); +gettext("Model"); +gettext("Total users"); +gettext("Users with services"); +gettext("Assigned services"); +gettext("Start date"); +gettext("End date"); +gettext("Close"); +gettext("Updated"); +gettext("License expired"); +gettext("License expires in"); +gettext("days"); +gettext("License valid until"); +gettext("Loading dashboard data..."); gettext("Users"); gettext("Groups"); -gettext("New permission..."); -gettext("Ok"); -gettext("New user permission for"); -gettext("New group permission for"); +gettext("Service pools"); +gettext("User services"); +gettext("Assigned services"); +gettext("Users with services"); +gettext("Authenticators"); +gettext("Restrained pools"); +gettext("Peak concurrent sessions per pool"); +gettext("Pool saturation (% of capacity)"); +gettext("Cache hits / misses per pool"); +gettext("Tunnel sessions per pool"); +gettext("Client platforms"); +gettext("Client browsers"); +gettext("Session duration distribution"); +gettext("User services in error per pool"); +gettext("Failed logins per user"); +gettext("Top users by session time"); +gettext("Assigned services chart"); +gettext("In use services chart"); +gettext("Top users detail"); +gettext("User"); +gettext("Sessions"); +gettext("Pools used"); +gettext("Hours"); +gettext("Avg hours/session"); +gettext("restrained services"); +gettext("View service pools"); +gettext("Summary"); +gettext("Users"); +gettext("Groups"); +gettext("Logs"); +gettext("Edit group"); +gettext("New group"); +gettext("Meta group name"); +gettext("Comments"); +gettext("State"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Skip MFA"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Service Pools"); +gettext("Match mode"); +gettext("Any group"); +gettext("All groups"); +gettext("Selected Groups"); gettext("Cancel"); gettext("Ok"); -gettext("User mode"); -gettext("Light theme"); -gettext("Dark theme"); -gettext("Logout"); -gettext("Light theme"); -gettext("Dark theme"); -gettext("Summary"); -gettext("Services"); -gettext("Providers"); -gettext("Servers"); -gettext("Authentication"); -gettext("Authenticators"); -gettext("Multi Factor"); -gettext("Os Managers"); -gettext("Connectivity"); -gettext("Transports"); -gettext("Networks"); -gettext("Tunnels"); -gettext("Pools"); -gettext("Service pools"); -gettext("Meta pools"); +gettext("Information for"); gettext("Groups"); -gettext("Calendars"); -gettext("Accounting"); -gettext("Tools"); -gettext("Gallery"); -gettext("Reports"); -gettext("Notifiers"); -gettext("Tokens"); -gettext("Actor"); -gettext("Servers"); -gettext("Configuration"); -gettext("Flush Cache"); -gettext("Assign new server to tunnel group"); -gettext("Tunnel"); -gettext("Cancel"); +gettext("Services Pools"); +gettext("Assigned Services"); +gettext("Logs"); gettext("Ok"); -gettext("Summary"); -gettext("Tunnel servers"); gettext("Edit user"); gettext("New user"); gettext("Real name"); @@ -470,130 +547,109 @@ gettext("Services Pools"); gettext("Users"); gettext("Groups"); gettext("Ok"); -gettext("Information for"); -gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned Services"); -gettext("Logs"); -gettext("Ok"); -gettext("Edit group"); -gettext("New group"); -gettext("Meta group name"); +gettext("Account usage"); +gettext("Rules"); +gettext("Edit rule"); +gettext("New rule"); +gettext("Name"); gettext("Comments"); -gettext("State"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Skip MFA"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Service Pools"); -gettext("Match mode"); -gettext("Any group"); -gettext("All groups"); -gettext("Selected Groups"); +gettext("Event"); +gettext("Start time"); +gettext("Duration"); +gettext("Duration units"); +gettext("Start date"); +gettext("Repeat until date"); +gettext("Frequency"); +gettext("Week days"); +gettext("Repeat every"); +gettext("Summary"); gettext("Cancel"); gettext("Ok"); -gettext("Summary"); -gettext("Users"); -gettext("Groups"); -gettext("Logs"); -gettext("New image for"); -gettext("Edit for"); -gettext("Image name"); -gettext("Image (click to change)"); -gettext("For optimal results, use \"squared\" images."); -gettext("The image will be resized on upload to"); +gettext("Edit action for"); +gettext("New action for"); +gettext("Calendar"); +gettext("Events offset (minutes)"); +gettext("At the beginning of the interval?"); +gettext("Action"); +gettext("Transport"); +gettext("Authenticator"); +gettext("Group"); gettext("Cancel"); gettext("Ok"); -gettext("UDS Configuration"); -gettext("Save"); -gettext("Account usage"); gettext("Summary"); -gettext("Service pools"); gettext("Assigned services"); +gettext("Cache"); +gettext("Servers"); gettext("Groups"); +gettext("Transports"); +gettext("Publications"); +gettext("Scheduled actions"); gettext("Access calendars"); +gettext("Charts"); gettext("Logs"); -gettext("New member pool"); -gettext("Edit member pool"); -gettext("Priority"); -gettext("Service pool"); -gettext("Enabled?"); +gettext("New transport for"); +gettext("Transport"); gettext("Cancel"); gettext("Ok"); +gettext("Logs of"); +gettext("Ok"); gettext("Assign service to user manually"); gettext("Service"); gettext("Authenticator"); gettext("User"); gettext("Cancel"); gettext("Ok"); -gettext("New transport for"); -gettext("Transport"); -gettext("Cancel"); +gettext("Changelog of"); gettext("Ok"); -gettext("New access rule for"); -gettext("Edit access rule for"); -gettext("Default fallback access for"); -gettext("Priority"); -gettext("Calendar"); -gettext("Action"); +gettext("Change owner of assigned service"); +gettext("Authenticator"); +gettext("User"); gettext("Cancel"); gettext("Ok"); gettext("New publication for"); gettext("Comments"); gettext("Cancel"); gettext("Ok"); -gettext("Logs of"); -gettext("Ok"); -gettext("Changelog of"); -gettext("Ok"); -gettext("Change owner of assigned service"); +gettext("New group for"); gettext("Authenticator"); -gettext("User"); +gettext("Group"); gettext("Cancel"); gettext("Ok"); -gettext("Edit action for"); -gettext("New action for"); +gettext("New access rule for"); +gettext("Edit access rule for"); +gettext("Default fallback access for"); +gettext("Priority"); gettext("Calendar"); -gettext("Events offset (minutes)"); -gettext("At the beginning of the interval?"); gettext("Action"); -gettext("Transport"); -gettext("Authenticator"); -gettext("Group"); +gettext("Cancel"); +gettext("Ok"); +gettext("New member pool"); +gettext("Edit member pool"); +gettext("Priority"); +gettext("Service pool"); +gettext("Enabled?"); gettext("Cancel"); gettext("Ok"); gettext("Summary"); +gettext("Service pools"); gettext("Assigned services"); -gettext("Cache"); -gettext("Servers"); gettext("Groups"); -gettext("Transports"); -gettext("Publications"); -gettext("Scheduled actions"); gettext("Access calendars"); -gettext("Charts"); gettext("Logs"); -gettext("New group for"); -gettext("Authenticator"); -gettext("Group"); +gettext("Summary"); +gettext("Tunnel servers"); +gettext("Assign new server to tunnel group"); +gettext("Tunnel"); gettext("Cancel"); gettext("Ok"); -gettext("Rules"); -gettext("Edit rule"); -gettext("New rule"); -gettext("Name"); -gettext("Comments"); -gettext("Event"); -gettext("Start time"); -gettext("Duration"); -gettext("Duration units"); -gettext("Start date"); -gettext("Repeat until date"); -gettext("Frequency"); -gettext("Week days"); -gettext("Repeat every"); -gettext("Summary"); +gettext("UDS Configuration"); +gettext("Save"); +gettext("New image for"); +gettext("Edit for"); +gettext("Image name"); +gettext("Image (click to change)"); +gettext("For optimal results, use \"squared\" images."); +gettext("The image will be resized on upload to"); gettext("Cancel"); gettext("Ok"); gettext("UDS Administration"); @@ -601,59 +657,3 @@ gettext("You are accessing UDS Administration as staff member."); gettext("This means that you have restricted access to elements."); gettext("In order to increase your access privileges, please contact your local UDS administrator."); gettext("Thank you."); -gettext("Summary"); -gettext("Servers"); -gettext("Information for"); -gettext("Services pools"); -gettext("Logs"); -gettext("Ok"); -gettext("Summary"); -gettext("Services"); -gettext("Usage"); -gettext("Logs"); -gettext("License information"); -gettext("UDS ID"); -gettext("Brand"); -gettext("Support level"); -gettext("Licensed users"); -gettext("Model"); -gettext("Total users"); -gettext("Users with services"); -gettext("Assigned services"); -gettext("Start date"); -gettext("End date"); -gettext("Close"); -gettext("Updated"); -gettext("License expired"); -gettext("License expires in"); -gettext("days"); -gettext("License valid until"); -gettext("Loading dashboard data..."); -gettext("Users"); -gettext("Groups"); -gettext("Service pools"); -gettext("User services"); -gettext("Assigned services"); -gettext("Users with services"); -gettext("Authenticators"); -gettext("Restrained pools"); -gettext("Peak concurrent sessions per pool"); -gettext("Pool saturation (% of capacity)"); -gettext("Cache hits / misses per pool"); -gettext("Tunnel sessions per pool"); -gettext("Client platforms"); -gettext("Client browsers"); -gettext("Session duration distribution"); -gettext("User services in error per pool"); -gettext("Failed logins per user"); -gettext("Top users by session time"); -gettext("Assigned services chart"); -gettext("In use services chart"); -gettext("Top users detail"); -gettext("User"); -gettext("Sessions"); -gettext("Pools used"); -gettext("Hours"); -gettext("Avg hours/session"); -gettext("restrained services"); -gettext("View service pools"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 306412576..ac4676d3f 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + From 6ba2a23a46b906a076d3626ca93de310e8326d98 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Fri, 24 Jul 2026 16:02:58 +0200 Subject: [PATCH 12/14] Update script references in admin index.html with new version stamps --- src/uds/static/admin/main.js | 2 +- src/uds/templates/uds/admin/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index 614836a94..c2875a9da 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:lo,useClass:sq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var ea=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return So(this.api.http.get(n,{headers:this.headers,observe:"response"}),ea).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e,n){return e=e!==void 0?e:i.id,this.typedPut(i,e,n)}test(i,e){return So(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(Bi(n=>this.handleError(n))),ea)}delete(i){return So(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return So(this.api.http.put(r,a,{headers:this.headers}).pipe(Bi(s=>this.handleError(s))),ea)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return So(this.api.http.put(e,n,{headers:this.headers}).pipe(Bi(o=>this.handleError(o))),ea)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return So(this.api.http.get(i,{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}doGetWithEtag(i){return So(this.api.http.get(i,{headers:this.headers,observe:"response"}).pipe(Qe(e=>{let n=e.body;return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n._etag=e.headers.get("ETag")??null),n}),Bi(e=>this.handleError(e))),ea)}typedGet(i){return this.doGetWithEtag(this.getPath(this.base,i))}typedPut(i,e,n){let o=n!=null?this.headers.set("If-Match",n):this.headers;return So(this.api.http.put(this.getPath(this.base,e),i,{headers:o}).pipe(Bi(r=>this.handleError(r,!0))),ea)}typedPost(i,e){return So(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(Bi(n=>this.handleError(n,!0))),ea)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?So(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea):So(this.api.http.post(o,{},{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/set_fallback_access","fallbackAccess="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return So(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return So(this.api.http.get(this.getPath(this.base),{headers:this.headers}),ea).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fq=["determinateSpinner"];function gq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var _q=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,vq=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(_q),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-vq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(fq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,gq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),Da(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:lo,useClass:sq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var ea=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return So(this.api.http.get(n,{headers:this.headers,observe:"response"}),ea).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e,n){return e=e!==void 0?e:i.id,this.typedPut(i,e,n)}test(i,e){return So(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(Bi(n=>this.handleError(n))),ea)}delete(i){return So(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return So(this.api.http.put(r,a,{headers:this.headers}).pipe(Bi(s=>this.handleError(s))),ea)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return So(this.api.http.put(e,n,{headers:this.headers}).pipe(Bi(o=>this.handleError(o))),ea)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return So(this.api.http.get(i,{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}doGetWithEtag(i){return So(this.api.http.get(i,{headers:this.headers,observe:"response"}).pipe(Qe(e=>{let n=e.body;return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n._etag=e.headers.get("ETag")??null),n}),Bi(e=>this.handleError(e))),ea)}typedGet(i){return this.doGetWithEtag(this.getPath(this.base,i))}typedPut(i,e,n){let o=n!=null?this.headers.set("If-Match",n):this.headers;return So(this.api.http.put(this.getPath(this.base,e),i,{headers:o}).pipe(Bi(r=>this.handleError(r,!0))),ea)}typedPost(i,e){return So(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(Bi(n=>this.handleError(n,!0))),ea)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?So(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea):So(this.api.http.post(o,{},{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke("/set_fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke("/set_fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return So(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return So(this.api.http.get(this.getPath(this.base),{headers:this.headers}),ea).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fq=["determinateSpinner"];function gq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var _q=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,vq=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(_q),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-vq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(fq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,gq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),Da(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index ac4676d3f..5f4fd37b8 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + From af8798d6b70c876925f620c72a83ed586f4aa820 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Mon, 27 Jul 2026 10:41:44 +0200 Subject: [PATCH 13/14] chore(admin): rebuild bundle from integration-dashboard-etag Aligns the admin static bundle with gui/admin integration-dashboard-etag: 412 ConflictError UX, create via POST, license badge, and the unified fallback_access endpoint. Reconciles the dashboard/cache-revert source branch with the best-of bundle in a single branch. --- src/uds/static/admin/main.js | 120 ++++++++++---------- src/uds/static/admin/translations-fakejs.js | 1 + src/uds/templates/uds/admin/index.html | 2 +- 3 files changed, 62 insertions(+), 61 deletions(-) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index c2875a9da..90414b456 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,8 +1,8 @@ -var b4=Object.defineProperty,y4=Object.defineProperties;var C4=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var LT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable;var FT=(t,i,e)=>i in t?b4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,G=(t,i)=>{for(var e in i||={})LT.call(i,e)&&FT(t,e,i[e]);if(Vf)for(var e of Vf(i))VT.call(i,e)&&FT(t,e,i[e]);return t},Ye=(t,i)=>y4(t,C4(i));var uC=(t,i)=>{var e={};for(var n in t)LT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Vf)for(var n of Vf(t))i.indexOf(n)<0&&VT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var vo=null,Bf=!1,mC=1,x4=null,xi=Symbol("SIGNAL");function ut(t){let i=vo;return vo=t,i}function jf(){return vo}var ml={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pl(t){if(Bf)throw new Error("");if(vo===null)return;vo.consumerOnSignalRead(t);let i=vo.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=vo.recomputing;if(n&&(e=i!==void 0?i.nextProducer:vo.producers,e!==void 0&&e.producer===t)){vo.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===vo&&(!n||D4(o,vo)))return;let r=Xd(vo),a={producer:t,consumer:vo,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};vo.producersTail=a,i!==void 0?i.nextProducer=a:vo.producers=a,r&&UT(t,a)}function BT(){mC++}function gc(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===mC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function pC(t){if(t.consumers===void 0)return;let i=Bf;Bf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||w4(n)}}finally{Bf=i}}function hC(){return vo?.consumerAllowSignalWrites!==!1}function w4(t){t.dirty=!0,pC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=mC}function Es(t){return t&&jT(t),ut(t)}function jT(t){t.producersTail=void 0,t.recomputing=!0}function hl(t,i){ut(i),t&&zT(t)}function zT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=fC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(gc(e),n!==e.version))return!0}return!1}function fl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=fC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function UT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)UT(o.producer,o)}function fC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=fC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){x4?.(t)}function D4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(S4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(gc(e),pl(e),e.value===Xa)throw e.error;return e.value};return n[xi]=e,Zm(e),n}var hc=Symbol("UNSET"),fc=Symbol("COMPUTING"),Xa=Symbol("ERRORED"),S4=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==hc&&i!==Xa&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function E4(){throw new Error}var HT=E4;function WT(t){HT(t)}function gC(t){HT=t}var M4=null;function _C(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>$T(e);return n[xi]=e,Zm(e),[n,a=>_c(e,a),a=>zf(e,a)]}function $T(t){return pl(t),t.value}function _c(t,i){hC()||WT(t),t.equal(t.value,i)||(t.value=i,T4(t))}function zf(t,i){hC()||WT(t),_c(t,i(t.value))}var ep=Ye(G({},ml),{equal:Xm,value:void 0,kind:"signal"});function T4(t){t.version++,BT(),pC(t),M4?.(t)}var vC=Ye(G({},ml),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function bC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Es(t);try{t.cleanup(),t.fn()}finally{hl(t,i)}}function _t(t){return typeof t=="function"}function gl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Uf=gl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var y4=Object.defineProperty,C4=Object.defineProperties;var w4=Object.getOwnPropertyDescriptors;var Bf=Object.getOwnPropertySymbols;var VT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var LT=(t,i,e)=>i in t?y4(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,q=(t,i)=>{for(var e in i||={})VT.call(i,e)&<(t,e,i[e]);if(Bf)for(var e of Bf(i))BT.call(i,e)&<(t,e,i[e]);return t},Ye=(t,i)=>C4(t,w4(i));var mC=(t,i)=>{var e={};for(var n in t)VT.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&Bf)for(var n of Bf(t))i.indexOf(n)<0&&BT.call(t,n)&&(e[n]=t[n]);return e};var B=(t,i,e)=>new Promise((n,o)=>{var r=l=>{try{s(e.next(l))}catch(u){o(u)}},a=l=>{try{s(e.throw(l))}catch(u){o(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,a);s((e=e.apply(t,i)).next())});var vo=null,jf=!1,pC=1,x4=null,wi=Symbol("SIGNAL");function ut(t){let i=vo;return vo=t,i}function zf(){return vo}var ml={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pl(t){if(jf)throw new Error("");if(vo===null)return;vo.consumerOnSignalRead(t);let i=vo.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=vo.recomputing;if(n&&(e=i!==void 0?i.nextProducer:vo.producers,e!==void 0&&e.producer===t)){vo.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===vo&&(!n||S4(o,vo)))return;let r=Xd(vo),a={producer:t,consumer:vo,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};vo.producersTail=a,i!==void 0?i.nextProducer=a:vo.producers=a,r&&HT(t,a)}function jT(){pC++}function _c(t){if(!(Xd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===pC)){if(!t.producerMustRecompute(t)&&!Zd(t)){Kd(t);return}t.producerRecomputeValue(t),Kd(t)}}function hC(t){if(t.consumers===void 0)return;let i=jf;jf=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||D4(n)}}finally{jf=i}}function fC(){return vo?.consumerAllowSignalWrites!==!1}function D4(t){t.dirty=!0,hC(t),t.consumerMarkedDirty?.(t)}function Kd(t){t.dirty=!1,t.lastCleanEpoch=pC}function Es(t){return t&&zT(t),ut(t)}function zT(t){t.producersTail=void 0,t.recomputing=!0}function hl(t,i){ut(i),t&&UT(t)}function UT(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Xd(t))do e=gC(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function Zd(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(_c(e),n!==e.version))return!0}return!1}function fl(t){if(Xd(t)){let i=t.producers;for(;i!==void 0;)i=gC(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function HT(t,i){let e=t.consumersTail,n=Xd(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)HT(o.producer,o)}function gC(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Xd(i)){let r=i.producers;for(;r!==void 0;)r=gC(r)}return e}function Xd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Zm(t){x4?.(t)}function S4(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function Xm(t,i){return Object.is(t,i)}function Jm(t,i){let e=Object.create(E4);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(_c(e),pl(e),e.value===Xa)throw e.error;return e.value};return n[wi]=e,Zm(e),n}var fc=Symbol("UNSET"),gc=Symbol("COMPUTING"),Xa=Symbol("ERRORED"),E4=Ye(q({},ml),{value:fc,dirty:!0,error:null,equal:Xm,kind:"computed",producerMustRecompute(t){return t.value===fc||t.value===gc},producerRecomputeValue(t){if(t.value===gc)throw new Error("");let i=t.value;t.value=gc;let e=Es(t),n,o=!1;try{n=t.computation(),ut(null),o=i!==fc&&i!==Xa&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function M4(){throw new Error}var WT=M4;function $T(t){WT(t)}function _C(t){WT=t}var T4=null;function vC(t,i){let e=Object.create(ep);e.value=t,i!==void 0&&(e.equal=i);let n=()=>GT(e);return n[wi]=e,Zm(e),[n,a=>vc(e,a),a=>Uf(e,a)]}function GT(t){return pl(t),t.value}function vc(t,i){fC()||$T(t),t.equal(t.value,i)||(t.value=i,I4(t))}function Uf(t,i){fC()||$T(t),vc(t,i(t.value))}var ep=Ye(q({},ml),{equal:Xm,value:void 0,kind:"signal"});function I4(t){t.version++,jT(),hC(t),T4?.(t)}var bC=Ye(q({},ml),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function yC(t){if(t.dirty=!1,t.version>0&&!Zd(t))return;t.version++;let i=Es(t);try{t.cleanup(),t.fn()}finally{hl(t,i)}}function _t(t){return typeof t=="function"}function gl(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Hf=gl(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Uf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{GT(r)}catch(a){i=i??[],a instanceof Uf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Uf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)GT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vc(e,i)}remove(i){let{_finalizers:e}=this;e&&vc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var yC=Ue.EMPTY;function Hf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function GT(t){_t(t)?t():t.unsubscribe()}var ma={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wf(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ma;if(i)i(t);else throw t})}function bc(){}var qT=CC("C",void 0,void 0);function YT(t){return CC("E",void 0,t)}function QT(t){return CC("N",t,void 0)}function CC(t,i,e){return{kind:t,value:i,error:e}}var yc=null;function eu(t){if(ma.useDeprecatedSynchronousErrorHandling){let i=!yc;if(i&&(yc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=yc;if(yc=null,e)throw n}}else t()}function KT(t){ma.useDeprecatedSynchronousErrorHandling&&yc&&(yc.errorThrown=!0,yc.error=t)}var Cc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Hf(i)&&i.add(this)):this.destination=A4}static create(i,e,n){return new pa(i,e,n)}next(i){this.isStopped?wC(QT(i),this):this._next(i)}error(i){this.isStopped?wC(YT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?wC(qT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},I4=Function.prototype.bind;function xC(t,i){return I4.call(t,i)}var DC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){$f(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){$f(n)}else $f(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){$f(e)}}},pa=class extends Cc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ma.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new DC(o)}};function $f(t){ma.useDeprecatedSynchronousErrorHandling?KT(t):Wf(t)}function k4(t){throw t}function wC(t,i){let{onStoppedNotification:e}=ma;e&&Jd.setTimeout(()=>e(t,i))}var A4={closed:!0,next:bc,error:k4,complete:bc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function SC(...t){return EC(t)}function EC(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=O4(e)?e:new pa(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ZT(n),new n((o,r)=>{let a=new pa({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return EC(e)(this)}toPromise(e){return e=ZT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ZT(t){var i;return(i=t??ma.Promise)!==null&&i!==void 0?i:Promise}function R4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function O4(t){return t&&t instanceof Cc||R4(t)&&Hf(t)}function MC(t){return _t(t?.lift)}function kt(t){return i=>{if(MC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new TC(t,i,e,n,o)}var TC=class extends Cc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function XT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return XT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var JT=gl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Gf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new JT}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?yC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,vc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new Gf(i,e),t})(),Gf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:yC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Br=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;aeI(i)&&t()),i},clearImmediate(t){eI(t)}};var{setImmediate:N4,clearImmediate:F4}=tI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||N4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||F4)(t)},delegate:void 0};var Yf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var vl=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Qf=class extends vl{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Kf=new Qf(Yf);var ha=new vl(_l),nI=ha;var Zf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Xf=class extends vl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Jf=new Xf(Zf);var hi=new dt(t=>t.complete());function eg(t){return t&&_t(t.schedule)}function AC(t){return t[t.length-1]}function tg(t){return _t(AC(t))?t.pop():void 0}function Ja(t){return eg(AC(t))?t.pop():void 0}function iI(t,i){return typeof AC(t)=="number"?t.pop():i}function rI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function oI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function aI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(S){return Promise.resolve(S).then(w,g)}}function s(w,S){n[w]&&(o[w]=function(P){return new Promise(function(j,F){r.push([w,P,j,F])>1||l(w,P)})},S&&(o[w]=S(o[w])))}function l(w,S){try{u(n[w](S))}catch(P){y(r[0][3],P)}}function u(w){w.value instanceof xc?Promise.resolve(w.value.v).then(h,g):y(r[0][2],w)}function h(w){l("next",w)}function g(w){l("throw",w)}function y(w,S){w(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function sI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof oI=="function"?oI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ng(t){return _t(t?.then)}function ig(t){return _t(t[tu])}function og(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function rg(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function L4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ag=L4();function sg(t){return _t(t?.[ag])}function lg(t){return aI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function cg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(ig(t))return V4(t);if(ou(t))return B4(t);if(ng(t))return j4(t);if(og(t))return lI(t);if(sg(t))return z4(t);if(cg(t))return U4(t)}throw rg(t)}function V4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function B4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Wf)})}function z4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function lI(t){return new dt(i=>{H4(t,i).catch(e=>i.error(e))})}function U4(t){return lI(lg(t))}function H4(t,i){var e,n,o,r;return rI(this,void 0,void 0,function*(){try{for(e=sI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function bo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function dg(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>bo(n,t,()=>n.next(o),i),()=>bo(n,t,()=>n.complete(),i),o=>bo(n,t,()=>n.error(o),i)))})}function ug(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function cI(t,i){return gn(t).pipe(ug(i),dg(i))}function dI(t,i){return gn(t).pipe(ug(i),dg(i))}function uI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function mI(t,i){return new dt(e=>{let n;return bo(e,i,()=>{n=t[ag](),bo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function mg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{bo(e,i,()=>{let n=t[Symbol.asyncIterator]();bo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function pI(t,i){return mg(lg(t),i)}function hI(t,i){if(t!=null){if(ig(t))return cI(t,i);if(ou(t))return uI(t,i);if(ng(t))return dI(t,i);if(og(t))return mg(t,i);if(sg(t))return mI(t,i);if(cg(t))return pI(t,i)}throw rg(t)}function Hn(t,i){return i?hI(t,i):gn(t)}function Me(...t){let i=Ja(t);return Hn(t,i)}function wc(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Ms=gl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function pg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new pa({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Ms)}});t.subscribe(r)})}function hg(t){return t instanceof Date&&!isNaN(t)}var W4=gl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function RC(t,i){let{first:e,each:n,with:o=$4,scheduler:r=i??ha,meta:a=null}=hg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,w=S=>{h=bo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&w(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&w(e!=null?typeof e=="number"?e:+e-r.now():n)})}function $4(t){throw new W4(t)}function Qe(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:G4}=Array;function q4(t,i){return G4(i)?t(...i):t(i)}function ru(t){return Qe(i=>q4(t,i))}var{isArray:Y4}=Array,{getPrototypeOf:Q4,prototype:K4,keys:Z4}=Object;function fg(t){if(t.length===1){let i=t[0];if(Y4(i))return{args:i,keys:null};if(X4(i)){let e=Z4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function X4(t){return t&&typeof t=="object"&&Q4(t)===K4}function gg(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function yo(...t){let i=Ja(t),e=tg(t),{args:n,keys:o}=fg(t);if(n.length===0)return Hn([],i);let r=new dt(J4(n,i,o?a=>gg(o,a):mr));return e?r.pipe(ru(e)):r}function J4(t,i,e=mr){return n=>{fI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function fI(t,i,e){t?bo(e,t,i):i()}function gI(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},w=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?w(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,w,()=>{g=!0,y()})),()=>{s?.()}}function wi(t,i,e=1/0){return _t(i)?wi((n,o)=>Qe((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>gI(n,o,t,e)))}function bl(t=1/0){return wi(mr,t)}function _I(){return bl(1)}function es(...t){return _I()(Hn(t,Ja(t)))}function pr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=tg(t),{args:e,keys:n}=fg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?gg(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var ez=["addListener","removeListener"],tz=["addEventListener","removeEventListener"],nz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=rz(t)?tz.map(a=>s=>t[a](i,s,e)):iz(t)?ez.map(vI(t,i)):oz(t)?nz.map(vI(t,i)):[];if(!o&&ou(t))return wi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function vI(t,i){return e=>n=>t[e](i,n)}function iz(t){return _t(t.addListener)&&_t(t.removeListener)}function oz(t){return _t(t.on)&&_t(t.off)}function rz(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ts(t=0,i,e=nI){let n=-1;return i!=null&&(eg(i)?e=i:n=i),new dt(o=>{let r=hg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=ha){return t<0&&(t=0),Ts(t,t,i)}function rn(...t){let i=Ja(t),e=iI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):bl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function bI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=ha){return bI(()=>Ts(t,i))}function Bi(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,Bi(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function yl(t,i){return _t(i)?wi(t,i,1):wi(t,1)}function Is(t,i=ha){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function yI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function CI(){return kt((t,i)=>{t.subscribe(Et(i,bc))})}function xI(t){return Qe(()=>t)}function OC(t,i){return i?e=>es(i.pipe(bn(1),CI()),e.pipe(OC(t))):wi((e,n)=>gn(t(e,n)).pipe(bn(1),xI(e)))}function sp(t,i=ha){let e=Ts(t,i);return OC(()=>e)}function _g(t,i=mr){return t=t??az,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function az(t,i){return t===i}function wI(t=sz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function sz(){return new Ms}function Cl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ks(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):mr,bn(1),e?yI(i):wI(()=>new Ms))}function vg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function bg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},w=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;w(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=PC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new pa({next:q=>F.next(q),error:q=>{g=!0,y(),s=PC(w,e,q),F.error(q)},complete:()=>{h=!0,y(),s=PC(w,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function PC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new pa({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function yg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Br(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Ja(t);return kt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Je(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),bc)),!e.closed&&i.subscribe(e)})}function NC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):mr}var FC;function Cg(){return FC}function ts(t){let i=FC;return FC=t,i}var DI=Symbol("NotFound");function su(t){return t===DI||t?.name==="\u0275NotFound"}function LC(t,i,e){let n=Object.create(lz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(gc(n),pl(n),n.value===Xa)throw n.error;return n.value};return r[xi]=n,Zm(n),r}function SI(t,i){gc(t),_c(t,i),Kd(t)}function EI(t,i){if(gc(t),t.value===Xa)throw t.error;zf(t,i),Kd(t)}var lz=Ye(G({},ml),{value:hc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===hc||t.value===fc},producerRecomputeValue(t){if(t.value===fc)throw new Error("");let i=t.value;t.value=fc;let e=Es(t),n,o=!1;try{let r=t.source(),a=i!==hc&&i!==Xa,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function MI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Tg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(ga(i,e)),this.code=i}};function cz(t){return`NG0${Math.abs(t)}`}function ga(t,i){return`${cz(t)}${i?": "+i:""}`}var xo=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function RI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function Ig(t,i){return t?i?`${t} ${i}`:t:i||""}var dz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function ji(t){return KC(t)?t():t}function KC(t){return typeof t=="function"&&t.hasOwnProperty(dz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return uz(t,kg)}function ZC(t){return gp(t)!==null}function uz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function mz(t){let i=t?.[kg]??null;return i||null}function BC(t){return t&&t.hasOwnProperty(wg)?t[wg]:null}var kg=Rn({\u0275prov:Rn}),wg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),JC=Rn({\u0275pipe:Rn}),ex=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),TI=Rn({__NG_ENV_ID__:Rn});function tx(t){return Rg(t,"@NgModule"),t[ex]||null}function ns(t){return Rg(t,"@Component"),t[_p]||null}function Ag(t){return Rg(t,"@Directive"),t[vp]||null}function nx(t){return Rg(t,"@Pipe"),t[JC]||null}function Rg(t,i){if(t==null)throw new ie(-919,!1)}function _a(t){return typeof t=="string"?t:t==null?"":String(t)}var OI=Rn({ngErrorCode:Rn}),pz=Rn({ngErrorMessage:Rn}),hz=Rn({ngTokenPath:Rn});function ix(t,i){return PI("",-200,i)}function Og(t,i){throw new ie(-201,!1)}function PI(t,i,e){let n=new ie(i,t);return n[OI]=i,n[pz]=t,e&&(n[hz]=e),n}function fz(t){return t[OI]}var jC;function NI(){return jC}function Ao(t){let i=jC;return jC=t,i}function ox(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Og(t,"")}var gz={},Mc=gz,_z="__NG_DI_FLAG__",zC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function vz(t,i=0){let e=Cg();if(e===void 0)throw new ie(-203,!1);if(e===null)return ox(t,void 0,i);{let n=bz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function we(t,i=0){return(NI()||vz)(ji(t),i)}function p(t,i){return we(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function UC(t){let i=[];for(let e=0;eArray.isArray(e)?Pg(e,i):i(e))}function rx(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function VI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Ng(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,BI(t,n,i,e)),n}function Fg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return Cz(t,i,1)}function Cz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Pg(i,a=>{let s=a;Dg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&zI(o,r),e}function zI(t,i){for(let e=0;e{i(r,n)})}}function Dg(t,i,e,n){if(t=ji(t),!t)return!1;let o=null,r=BC(t),a=!r&&ns(t);if(!r&&!a){let l=t.ngModule;if(r=BC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Dg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Pg(r.imports,h=>{Dg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&zI(u,i)}if(!s){let u=xl(o)||(()=>new o);i({provide:o,useFactory:u,deps:Co},o),i({provide:sx,useValue:o,multi:!0},o),i({provide:Rs,useValue:()=>we(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;cx(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function cx(t,i){for(let e of t)XC(e)&&(e=e.\u0275providers),Array.isArray(e)?cx(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function UI(t){return t!==null&&typeof t=="object"&&xz in t}function wz(t){return!!(t&&t.useExisting)}function Dz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function HI(t){return!!t.useClass}var yp=new L(""),xg={},II={},VC;function du(){return VC===void 0&&(VC=new up),VC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,WC(i,a=>this.processProvider(a)),this.records.set(ax,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(sx,Co,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=ts(this),n=Ao(void 0),o;try{return i()}finally{ts(e),Ao(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(TI))return i[TI](this);let o=Tc(n),r,a=ts(this),s=Ao(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=Iz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(HC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=fz(l);throw u===-200||u===-201?new ie(u,null):l}finally{Ao(s),ts(a)}}resolveInjectorInitializers(){let i=ut(null),e=ts(this),n=Ao(void 0),o;try{let r=this.get(Rs,Co,{self:!0});for(let a of r)a()}finally{ts(e),Ao(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=ji(i);let e=Ic(i)?i:ji(i&&i.provide),n=Ez(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>UC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===II)throw ix("");return e.value===xg&&(e.value=II,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Tz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=ji(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function HC(t){let i=gp(t),e=i!==null?i.factory:xl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Sz(t);throw new ie(-204,!1)}function Sz(t){if(t.length>0)throw new ie(-204,!1);let e=mz(t);return e!==null?()=>e.factory(t):()=>new t}function Ez(t){if(UI(t))return lu(void 0,t.useValue);{let i=dx(t);return lu(i,xg)}}function dx(t,i,e){let n;if(Ic(t)){let o=ji(t);return xl(o)||HC(o)}else if(UI(t))n=()=>ji(t.useValue);else if(Dz(t))n=()=>t.useFactory(...UC(t.deps||[]));else if(wz(t))n=(o,r)=>we(ji(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=ji(t&&(t.useClass||t.provide));if(Mz(t))n=()=>new o(...UC(t.deps));else return xl(o)||HC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Mz(t){return!!t.deps}function Tz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Iz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function WC(t,i){for(let e of t)Array.isArray(e)?WC(e,i):e&&XC(e)?WC(e.\u0275providers,i):i(e)}function Ui(t,i){let e;t instanceof kc?(cp(t),e=t):e=new zC(t);let n,o=ts(e),r=Ao(void 0);try{return i()}finally{ts(o),Ao(r)}}function ux(){return NI()!==void 0||Cg()!=null}var ba=0,mt=1,Ot=2,zi=3,jr=4,Oo=5,Rc=6,uu=7,Di=8,Os=9,ya=10,Vn=11,mu=12,mx=13,Oc=14,Po=15,El=16,Pc=17,is=18,Ps=19,px=20,As=21,Lg=22,wl=23,hr=24,Nc=25,Ml=26,si=27,WI=1,hx=6,Tl=7,Cp=8,Fc=9,vi=10;function Ns(t){return Array.isArray(t)&&typeof t[WI]=="object"}function Ca(t){return Array.isArray(t)&&t[WI]===!0}function fx(t){return(t.flags&4)!==0}function os(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function xa(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var gx="svg",$I="math";function zr(t){for(;Array.isArray(t);)t=t[ba];return t}function _x(t,i){return zr(i[t])}function Ur(t,i){return zr(i[t.index])}function Vg(t,i){return t.data[i]}function Bg(t,i){return t[i]}function vx(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Hr(t,i){let e=i[t];return Ns(e)?e:e[ba]}function GI(t){return(t[Ot]&4)===4}function jg(t){return(t[Ot]&128)===128}function qI(t){return Ca(t[zi])}function fr(t,i){return i==null?null:t[i]}function bx(t){t[Pc]=0}function yx(t){t[Ot]&1024||(t[Ot]|=1024,jg(t)&&Vc(t))}function YI(t,i){for(;t>0;)i=i[Oc],t--;return i}function xp(t){return!!(t[Ot]&9216||t[hr]?.dirty)}function zg(t){t[ya].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),xp(t)&&Vc(t)}function Vc(t){t[ya].changeDetectionScheduler?.notify(0);let i=Dl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!jg(i)));)i=Dl(i)}function Cx(t,i){if(Lc(t))throw new ie(911,!1);t[As]===null&&(t[As]=[]),t[As].push(i)}function QI(t,i){if(t[As]===null)return;let e=t[As].indexOf(i);e!==-1&&t[As].splice(e,1)}function Dl(t){let i=t[zi];return Ca(i)?i[zi]:i}function xx(t){return t[uu]??=[]}function wx(t){return t.cleanup??=[]}function KI(t,i,e,n){let o=xx(i);o.push(e),t.firstCreatePass&&wx(t).push(n,o.length-1)}var Ut={lFrame:sk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $C=!1;function ZI(){return Ut.lFrame.elementDepthCount}function XI(){Ut.lFrame.elementDepthCount++}function Dx(){Ut.lFrame.elementDepthCount--}function Ug(){return Ut.bindingsEnabled}function Sx(){return Ut.skipHydrationRootTNode!==null}function Ex(t){return Ut.skipHydrationRootTNode===t}function Mx(){Ut.skipHydrationRootTNode=null}function lt(){return Ut.lFrame.lView}function $n(){return Ut.lFrame.tView}function I(t){return Ut.lFrame.contextLView=t,t[Di]}function k(t){return Ut.lFrame.contextLView=null,t}function ki(){let t=Tx();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tx(){return Ut.lFrame.currentTNode}function JI(){let t=Ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ut.lFrame;e.currentTNode=t,e.isParent=i}function Ix(){return Ut.lFrame.isParent}function kx(){Ut.lFrame.isParent=!1}function ek(){return Ut.lFrame.contextLView}function Ax(){return $C}function mp(t){let i=$C;return $C=t,i}function gu(){let t=Ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Rx(){return Ut.lFrame.bindingIndex}function tk(t){return Ut.lFrame.bindingIndex=t}function rs(){return Ut.lFrame.bindingIndex++}function wp(t){let i=Ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function nk(){return Ut.lFrame.inI18n}function ik(t,i){let e=Ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hg(i)}function ok(){return Ut.lFrame.currentDirectiveIndex}function Hg(t){Ut.lFrame.currentDirectiveIndex=t}function rk(t){let i=Ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Wg(){return Ut.lFrame.currentQueryIndex}function Dp(t){Ut.lFrame.currentQueryIndex=t}function kz(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Oo]:null}function Ox(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=kz(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ut.lFrame=ak();return n.currentTNode=i,n.lView=t,!0}function $g(t){let i=ak(),e=t[mt];Ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ak(){let t=Ut.lFrame,i=t===null?null:t.child;return i===null?sk(t):i}function sk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function lk(){let t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Px=lk;function Gg(){let t=lk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ck(t){return(Ut.lFrame.contextLView=YI(t,Ut.lFrame.contextLView))[Di]}function wa(){return Ut.lFrame.selectedIndex}function Il(t){Ut.lFrame.selectedIndex=t}function _u(){let t=Ut.lFrame;return Vg(t.tView,t.selectedIndex)}function Gn(){Ut.lFrame.currentNamespace=gx}function Da(){Az()}function Az(){Ut.lFrame.currentNamespace=null}function Nx(){return Ut.lFrame.currentNamespace}var dk=!0;function qg(){return dk}function Sp(t){dk=t}function GC(t,i=null,e=null,n){let o=Fx(t,i,e,n);return o.resolveInjectorInitializers(),o}function Fx(t,i=null,e=null,n,o=new Set){let r=[e||Co,jI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return GC({name:""},e,i,"");{let n=i.name??"";return GC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>we(ax)});static __NG_ELEMENT_ID__=-1},ke=new L(""),wo=(()=>{class t{static __NG_ELEMENT_ID__=Rz;static __NG_ENV_ID__=e=>e}return t})(),Sg=class extends wo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return Cx(e,i),()=>QI(e,i)}};function Rz(){return new Sg(lt())}var Lx=!1,uk=new L(""),as=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(uk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),qC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,ux()&&(this.destroyRef=p(wo,{optional:!0})??void 0,this.pendingTasks=p(as,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=qC;function Eg(...t){}function Vx(t){let i,e;function n(){t=Eg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mk(t){return queueMicrotask(()=>t()),()=>{t=Eg}}var Bx="isAngularZone",pp=Bx+"_ID",Oz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Lx}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Fz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bx)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Pz,Eg,Eg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Pz={};function jx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Nz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Vx(()=>{t.callbackScheduled=!1,YC(t),t.isCheckStableRunning=!0,jx(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),YC(t)}function Fz(t){let i=()=>{Nz(t)},e=Oz++;t._inner=t._inner.fork({name:"angular",properties:{[Bx]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Lz(l))return n.invokeTask(r,a,s,l);try{return kI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),AI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return kI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Vz(l)&&i(),AI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,YC(t),jx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function YC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function kI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AI(t){t._nesting--,jx(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Lz(t){return pk(t,"__ignore_ng_zone__")}function Vz(t){return pk(t,"__scheduler_tick__")}function pk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ro=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ro),e.handleError(n))})}}}),hk={provide:Rs,useValue:()=>{let t=p(Ro,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=_C(t,i?.equal),r=e,a=r[xi];return r.set=n,r.update=o,r.asReadonly=Yg.bind(r),r}function Yg(){let t=this[xi];if(t.readonlyFn===void 0){let i=()=>this();i[xi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=Bz}return t})();function Bz(){return new vu(lt(),ki())}var fa=class{},bu=new L("",{factory:()=>!0});var Qg=new L(""),yu=(()=>{class t{internalPendingTasks=p(as);scheduler=p(fa);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new QC})}return t})(),QC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Mg=class{[xi];constructor(i){this[xi]=i}destroy(){this[xi].destroy()}};function Fs(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(wo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(fa);return r!==null?(o=Uz(r.view,a,t),n instanceof Sg&&n._lView===r.view&&(n=null)):o=Hz(t,e.get(Kg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Mg(o)}var fk=Ye(G({},vC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{bC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),jz=Ye(G({},fk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),zz=Ye(G({},fk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[wl]?.delete(this)}});function Uz(t,i,e){let n=Object.create(zz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=gk(n,e),t[wl]??=new Set,t[wl].add(n),n.consumerMarkedDirty(n),n}function Hz(t,i,e){let n=Object.create(jz);return n.fn=gk(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function gk(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Xk(t){let i=xo.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Kz(t){return typeof t=="function"}function Jk(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var s_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>eA;return t.ngInherit=!0,t})();function eA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xz),Zz}function Zz(){let t=nA(this),i=t?.current;if(i){let e=t.previous;if(e===va)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Xz(t,i,e,n,o){let r=this.declaredInputs[n],a=nA(t)||Jz(t,{previous:va,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new s_(u&&u.currentValue,e,l===va),Jk(t,i,o,e)}var tA="__ngSimpleChanges__";function nA(t){return t[tA]||null}function Jz(t,i){return t[tA]=i}var _k=[];var Un=function(t,i=null,e){for(let n=0;n<_k.length;n++){let o=_k[n];o(t,i,e)}},Sn=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Sn||{});function eU(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=eA(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),r&&((e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r))}function iA(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,vk(s,r)):vk(s,r)}var xu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function nU(t){return(t.flags&8)!==0}function iU(t){return(t.flags&16)!==0}function oU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function c_(t,i){let e=aU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Zx=!0;function d_(t){let i=Zx;return Zx=t,i}var sU=256,sA=sU-1,lA=5,lU=0,ss={};function cU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=lU++);let o=n&sA,r=1<>lA)]|=r}function u_(t,i){let e=cA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Ux(n.data,t),Ux(i,null),Ux(n.blueprint,null));let o=Fw(t,i),r=t.injectorIndex;if(aA(o)){let a=l_(o),s=c_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Ux(t,i){t.push(0,0,0,0,0,0,0,0,i)}function cA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fw(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hA(o),n===null)return xu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return xu}function Xx(t,i,e){cU(t,i,e)}function dU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let w=g;w=l&&S.type===e)return w}if(o){let w=a[l];if(w&&xa(w)&&w.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ix("");let l=d_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?Ao(s.injectImpl):null,y=Ox(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&eU(e,a[e],i)}finally{g!==null&&Ao(g),d_(l),s.resolving=!1,Px()}}return r}function mU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&sA:pU:i}function yk(t,i,e){let n=1<>lA)]&n)}function Ck(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return mA(this._tNode,this._lView,i,Tc(n),e)}};function pU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||Jx(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||Jx(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jx(t){return KC(t)?()=>{let i=Jx(ji(t));return i&&i()}:xl(t)}function hU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=pA(r,a,e,n|2,ss);if(s!==ss)return s;let l=r.parent;if(!l){let u=a[px];if(u){let h=u.get(e,ss,n&-5);if(h!==ss)return h}l=hA(a),a=a[Oc]}r=l}return o}function hA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Oo]:null}function Lp(t){return dU(ki(),t)}function fU(){return Tu(ki(),lt())}function Tu(t,i){return new se(Ur(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fU}return t})();function fA(t){return t instanceof se?t.nativeElement:t}function gU(){return this._results[Symbol.iterator]()}var gr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=LI(i);(this._changesDetected=!FI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=gU};function gA(t){return(t.flags&128)===128}var Lw=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Lw||{}),_A=new Map,_U=0;function vU(){return _U++}function bU(t){_A.set(t[Ps],t)}function ew(t){_A.delete(t[Ps])}var xk="__ngContext__";function Du(t,i){Ns(i)?(t[xk]=i[Ps],bU(i)):t[xk]=i}function vA(t){return yA(t[mu])}function bA(t){return yA(t[jr])}function yA(t){for(;t!==null&&!Ca(t);)t=t[jr];return t}var tw;function Vw(t){tw=t}function CA(){if(tw!==void 0)return tw;if(typeof document<"u")return document;throw new ie(210,!1)}var Rl=new L("",{factory:()=>yU}),yU="ng";var D_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Ol=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var wA="di";var Bw=new L(""),DA=!1,SA=new L("",{factory:()=>DA});var S_=new L("");var wk=new WeakMap;function CU(t,i){if(t==null||typeof t!="object")return;let e=wk.get(t);e||(e=new WeakSet,wk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function wU(t,i,e,n){xU(t,i,e,n)}function E_(t){return(t.flags&32)===32}var DU=()=>null;function EA(t,i,e=!1){return DU(t,i,e)}function MA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Zg}function M_(t){return SU()?.createHTML(t)||t}var Xg;function TA(){if(Xg===void 0&&(Xg=null,xo.trustedTypes))try{Xg=xo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function Dk(t){return TA()?.createHTML(t)||t}function Sk(t){return TA()?.createScriptURL(t)||t}var Ls=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tg})`}},iw=class extends Ls{getTypeName(){return"HTML"}},ow=class extends Ls{getTypeName(){return"Style"}},rw=class extends Ls{getTypeName(){return"Script"}},aw=class extends Ls{getTypeName(){return"URL"}},sw=class extends Ls{getTypeName(){return"ResourceURL"}};function _r(t){return t instanceof Ls?t.changingThisBreaksApplicationSecurity:t}function cs(t,i){let e=IA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Tg})`)}return e===i}function IA(t){return t instanceof Ls&&t.getTypeName()||null}function zw(t){return new iw(t)}function Uw(t){return new ow(t)}function Hw(t){return new rw(t)}function Ww(t){return new aw(t)}function $w(t){return new sw(t)}function EU(t){let i=new cw(t);return MU()?new lw(i):i}var lw=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(M_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},cw=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=M_(i),e}};function MU(){try{return!!new window.DOMParser().parseFromString(M_(""),"text/html")}catch(t){return!1}}var TU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(TU)?t:"unsafe:"+t}function Vs(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var kA=Vs("area,br,col,hr,img,wbr"),AA=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RA=Vs("rp,rt"),IU=Bp(RA,AA),kU=Bp(AA,Vs("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")),AU=Bp(RA,Vs("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")),Ek=Bp(kA,kU,AU,IU),OA=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RU=Vs("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"),OU=Vs("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"),PU=Bp(OA,RU,OU),NU=Vs("script,style,template"),dw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=VU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=LU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Mk(i).toLowerCase();if(!Ek.hasOwnProperty(e))return this.sanitizedSomething=!0,!NU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Mk(i).toLowerCase();Ek.hasOwnProperty(e)&&!kA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Tk(i))}};function FU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw PA(i);return i}function VU(t){let i=t.firstChild;if(i&&FU(t,i))throw PA(i);return i}function Mk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function PA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jU=/([^\#-~ |!])/g;function Tk(t){return t.replace(/&/g,"&").replace(BU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(jU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var Jg;function T_(t,i){let e=null;try{Jg=Jg||EU(t);let n=i?String(i):"";e=Jg.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Jg.getInertBodyElement(n)}while(n!==r);let s=new dw().sanitizeChildren(Ik(e)||e);return M_(s)}finally{if(e){let n=Ik(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function Ik(t){return"content"in t&&zU(t)?t.content:null}function zU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var UU=/^>|^->||--!>|)/g,WU="\u200B$1\u200B";function $U(t){return t.replace(UU,i=>i.replace(HU,WU))}function GU(t,i){return t.createText(i)}function qU(t,i,e){t.setValue(i,e)}function YU(t,i){return t.createComment($U(i))}function NA(t,i,e){return t.createElement(i,e)}function m_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function FA(t,i,e){t.appendChild(i,e)}function kk(t,i,e,n,o){n!==null?m_(t,i,e,n,o):FA(t,i,e)}function LA(t,i,e,n){t.removeChild(null,i,e,n)}function QU(t,i,e){t.setAttribute(i,"style",e)}function KU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function VA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&oU(t,i,n),o!==null&&KU(t,i,o),r!==null&&QU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=qw();return i?Dk(i.sanitize(Ai.HTML,t)||""):cs(t,"HTML")?Dk(_r(t)):T_(CA(),_a(t))}function it(t){let i=qw();return i?i.sanitize(Ai.URL,t)||"":cs(t,"URL")?_r(t):Vp(_a(t))}function BA(t){let i=qw();if(i)return Sk(i.sanitize(Ai.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return Sk(_r(t));throw new ie(904,!1)}var ZU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function XU(t,i){return ZU[t.toLowerCase()]?.[i.toLowerCase()]===!0?BA:it}function Gw(t,i,e){return XU(i,e)(t)}function qw(){let t=lt();return t&&t[ya].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Yw(t){return t.ownerDocument}function jA(t){return t instanceof Function?t():t}function JU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var zA="ng-template";function eH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Sa(n))return!1;a=!0}}}}return Sa(n)||a}function Sa(t){return(t&1)===0}function iH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Sa(a)&&(i+=Ak(r,o),o=""),n=a,r=r||!Sa(n);e++}return o!==""&&(i+=Ak(r,o)),i}function cH(t){return t.map(lH).join(",")}function dH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function gH(t,i){let e=mw.get(t);e?e.includes(i)||e.push(i):mw.set(t,[i])}var zc=new Set,k_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(k_||{}),Ia=new L(""),Rk=new Set;function Wr(t){Rk.has(t)||(Rk.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var A_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),eD=[0,1,2,3],tD=(()=>{class t{ngZone=p(be);scheduler=p(fa);errorHandler=p(Ro,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ia,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of eD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(k_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Wr("NgAfterNextRender"),vH(t,e,i,!0)}function _H(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vH(t,i,e,n){let o=i.get(A_);o.impl??=i.get(tD);let r=i.get(Ia,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(wo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,_H(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var GA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function qA(t,i,e){let n=t.get(GA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function bH(t,i){let e=t.get(GA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function yH(t,i){for(let[e,n]of i)qA(t,n.animateFns)}function Ok(t,i,e,n){let o=t?.[Ml]?.enter;i!==null&&o&&o.has(e.index)&&yH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;Ca(o)?l=o:Ns(o)&&(u=!0,o=o[ba]);let h=zr(o);t===0&&n!==null?(Ok(s,n,r,e),a==null?FA(i,n,h):m_(i,n,h,a||null,!0)):t===1&&n!==null?(Ok(s,n,r,e),m_(i,n,h,a||null,!0),fH(r,h)):t===2?(s?.[Ml]?.leave?.has(r.index)&&gH(r,h),Ep.delete(h),Pk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}LA(i,h,u,g)})):t===3&&(Ep.delete(h),Pk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&AH(i,t,e,l,r,n,a)}}function CH(t,i){YA(t,i),i[ba]=null,i[Oo]=null}function xH(t,i,e,n,o,r){n[ba]=o,n[Oo]=i,O_(t,n,e,1,o,r)}function YA(t,i){i[ya].changeDetectionScheduler?.notify(9),O_(t,i,i[Vn],2,null,null)}function wH(t){let i=t[mu];if(!i)return Hx(t[mt],t);for(;i;){let e=null;if(Ns(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[jr]&&i!==t;)Ns(i)&&Hx(i[mt],i),i=i[zi];i===null&&(i=t),Ns(i)&&Hx(i[mt],i),e=i&&i[jr]}i=e}}function nD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function R_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&O_(t,i,e,3,null,null),wH(i)}function Hx(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[hr]&&fl(i[hr]),EH(t,i),SH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[El];if(n!==null&&Ca(i[zi])){n!==i[zi]&&nD(n,i);let o=i[is];o!==null&&o.detachView(t)}ew(i)}finally{ut(e)}}function Pk(t,i,e,n){let o=t?.[Ml];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Ps]),qA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[Ml].running=void 0,zc.delete(t[Ps]),i(!0)});return}i(!1)}function SH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[As];if(o!==null){i[As]=null;for(let a=0;asi&&$A(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{Il(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function P_(t,i,e){LH(t,i,e),(e.flags&64)===64&&VH(t,i,e)}function zp(t,i,e=Ur){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function FH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function eR(t,i,e,n,o,r){let a=i[mt];if(N_(t,a,i,e,n)){os(t)&&nR(i,t.index);return}t.type&3&&(e=FH(e)),tR(t,i,e,n,o,r)}function tR(t,i,e,n,o,r){if(t.type&3){let a=Ur(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function nR(t,i){let e=Hr(i,t);e[Ot]&16||(e[Ot]|=64)}function LH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;os(e)&&pH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||u_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function KH(t){let i=t[hr]??Object.create(ZH);return i.lView=t,i}var ZH=Ye(G({},ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Dl(t.lView);for(;i&&!sR(i[mt]);)i=Dl(i);i&&yx(i)},consumerOnSignalRead(){this.lView[hr]=this}});function sR(t){return t.type!==2}function lR(t){if(t[wl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[wl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var XH=100;function cR(t,i=0){let n=t[ya].rendererFactory,o=!1;o||n.begin?.();try{JH(t,i)}finally{o||n.end?.()}}function JH(t,i){let e=Ax();try{mp(!0),hw(t,i);let n=0;for(;xp(t);){if(n===XH)throw new ie(103,!1);n++,hw(t,1)}}finally{mp(e)}}function e5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;$g(i);let s=!0,l=null,u=null;r||(sR(t)?(u=GH(i),l=Es(u)):jf()===null?(s=!1,u=KH(i),l=Es(u)):i[hr]&&(fl(i[hr]),i[hr]=null));try{bx(i),tk(t.bindingStartIndex),e!==null&&JA(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let w=t.preOrderCheckHooks;w!==null&&n_(i,w,null)}else{let w=t.preOrderHooks;w!==null&&i_(i,w,0,null),zx(i,0)}if(a||t5(i),lR(i),dR(i,0),t.contentQueries!==null&&MA(t,i),!r)if(h){let w=t.contentCheckHooks;w!==null&&n_(i,w)}else{let w=t.contentHooks;w!==null&&i_(i,w,1),zx(i,1)}i5(t,i);let g=t.components;g!==null&&mR(i,g,0);let y=t.viewQuery;if(y!==null&&nw(2,y,n),!r)if(h){let w=t.viewCheckHooks;w!==null&&n_(i,w)}else{let w=t.viewHooks;w!==null&&i_(i,w,2),zx(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Lg]){for(let w of i[Lg])w();i[Lg]=null}r||(rR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(hl(u,l),s&&YH(u)),Gg()}}function dR(t,i){for(let e=vA(t);e!==null;e=bA(e))for(let n=vi;n0&&(t[e-1][jr]=n[jr]);let r=bp(t,vi+i);CH(n[mt],n);let a=r[is];a!==null&&a.detachView(r[mt]),n[zi]=null,n[jr]=null,n[Ot]&=-129}return n}function o5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][jr]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}R_(this._lView[mt],this._lView)}onDestroy(i){Cx(this._lView,i)}markForCheck(){cD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){zg(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,cR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[El];e!==null&&!i&&nD(e,this._lView),YA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[El];n!==null&&!e&&gR(n,this._lView),zg(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=r5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new kl(r)}}return t})();function r5(){return F_(ki(),lt())}function F_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=a5(t,i,e,n,o),nk()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=JI();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function a5(t,i,e,n,o){let r=Tx(),a=Ix(),s=a?r:r&&r.parent,l=t.data[i]=l5(t,s,e,i,n,o);return s5(t,l,r,a),l}function s5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function l5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Sx()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Nx(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function c5(t){let i=t[hx]??[],n=t[zi][Vn],o=[];for(let r of i)r.data[wA]!==void 0?o.push(r):d5(r,n);t[hx]=o}function d5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,m5=()=>null;function p_(t,i){return u5(t,i)}function _R(t,i,e){return m5(t,i,e)}var vR=class{},L_=class{},fw=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new fw},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p5()}return t})();function p5(){let t=lt(),i=ki(),e=Hr(i.index,t);return(Ns(e)?e:t)[Vn]}var bR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var r_={},gw=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,r_,n);return o!==r_||e===r_?o:this.parentInjector.get(i,e,n)}};function h_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function C5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(zr(P[t.index])):t.index;DR(S,i,e,r,s,w,!1)}}return u}function E5(t){return t.startsWith("animation")||t.startsWith("transition")}function M5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function DR(t,i,e,n,o,r,a){let s=i.firstCreatePass?wx(i):null,l=xx(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function jk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);DR(t.index,s,i,o,r,g,!0)}var _w=Symbol("BINDING");function SR(t){return t.debugInfo?.className||t.type.name||null}var f_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ns(i);return new Al(e,this.ngModule)}};function T5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&I_.SignalBased)!==0};return o&&(r.transform=o),r})}function I5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function k5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new gw(e,n):e}function A5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(bR,null),n=t.get(fa,null),o=t.get(Ia,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function R5(t,i){let e=ER(t);return NA(i,e,e==="svg"?gx:e==="math"?$I:null)}function O5(t){if(t?.toLowerCase()==="script")throw new ie(905,!1)}function ER(t){return(t.selectors[0][0]||"div").toLowerCase()}var Al=class extends L_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=T5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=I5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=k5(l,o||this.ngModule,i),h=A5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(SR(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=P5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?OH(u,o,s.encapsulation,e):R5(s,u);O5(h?.tagName);let g=a?.some(zk)||r?.some(S=>typeof S!="function"&&S.bindings.some(zk)),y=Zw(null,l,null,512|HA(s),null,null,i,u,e,null,EA(h,e,!0));y[si]=h,$g(y);let w=null;try{let S=dD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);VA(u,h,S),Du(h,y),P_(l,y,S),jw(l,S,y),uD(l,S),n!==void 0&&F5(S,this.ngContentSelectors,n),w=Hr(S.index,y),y[Di]=w[Di],lD(l,y,null)}catch(S){throw w!==null&&ew(w),ew(y),S}finally{Un(Sn.DynamicComponentEnd),Gg()}return new g_(this.componentType,y,!!g)}};function P5(t,i,e,n){let o=t?["ng-version","21.2.18"]:dH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[_w].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function zk(t){let i=t[_w].kind;return i==="input"||i==="twoWay"}var g_=class extends vR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Vg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Hr(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new kl(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=N_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Hr(n.index,o);cD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function F5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=L5}return t})();function L5(){let t=ki();return MR(t,lt())}var vw=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Fw(this._hostTNode,this._hostLView);if(aA(i)){let e=c_(i,this._hostLView),n=l_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Uk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=p_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Kz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new Al(ns(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ns(h.componentType??{}),w=p_(this._lContainer,y?.id??null),S=w?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,w)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(qI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[zi],u=new t(l,l[Oo],l[zi]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),rx(Wx(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Uk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp(Wx(this._lContainer),e),R_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp(Wx(this._lContainer),e)!=null?new kl(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Uk(t){return t[Cp]}function Wx(t){return t[Cp]||(t[Cp]=[])}function MR(t,i){let e,n=i[t.index];return Ca(n)?e=n:(e=pR(n,i,null,t),i[t.index]=e,Xw(i,e)),B5(e,i,t,n),new vw(e,t,i)}function V5(t,i){let e=t[Vn],n=e.createComment(""),o=Ur(i,t),r=e.parentNode(o);return m_(e,r,n,e.nextSibling(o),!1),n}var B5=U5,j5=()=>!1;function z5(t,i,e){return j5(t,i,e)}function U5(t,i,e,n){if(t[Tl])return;let o;e.type&8?o=zr(n):o=V5(i,e),t[Tl]=o}var bw=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},yw=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function RR(t,i,e){t.queries===null&&(t.queries=new Cw),t.queries.track(new xw(i,e))}function Y5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function gD(t,i){return t.queries.getByIndex(i)}function OR(t,i){let e=t[mt],n=gD(e,i);return n.crossesNgTemplate?ww(e,t,i,[]):TR(e,t,n,i)}function PR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=Q5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[xi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function _D(t){return PR(!0,!1,t)}function vD(t){return PR(!0,!0,t)}function NR(t,i){let e=t[xi];e._lView=lt(),e._queryIndex=i,e._queryList=fD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function Q5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:Co;let o=fD(e,n),r=OR(e,n);return o.reset(r,fA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Dw=new Map,K5=new Set;function bD(t){return B(this,null,function*(){let i=Dw;Dw=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>Z5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(w=>n(w))).then(w=>{u.push(...w),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),K5.delete(r)}));yield Promise.all(o)})}function FR(){return Dw.size===0}function Z5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ls=class{},B_=class{};var Op=class extends ls{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new f_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=tx(i);this._bootstrapComponents=jA(r.bootstrap),this._r3Injector=Fx(i,e,[{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends B_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function LR(t,i,e){return new Op(t,i,e,!1)}var v_=class extends ls{injector;componentFactoryResolver=new f_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new v_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var X5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=lx(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(we(Cn))})}return t})();function T(t){return Fp(()=>{let i=BR(t),e=Ye(G({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lw.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(X5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ma.Emulated,styles:t.styles||Co,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wr("NgStandalone"),jR(e);let n=t.dependencies;return e.directiveDefs=b_(n,VR),e.pipeDefs=b_(n,nx),e.id=t8(e),e})}function VR(t){return ns(t)||Ag(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||Co,declarations:t.declarations||Co,imports:t.imports||Co,exports:t.exports||Co,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function J5(t,i){if(t==null)return va;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=I_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function e8(t){if(t==null)return va;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=BR(t);return jR(i),i})}function ka(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||va,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Co,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:J5(t.inputs,i),outputs:e8(t.outputs),debugInfo:null}}function jR(t){t.features?.forEach(i=>i(t))}function b_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function t8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function yD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=n8,e.hostDirectives=n?t.map(Sw):[t]):n?e.hostDirectives.unshift(...t.map(Sw)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function n8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=wu(o.hostAttrs,e=wu(e,o.hostAttrs))}}function $x(t){return t===va?{}:t===Co?[]:t}function s8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function l8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function c8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function UR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=wu(t.mergedAttrs,t.attrs);let h=t.tView=Kw(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=u8(e,i,t,n);qg()&&iD(e,i,l,t),Du(l,i);let u=pR(l,i,l,t);i[n+si]=u,Xw(i,u),z5(u,t,i)}function d8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Ug()&&yR(i,t,y,fr(i.consts,u),rD),iA(i,y)):y=i.data[g],UR(y,t,i,e,n,o,r,l),pu(y)&&P_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let w=fr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function ds(t){return typeof t=="function"&&t[xi]!==void 0}function CD(t){return ds(t)&&typeof t.set=="function"}var z_=new L(""),U_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,ux()&&(this._destroyRef=p(wo,{optional:!0})??void 0),xD||(WR(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(we(be),we(HR),we(U_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),HR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function WR(t){xD=t}var xD;function js(t){return!!t&&typeof t.then=="function"}function H_(t){return!!t&&typeof t.subscribe=="function"}var wD=new L("");function W_(t){return Sl([{provide:wD,multi:!0,useValue:t}])}var DD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(wD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=Ui(this.injector,o);if(js(r))e.push(r);else if(H_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=new L("");function $R(){gC(()=>{let t="";throw new ie(600,t)})}function GR(t){return t.isBoundToModule}var p8=10;function SD(t,i){return Array.isArray(i)?i.reduce(SD,t):G(G({},t),i)}var Hi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(A_);zonelessEnabled=p(bu);rootEffectScheduler=p(Kg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Qe(e=>!e))}constructor(){p(Ia,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof L_;if(!this._injector.get(DD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=GR(l)?void 0:this._injector.get(ls),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,w=g.injector.get(z_,null);return w?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),w?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(k_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++xp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=rs();if(No(e,n,i)){let o=$n(),r=_u();if(N_(r,o,e,t,i))os(r)&&nR(e,r.index);else{let s=Ur(r,e);iR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=rs();if(No(o,r,i)){let a=$n(),s=_u();jH(s,o,t,i,e,n)}return me}var Ew=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Gx(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function h8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=Gx(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let w=t.at(s),S=i[u],P=Gx(s,w,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,w),q=e(a,g);if(Object.is(q,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new y_,r??=Gk(t,a,s,e),Mw(t,o,a,q))t.updateValue(a,g),a++,s++;else if(r.has(q))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)$k(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,w=Gx(a,g,a,y,e);if(w!==0)w<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new y_,r??=Gk(t,a,s,e);let S=e(a,y);if(Mw(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)$k(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Mw(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function $k(t,i,e,n,o){if(Mw(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Gk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var y_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),ED}function ED(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),ED}function R(t,i){Wr("NgControlFlow");let e=lt(),n=rs(),o=e[n]!==so?e[n]:-1,r=o!==-1?C_(e,si+o):void 0,a=0;if(No(e,n,t)){let s=ut(null);try{if(r!==void 0&&fR(r,a),t!==-1){let l=si+t,u=C_(e,l),h=Aw(e[mt],l),g=_R(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=hR(r,a);s!==void 0&&(s[Di]=i)}}var Tw=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var Iw=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Wr("NgControlFlow");let w=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Po][Di]):a,q=new Iw(P,F);j[si+t]=q,Eu(w,S,t+1,i,e,n,o,fr(S.consts,r),256),P&&Eu(w,S,t+2,l,u,h,g,fr(S.consts,y),512)}var kw=class extends Ew{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),f8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,g8(this.lContainer,i),_8(this.lContainer,i)}create(i,e){let n=p_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Tw(this.lContainer,e,i),{dehydratedView:n})}destroy(i){R_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Os];bH(r,o),zc.delete(n[Ps]),o.detachedLeaveAnimationFns=void 0}}function g8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[Ml]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function _8(t,i){return Rp(t,i)}function v8(t,i){return hR(t,i)}function Aw(t,i){return Vg(t,i)}function b(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return b}function Rw(t,i,e,n,o){N_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?dD(a,o,2,i,rD,Ug(),e,n):r.data[a];if(os(s)){let l=o[ya].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(SR(u),()=>(qk(t,i,o,s,n),c))}}return qk(t,i,o,s,n),c}function qk(t,i,e,n,o){if(aD(n,e,t,i,qR),pu(n)){let r=e[mt];P_(r,e,n),jw(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),Ex(e)&&Mx(),Dx(),e.classesWithoutHost!=null&&nU(e)&&Rw(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&iU(e)&&Rw(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?w5(a,r,2,i,e,n):r.data[a];return aD(s,o,t,i,qR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=sD(t);return Ex(i)&&Mx(),Dx(),pn}function mo(t,i,e,n){return dn(t,i,e,n),pn(),mo}var qR=(t,i,e,n,o)=>(Sp(!0),NA(i[Vn],n,Nx()));function us(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?dD(r,n,8,"ng-container",rD,Ug(),i,e):o.data[r];if(aD(a,n,t,"ng-container",b8),pu(a)){let s=n[mt];P_(s,n,a),jw(s,a,n)}return e!=null&&zp(n,a),us}function ms(){let t=$n(),i=ki(),e=sD(i);return t.firstCreatePass&&uD(t,e),ms}function Ri(t,i,e){return us(t,i,e),ms(),Ri}var b8=(t,i,e,n,o)=>(Sp(!0),YU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var y8=Gp;function YR(t){typeof t=="string"&&(y8=t.toLowerCase().replace(/_/g,"-"))}function x(t,i,e){let n=lt(),o=$n(),r=ki();return QR(o,n,n[Vn],r,t,i,e),x}function Pl(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&wR(r,o,n,e,n[Vn],t,i,a_(r,n,i)),Pl}function QR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=a_(n,i,r),wR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function w8(t){return(t&2)==2}function D8(t,i){return t&131071|i<<17}function Ow(t){return t|2}function Mu(t){return(t&131068)>>2}function qx(t,i){return t&-131069|i<<2}function S8(t){return(t&1)===1}function Pw(t){return t|1}function E8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=e_(y,s),y!==0&&(t[y+1]=qx(t[y+1],n)),t[s+1]=D8(t[s+1],n)}else t[n+1]=e_(s,0),s!==0&&(t[s+1]=qx(t[s+1],n)),s=n;else t[n+1]=e_(l,0),s===0?s=n:t[l+1]=qx(t[l+1],n),l=n;u&&(t[n+1]=Ow(t[n+1])),Yk(t,h,n,!0),Yk(t,h,n,!1),M8(i,h,t,n,r),a=e_(s,l),r?i.classBindings=a:i.styleBindings=a}function M8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Pw(e[n+1]))}function Yk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];T8(l,i)&&(s=!0,t[a+1]=n?Pw(u):Ow(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Ow(o):Pw(o))}function T8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Ea={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(Ea.key,Ea.keyEnd)}function k8(t){return A8(t),KR(t,ZR(t,0,Ea.textEnd))}function KR(t,i){let e=Ea.textEnd;return e===i?-1:(i=Ea.keyEnd=R8(t,Ea.key=i,e),ZR(t,i,e))}function A8(t){Ea.key=0,Ea.keyEnd=0,Ea.value=0,Ea.valueEnd=0,Ea.textEnd=t.length}function ZR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return XR(t,i,e,!1),Si}function le(t,i){return XR(t,i,null,!0),le}function Tn(t){P8(j8,O8,t,!0)}function O8(t,i){for(let e=k8(i);e>=0;e=KR(i,e))Ng(t,I8(i),!0)}function XR(t,i,e,n){let o=lt(),r=$n(),a=wp(2);if(r.firstUpdatePass&&eO(r,t,a,n),i!==so&&No(o,a,i)){let s=r.data[wa()];tO(r,s,o,o[Vn],t,o[a+1]=U8(i,e),n,a)}}function P8(t,i,e,n){let o=$n(),r=wp(2);o.firstUpdatePass&&eO(o,null,r,n);let a=lt();if(e!==so&&No(a,r,e)){let s=o.data[wa()];if(nO(s,n)&&!JR(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Ig(l,e||"")),Rw(o,s,a,e,n)}else z8(o,s,a,a[Vn],a[r+1],a[r+1]=B8(t,i,e),n,r)}}function JR(t,i){return i>=t.expandoStartIndex}function eO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[wa()],a=JR(t,e);nO(r,n)&&i===null&&!a&&(i=!1),i=N8(o,r,i,n),E8(o,r,i,e,a,n)}}function N8(t,i,e,n){let o=rk(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yx(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yx(o,t,i,e,n),r===null){let l=F8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Yx(null,t,i,l[1],n),l=Np(l,i.attrs,n),L8(t,i,n,l))}else r=V8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function F8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function L8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function V8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===so&&(y=g?Co:void 0);let w=g?Fg(y,n):h===n?y:void 0;if(u&&!x_(w)&&(w=Fg(l,n)),x_(w)&&(s=w,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Fg(l,n))}return s}function x_(t){return t!==void 0}function U8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(_r(t)))),t}function nO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=H8(n,e,r,i);e[o]=a,qg()&&iD(n,e,a,r),fu(r,!1)}var H8=(t,i,e,n)=>(Sp(!0),GU(i[Vn],n));function W8(t,i,e,n=""){return No(t,rs(),e)?i+_a(e)+n:so}function $8(t,i,e,n,o,r=""){let a=Rx(),s=hD(t,a,e,o);return wp(2),s?i+_a(e)+n+_a(o)+r:so}function G8(t,i,e,n,o,r,a,s=""){let l=Rx(),u=S5(t,l,e,o,a);return wp(3),u?i+_a(e)+n+_a(o)+r+_a(a)+s:so}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=W8(n,t,i,e);return o!==so&&MD(n,wa(),o),H}function Fo(t,i,e,n,o){let r=lt(),a=$8(r,t,i,e,n,o);return a!==so&&MD(r,wa(),a),Fo}function Q_(t,i,e,n,o,r,a){let s=lt(),l=G8(s,t,i,e,n,o,r,a);return l!==so&&MD(s,wa(),l),Q_}function MD(t,i,e){let n=_x(i,t);qU(t[Vn],n,e)}function ee(t,i,e){CD(i)&&(i=i());let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();eR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=CD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return QR(n,e,e[Vn],o,t,i),te}function Nl(t){return No(lt(),rs(),t)?_a(t):so}function Kk(t,i,e){let n=$n();n.firstCreatePass&&iO(i,n.data,n.blueprint,xa(t),e)}function iO(t,i,e,n,o){if(t=ji(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let w=new jc(u,o,D,null),S=Kx(l,i,o?h:h+y,g);S===-1?(Xx(u_(s,a),r,l),Qx(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[S]=w,a[S]=w)}else{let w=Kx(l,i,h+y,g),S=Kx(l,i,h,h+y),P=w>=0&&e[w],j=S>=0&&e[S];if(o&&!j||!o&&!P){Xx(u_(s,a),r,l);let F=Q8(o?Y8:q8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Qx(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=oO(e[o?S:w],u,!o&&n);Qx(r,t,w>-1?w:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Qx(t,i,e,n){let o=Ic(i),r=HI(i);if(o||r){let l=(r?ji(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function oO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kx(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Kk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Kk(n,o?o(i):i,!0))}}function TD(t,i,e){let n=t.\u0275cmp;n.directiveDefs=b_(i,VR),n.pipeDefs=b_(e,nx)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===so?pD(n,e,i()):D5(n,e)}function po(t,i,e){return aO(lt(),gu(),t,i,e)}function ID(t,i,e,n){return sO(lt(),gu(),t,i,e,n)}function rO(t,i){let e=t[i];return e===so?void 0:e}function aO(t,i,e,n,o,r){let a=i+e;return No(t,a,o)?pD(t,a+1,r?n.call(r,o):n(o)):rO(t,a+1)}function sO(t,i,e,n,o,r,a){let s=i+e;return hD(t,s,o,r)?pD(t,s+2,a?n.call(a,o,r):n(o,r)):rO(t,s+2)}function $t(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=K8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=xl(n.type,!0)),a,s=Ao(D);try{let l=d_(!1),u=r();return d_(l),vx(e,lt(),o,u),u}finally{Ao(s)}}function K8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=Bg(o,n);return lO(o,n)?aO(o,gu(),i,r.transform,e,r):r.transform(e)}function K_(t,i,e,n){let o=t+si,r=lt(),a=Bg(r,o);return lO(r,o)?sO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function lO(t,i){return t[mt].data[i].pure}function qp(t,i){return F_(t,i)}var t_=null;function cO(t){t_!==null&&(t.defaultEncapsulation!==t_.defaultEncapsulation||t.preserveWhitespaces!==t_.preserveWhitespaces)||(t_=t)}var w_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},kD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=tx(e),r=jA(o.declarations).reduce((a,s)=>{let l=ns(s);return l&&a.push(new Al(l)),a},[]);return new w_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dO=new L("");var uO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Hi);taskService=p(as);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ia,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Qg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?mk:Vx;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mO(){return[{provide:fa,useExisting:uO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function Z8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||Z8()});function hn(t){return MI(t)}function Lo(t,i){return Jm(t,i?.equal)}var X8=t=>t;function AD(t,i){if(typeof t=="function"){let e=LC(t,X8,i?.equal);return pO(e,i?.debugName)}else{let e=LC(t.source,t.computation,t.equal);return pO(e,t.debugName)}}function pO(t,i){let e=t[xi],n=t;return n.set=o=>SI(e,o),n.update=o=>EI(e,o),n.asReadonly=Yg.bind(t),n}var wO=Symbol("InputSignalNode#UNSET"),d6=Ye(G({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function DO(t,i){let e=Object.create(d6);e.value=t,e.transformFn=i?.transform;function n(){if(pl(e),e.value===wO){let o=null;throw new ie(-950,o)}return e.value}return n[xi]=e,n}var Wi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},SO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function hO(t,i){return DO(t,i)}function u6(t){return DO(wO,t)}var EO=(hO.required=u6,hO);function fO(t,i){return _D(i)}function m6(t,i){return vD(i)}var Qp=(fO.required=m6,fO);function gO(t,i){return _D(i)}function p6(t,i){return vD(i)}var MO=(gO.required=p6,gO);function h6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function _O(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var f6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(fa);applicationRef=p(Hi);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g6=new L("",{factory:()=>!1});function _6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye(G({},IO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:Rs,multi:!0,useFactory:()=>{let e=p(f6,{optional:!0});return()=>e.initialize()}},{provide:Rs,multi:!0,useFactory:()=>{let e=p(v6);return()=>{e.initialize()}}},{provide:Qg,useValue:i??Lx}]}function TO(t){let i=t?.scheduleInRootZone,e=_6({ngZoneFactory:()=>{let n=IO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Wr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return Sl([{provide:g6,useValue:!0},e])}function IO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var v6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(as);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Z_=new L(""),b6=new L("");function Yp(t){return!t.moduleRef}function y6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(Z_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Z_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return x6(n,e,()=>{let r=i.get(as),a=r.add(),s=i.get(DD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(YR(l||Gp),!i.get(b6,!0))return Yp(t)?i.get(Hi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Hi);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return kO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var kO;function vO(){kO=C6}function C6(t,i){let e=t.injector.get(Hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function x6(t,i,e){try{let n=e();return js(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var AO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[mO(),...n?.applicationProviders??[],hk],r=LR(e.moduleType,this.injector,o);return vO(),y6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=SD({},n);return vO(),h6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(Z_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(we(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),zD=null;function w6(t){if(HD())throw new ie(400,!1);$R(),zD=t;let i=t.get(AO);return E6(t),i}function UD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=HD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??w6(D6(s,n))}return S6(o)}}function D6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:Z_,useValue:new Set([()=>zD=null])},...t]})}function S6(t){let i=HD();if(!i)throw new ie(-401,!1);return i}function HD(){return zD?.get(AO)??null}function E6(t){let i=t.get(D_,null);Ui(t,()=>{i?.forEach(e=>e())})}var M6=1e4;var L0e=M6-1e3;var Ze=(()=>{class t{static __NG_ELEMENT_ID__=T6}return t})();function T6(t){return I6(ki(),lt(),(t&16)===16)}function I6(t,i,e){if(os(t)&&!e){let n=Hr(t.index,i);return new kl(n,n)}else if(t.type&175){let n=i[Po];return new kl(n,i)}return null}var OD=class{supports(i){return mD(i)}create(i){return new PD(i)}},k6=(t,i)=>i,PD=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||k6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new ND(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new X_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new X_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},ND=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},FD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},X_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new FD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function bO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new BD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},BD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function yO(){return new zs([new OD])}var zs=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:yO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||yO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function CO(){return new ev([new LD])}var ev=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:CO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var RO=UD(null,"core",[]),OO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(we(Hi))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var RD=Symbol("NOT_SET"),PO=new Set,A6=Ye(G({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:RD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(pl(u),u.value),u.signal[xi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??PO)e()}finally{fl(i)}}};function NO(t,i){let e=i?.injector??p(Te),n=e.get(fa),o=e.get(A_),r=e.get(Ia,null,{optional:!0});o.impl??=e.get(tD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new jD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function tv(t,i){let e=ns(t),n=i.elementInjector||du();return new Al(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function FO(t){let i=ns(t);if(!i)return null;let e=new Al(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var LO=null;function vr(){return LO}function WD(t){LO??=t}var Kp=class{},Us=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(VO),providedIn:"platform"})}return t})(),$D=new L(""),VO=(()=>{class t extends Us{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function nv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function BO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Aa(t){return t&&t[0]!=="?"?`?${t}`:t}var Ra=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(ov),providedIn:"root"})}return t})(),iv=new L(""),ov=(()=>{class t extends Ra{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Aa(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ps=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=P6(BO(jO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Aa(n))}normalize(e){return t.stripTrailingSlash(O6(this._basePath,jO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=Aa;static joinWithSlash=nv;static stripTrailingSlash=BO;static \u0275fac=function(n){return new(n||t)(we(Ra))};static \u0275prov=$({token:t,factory:()=>R6(),providedIn:"root"})}return t})();function R6(){return new ps(we(Ra))}function O6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function jO(t){return t.replace(/\/index\.html$/,"")}function P6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var QD=(()=>{class t extends Ra{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=nv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(we(Us),we(iv,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var GD=/\s+/,zO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=zO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(GD):zO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(GD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(GD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ta.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(ev),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function N6(t,i){return new ie(2100,!1)}var qD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},YD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},F6=new YD,L6=new qD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(js(e))return F6;if(H_(e))return L6;throw N6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ze,16))};static \u0275pipe=ka({name:"async",type:t,pure:!1})}return t})();function V6(t,i){return{key:t,value:i}}var KD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=UO;transform(e,n=UO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(V6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(ev,16))};static \u0275pipe=ka({name:"keyvalue",type:t,pure:!1})}return t})();function UO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var XD="browser";function HO(t){return t===XD}var JD=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new ZD(p(ke),window)})}return t})(),ZD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye(G({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=j6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(ga(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye(G({},e),{left:o-a[0],top:r-a[1]}))}};function j6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},rv=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),lv=new L(""),iS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof rv));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof rv);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(we(lv),we(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),eS="ng-app-id";function WO(t){for(let i of t)i.remove()}function $O(t,i){let e=i.createElement("style");return e.textContent=t,e}function z6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${eS}="${i}"],link[${eS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(eS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function nS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var oS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,z6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,$O);n?.forEach(o=>this.addUsage(o,this.external,nS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(WO(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])WO(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,$O(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,nS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(we(ke),we(Rl),we(Wc,8),we(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS={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"},rS=/%COMP%/g;var qO="%COMP%",U6=`_nghost-${qO}`,H6=`_ngcontent-${qO}`,W6=!0,$6=new L("",{factory:()=>W6});function G6(t){return H6.replace(rS,t)}function q6(t){return U6.replace(rS,t)}function YO(t,i){return i.map(e=>e.replace(rS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof sv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ma.Emulated:r=new sv(l,u,n,this.appId,h,a,s,g);break;case Ma.ShadowDom:return new av(l,e,n,a,s,this.nonce,g,u);case Ma.ExperimentalIsolatedShadowDom:return new av(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(we(iS),we(oS),we(Rl),we($6),we(ke),we(be),we(Wc),we(Ia,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(tS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(GO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(GO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=tS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=tS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ta.DashCase|Ta.Important)?i.style.setProperty(e,n,o&Ta.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ta.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=vr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function GO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var av=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=YO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=nS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?YO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},sv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=G6(u),this.hostAttr=q6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var cv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){WD(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Y6();return e==null?null:Q6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function Y6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function Q6(t){return new URL(t,document.baseURI).pathname}var dv=class{addToWindow(i){xo.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},xo.getAllAngularTestabilities=()=>i.getAllTestabilities(),xo.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=xo.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};xo.frameworkStabilizers||(xo.frameworkStabilizers=[]),xo.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?vr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},K6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),QO=["alt","control","meta","shift"],Z6={"\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"},X6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),QO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=Z6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),QO.forEach(a=>{if(a!==o){let s=X6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function J6(){cv.makeCurrent()}function eW(){return new Ro}function tW(){return Vw(document),document}var nW=[{provide:Hc,useValue:XD},{provide:D_,useValue:J6,multi:!0},{provide:ke,useFactory:tW}],aS=UD(RO,"browser",nW);var iW=[{provide:U_,useClass:dv},{provide:z_,useClass:$p},{provide:$p,useClass:$p}],oW=[{provide:yp,useValue:"root"},{provide:Ro,useFactory:eW},{provide:lv,useClass:rv,multi:!0},{provide:lv,useClass:KO,multi:!0},rh,oS,iS,{provide:bi,useExisting:rh},{provide:Yc,useClass:K6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...oW,...iW],imports:[eh,OO]})}return t})();var Jo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var mv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},pv=class{encodeKey(i){return ZO(i)}encodeValue(i){return ZO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function rW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var aW=/%(\d[a-f0-9])/gi,sW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZO(t){return encodeURIComponent(t).replace(aW,(i,e)=>sW[e]??i)}function uv(t){return`${t}`}var Hs=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new pv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=rW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(uv):[uv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(uv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(uv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function lW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function XO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function JO(t){return typeof Blob<"u"&&t instanceof Blob}function eP(t){return typeof FormData<"u"&&t instanceof FormData}function cW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tP="Content-Type",nP="Accept",oP="text/plain",rP="application/json",dW=`${rP}, ${oP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(lW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Jo,this.context??=new mv,!this.params)this.params=new Hs,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:q,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:w})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Jo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},hv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},uW=200,mW=204;var pW=new L("");var hW=/^\)\]\}',?\n/;var lS=(()=>{class t{xhrFactory;tracingService=p(Ia,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(nP)||a.setRequestHeader(nP,dW),!e.headers.has(tP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(tP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Jo(a.getAllResponseHeaders()),q=a.responseURL||e.url;return l=new hv({headers:F,status:a.status,statusText:j,url:q}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:q,url:ve}=u(),oe=null;F!==mW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?uW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(hW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:q,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:q,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(q)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),q=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(q)}));let w=!1,S=this.maybePropagateTrace(j=>{w||(r.next(u()),w=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(we(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aP(t,i){return i(t)}function fW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function gW(t,i,e){return(n,o)=>Ui(e,()=>i(n,r=>t(r,o)))}var sP=new L(""),cS=new L("",{factory:()=>[]}),lP=new L(""),dS=new L("",{factory:()=>!0});function _W(){let t=null;return(i,e)=>{t===null&&(t=(p(sP,{optional:!0})??[]).reduceRight(fW,aP));let n=p(yu);if(p(dS)){let r=n.add();return t(i,e).pipe(Cl(r))}else return t(i,e)}}var uS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(lS),o},providedIn:"root"})}return t})();var fv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(dS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(cS),...this.injector.get(lP,[])]));this.chain=n.reduceRight((o,r)=>gW(o,r,this.injector),aP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Cl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(we(uS),we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(fv),o},providedIn:"root"})}return t})();function sS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Jo?l=o.headers:l=new Jo(o.headers);let u;o.params&&(o.params instanceof Hs?u=o.params:u=new Hs({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(yl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(Qe(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(Qe(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Hs().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,sS(o,n))}post(e,n,o={}){return this.request("POST",e,sS(o,n))}put(e,n,o={}){return this.request("PUT",e,sS(o,n))}static \u0275fac=function(n){return new(n||t)(we(mS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vW=new L("",{factory:()=>!0}),bW="XSRF-TOKEN",yW=new L("",{factory:()=>bW}),CW="X-XSRF-TOKEN",xW=new L("",{factory:()=>CW}),wW=(()=>{class t{cookieName=p(yW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(wW),o},providedIn:"root"})}return t})();function DW(t,i){if(!p(vW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(Us).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(cP).getToken(),n=p(xW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var pS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(pS||{});function SW(t,i){return{\u0275kind:t,\u0275providers:i}}function hS(...t){let i=[Lu,fv,{provide:mS,useExisting:fv},{provide:uS,useFactory:()=>p(pW,{optional:!0})??p(lS)},{provide:cS,useValue:DW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return Sl(i)}var iP=new L("");function fS(){return SW(pS.LegacyInterceptors,[{provide:iP,useFactory:_W},{provide:cS,useExisting:iP,multi:!0}])}var uP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=we(EW),o},providedIn:"root"})}return t})(),EW=(()=>{class t extends Ws{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return cs(n,"HTML")?_r(n):T_(this._doc,String(n)).toString();case Ai.STYLE:return cs(n,"Style")?_r(n):n;case Ai.SCRIPT:if(cs(n,"Script"))return _r(n);throw new ie(5200,!1);case Ai.URL:return cs(n,"URL")?_r(n):Vp(String(n));case Ai.RESOURCE_URL:if(cs(n,"ResourceURL"))return _r(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return zw(e)}bypassSecurityTrustStyle(e){return Uw(e)}bypassSecurityTrustScript(e){return Hw(e)}bypassSecurityTrustUrl(e){return Ww(e)}bypassSecurityTrustResourceUrl(e){return $w(e)}static \u0275fac=function(n){return new(n||t)(we(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),yS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new yS(t)}function gS(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!gS(r,t.slice(0,r.length),s)||!gS(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function Cv(t){return new Promise((i,e)=>{t.pipe(ks()).subscribe({next:n=>i(n),error:n=>e(n)})})}function MW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function TW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:js(t)?Hn(Promise.resolve(t)):Me(t)}function CP(t){return Dc(t)?Cv(t):Promise.resolve(t)}var IW={exact:DP,subset:SP},xP={exact:kW,subset:AW,ignored:()=>!0},wP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function mP(t,i,e){return IW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function kW(t,i){return hs(t,i)}function DP(t,i,e){if(!Kc(t.segments,i.segments)||!vv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!DP(t.children[n],i.children[n],e))return!1;return!0}function AW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>yP(t[e],i[e]))}function SP(t,i,e){return EP(t,i,i.segments,e)}function EP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!vv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!vv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!SP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!vv(t.segments,o,n)||!t.children[Vt]?!1:EP(t.children[Vt],i,r,n)}}function vv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var yr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return PW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bv(this)}},Fl=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return TP(this)}};function RW(t,i){return Kc(t,i)&&t.every((e,n)=>hs(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function OW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var Bl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new Gs,providedIn:"root"})}return t})(),Gs=class{parse(i){let e=new DS(i);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=LW(i.queryParams),o=typeof i.fragment=="string"?`#${NW(i.fragment)}`:"";return`${e}${n}${o}`}},PW=new Gs;function bv(t){return t.segments.map(i=>TP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return bv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=OW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${bv(t)}/${e[0]}`:`${bv(t)}/(${e.join("//")})`}}function MP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gv(t){return MP(t).replace(/%3B/gi,";")}function NW(t){return encodeURI(t)}function wS(t){return MP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yv(t){return decodeURIComponent(t)}function pP(t){return yv(t.replace(/\+/g,"%20"))}function TP(t){return`${wS(t.path)}${FW(t.parameters)}`}function FW(t){return Object.entries(t).map(([i,e])=>`;${wS(i)}=${wS(e)}`).join("")}function LW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${gv(e)}=${gv(o)}`).join("&"):`${gv(e)}=${gv(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var VW=/^[^\/()?;#]+/;function _S(t){let i=t.match(VW);return i?i[0]:""}var BW=/^[^\/()?;=#]+/;function jW(t){let i=t.match(BW);return i?i[0]:""}var zW=/^[^=?&#]+/;function UW(t){let i=t.match(zW);return i?i[0]:""}var HW=/^[^&#]+/;function WW(t){let i=t.match(HW);return i?i[0]:""}var DS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=_S(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Fl(yv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=jW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=_S(this.remaining);o&&(n=o,this.capture(n))}i[yv(e)]=yv(n)}parseQueryParam(i){let e=UW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=WW(this.remaining);a&&(n=a,this.capture(n))}let o=pP(e),r=pP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=_S(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function IP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function kP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=kP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return $W(e)}function $W(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Ll(t){return t instanceof yr}function AP(t,i,e=null,n=null,o=new Gs){let r=RP(t);return OP(r,i,e,n,o)}function RP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=IP(n);return i??o}function OP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return vS(r,r,r,e,n,o);let a=GW(i);if(a.toRoot())return vS(r,r,new In([],{}),e,n,o);let s=qW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):NP(s.segmentGroup,s.index,a.commands);return vS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function hP(t,i,e){t||="\u0275";let n=new yr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function vS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>hP(u,g,r)):hP(u,h,r);let s;t===i?s=e:s=PP(t,i,e);let l=IP(kP(s));return new yr(l,a,o)}function PP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=PP(r,i,e)}),new In(t.segments,n)}var wv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==TW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function GW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new wv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function qW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return YW(e,o,t.numberOfDoubleDots)}function YW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function QW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function NP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=KW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=NP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function KW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!gP(l,u,a))return r;n+=2}else{if(!gP(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function SS(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=SS(new In([],{}),0,n))}),i}function fP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function gP(t,i,e){return t==e.path&&hs(i,e.parameters)}var ju="imperative",$i=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})($i||{}),Cr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Vl=class extends Cr{type=$i.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends Cr{urlAfterRedirects;type=$i.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Do=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Do||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),$r=class extends Cr{reason;code;type=$i.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function FP(t){return t instanceof $r&&(t.code===Do.Redirect||t.code===Do.SupersededByNewNavigation)}var fs=class extends Cr{reason;code;type=$i.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends Cr{error;target;type=$i.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends Cr{urlAfterRedirects;state;type=$i.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dv=class extends Cr{urlAfterRedirects;state;type=$i.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends Cr{urlAfterRedirects;state;shouldActivate;type=$i.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ev=class extends Cr{urlAfterRedirects;state;type=$i.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mv=class extends Cr{urlAfterRedirects;state;type=$i.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class{route;type=$i.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Iv=class{route;type=$i.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kv=class{snapshot;type=$i.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Av=class{snapshot;type=$i.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=$i.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=$i.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=$i.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function XW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Pv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Pv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(we(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=ES(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ES(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=MS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return MS(i,this._root).map(e=>e.value)}};function ES(t,i){if(t===i.value)return i;for(let e of i.children){let n=ES(t,e);if(n)return n}return null}function MS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=MS(t,e);if(n.length)return n.unshift(i),n}return[]}var br=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Nv{snapshot;constructor(i,e){super(i),this.snapshot=e,FS(this,i)}toString(){return this.snapshot.toString()}};function LP(t,i){let e=JW(t,i),n=new on([new Fl("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new br(l,[]),e)}function JW(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new br(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Qe(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(Qe(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Qe(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function NS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:G(G({},i.params),t.params),data:G(G({},i.data),t.data),resolve:G(G(G(G({},t.data),i.data),o?.data),t._resolvedData)}:n={params:G({},t.params),data:G({},t.data),resolve:G(G({},t.data),t._resolvedData??{})},o&&BP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Nv{url;constructor(i,e){super(e),this.url=i,FS(this,e)}toString(){return VP(this._root)}};function FS(t,i){i.value._routerState=t,i.children.forEach(e=>FS(t,e))}function VP(t){let i=t.children.length>0?` { ${t.children.map(VP).join(", ")} } `:"";return`${t.value}${i}`}function bS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),MW(i.url,e.url)||t.urlSubject.next(e.url),hs(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function TS(t,i){let e=hs(t.params,i.params)&&RW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||TS(t.parent,i.parent))}function BP(t){return typeof t.title=="string"||t.title===null}var jP=new L(""),xh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=EO();parentContexts=p(ed);location=p(En);changeDetector=p(Ze);inputBinder=p(wh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new IS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),IS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===jP?this.outletData:this.parent.get(i,e)}},wh=new L(""),LS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=yo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=G(G(G({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=FO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),VS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[xh],encapsulation:2})}return t})();function BS(t){let i=t.children&&t.children.map(BS),e=i?Ye(G({},t),{children:i}):G({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=VS),e}function e$(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=t$(t,i,e);return new br(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=n$(i.value),o=i.children.map(r=>bh(t,r));return new br(n,o)}}function t$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function n$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},zP="ngNavigationCancelingError";function Fv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Ll(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=UP(!1,Do.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function UP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[zP]=!0,e.cancellationCode=i,e}function i$(t){return HP(t)&&Ll(t.url)}function HP(t){return!!t&&t[zP]}var kS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),bS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Ov(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Av(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(bS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),bS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Lv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function o$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function r$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!ZC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{a$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function a$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=s$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Lv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function s$(t,i,e){if(typeof e=="function")return Ui(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!TS(t,i)||!hs(t.queryParams,i.queryParams);default:return!TS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function l$(t){return typeof t=="boolean"}function c$(t){return t&&Dh(t.canLoad)}function d$(t){return t&&Dh(t.canActivate)}function u$(t){return t&&Dh(t.canActivateChild)}function m$(t){return t&&Dh(t.canDeactivate)}function p$(t){return t&&Dh(t.canMatch)}function WP(t){return t instanceof Ms||t?.name==="EmptyError"}var _v=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>yo(t.map(i=>i.pipe(bn(1),cn(_v)))).pipe(Qe(i=>{for(let e of i)if(e!==!0){if(e===_v)return _v;if(e===!1||h$(e))return e}return!0}),At(i=>i!==_v),bn(1)))}function h$(t){return Ll(t)||t instanceof qu}function $P(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function GP(t){return Je($P(t))}function f$(t){return wi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye(G({},i),{guardsResult:!0})):g$(r,e,n).pipe(wi(a=>a&&l$(a)?_$(e,o,t):Me(a)),Qe(a=>Ye(G({},i),{guardsResult:a})))})}function g$(t,i,e){return Hn(t).pipe(wi(n=>x$(n.component,n.route,e,i)),ks(n=>n!==!0,!0))}function _$(t,i,e){return Hn(i).pipe(yl(n=>es(b$(n.route.parent,e),v$(n.route,e),C$(t,n.path),y$(t,n.route))),ks(n=>n!==!0,!0))}function v$(t,i){return t!==null&&i&&i(new Rv(t)),Me(!0)}function b$(t,i){return t!==null&&i&&i(new kv(t)),Me(!0)}function y$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>pr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=d$(a)?a.canActivate(i,t):Ui(r,()=>a(i,t));return Jc(s).pipe(ks())}));return Me(n).pipe(Yu())}function C$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>r$(r)).filter(r=>r!==null).map(r=>pr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=u$(u)?u.canActivateChild(e,t):Ui(l,()=>u(e,t));return Jc(h).pipe(ks())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function x$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=m$(l)?l.canDeactivate(t,i,e,n):Ui(s,()=>l(t,i,e,n));return Jc(u).pipe(ks())});return Me(r).pipe(Yu())}function w$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=c$(l)?l.canLoad(i,e):Ui(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(GP(o)):h});return Me(a).pipe(Yu(),qP(n))}function qP(t){return SC(fi(i=>{if(typeof i!="boolean")throw Fv(t,i)}),Qe(i=>i===!0))}function D$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=p$(u)?u.canMatch(i,e,o):Ui(t,()=>u(i,e,o));return Jc(h).pipe(GP(r))});return Me(s).pipe(Yu(),qP(n))}var $s=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function S$(t){throw new ie(4e3,!1)}function E$(t){throw UP(!1,Do.GuardRejected)}var AS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw S$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield M$(e,o,r);if(a instanceof yr)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new yr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function M$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return Cv(Jc(Ui(e,()=>n(i))))}function T$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Oa(t){return t.outlet||Vt}function I$(t,i){let e=t.filter(n=>Oa(n)===i);return e.push(...t.filter(n=>Oa(n)!==i)),e}var RS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function k$(t,i,e,n,o,r,a){let s=QP(t,i,e);if(!s.matched)return Me(s);let l=YP(r(s));return n=T$(i,n),D$(n,i,e,o,l,a).pipe(Qe(u=>u===!0?s:G({},RS)))}function QP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?G({},RS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||bP)(e,t,i);if(!o)return G({},RS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?G(G({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function _P(t,i,e,n,o){return e.length>0&&O$(t,e,n,o)?{segmentGroup:new In(i,R$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&P$(t,e,n)?{segmentGroup:new In(t.segments,A$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function A$(t,i,e,n){let o={};for(let r of e)if(Bv(t,i,r)&&!n[Oa(r)]){let a=new In([],{});o[Oa(r)]=a}return G(G({},n),o)}function R$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Oa(n)!==Vt){let o=new In([],{});e[Oa(n)]=o}return e}function O$(t,i,e,n){return e.some(o=>!Bv(t,i,o)||!(Oa(o)!==Vt)?!1:!(n!==void 0&&Oa(o)===n))}function P$(t,i,e){return e.some(n=>Bv(t,i,n))}function Bv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function N$(t,i,e){return i.length===0&&!t.children[e]}var OS=class{};function F$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new PS(t,i,e,n,o,a,r,s).recognize()})}var L$=31,PS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new AS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=_P(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new br(n,e),r=new vh("",o),a=AP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $s?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof br?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=I$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=KP(a);return V$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof $s||WP(u))continue;throw u}if(N$(n,o,r))return new OS;throw new $s(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Oa(n)!==a&&(a===Vt||!Bv(o,r,n)))throw new $s(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new $s(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=QP(e,o,r);if(!l)throw new $s(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>L$&&(this.allowRedirects=!1));let w=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,YP(w),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze(G({},this.urlTree.queryParams)),this.urlTree.fragment,j$(e),Oa(e),e.component??e._loadedComponent??null,e,z$(e),i),s=NS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield Cv(k$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new $s(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:w}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=_P(e,y,w,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new br(S,ve)}if(u.length===0&&j.length===0)return new br(S,[]);let F=Oa(n)===r,q=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new br(S,q instanceof br?[q]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Cv(w$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw E$(e)}return{routes:[],injector:i}})}};function V$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function B$(t){let i=t.value.routeConfig;return i&&i.path===""}function KP(t){let i=[],e=new Set;for(let n of t){if(!B$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=KP(n.children);i.push(new br(n.value,o))}return i.filter(n=>!e.has(n))}function j$(t){return t.data||{}}function z$(t){return t.resolve||{}}function U$(t,i,e,n,o,r,a){return wi(s=>B(null,null,function*(){let{state:l,tree:u}=yield F$(t,i,e,n,s.extractedUrl,o,r,a);return Ye(G({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function H$(t){return wi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of ZP(s))r.add(l);let a=0;return Hn(r).pipe(yl(s=>o.has(s)?W$(s,e,t):(s.data=NS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),vg(1),wi(s=>a===r.size?Me(i):hi))})}function ZP(t){let i=t.children.map(e=>ZP(e)).flat();return[t,...i]}function W$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!BP(n)&&(o[Ch]=n.title),pr(()=>(t.data=NS(t,t.parent,e).resolve,$$(o,t,i).pipe(Qe(r=>(t._resolvedData=r,t.data=G(G({},t.data),r),null)))))}function $$(t,i,e){let n=CS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(wi(r=>G$(t[r],i,e).pipe(ks(),fi(a=>{if(a instanceof qu)throw Fv(new Gs,a);o[r]=a}))),vg(1),Qe(()=>o),Bi(r=>WP(r)?hi:wc(r)))}function G$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):Ui(n,()=>o(i,e));return Jc(r)}function vP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(Qe(()=>i)):Me(i)})}var jS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(XP),providedIn:"root"})}return t})(),XP=(()=>{class t extends jS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(we(uP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jl=new L("",{factory:()=>({})}),Ku=new L(""),jv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(kD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield CP(Ui(e,()=>n.loadComponent())),a=yield tN(eN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield JP(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JP(t,i,e,n){return B(this,null,function*(){let o=yield CP(Ui(e,()=>t.loadChildren())),r=yield tN(eN(o)),a;r instanceof B_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(BS),injector:s,factory:h}})}function q$(t){return t&&typeof t=="object"&&"default"in t}function eN(t){return q$(t)?t.default:t}function tN(t){return B(this,null,function*(){return t})}var zv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Y$),providedIn:"root"})}return t})(),Y$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zS=new L(""),US=new L("");function nN(t,i,e){let n=t.get(US),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),Q$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&Ui(t,()=>l({transition:s,from:i,to:e})),a}function Q$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var K$=()=>{},HS=new L(""),Uv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(jv);environmentInjector=p(Cn);destroyRef=p(wo);urlSerializer=p(Bl);rootContexts=p(ed);location=p(ps);inputBindingEnabled=p(wh,{optional:!0})!==null;titleStrategy=p(jS);options=p(jl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zv);createViewTransition=p(zS,{optional:!0});navigationErrorHandler=p(HS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Tv(o)),n=o=>this.events.next(new Iv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye(G({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye(G({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Vl(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),U$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(Qe(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:w,restoredState:S,extras:P}=s,j=new Vl(g,this.urlSerializer.serialize(y),w,S);this.events.next(j);let F=LP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye(G({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye(G({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=y,q)),Me(n)}else return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),Qe(s=>{let l=new Dv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye(G({},s),{guards:o$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),f$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Fv(this.urlSerializer,s.guardsResult);let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",Do.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(H$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",Do.NoDataFromResolver)}}))}),vP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(w=>{h.component=w}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),vP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(Qe(()=>n)):Me(n)}),bn(1),yn(s=>{let l=e$(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye(G({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new kS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=K$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Je($P(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",Do.Aborted)}))),fi({complete:()=>{o=!0}}),Je(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),Cl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Bi(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(HP(s))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),i$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=Ui(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Fv(this.urlSerializer,u);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z$(t){return t!==ju}var iN=new L("");var oN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(X$),providedIn:"root"})}return t})(),Vv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},X$=(()=>{class t extends Vv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hv=(()=>{class t{urlSerializer=p(Bl);options=p(jl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ps);urlHandlingStrategy=p(zv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof yr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=LP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(J$),providedIn:"root"})}return t})(),J$=(()=>{class t extends Hv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Vl?this.updateStateMemento():e instanceof fs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!FP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof er&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=G(G({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=G(G({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?G({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):G({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wv(t,i){t.events.pipe(At(e=>e instanceof er||e instanceof $r||e instanceof Xc||e instanceof fs),Qe(e=>e instanceof er||e instanceof fs?0:(e instanceof $r?e.code===Do.Redirect||e.code===Do.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var tr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(j_);stateManager=p(Hv);options=p(jl,{optional:!0})||{};pendingTasks=p(as);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Uv);urlSerializer=p(Bl);location=p(ps);urlHandlingStrategy=p(zv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(oN);injectorCleanup=p(iN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(wh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof $r&&n.code!==Do.Redirect&&n.code!==Do.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof er)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=G({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Z$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}XW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye(G({},r),{browserUrl:e})),o){let u=G({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(BS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=G(G({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=RP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return OP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Ll(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return eG(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(ga(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=G({},wP):n===!1?o=G({},xS):o=G(G({},xS),n),Ll(e))return mP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return mP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eG(t){for(let i=0;i{class t{router=p(tr);stateManager=p(Hv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(Bl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof er&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new yr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Wi("href"),{optional:!0});reactiveHref=AD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(jl,{optional:!0});reactiveRouterState=p(nG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Ll(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Lo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Ll(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(tr),D(tt),Lp("tabindex"),D(Zt),D(se),D(Ra))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),Gw)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var rN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof er),yl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(bl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(wi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(bl())}else return r})}static \u0275fac=function(n){return new(n||t)(we(tr),we(Cn),we(Sh),we(jv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aN=new L(""),iG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(Bw,{optional:!0})??!1;urlSerializer=p(Bl);zone=p(be);viewportScroller=p(JD);transitions=p(Uv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Hi).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Vl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof er?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function oG(){return p(tr).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function rG(){let t=p(Te);return i=>{let e=t.get(Hi);if(i!==e.components[0])return;let n=t.get(tr),o=t.get(sN);t.get($S)===1&&n.initialNavigation(),t.get(dN,null,{optional:!0})?.setUpPreloading(),t.get(aN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sN=new L("",{factory:()=>new Z}),$S=new L("",{factory:()=>1});function lN(){let t=[{provide:S_,useValue:!0},{provide:$S,useValue:0},W_(()=>{let i=p(Te);return i.get($D,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(tr),r=i.get(sN);Wv(o,()=>{n(!0)}),i.get(Uv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function cN(){let t=[W_(()=>{p(tr).setUpLocationChangeListener()}),{provide:$S,useValue:2}];return Eh(3,t)}var dN=new L("");function uN(t){return Eh(0,[{provide:dN,useExisting:rN},{provide:Sh,useExisting:t}])}function mN(){return Eh(8,[LS,{provide:wh,useExisting:LS}])}function pN(t){Wr("NgRouterViewTransitions");let i=[{provide:zS,useValue:nN},{provide:US,useValue:G({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var hN=[ps,{provide:Bl,useClass:Gs},tr,ed,{provide:tt,useFactory:oG},jv,[]],$v=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[hN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:HS,useValue:n.errorHandler}:[],{provide:jl,useValue:n||{}},n?.useHash?sG():lG(),aG(),n?.preloadingStrategy?uN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?cG(n):[],n?.bindToComponentInputs?mN().\u0275providers:[],n?.enableViewTransitions?pN().\u0275providers:[],dG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function aG(){return{provide:aN,useFactory:()=>{let t=p(JD),i=p(jl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new iG(i)}}}function sG(){return{provide:Ra,useClass:QD}}function lG(){return{provide:Ra,useClass:ov}}function cG(t){return[t.initialNavigation==="disabled"?cN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?lN().\u0275providers:[]]}var WS=new L("");function dG(){return[{provide:WS,useFactory:rG},{provide:$_,multi:!0,useExisting:WS}]}var Gv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var GS;try{GS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){GS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?HO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||GS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS;function fN(){if(qS==null){let t=typeof document<"u"?document.head:null;qS=!!(t&&(t.createShadowRoot||t.attachShadow))}return qS}function YS(t){if(fN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Gr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Gi(t){return t.composedPath?t.composedPath()[0]:t.target}function QS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var qv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Hi),o=qv.get(n);o||(o={loaders:new Set,refs:[]},qv.set(n,o),n.onDestroy(()=>{qv.get(n)?.refs.forEach(r=>r.destroy()),qv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(tv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qs(t){return Array.isArray(t)?t:[t]}function Pa(t,i=0){return Yv(t)?Number(t):arguments.length===2?i:0}function Yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Vo(t){return t instanceof se?t.nativeElement:t}var uG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),mG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function gN(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?mG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var xn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(uG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(gN(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Na=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Na||{}),Qv,td;function Kv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Na.NORMAL;if(Qv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Qv=Na.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qv=t.scrollLeft===0?Na.NEGATED:Na.INVERTED),t.remove()}return Qv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Fa=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Fa||{}),Zv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Fa.INSERTED:Fa.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Fa.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var pG=20,zl=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Vo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(zl);ngZone=p(be);dir=p(xn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Na.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Na.INVERTED?e.left=e.right:Zu()==Na.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Kv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Na.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Na.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),hG=20,ho=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=hG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _N=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,xr,pt,xr]})}return t})();var KS={},zt=class t{_appId=p(Rl);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),KS.hasOwnProperty(i)||(KS[i]=0),`${i}${e?t._infix+"-":""}${KS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},nr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},qi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},ZS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},Ul=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof nr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof qi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof ZS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends Ul{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ls,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=tv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},bN=(()=>{class t extends qi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Bo=(()=>{class t extends Ul{_moduleRef=p(ls,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var yN=Kv();function Hl(t){return new Xv(t.get(ho),t.get(ke))}var Xv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),yN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function MN(t,i){return new Jv(t.get(zl),t.get(be),t.get(ho),i)}var Jv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function XS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function CN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function Dr(t,i){return new eb(t.get(zl),t.get(ho),t.get(be),i)}var eb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();XS(e,[{width:n,height:o,bottom:o,right:n,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}},TN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>MN(this._injector,e);block=()=>Hl(this._injector);reposition=e=>Dr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var tb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var IN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kN=(()=>{class t extends IN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends IN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Gi(e)};_clickListener=e=>{let n=Gi(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var RN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function bc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ue=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(_t(n))try{n()}catch(r){i=r instanceof Hf?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{qT(r)}catch(a){i=i??[],a instanceof Hf?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Hf(i)}}add(i){var e;if(i&&i!==this)if(this.closed)qT(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&bc(e,i)}remove(i){let{_finalizers:e}=this;e&&bc(e,i),i instanceof t&&i._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var CC=Ue.EMPTY;function Wf(t){return t instanceof Ue||t&&"closed"in t&&_t(t.remove)&&_t(t.add)&&_t(t.unsubscribe)}function qT(t){_t(t)?t():t.unsubscribe()}var ma={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jd={setTimeout(t,i,...e){let{delegate:n}=Jd;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Jd;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function $f(t){Jd.setTimeout(()=>{let{onUnhandledError:i}=ma;if(i)i(t);else throw t})}function yc(){}var YT=wC("C",void 0,void 0);function QT(t){return wC("E",void 0,t)}function KT(t){return wC("N",t,void 0)}function wC(t,i,e){return{kind:t,value:i,error:e}}var Cc=null;function eu(t){if(ma.useDeprecatedSynchronousErrorHandling){let i=!Cc;if(i&&(Cc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Cc;if(Cc=null,e)throw n}}else t()}function ZT(t){ma.useDeprecatedSynchronousErrorHandling&&Cc&&(Cc.errorThrown=!0,Cc.error=t)}var wc=class extends Ue{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Wf(i)&&i.add(this)):this.destination=R4}static create(i,e,n){return new pa(i,e,n)}next(i){this.isStopped?DC(KT(i),this):this._next(i)}error(i){this.isStopped?DC(QT(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?DC(YT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},k4=Function.prototype.bind;function xC(t,i){return k4.call(t,i)}var SC=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){Gf(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){Gf(n)}else Gf(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){Gf(e)}}},pa=class extends wc{constructor(i,e,n){super();let o;if(_t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ma.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&xC(i.next,r),error:i.error&&xC(i.error,r),complete:i.complete&&xC(i.complete,r)}):o=i}this.destination=new SC(o)}};function Gf(t){ma.useDeprecatedSynchronousErrorHandling?ZT(t):$f(t)}function A4(t){throw t}function DC(t,i){let{onStoppedNotification:e}=ma;e&&Jd.setTimeout(()=>e(t,i))}var R4={closed:!0,next:yc,error:A4,complete:yc};var tu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mr(t){return t}function EC(...t){return MC(t)}function MC(t){return t.length===0?mr:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var dt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=P4(e)?e:new pa(e,n,o);return eu(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=XT(n),new n((o,r)=>{let a=new pa({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[tu](){return this}pipe(...e){return MC(e)(this)}toPromise(e){return e=XT(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function XT(t){var i;return(i=t??ma.Promise)!==null&&i!==void 0?i:Promise}function O4(t){return t&&_t(t.next)&&_t(t.error)&&_t(t.complete)}function P4(t){return t&&t instanceof wc||O4(t)&&Wf(t)}function TC(t){return _t(t?.lift)}function kt(t){return i=>{if(TC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Et(t,i,e,n,o){return new IC(t,i,e,n,o)}var IC=class extends wc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){i.error(l)}}:super._next,this._error=o?function(s){try{o(s)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function JT(){return kt((t,i)=>{let e=null;t._refCount++;let n=Et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var tp=class extends dt{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,TC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Ue;let e=this.getSubject();i.add(this.source.subscribe(Et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Ue.EMPTY)}return i}refCount(){return JT()(this)}};var nu={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=nu;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Ue(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=nu;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=nu;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var eI=gl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=(()=>{class t extends dt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new qf(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new eI}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?CC:(this.currentObservers=null,r.push(e),new Ue(()=>{this.currentObservers=null,bc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new dt;return e.source=this,e}}return t.create=(i,e)=>new qf(i,e),t})(),qf=class extends Z{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:CC}};var on=class extends Z{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var np={now(){return(np.delegate||Date).now()},delegate:void 0};var Br=class extends Z{constructor(i=1/0,e=1/0,n=np){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;atI(i)&&t()),i},clearImmediate(t){tI(t)}};var{setImmediate:F4,clearImmediate:L4}=nI,op={setImmediate(...t){let{delegate:i}=op;return(i?.setImmediate||F4)(...t)},clearImmediate(t){let{delegate:i}=op;return(i?.clearImmediate||L4)(t)},delegate:void 0};var Qf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=op.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(op.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}};var iu=class t{constructor(i,e=t.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}};iu.now=np.now;var vl=class extends iu{constructor(i,e=iu.now){super(i,e),this.actions=[],this._active=!1}flush(i){let{actions:e}=this;if(this._active){e.push(i);return}let n;this._active=!0;do if(n=i.execute(i.state,i.delay))break;while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}};var Kf=class extends vl{flush(i){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var Zf=new Kf(Qf);var ha=new vl(_l),iI=ha;var Xf=class extends _l{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return n!==null&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=nu.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(nu.cancelAnimationFrame(e),i._scheduled=void 0)}};var Jf=class extends vl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var eg=new Jf(Xf);var hi=new dt(t=>t.complete());function tg(t){return t&&_t(t.schedule)}function RC(t){return t[t.length-1]}function ng(t){return _t(RC(t))?t.pop():void 0}function Ja(t){return tg(RC(t))?t.pop():void 0}function oI(t,i){return typeof RC(t)=="number"?t.pop():i}function aI(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(h){try{u(n.next(h))}catch(g){a(g)}}function l(h){try{u(n.throw(h))}catch(g){a(g)}}function u(h){h.done?r(h.value):o(h.value).then(s,l)}u((n=n.apply(t,i||[])).next())})}function rI(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function sI(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(x){return function(S){return Promise.resolve(S).then(x,g)}}function s(x,S){n[x]&&(o[x]=function(P){return new Promise(function(j,F){r.push([x,P,j,F])>1||l(x,P)})},S&&(o[x]=S(o[x])))}function l(x,S){try{u(n[x](S))}catch(P){y(r[0][3],P)}}function u(x){x.value instanceof xc?Promise.resolve(x.value.v).then(h,g):y(r[0][2],x)}function h(x){l("next",x)}function g(x){l("throw",x)}function y(x,S){x(S),r.shift(),r.length&&l(r[0][0],r[0][1])}}function lI(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof rI=="function"?rI(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){a=t[r](a),o(s,l,a.done,a.value)})}}function o(r,a,s,l){Promise.resolve(l).then(function(u){r({value:u,done:s})},a)}}var ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function ig(t){return _t(t?.then)}function og(t){return _t(t[tu])}function rg(t){return Symbol.asyncIterator&&_t(t?.[Symbol.asyncIterator])}function ag(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function V4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sg=V4();function lg(t){return _t(t?.[sg])}function cg(t){return sI(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield xc(e.read());if(o)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function dg(t){return _t(t?.getReader)}function gn(t){if(t instanceof dt)return t;if(t!=null){if(og(t))return B4(t);if(ou(t))return j4(t);if(ig(t))return z4(t);if(rg(t))return cI(t);if(lg(t))return U4(t);if(dg(t))return H4(t)}throw ag(t)}function B4(t){return new dt(i=>{let e=t[tu]();if(_t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j4(t){return new dt(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,$f)})}function U4(t){return new dt(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function cI(t){return new dt(i=>{W4(t,i).catch(e=>i.error(e))})}function H4(t){return cI(cg(t))}function W4(t,i){var e,n,o,r;return aI(this,void 0,void 0,function*(){try{for(e=lI(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function bo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function ug(t,i=0){return kt((e,n)=>{e.subscribe(Et(n,o=>bo(n,t,()=>n.next(o),i),()=>bo(n,t,()=>n.complete(),i),o=>bo(n,t,()=>n.error(o),i)))})}function mg(t,i=0){return kt((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function dI(t,i){return gn(t).pipe(mg(i),ug(i))}function uI(t,i){return gn(t).pipe(mg(i),ug(i))}function mI(t,i){return new dt(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function pI(t,i){return new dt(e=>{let n;return bo(e,i,()=>{n=t[sg](),bo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>_t(n?.return)&&n.return()})}function pg(t,i){if(!t)throw new Error("Iterable cannot be null");return new dt(e=>{bo(e,i,()=>{let n=t[Symbol.asyncIterator]();bo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function hI(t,i){return pg(cg(t),i)}function fI(t,i){if(t!=null){if(og(t))return dI(t,i);if(ou(t))return mI(t,i);if(ig(t))return uI(t,i);if(rg(t))return pg(t,i);if(lg(t))return pI(t,i);if(dg(t))return hI(t,i)}throw ag(t)}function Hn(t,i){return i?fI(t,i):gn(t)}function Me(...t){let i=Ja(t);return Hn(t,i)}function bl(t,i){let e=_t(t)?t:()=>t,n=o=>o.error(e());return new dt(i?o=>i.schedule(n,0,o):n)}function Dc(t){return!!t&&(t instanceof dt||_t(t.lift)&&_t(t.subscribe))}var Ms=gl(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function hg(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new pa({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new Ms)}});t.subscribe(r)})}function fg(t){return t instanceof Date&&!isNaN(t)}var $4=gl(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function OC(t,i){let{first:e,each:n,with:o=G4,scheduler:r=i??ha,meta:a=null}=fg(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return kt((s,l)=>{let u,h,g=null,y=0,x=S=>{h=bo(l,r,()=>{try{u.unsubscribe(),gn(o({meta:a,lastValue:g,seen:y})).subscribe(l)}catch(P){l.error(P)}},S)};u=s.subscribe(Et(l,S=>{h?.unsubscribe(),y++,l.next(g=S),n>0&&x(n)},void 0,void 0,()=>{h?.closed||h?.unsubscribe(),g=null})),!y&&x(e!=null?typeof e=="number"?e:+e-r.now():n)})}function G4(t){throw new $4(t)}function Qe(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:q4}=Array;function Y4(t,i){return q4(i)?t(...i):t(i)}function ru(t){return Qe(i=>Y4(t,i))}var{isArray:Q4}=Array,{getPrototypeOf:K4,prototype:Z4,keys:X4}=Object;function gg(t){if(t.length===1){let i=t[0];if(Q4(i))return{args:i,keys:null};if(J4(i)){let e=X4(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function J4(t){return t&&typeof t=="object"&&K4(t)===Z4}function _g(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function yo(...t){let i=Ja(t),e=ng(t),{args:n,keys:o}=gg(t);if(n.length===0)return Hn([],i);let r=new dt(ez(n,i,o?a=>_g(o,a):mr));return e?r.pipe(ru(e)):r}function ez(t,i,e=mr){return n=>{gI(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let l=0;l{let u=Hn(t[l],i),h=!1;u.subscribe(Et(n,g=>{r[l]=g,h||(h=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function gI(t,i,e){t?bo(e,t,i):i()}function _I(t,i,e,n,o,r,a,s){let l=[],u=0,h=0,g=!1,y=()=>{g&&!l.length&&!u&&i.complete()},x=P=>u{r&&i.next(P),u++;let j=!1;gn(e(P,h++)).subscribe(Et(i,F=>{o?.(F),r?x(F):i.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;l.length&&uS(F)):S(F)}y()}catch(F){i.error(F)}}))};return t.subscribe(Et(i,x,()=>{g=!0,y()})),()=>{s?.()}}function xi(t,i,e=1/0){return _t(i)?xi((n,o)=>Qe((r,a)=>i(n,r,o,a))(gn(t(n,o))),e):(typeof i=="number"&&(e=i),kt((n,o)=>_I(n,o,t,e)))}function yl(t=1/0){return xi(mr,t)}function vI(){return yl(1)}function es(...t){return vI()(Hn(t,Ja(t)))}function pr(t){return new dt(i=>{gn(t()).subscribe(i)})}function rp(...t){let i=ng(t),{args:e,keys:n}=gg(t),o=new dt(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),l=a,u=a;for(let h=0;h{g||(g=!0,u--),s[h]=y},()=>l--,void 0,()=>{(!l||!g)&&(u||r.next(n?_g(n,s):s),r.complete())}))}});return i?o.pipe(ru(i)):o}var tz=["addListener","removeListener"],nz=["addEventListener","removeEventListener"],iz=["on","off"];function Sc(t,i,e,n){if(_t(e)&&(n=e,e=void 0),n)return Sc(t,i,e).pipe(ru(n));let[o,r]=az(t)?nz.map(a=>s=>t[a](i,s,e)):oz(t)?tz.map(bI(t,i)):rz(t)?iz.map(bI(t,i)):[];if(!o&&ou(t))return xi(a=>Sc(a,i,e))(gn(t));if(!o)throw new TypeError("Invalid event target");return new dt(a=>{let s=(...l)=>a.next(1r(s)})}function bI(t,i){return e=>n=>t[e](i,n)}function oz(t){return _t(t.addListener)&&_t(t.removeListener)}function rz(t){return _t(t.on)&&_t(t.off)}function az(t){return _t(t.addEventListener)&&_t(t.removeEventListener)}function Ts(t=0,i,e=iI){let n=-1;return i!=null&&(tg(i)?e=i:n=i),new dt(o=>{let r=fg(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function ap(t=0,i=ha){return t<0&&(t=0),Ts(t,t,i)}function rn(...t){let i=Ja(t),e=oI(t,1/0),n=t;return n.length?n.length===1?gn(n[0]):yl(e)(Hn(n,i)):hi}function At(t,i){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function yI(t){return kt((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let u=o;o=null,e.next(u)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};i.subscribe(Et(e,u=>{n=!0,o=u,r||gn(t(u)).subscribe(r=Et(e,s,l))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function au(t,i=ha){return yI(()=>Ts(t,i))}function Bi(t){return kt((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Et(e,void 0,void 0,a=>{r=gn(t(a,Bi(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function Cl(t,i){return _t(i)?xi(t,i,1):xi(t,1)}function Is(t,i=ha){return kt((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let u=r;r=null,n.next(u)}};function l(){let u=a+t,h=i.now();if(h{r=u,a=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function CI(t){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function bn(t){return t<=0?()=>hi:kt((i,e)=>{let n=0;i.subscribe(Et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function wI(){return kt((t,i)=>{t.subscribe(Et(i,yc))})}function xI(t){return Qe(()=>t)}function PC(t,i){return i?e=>es(i.pipe(bn(1),wI()),e.pipe(PC(t))):xi((e,n)=>gn(t(e,n)).pipe(bn(1),xI(e)))}function sp(t,i=ha){let e=Ts(t,i);return PC(()=>e)}function vg(t,i=mr){return t=t??sz,kt((e,n)=>{let o,r=!0;e.subscribe(Et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function sz(t,i){return t===i}function DI(t=lz){return kt((i,e)=>{let n=!1;i.subscribe(Et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function lz(){return new Ms}function wl(t){return kt((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function ks(t,i){let e=arguments.length>=2;return n=>n.pipe(t?At((o,r)=>t(o,r,n)):mr,bn(1),e?CI(i):DI(()=>new Ms))}function bg(t){return t<=0?()=>hi:kt((i,e)=>{let n=[];i.subscribe(Et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function yg(){return kt((t,i)=>{let e,n=!1;t.subscribe(Et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function lp(t={}){let{connector:i=()=>new Z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,u=0,h=!1,g=!1,y=()=>{s?.unsubscribe(),s=void 0},x=()=>{y(),a=l=void 0,h=g=!1},S=()=>{let P=a;x(),P?.unsubscribe()};return kt((P,j)=>{u++,!g&&!h&&y();let F=l=l??i();j.add(()=>{u--,u===0&&!g&&!h&&(s=NC(S,o))}),F.subscribe(j),!a&&u>0&&(a=new pa({next:G=>F.next(G),error:G=>{g=!0,y(),s=NC(x,e,G),F.error(G)},complete:()=>{h=!0,y(),s=NC(x,n),F.complete()}}),gn(P).subscribe(a))})(r)}}function NC(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new pa({next:()=>{n.unsubscribe(),t()}});return gn(i(...e)).subscribe(n)}function Cg(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,lp({connector:()=>new Br(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ec(t){return At((i,e)=>t<=e)}function cn(...t){let i=Ja(t);return kt((e,n)=>{(i?es(t,e,i):es(t,e)).subscribe(n)})}function yn(t,i){return kt((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Et(n,l=>{o?.unsubscribe();let u=0,h=r++;gn(t(l,h)).subscribe(o=Et(n,g=>n.next(i?i(l,g,h,u++):g),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Je(t){return kt((i,e)=>{gn(t).subscribe(Et(e,()=>e.complete(),yc)),!e.closed&&i.subscribe(e)})}function FC(t,i=!1){return kt((e,n)=>{let o=0;e.subscribe(Et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function fi(t,i,e){let n=_t(t)||i||e?{next:t,error:i,complete:e}:t;return n?kt((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Et(r,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),r.next(l)},()=>{var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var u;s=!1,(u=n.error)===null||u===void 0||u.call(n,l),r.error(l)},()=>{var l,u;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):mr}var LC;function wg(){return LC}function ts(t){let i=LC;return LC=t,i}var SI=Symbol("NotFound");function su(t){return t===SI||t?.name==="\u0275NotFound"}function VC(t,i,e){let n=Object.create(cz);n.source=t,n.computation=i,e!=null&&(n.equal=e);let r=()=>{if(_c(n),pl(n),n.value===Xa)throw n.error;return n.value};return r[wi]=n,Zm(n),r}function EI(t,i){_c(t),vc(t,i),Kd(t)}function MI(t,i){if(_c(t),t.value===Xa)throw t.error;Uf(t,i),Kd(t)}var cz=Ye(q({},ml),{value:fc,dirty:!0,error:null,equal:Xm,kind:"linkedSignal",producerMustRecompute(t){return t.value===fc||t.value===gc},producerRecomputeValue(t){if(t.value===gc)throw new Error("");let i=t.value;t.value=gc;let e=Es(t),n,o=!1;try{let r=t.source(),a=i!==fc&&i!==Xa,s=a?{source:t.sourceValue,value:i}:void 0;n=t.computation(r,s),t.sourceValue=r,ut(null),o=a&&n!==Xa&&t.equal(i,n)}catch(r){n=Xa,t.error=r}finally{hl(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function TI(t){let i=ut(null);try{return t()}finally{ut(i)}}var Ig="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",ie=class extends Error{code;constructor(i,e){super(ga(i,e)),this.code=i}};function dz(t){return`NG0${Math.abs(t)}`}function ga(t,i){return`${dz(t)}${i?": "+i:""}`}var wo=globalThis;function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("")}function OI(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function fp(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(fp).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function kg(t,i){return t?i?`${t} ${i}`:t:i||""}var uz=Rn({__forward_ref__:Rn});function Wn(t){return t.__forward_ref__=Wn,t}function ji(t){return ZC(t)?t():t}function ZC(t){return typeof t=="function"&&t.hasOwnProperty(uz)&&t.__forward_ref__===Wn}function $(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function de(t){return{providers:t.providers||[],imports:t.imports||[]}}function gp(t){return mz(t,Ag)}function XC(t){return gp(t)!==null}function mz(t,i){return t.hasOwnProperty(i)&&t[i]||null}function pz(t){let i=t?.[Ag]??null;return i||null}function jC(t){return t&&t.hasOwnProperty(Dg)?t[Dg]:null}var Ag=Rn({\u0275prov:Rn}),Dg=Rn({\u0275inj:Rn}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function JC(t){return t&&!!t.\u0275providers}var _p=Rn({\u0275cmp:Rn}),vp=Rn({\u0275dir:Rn}),ew=Rn({\u0275pipe:Rn}),tw=Rn({\u0275mod:Rn}),dp=Rn({\u0275fac:Rn}),Ac=Rn({__NG_ELEMENT_ID__:Rn}),II=Rn({__NG_ENV_ID__:Rn});function nw(t){return Og(t,"@NgModule"),t[tw]||null}function ns(t){return Og(t,"@Component"),t[_p]||null}function Rg(t){return Og(t,"@Directive"),t[vp]||null}function iw(t){return Og(t,"@Pipe"),t[ew]||null}function Og(t,i){if(t==null)throw new ie(-919,!1)}function _a(t){return typeof t=="string"?t:t==null?"":String(t)}var PI=Rn({ngErrorCode:Rn}),hz=Rn({ngErrorMessage:Rn}),fz=Rn({ngTokenPath:Rn});function ow(t,i){return NI("",-200,i)}function Pg(t,i){throw new ie(-201,!1)}function NI(t,i,e){let n=new ie(i,t);return n[PI]=i,n[hz]=t,e&&(n[fz]=e),n}function gz(t){return t[PI]}var zC;function FI(){return zC}function Ao(t){let i=zC;return zC=t,i}function rw(t,i,e){let n=gp(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;Pg(t,"")}var _z={},Mc=_z,vz="__NG_DI_FLAG__",UC=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Tc(e)||0;try{return this.injector.get(i,n&8?null:Mc,n)}catch(o){if(su(o))return o;throw o}}};function bz(t,i=0){let e=wg();if(e===void 0)throw new ie(-203,!1);if(e===null)return rw(t,void 0,i);{let n=yz(i),o=e.retrieve(t,n);if(su(o)){if(n.optional)return null;throw o}return o}}function xe(t,i=0){return(FI()||bz)(ji(t),i)}function p(t,i){return xe(t,Tc(i))}function Tc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function yz(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function HC(t){let i=[];for(let e=0;eArray.isArray(e)?Ng(e,i):i(e))}function aw(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function bp(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function BI(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function Fg(t,i,e){let n=cu(t,i);return n>=0?t[n|1]=e:(n=~n,jI(t,n,i,e)),n}function Lg(t,i){let e=cu(t,i);if(e>=0)return t[e|1]}function cu(t,i){return wz(t,i,1)}function wz(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return Ng(i,a=>{let s=a;Sg(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&UI(o,r),e}function UI(t,i){for(let e=0;e{i(r,n)})}}function Sg(t,i,e,n){if(t=ji(t),!t)return!1;let o=null,r=jC(t),a=!r&&ns(t);if(!r&&!a){let l=t.ngModule;if(r=jC(l),r)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)Sg(u,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let u;Ng(r.imports,h=>{Sg(h,i,e,n)&&(u||=[],u.push(h))}),u!==void 0&&UI(u,i)}if(!s){let u=xl(o)||(()=>new o);i({provide:o,useFactory:u,deps:Co},o),i({provide:lw,useValue:o,multi:!0},o),i({provide:Rs,useValue:()=>xe(o),multi:!0},o)}let l=r.providers;if(l!=null&&!s){let u=t;dw(l,h=>{i(h,u)})}}else return!1;return o!==t&&t.providers!==void 0}function dw(t,i){for(let e of t)JC(e)&&(e=e.\u0275providers),Array.isArray(e)?dw(e,i):i(e)}var xz=Rn({provide:String,useValue:Rn});function HI(t){return t!==null&&typeof t=="object"&&xz in t}function Dz(t){return!!(t&&t.useExisting)}function Sz(t){return!!(t&&t.useFactory)}function Ic(t){return typeof t=="function"}function WI(t){return!!t.useClass}var yp=new L(""),xg={},kI={},BC;function du(){return BC===void 0&&(BC=new up),BC}var Cn=class{},kc=class extends Cn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,$C(i,a=>this.processProvider(a)),this.records.set(sw,lu(void 0,this)),o.has("environment")&&this.records.set(Cn,lu(void 0,this));let r=this.records.get(yp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(lw,Co,{self:!0}))}retrieve(i,e){let n=Tc(e)||0;try{return this.get(i,Mc,n)}catch(o){if(su(o))return o;throw o}}destroy(){cp(this),this._destroyed=!0;let i=ut(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ut(i)}}onDestroy(i){return cp(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){cp(this);let e=ts(this),n=Ao(void 0),o;try{return i()}finally{ts(e),Ao(n)}}get(i,e=Mc,n){if(cp(this),i.hasOwnProperty(II))return i[II](this);let o=Tc(n),r,a=ts(this),s=Ao(void 0);try{if(!(o&4)){let u=this.records.get(i);if(u===void 0){let h=kz(i)&&gp(i);h&&this.injectableDefInScope(h)?u=lu(WC(i),xg):u=null,this.records.set(i,u)}if(u!=null)return this.hydrate(i,u,o)}let l=o&2?du():this.parent;return e=o&8&&e===Mc?null:e,l.get(i,e)}catch(l){let u=gz(l);throw u===-200||u===-201?new ie(u,null):l}finally{Ao(s),ts(a)}}resolveInjectorInitializers(){let i=ut(null),e=ts(this),n=Ao(void 0),o;try{let r=this.get(Rs,Co,{self:!0});for(let a of r)a()}finally{ts(e),Ao(n),ut(i)}}toString(){return"R3Injector[...]"}processProvider(i){i=ji(i);let e=Ic(i)?i:ji(i&&i.provide),n=Mz(i);if(!Ic(i)&&i.multi===!0){let o=this.records.get(e);o||(o=lu(void 0,xg,!0),o.factory=()=>HC(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ut(null);try{if(e.value===kI)throw ow("");return e.value===xg&&(e.value=kI,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Iz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ut(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=ji(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function WC(t){let i=gp(t),e=i!==null?i.factory:xl(t);if(e!==null)return e;if(t instanceof L)throw new ie(-204,!1);if(t instanceof Function)return Ez(t);throw new ie(-204,!1)}function Ez(t){if(t.length>0)throw new ie(-204,!1);let e=pz(t);return e!==null?()=>e.factory(t):()=>new t}function Mz(t){if(HI(t))return lu(void 0,t.useValue);{let i=uw(t);return lu(i,xg)}}function uw(t,i,e){let n;if(Ic(t)){let o=ji(t);return xl(o)||WC(o)}else if(HI(t))n=()=>ji(t.useValue);else if(Sz(t))n=()=>t.useFactory(...HC(t.deps||[]));else if(Dz(t))n=(o,r)=>xe(ji(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=ji(t&&(t.useClass||t.provide));if(Tz(t))n=()=>new o(...HC(t.deps));else return xl(o)||WC(o)}return n}function cp(t){if(t.destroyed)throw new ie(-205,!1)}function lu(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Tz(t){return!!t.deps}function Iz(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function kz(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function $C(t,i){for(let e of t)Array.isArray(e)?$C(e,i):e&&JC(e)?$C(e.\u0275providers,i):i(e)}function Ui(t,i){let e;t instanceof kc?(cp(t),e=t):e=new UC(t);let n,o=ts(e),r=Ao(void 0);try{return i()}finally{ts(o),Ao(r)}}function mw(){return FI()!==void 0||wg()!=null}var ba=0,mt=1,Ot=2,zi=3,jr=4,Oo=5,Rc=6,uu=7,Di=8,Os=9,ya=10,Vn=11,mu=12,pw=13,Oc=14,Po=15,Ml=16,Pc=17,is=18,Ps=19,hw=20,As=21,Vg=22,Dl=23,hr=24,Nc=25,Tl=26,si=27,$I=1,fw=6,Il=7,Cp=8,Fc=9,vi=10;function Ns(t){return Array.isArray(t)&&typeof t[$I]=="object"}function Ca(t){return Array.isArray(t)&&t[$I]===!0}function gw(t){return(t.flags&4)!==0}function os(t){return t.componentOffset>-1}function pu(t){return(t.flags&1)===1}function wa(t){return!!t.template}function hu(t){return(t[Ot]&512)!==0}function Lc(t){return(t[Ot]&256)===256}var _w="svg",GI="math";function zr(t){for(;Array.isArray(t);)t=t[ba];return t}function vw(t,i){return zr(i[t])}function Ur(t,i){return zr(i[t.index])}function Bg(t,i){return t.data[i]}function jg(t,i){return t[i]}function bw(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Hr(t,i){let e=i[t];return Ns(e)?e:e[ba]}function qI(t){return(t[Ot]&4)===4}function zg(t){return(t[Ot]&128)===128}function YI(t){return Ca(t[zi])}function fr(t,i){return i==null?null:t[i]}function yw(t){t[Pc]=0}function Cw(t){t[Ot]&1024||(t[Ot]|=1024,zg(t)&&Vc(t))}function QI(t,i){for(;t>0;)i=i[Oc],t--;return i}function wp(t){return!!(t[Ot]&9216||t[hr]?.dirty)}function Ug(t){t[ya].changeDetectionScheduler?.notify(8),t[Ot]&64&&(t[Ot]|=1024),wp(t)&&Vc(t)}function Vc(t){t[ya].changeDetectionScheduler?.notify(0);let i=Sl(t);for(;i!==null&&!(i[Ot]&8192||(i[Ot]|=8192,!zg(i)));)i=Sl(i)}function ww(t,i){if(Lc(t))throw new ie(911,!1);t[As]===null&&(t[As]=[]),t[As].push(i)}function KI(t,i){if(t[As]===null)return;let e=t[As].indexOf(i);e!==-1&&t[As].splice(e,1)}function Sl(t){let i=t[zi];return Ca(i)?i[zi]:i}function xw(t){return t[uu]??=[]}function Dw(t){return t.cleanup??=[]}function ZI(t,i,e,n){let o=xw(i);o.push(e),t.firstCreatePass&&Dw(t).push(n,o.length-1)}var Ut={lFrame:lk(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var GC=!1;function XI(){return Ut.lFrame.elementDepthCount}function JI(){Ut.lFrame.elementDepthCount++}function Sw(){Ut.lFrame.elementDepthCount--}function Hg(){return Ut.bindingsEnabled}function Ew(){return Ut.skipHydrationRootTNode!==null}function Mw(t){return Ut.skipHydrationRootTNode===t}function Tw(){Ut.skipHydrationRootTNode=null}function lt(){return Ut.lFrame.lView}function $n(){return Ut.lFrame.tView}function I(t){return Ut.lFrame.contextLView=t,t[Di]}function k(t){return Ut.lFrame.contextLView=null,t}function ki(){let t=Iw();for(;t!==null&&t.type===64;)t=t.parent;return t}function Iw(){return Ut.lFrame.currentTNode}function ek(){let t=Ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function fu(t,i){let e=Ut.lFrame;e.currentTNode=t,e.isParent=i}function kw(){return Ut.lFrame.isParent}function Aw(){Ut.lFrame.isParent=!1}function tk(){return Ut.lFrame.contextLView}function Rw(){return GC}function mp(t){let i=GC;return GC=t,i}function gu(){let t=Ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Ow(){return Ut.lFrame.bindingIndex}function nk(t){return Ut.lFrame.bindingIndex=t}function rs(){return Ut.lFrame.bindingIndex++}function xp(t){let i=Ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function ik(){return Ut.lFrame.inI18n}function ok(t,i){let e=Ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,Wg(i)}function rk(){return Ut.lFrame.currentDirectiveIndex}function Wg(t){Ut.lFrame.currentDirectiveIndex=t}function ak(t){let i=Ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function $g(){return Ut.lFrame.currentQueryIndex}function Dp(t){Ut.lFrame.currentQueryIndex=t}function Az(t){let i=t[mt];return i.type===2?i.declTNode:i.type===1?t[Oo]:null}function Pw(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Az(r),o===null||(r=r[Oc],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=Ut.lFrame=sk();return n.currentTNode=i,n.lView=t,!0}function Gg(t){let i=sk(),e=t[mt];Ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function sk(){let t=Ut.lFrame,i=t===null?null:t.child;return i===null?lk(t):i}function lk(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function ck(){let t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Nw=ck;function qg(){let t=ck();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dk(t){return(Ut.lFrame.contextLView=QI(t,Ut.lFrame.contextLView))[Di]}function xa(){return Ut.lFrame.selectedIndex}function kl(t){Ut.lFrame.selectedIndex=t}function _u(){let t=Ut.lFrame;return Bg(t.tView,t.selectedIndex)}function Gn(){Ut.lFrame.currentNamespace=_w}function Da(){Rz()}function Rz(){Ut.lFrame.currentNamespace=null}function Fw(){return Ut.lFrame.currentNamespace}var uk=!0;function Yg(){return uk}function Sp(t){uk=t}function qC(t,i=null,e=null,n){let o=Lw(t,i,e,n);return o.resolveInjectorInitializers(),o}function Lw(t,i=null,e=null,n,o=new Set){let r=[e||Co,zI(t)],a;return new kc(r,i||du(),a||null,o)}var Te=class t{static THROW_IF_NOT_FOUND=Mc;static NULL=new up;static create(i,e){if(Array.isArray(i))return qC({name:""},e,i,"");{let n=i.name??"";return qC({name:n},i.parent,i.providers,n)}}static \u0275prov=$({token:t,providedIn:"any",factory:()=>xe(sw)});static __NG_ELEMENT_ID__=-1},ke=new L(""),xo=(()=>{class t{static __NG_ELEMENT_ID__=Oz;static __NG_ENV_ID__=e=>e}return t})(),Eg=class extends xo{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return ww(e,i),()=>KI(e,i)}};function Oz(){return new Eg(lt())}var Vw=!1,mk=new L(""),as=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new on(!1);debugTaskTracker=p(mk,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new dt(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),YC=class extends Z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,mw()&&(this.destroyRef=p(xo,{optional:!0})??void 0,this.pendingTasks=p(as,{optional:!0})??void 0)}emit(i){let e=ut(null);try{super.next(i)}finally{ut(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let l=i;o=l.next?.bind(l),r=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Ue&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},V=YC;function Mg(...t){}function Bw(t){let i,e;function n(){t=Mg;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch(o){}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pk(t){return queueMicrotask(()=>t()),()=>{t=Mg}}var jw="isAngularZone",pp=jw+"_ID",Pz=0,be=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Vw}=i;if(typeof Zone>"u")throw new ie(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)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,Lz(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(jw)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ie(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,Nz,Mg,Mg);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},Nz={};function zw(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fz(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Bw(()=>{t.callbackScheduled=!1,QC(t),t.isCheckStableRunning=!0,zw(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),QC(t)}function Lz(t){let i=()=>{Fz(t)},e=Pz++;t._inner=t._inner.fork({name:"angular",properties:{[jw]:!0,[pp]:e,[pp+e]:!0},onInvokeTask:(n,o,r,a,s,l)=>{if(Vz(l))return n.invokeTask(r,a,s,l);try{return AI(t),n.invokeTask(r,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),RI(t)}},onInvoke:(n,o,r,a,s,l,u)=>{try{return AI(t),n.invoke(r,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Bz(l)&&i(),RI(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,QC(t),zw(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function QC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function AI(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function RI(t){t._nesting--,zw(t)}var hp=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V;onMicrotaskEmpty=new V;onStable=new V;onError=new V;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function Vz(t){return hk(t,"__ignore_ng_zone__")}function Bz(t){return hk(t,"__scheduler_tick__")}function hk(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}var Ro=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Xo=new L("",{factory:()=>{let t=p(be),i=p(Cn),e;return n=>{t.runOutsideAngular(()=>{i.destroyed&&!e?setTimeout(()=>{throw n}):(e??=i.get(Ro),e.handleError(n))})}}}),fk={provide:Rs,useValue:()=>{let t=p(Ro,{optional:!0})},multi:!0};function Re(t,i){let[e,n,o]=vC(t,i?.equal),r=e,a=r[wi];return r.set=n,r.update=o,r.asReadonly=Qg.bind(r),r}function Qg(){let t=this[wi];if(t.readonlyFn===void 0){let i=()=>this();i[wi]=t,t.readonlyFn=i}return t.readonlyFn}var vu=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=jz}return t})();function jz(){return new vu(lt(),ki())}var fa=class{},bu=new L("",{factory:()=>!0});var Kg=new L(""),yu=(()=>{class t{internalPendingTasks=p(as);scheduler=p(fa);errorHandler=p(Xo);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),Zg=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new KC})}return t})(),KC=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}},Tg=class{[wi];constructor(i){this[wi]=i}destroy(){this[wi].destroy()}};function Fs(t,i){let e=i?.injector??p(Te),n=i?.manualCleanup!==!0?e.get(xo):null,o,r=e.get(vu,null,{optional:!0}),a=e.get(fa);return r!==null?(o=Hz(r.view,a,t),n instanceof Eg&&n._lView===r.view&&(n=null)):o=Wz(t,e.get(Zg),a),o.injector=e,n!==null&&(o.onDestroyFns=[n.onDestroy(()=>o.destroy())]),new Tg(o)}var gk=Ye(q({},bC),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mp(!1);try{yC(this)}finally{mp(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ut(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ut(t)}}}),zz=Ye(q({},gk),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Uz=Ye(q({},gk),{consumerMarkedDirty(){this.view[Ot]|=8192,Vc(this.view),this.notifier.notify(13)},destroy(){if(fl(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Dl]?.delete(this)}});function Hz(t,i,e){let n=Object.create(Uz);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=_k(n,e),t[Dl]??=new Set,t[Dl].add(n),n.consumerMarkedDirty(n),n}function Wz(t,i,e){let n=Object.create(zz);return n.fn=_k(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function _k(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}function Fp(t){return{toString:t}.toString()}function Jk(t){let i=wo.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Zz(t){return typeof t=="function"}function eA(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var l_=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}},Ct=(()=>{let t=()=>tA;return t.ngInherit=!0,t})();function tA(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jz),Xz}function Xz(){let t=iA(this),i=t?.current;if(i){let e=t.previous;if(e===va)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function Jz(t,i,e,n,o){let r=this.declaredInputs[n],a=iA(t)||eU(t,{previous:va,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[r];s[r]=new l_(u&&u.currentValue,e,l===va),eA(t,i,o,e)}var nA="__ngSimpleChanges__";function iA(t){return t[nA]||null}function eU(t,i){return t[nA]=i}var vk=[];var Un=function(t,i=null,e){for(let n=0;n=n)break}else i[l]<0&&(t[Pc]+=65536),(s>14>16&&(t[Ot]&3)===i&&(t[Ot]+=16384,bk(s,r)):bk(s,r)}var wu=-1,jc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function iU(t){return(t.flags&8)!==0}function oU(t){return(t.flags&16)!==0}function rU(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function d_(t,i){let e=sU(t),n=i;for(;e>0;)n=n[Oc],e--;return n}var Xw=!0;function u_(t){let i=Xw;return Xw=t,i}var lU=256,lA=lU-1,cA=5,cU=0,ss={};function dU(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ac)&&(n=e[Ac]),n==null&&(n=e[Ac]=cU++);let o=n&lA,r=1<>cA)]|=r}function m_(t,i){let e=dA(t,i);if(e!==-1)return e;let n=i[mt];n.firstCreatePass&&(t.injectorIndex=i.length,Hw(n.data,t),Hw(i,null),Hw(n.blueprint,null));let o=Lx(t,i),r=t.injectorIndex;if(sA(o)){let a=c_(o),s=d_(o,i),l=s[mt].data;for(let u=0;u<8;u++)i[r+u]=s[a+u]|l[a+u]}return i[r+8]=o,r}function Hw(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dA(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Lx(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=fA(o),n===null)return wu;if(e++,o=o[Oc],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return wu}function Jw(t,i,e){dU(t,i,e)}function uU(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,g=n?s:s+h,y=o?s+h:u;for(let x=g;x=l&&S.type===e)return x}if(o){let x=a[l];if(x&&wa(x)&&x.type===e)return l}return null}function Ip(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof jc){let s=r;if(s.resolving)throw ow("");let l=u_(s.canSeeViewProviders);s.resolving=!0;let u=a[e].type||a[e],h,g=s.injectImpl?Ao(s.injectImpl):null,y=Pw(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&tU(e,a[e],i)}finally{g!==null&&Ao(g),u_(l),s.resolving=!1,Nw()}}return r}function pU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Ac)?t[Ac]:void 0;return typeof i=="number"?i>=0?i&lA:hU:i}function Ck(t,i,e){let n=1<>cA)]&n)}function wk(t,i){return!(t&2)&&!(t&1&&i)}var Bc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return pA(this._tNode,this._lView,i,Tc(n),e)}};function hU(){return new Bc(ki(),lt())}function Kt(t){return Fp(()=>{let i=t.prototype.constructor,e=i[dp]||ex(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[dp]||ex(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function ex(t){return ZC(t)?()=>{let i=ex(ji(t));return i&&i()}:xl(t)}function fU(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Ot]&2048&&!hu(a);){let s=hA(r,a,e,n|2,ss);if(s!==ss)return s;let l=r.parent;if(!l){let u=a[hw];if(u){let h=u.get(e,ss,n&-5);if(h!==ss)return h}l=fA(a),a=a[Oc]}r=l}return o}function fA(t){let i=t[mt],e=i.type;return e===2?i.declTNode:e===1?t[Oo]:null}function Lp(t){return uU(ki(),t)}function gU(){return Tu(ki(),lt())}function Tu(t,i){return new se(Ur(t,i))}var se=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=gU}return t})();function gA(t){return t instanceof se?t.nativeElement:t}function _U(){return this._results[Symbol.iterator]()}var gr=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Z}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=VI(i);(this._changesDetected=!LI(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=_U};function _A(t){return(t.flags&128)===128}var Vx=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Vx||{}),vA=new Map,vU=0;function bU(){return vU++}function yU(t){vA.set(t[Ps],t)}function tx(t){vA.delete(t[Ps])}var xk="__ngContext__";function Du(t,i){Ns(i)?(t[xk]=i[Ps],yU(i)):t[xk]=i}function bA(t){return CA(t[mu])}function yA(t){return CA(t[jr])}function CA(t){for(;t!==null&&!Ca(t);)t=t[jr];return t}var nx;function Bx(t){nx=t}function wA(){if(nx!==void 0)return nx;if(typeof document<"u")return document;throw new ie(210,!1)}var Ol=new L("",{factory:()=>CU}),CU="ng";var S_=new L(""),Hc=new L("",{providedIn:"platform",factory:()=>"unknown"}),Pl=new L(""),Wc=new L("",{factory:()=>p(ke).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var xA="r";var DA="di";var jx=new L(""),SA=!1,EA=new L("",{factory:()=>SA});var E_=new L("");var Dk=new WeakMap;function wU(t,i){if(t==null||typeof t!="object")return;let e=Dk.get(t);e||(e=new WeakSet,Dk.set(t,e)),e.add(i)}var xU=(t,i,e,n)=>{};function DU(t,i,e,n){xU(t,i,e,n)}function M_(t){return(t.flags&32)===32}var SU=()=>null;function MA(t,i,e=!1){return SU(t,i,e)}function TA(t,i){let e=t.contentQueries;if(e!==null){let n=ut(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Xg}function T_(t){return EU()?.createHTML(t)||t}var Jg;function IA(){if(Jg===void 0&&(Jg=null,wo.trustedTypes))try{Jg=wo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Jg}function Sk(t){return IA()?.createHTML(t)||t}function Ek(t){return IA()?.createScriptURL(t)||t}var Ls=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ig})`}},ox=class extends Ls{getTypeName(){return"HTML"}},rx=class extends Ls{getTypeName(){return"Style"}},ax=class extends Ls{getTypeName(){return"Script"}},sx=class extends Ls{getTypeName(){return"URL"}},lx=class extends Ls{getTypeName(){return"ResourceURL"}};function _r(t){return t instanceof Ls?t.changingThisBreaksApplicationSecurity:t}function cs(t,i){let e=kA(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Ig})`)}return e===i}function kA(t){return t instanceof Ls&&t.getTypeName()||null}function Ux(t){return new ox(t)}function Hx(t){return new rx(t)}function Wx(t){return new ax(t)}function $x(t){return new sx(t)}function Gx(t){return new lx(t)}function MU(t){let i=new dx(t);return TU()?new cx(i):i}var cx=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(T_(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch(e){return null}}},dx=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=T_(i),e}};function TU(){try{return!!new window.DOMParser().parseFromString(T_(""),"text/html")}catch(t){return!1}}var IU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(IU)?t:"unsafe:"+t}function Vs(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Bp(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var AA=Vs("area,br,col,hr,img,wbr"),RA=Vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),OA=Vs("rp,rt"),kU=Bp(OA,RA),AU=Bp(RA,Vs("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")),RU=Bp(OA,Vs("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")),Mk=Bp(AA,AU,RU,kU),PA=Vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OU=Vs("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"),PU=Vs("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"),NU=Bp(PA,OU,PU),FU=Vs("script,style,template"),ux=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=BU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=VU(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=Tk(i).toLowerCase();if(!Mk.hasOwnProperty(e))return this.sanitizedSomething=!0,!FU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=Tk(i).toLowerCase();Mk.hasOwnProperty(e)&&!AA.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(Ik(i))}};function LU(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VU(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw NA(i);return i}function BU(t){let i=t.firstChild;if(i&&LU(t,i))throw NA(i);return i}function Tk(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function NA(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var jU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zU=/([^\#-~ |!])/g;function Ik(t){return t.replace(/&/g,"&").replace(jU,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(zU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var e_;function I_(t,i){let e=null;try{e_=e_||MU(t);let n=i?String(i):"";e=e_.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=e_.getInertBodyElement(n)}while(n!==r);let s=new ux().sanitizeChildren(kk(e)||e);return T_(s)}finally{if(e){let n=kk(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function kk(t){return"content"in t&&UU(t)?t.content:null}function UU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var HU=/^>|^->||--!>|)/g,$U="\u200B$1\u200B";function GU(t){return t.replace(HU,i=>i.replace(WU,$U))}function qU(t,i){return t.createText(i)}function YU(t,i,e){t.setValue(i,e)}function QU(t,i){return t.createComment(GU(i))}function FA(t,i,e){return t.createElement(i,e)}function p_(t,i,e,n,o){t.insertBefore(i,e,n,o)}function LA(t,i,e){t.appendChild(i,e)}function Ak(t,i,e,n,o){n!==null?p_(t,i,e,n,o):LA(t,i,e)}function VA(t,i,e,n){t.removeChild(null,i,e,n)}function KU(t,i,e){t.setAttribute(i,"style",e)}function ZU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function BA(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&rU(t,i,n),o!==null&&ZU(t,i,o),r!==null&&KU(t,i,r)}var Ai=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ai||{});function Bn(t){let i=Yx();return i?Sk(i.sanitize(Ai.HTML,t)||""):cs(t,"HTML")?Sk(_r(t)):I_(wA(),_a(t))}function it(t){let i=Yx();return i?i.sanitize(Ai.URL,t)||"":cs(t,"URL")?_r(t):Vp(_a(t))}function jA(t){let i=Yx();if(i)return Ek(i.sanitize(Ai.RESOURCE_URL,t)||"");if(cs(t,"ResourceURL"))return Ek(_r(t));throw new ie(904,!1)}var XU={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function JU(t,i){return XU[t.toLowerCase()]?.[i.toLowerCase()]===!0?jA:it}function qx(t,i,e){return JU(i,e)(t)}function Yx(){let t=lt();return t&&t[ya].sanitizer}function jp(t){return t.ownerDocument.defaultView}function Qx(t){return t.ownerDocument}function zA(t){return t instanceof Function?t():t}function eH(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var UA="ng-template";function tH(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?g="":g=o[h+1].toLowerCase(),n&2&&u!==g){if(Sa(n))return!1;a=!0}}}}return Sa(n)||a}function Sa(t){return(t&1)===0}function oH(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!Sa(a)&&(i+=Rk(r,o),o=""),n=a,r=r||!Sa(n);e++}return o!==""&&(i+=Rk(r,o)),i}function dH(t){return t.map(cH).join(",")}function uH(t){let i=[],e=[],n=1,o=2;for(;n=0;r--){let a=e[r],s=a.parentNode;a===i?(e.splice(r,1),Ep.add(a),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&a===o||s&&n&&s!==n)&&(e.splice(r,1),a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),a.parentNode?.removeChild(a))}}function _H(t,i){let e=px.get(t);e?e.includes(i)||e.push(i):px.set(t,[i])}var zc=new Set,A_=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(A_||{}),Ia=new L(""),Ok=new Set;function Wr(t){Ok.has(t)||(Ok.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var R_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),tD=[0,1,2,3],nD=(()=>{class t{ngZone=p(be);scheduler=p(fa);errorHandler=p(Ro,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Ia,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Un(Sn.AfterRenderHooksStart),this.executing=!0;for(let n of tD)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Un(Sn.AfterRenderHooksEnd)}register(e){let{view:n}=e;n!==void 0?((n[Nc]??=[]).push(e),Vc(n),n[Ot]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}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))}maybeTrace(e,n){return n?n.run(A_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=$({token:t,providedIn:"root",factory:()=>new t})}return t})(),kp=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Nc];i&&(this.view[Nc]=i.filter(e=>e!==this))}};function nn(t,i){let e=i?.injector??p(Te);return Wr("NgAfterNextRender"),bH(t,e,i,!0)}function vH(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function bH(t,i,e,n){let o=i.get(R_);o.impl??=i.get(nD);let r=i.get(Ia,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(xo):null,s=i.get(vu,null,{optional:!0}),l=new kp(o.impl,vH(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(l),l}var qA=new L("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(Cn)})});function YA(t,i,e){let n=t.get(qA);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function yH(t,i){let e=t.get(qA);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function CH(t,i){for(let[e,n]of i)YA(t,n.animateFns)}function Pk(t,i,e,n){let o=t?.[Tl]?.enter;i!==null&&o&&o.has(e.index)&&CH(n,o)}function Cu(t,i,e,n,o,r,a,s){if(o!=null){let l,u=!1;Ca(o)?l=o:Ns(o)&&(u=!0,o=o[ba]);let h=zr(o);t===0&&n!==null?(Pk(s,n,r,e),a==null?LA(i,n,h):p_(i,n,h,a||null,!0)):t===1&&n!==null?(Pk(s,n,r,e),p_(i,n,h,a||null,!0),gH(r,h)):t===2?(s?.[Tl]?.leave?.has(r.index)&&_H(r,h),Ep.delete(h),Nk(s,r,e,g=>{if(Ep.has(h)){Ep.delete(h);return}VA(i,h,u,g)})):t===3&&(Ep.delete(h),Nk(s,r,e,()=>{i.destroyNode(h)})),l!=null&&RH(i,t,e,l,r,n,a)}}function wH(t,i){QA(t,i),i[ba]=null,i[Oo]=null}function xH(t,i,e,n,o,r){n[ba]=o,n[Oo]=i,P_(t,n,e,1,o,r)}function QA(t,i){i[ya].changeDetectionScheduler?.notify(9),P_(t,i,i[Vn],2,null,null)}function DH(t){let i=t[mu];if(!i)return Ww(t[mt],t);for(;i;){let e=null;if(Ns(i))e=i[mu];else{let n=i[vi];n&&(e=n)}if(!e){for(;i&&!i[jr]&&i!==t;)Ns(i)&&Ww(i[mt],i),i=i[zi];i===null&&(i=t),Ns(i)&&Ww(i[mt],i),e=i&&i[jr]}i=e}}function iD(t,i){let e=t[Fc],n=e.indexOf(i);e.splice(n,1)}function O_(t,i){if(Lc(i))return;let e=i[Vn];e.destroyNode&&P_(t,i,e,3,null,null),DH(i)}function Ww(t,i){if(Lc(i))return;let e=ut(null);try{i[Ot]&=-129,i[Ot]|=256,i[hr]&&fl(i[hr]),MH(t,i),EH(t,i),i[mt].type===1&&i[Vn].destroy();let n=i[Ml];if(n!==null&&Ca(i[zi])){n!==i[zi]&&iD(n,i);let o=i[is];o!==null&&o.detachView(t)}tx(i)}finally{ut(e)}}function Nk(t,i,e,n){let o=t?.[Tl];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&zc.add(t[Ps]),YA(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let l=0;l{t[Tl].running=void 0,zc.delete(t[Ps]),i(!0)});return}i(!1)}function EH(t,i){let e=t.cleanup,n=i[uu];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[uu]=null);let o=i[As];if(o!==null){i[As]=null;for(let a=0;asi&&GA(t,i,si,!1);let s=a?Sn.TemplateUpdateStart:Sn.TemplateCreateStart;Un(s,o,e),e(n,o)}finally{kl(r);let s=a?Sn.TemplateUpdateEnd:Sn.TemplateCreateEnd;Un(s,o,e)}}function N_(t,i,e){VH(t,i,e),(e.flags&64)===64&&BH(t,i,e)}function zp(t,i,e=Ur){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function LH(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tR(t,i,e,n,o,r){let a=i[mt];if(F_(t,a,i,e,n)){os(t)&&iR(i,t.index);return}t.type&3&&(e=LH(e)),nR(t,i,e,n,o,r)}function nR(t,i,e,n,o,r){if(t.type&3){let a=Ur(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function iR(t,i){let e=Hr(i,t);e[Ot]&16||(e[Ot]|=64)}function VH(t,i,e){let n=e.directiveStart,o=e.directiveEnd;os(e)&&hH(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||m_(e,i);let r=e.initialInputs;for(let a=n;a{Vc(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function ZH(t){let i=t[hr]??Object.create(XH);return i.lView=t,i}var XH=Ye(q({},ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Sl(t.lView);for(;i&&!lR(i[mt]);)i=Sl(i);i&&Cw(i)},consumerOnSignalRead(){this.lView[hr]=this}});function lR(t){return t.type!==2}function cR(t){if(t[Dl]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Dl])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Ot]&8192)}}var JH=100;function dR(t,i=0){let n=t[ya].rendererFactory,o=!1;o||n.begin?.();try{e5(t,i)}finally{o||n.end?.()}}function e5(t,i){let e=Rw();try{mp(!0),fx(t,i);let n=0;for(;wp(t);){if(n===JH)throw new ie(103,!1);n++,fx(t,1)}}finally{mp(e)}}function t5(t,i,e,n){if(Lc(i))return;let o=i[Ot],r=!1,a=!1;Gg(i);let s=!0,l=null,u=null;r||(lR(t)?(u=qH(i),l=Es(u)):zf()===null?(s=!1,u=ZH(i),l=Es(u)):i[hr]&&(fl(i[hr]),i[hr]=null));try{yw(i),nk(t.bindingStartIndex),e!==null&&eR(t,i,e,2,n);let h=(o&3)===3;if(!r)if(h){let x=t.preOrderCheckHooks;x!==null&&i_(i,x,null)}else{let x=t.preOrderHooks;x!==null&&o_(i,x,0,null),Uw(i,0)}if(a||n5(i),cR(i),uR(i,0),t.contentQueries!==null&&TA(t,i),!r)if(h){let x=t.contentCheckHooks;x!==null&&i_(i,x)}else{let x=t.contentHooks;x!==null&&o_(i,x,1),Uw(i,1)}o5(t,i);let g=t.components;g!==null&&pR(i,g,0);let y=t.viewQuery;if(y!==null&&ix(2,y,n),!r)if(h){let x=t.viewCheckHooks;x!==null&&i_(i,x)}else{let x=t.viewHooks;x!==null&&o_(i,x,2),Uw(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Vg]){for(let x of i[Vg])x();i[Vg]=null}r||(aR(i),i[Ot]&=-73)}catch(h){throw r||Vc(i),h}finally{u!==null&&(hl(u,l),s&&QH(u)),qg()}}function uR(t,i){for(let e=bA(t);e!==null;e=yA(e))for(let n=vi;n0&&(t[e-1][jr]=n[jr]);let r=bp(t,vi+i);wH(n[mt],n);let a=r[is];a!==null&&a.detachView(r[mt]),n[zi]=null,n[jr]=null,n[Ot]&=-129}return n}function r5(t,i,e,n){let o=vi+n,r=e.length;n>0&&(e[o-1][jr]=i),n-1&&(Rp(i,n),bp(e,n))}this._attachedToViewContainer=!1}O_(this._lView[mt],this._lView)}onDestroy(i){ww(this._lView,i)}markForCheck(){dD(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Ot]&=-129}reattach(){Ug(this._lView),this._lView[Ot]|=128}detectChanges(){this._lView[Ot]|=1024,dR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=hu(this._lView),e=this._lView[Ml];e!==null&&!i&&iD(e,this._lView),QA(this._lView[mt],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=i;let e=hu(this._lView),n=this._lView[Ml];n!==null&&!e&&_R(n,this._lView),Ug(this._lView)}};var mn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=a5;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=Up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Al(r)}}return t})();function a5(){return L_(ki(),lt())}function L_(t,i){return t.type&4?new mn(i,t,Tu(t,i)):null}function Iu(t,i,e,n,o){let r=t.data[i];if(r===null)r=s5(t,i,e,n,o),ik()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=ek();r.injectorIndex=a===null?-1:a.injectorIndex}return fu(r,!0),r}function s5(t,i,e,n,o){let r=Iw(),a=kw(),s=a?r:r&&r.parent,l=t.data[i]=c5(t,s,e,i,n,o);return l5(t,l,r,a),l}function l5(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function c5(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Ew()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,namespace:Fw(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function d5(t){let i=t[fw]??[],n=t[zi][Vn],o=[];for(let r of i)r.data[DA]!==void 0?o.push(r):u5(r,n);t[fw]=o}function u5(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xA];for(;enull,p5=()=>null;function h_(t,i){return m5(t,i)}function vR(t,i,e){return p5(t,i,e)}var bR=class{},V_=class{},gx=class{resolveComponentFactory(i){throw new ie(917,!1)}},Wp=class{static NULL=new gx},bi=class{},Zt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>h5()}return t})();function h5(){let t=lt(),i=ki(),e=Hr(i.index,t);return(Ns(e)?e:t)[Vn]}var yR=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>null})}return t})();var a_={},_x=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,a_,n);return o!==a_||e===a_?o:this.parentInjector.get(i,e,n)}};function f_(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let y=0;y0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function w5(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(zr(P[t.index])):t.index;SR(S,i,e,r,s,x,!1)}}return u}function M5(t){return t.startsWith("animation")||t.startsWith("transition")}function T5(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rl?s[l]:null}typeof a=="string"&&(r+=2)}return null}function SR(t,i,e,n,o,r,a){let s=i.firstCreatePass?Dw(i):null,l=xw(e),u=l.length;l.push(o,r),s&&s.push(n,t,u,(u+1)*(a?-1:1))}function zk(t,i,e,n,o,r){let a=i[e],s=i[mt],u=s.data[e].outputs[n],g=a[u].subscribe(r);SR(t.index,s,i,o,r,g,!0)}var vx=Symbol("BINDING");function ER(t){return t.debugInfo?.className||t.type.name||null}var g_=class extends Wp{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=ns(i);return new Rl(e,this.ngModule)}};function I5(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&k_.SignalBased)!==0};return o&&(r.transform=o),r})}function k5(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function A5(t,i,e){let n=i instanceof Cn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new _x(e,n):e}function R5(t){let i=t.get(bi,null);if(i===null)throw new ie(407,!1);let e=t.get(yR,null),n=t.get(fa,null),o=t.get(Ia,null,{optional:!0});return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1,tracingService:o}}function O5(t,i){let e=MR(t);return FA(i,e,e==="svg"?_w:e==="math"?GI:null)}function P5(t){if(t?.toLowerCase()==="script")throw new ie(905,!1)}function MR(t){return(t.selectors[0][0]||"div").toLowerCase()}var Rl=class extends V_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I5(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=k5(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=dH(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){Un(Sn.DynamicComponentStart);let s=ut(null);try{let l=this.componentDef,u=A5(l,o||this.ngModule,i),h=R5(u),g=h.tracingService;return g&&g.componentCreate?g.componentCreate(ER(l),()=>this.createComponentRef(h,u,e,n,r,a)):this.createComponentRef(h,u,e,n,r,a)}finally{ut(s)}}createComponentRef(i,e,n,o,r,a){let s=this.componentDef,l=N5(o,s,a,r),u=i.rendererFactory.createRenderer(null,s),h=o?PH(u,o,s.encapsulation,e):O5(s,u);P5(h?.tagName);let g=a?.some(Uk)||r?.some(S=>typeof S!="function"&&S.bindings.some(Uk)),y=Xx(null,l,null,512|WA(s),null,null,i,u,e,null,MA(h,e,!0));y[si]=h,Gg(y);let x=null;try{let S=uD(si,y,2,"#host",()=>l.directiveRegistry,!0,0);BA(u,h,S),Du(h,y),N_(l,y,S),zx(l,S,y),mD(l,S),n!==void 0&&L5(S,this.ngContentSelectors,n),x=Hr(S.index,y),y[Di]=x[Di],cD(l,y,null)}catch(S){throw x!==null&&tx(x),tx(y),S}finally{Un(Sn.DynamicComponentEnd),qg()}return new __(this.componentType,y,!!g)}};function N5(t,i,e,n){let o=t?["ng-version","21.2.18"]:uH(i.selectors[0]),r=null,a=null,s=0;if(e)for(let h of e)s+=h[vx].requiredVars,h.create&&(h.targetIdx=0,(r??=[]).push(h)),h.update&&(h.targetIdx=0,(a??=[]).push(h));if(n)for(let h=0;h{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function Uk(t){let i=t[vx].kind;return i==="input"||i==="twoWay"}var __=class extends bR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=Bg(e[mt],si),this.location=Tu(this._tNode,e),this.instance=Hr(this._tNode.index,e)[Di],this.hostView=this.changeDetectorRef=new Al(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=F_(n,o[mt],o,i,e);this.previousInputValues.set(i,e);let a=Hr(n.index,o);dD(a,1)}get injector(){return new Bc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function L5(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=V5}return t})();function V5(){let t=ki();return TR(t,lt())}var bx=class t extends En{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Tu(this._hostTNode,this._hostLView)}get injector(){return new Bc(this._hostTNode,this._hostLView)}get parentInjector(){let i=Lx(this._hostTNode,this._hostLView);if(sA(i)){let e=d_(i,this._hostLView),n=c_(i),o=e[mt].data[n+8];return new Bc(o,e)}else return new Bc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Hk(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-vi}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=h_(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,Su(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let l=i&&!Zz(i),u;if(l)u=e;else{let j=e||{};u=j.index,n=j.injector,o=j.projectableNodes,r=j.environmentInjector||j.ngModuleRef,a=j.directives,s=j.bindings}let h=l?i:new Rl(ns(i)),g=n||this.parentInjector;if(!r&&h.ngModule==null){let F=(l?g:this.parentInjector).get(Cn,null);F&&(r=F)}let y=ns(h.componentType??{}),x=h_(this._lContainer,y?.id??null),S=x?.firstChild??null,P=h.create(g,o,S,r,a,s);return this.insertImpl(P.hostView,u,Su(this._hostTNode,x)),P}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(YI(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let l=o[zi],u=new t(l,l[Oo],l[zi]);u.detach(u.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Hp(a,o,r,n),i.attachToViewContainerRef(),aw($w(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Hk(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);n&&(bp($w(this._lContainer),e),O_(n[mt],n))}detach(i){let e=this._adjustIndex(i,-1),n=Rp(this._lContainer,e);return n&&bp($w(this._lContainer),e)!=null?new Al(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Hk(t){return t[Cp]}function $w(t){return t[Cp]||(t[Cp]=[])}function TR(t,i){let e,n=i[t.index];return Ca(n)?e=n:(e=hR(n,i,null,t),i[t.index]=e,Jx(i,e)),j5(e,i,t,n),new bx(e,t,i)}function B5(t,i){let e=t[Vn],n=e.createComment(""),o=Ur(i,t),r=e.parentNode(o);return p_(e,r,n,e.nextSibling(o),!1),n}var j5=H5,z5=()=>!1;function U5(t,i,e){return z5(t,i,e)}function H5(t,i,e,n){if(t[Il])return;let o;e.type&8?o=zr(n):o=B5(i,e),t[Il]=o}var yx=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Cx=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let u=r[s+1],h=i[-l];for(let g=vi;gi.trim())}function OR(t,i,e){t.queries===null&&(t.queries=new wx),t.queries.track(new xx(i,e))}function Q5(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function _D(t,i){return t.queries.getByIndex(i)}function PR(t,i){let e=t[mt],n=_D(e,i);return n.crossesNgTemplate?Dx(e,t,i,[]):IR(e,t,n,i)}function NR(t,i,e){let n,o=Jm(()=>{n._dirtyCounter();let r=K5(n,t);if(i&&r===void 0)throw new ie(-951,!1);return r});return n=o[wi],n._dirtyCounter=Re(0),n._flatValue=void 0,o}function vD(t){return NR(!0,!1,t)}function bD(t){return NR(!0,!0,t)}function FR(t,i){let e=t[wi];e._lView=lt(),e._queryIndex=i,e._queryList=gD(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function K5(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Ot]&4)return i?void 0:Co;let o=gD(e,n),r=PR(e,n);return o.reset(r,gA),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var Sx=new Map,Z5=new Set;function yD(t){return B(this,null,function*(){let i=Sx;Sx=new Map;let e=new Map;function n(r){let a=e.get(r);if(a)return a;let s=t(r).then(l=>X5(r,l));return e.set(r,s),s}let o=Array.from(i).map(s=>B(null,[s],function*([r,a]){if(a.styleUrl&&a.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");let l=[];a.templateUrl&&l.push(n(a.templateUrl).then(y=>{a.template=y}));let u=typeof a.styles=="string"?[a.styles]:a.styles??[];a.styles=u;let{styleUrl:h,styleUrls:g}=a;if(h&&(g=[h],a.styleUrl=void 0),g?.length){let y=Promise.all(g.map(x=>n(x))).then(x=>{u.push(...x),a.styleUrls=void 0});l.push(y)}yield Promise.all(l),Z5.delete(r)}));yield Promise.all(o)})}function LR(){return Sx.size===0}function X5(t,i){return B(this,null,function*(){if(typeof i=="string")return i;if(i.status!==void 0&&i.status!==200)throw new ie(918,!1);return i.text()})}var ls=class{},j_=class{};var Op=class extends ls{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new g_(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=nw(i);this._bootstrapComponents=zA(r.bootstrap),this._r3Injector=Lw(i,e,[{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver},...n],fp(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Pp=class extends j_{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new Op(this.moduleType,i,[])}};function VR(t,i,e){return new Op(t,i,e,!1)}var b_=class extends ls{injector;componentFactoryResolver=new g_(this);instance=null;constructor(i){super();let e=new kc([...i.providers,{provide:ls,useValue:this},{provide:Wp,useValue:this.componentFactoryResolver}],i.parent||du(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function ku(t,i,e=null){return new b_({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var J5=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=cw(!1,e.type),o=n.length>0?ku([n],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:t,providedIn:"environment",factory:()=>new t(xe(Cn))})}return t})();function T(t){return Fp(()=>{let i=jR(t),e=Ye(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Vx.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(J5).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ma.Emulated,styles:t.styles||Co,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wr("NgStandalone"),zR(e);let n=t.dependencies;return e.directiveDefs=y_(n,BR),e.pipeDefs=y_(n,iw),e.id=n8(e),e})}function BR(t){return ns(t)||Rg(t)}function ue(t){return Fp(()=>({type:t.type,bootstrap:t.bootstrap||Co,declarations:t.declarations||Co,imports:t.imports||Co,exports:t.exports||Co,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function e8(t,i){if(t==null)return va;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,l;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,l=o[3]||null):(r=o,a=o,s=k_.None,l=null),e[r]=[n,s,l],i[r]=a}return e}function t8(t){if(t==null)return va;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function Q(t){return Fp(()=>{let i=jR(t);return zR(i),i})}function ka(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jR(t){let i={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||va,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Co,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:e8(t.inputs,i),outputs:t8(t.outputs),debugInfo:null}}function zR(t){t.features?.forEach(i=>i(t))}function y_(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function n8(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function CD(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=i8,e.hostDirectives=n?t.map(Ex):[t]):n?e.hostDirectives.unshift(...t.map(Ex)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function i8(t){let i=[],e=!1,n=null,o=null;for(let r=0;r=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=xu(o.hostAttrs,e=xu(e,o.hostAttrs))}}function Gw(t){return t===va?{}:t===Co?[]:t}function l8(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function c8(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function d8(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function HR(t,i,e,n,o,r,a,s){if(e.firstCreatePass){t.mergedAttrs=xu(t.mergedAttrs,t.attrs);let h=t.tView=Zx(2,t,o,r,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),h.queries=e.queries.embeddedTView(t))}s&&(t.flags|=s),fu(t,!1);let l=m8(e,i,t,n);Yg()&&oD(e,i,l,t),Du(l,i);let u=hR(l,i,l,t);i[n+si]=u,Jx(i,u),U5(u,t,i)}function u8(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;return i.firstCreatePass?(y=Iu(i,g,4,a||null,s||null),Hg()&&CR(i,t,y,fr(i.consts,u),aD),oA(i,y)):y=i.data[g],HR(y,t,i,e,n,o,r,l),pu(y)&&N_(i,t,y),u!=null&&zp(t,y,h),y}function Eu(t,i,e,n,o,r,a,s,l,u,h){let g=e+si,y;if(i.firstCreatePass){if(y=Iu(i,g,4,a||null,s||null),u!=null){let x=fr(i.consts,u);y.localNames=[];for(let S=0;S{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function ds(t){return typeof t=="function"&&t[wi]!==void 0}function wD(t){return ds(t)&&typeof t.set=="function"}var U_=new L(""),H_=new L(""),$p=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,mw()&&(this._destroyRef=p(xo,{optional:!0})??void 0),xD||($R(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,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(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(xe(be),xe(WR),xe(H_))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),WR=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return xD?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $R(t){xD=t}var xD;function js(t){return!!t&&typeof t.then=="function"}function W_(t){return!!t&&typeof t.subscribe=="function"}var DD=new L("");function $_(t){return El([{provide:DD,multi:!0,useValue:t}])}var SD=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(DD,{optional:!0})??[];injector=p(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=Ui(this.injector,o);if(js(r))e.push(r);else if(W_(r)){let a=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G_=new L("");function GR(){_C(()=>{let t="";throw new ie(600,t)})}function qR(t){return t.isBoundToModule}var h8=10;function ED(t,i){return Array.isArray(i)?i.reduce(ED,t):q(q({},t),i)}var Hi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xo);afterRenderManager=p(R_);zonelessEnabled=p(bu);rootEffectScheduler=p(Zg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Z;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(as);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Qe(e=>!e))}constructor(){p(Ia,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(Cn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Te.NULL){return this._injector.get(be).run(()=>{Un(Sn.BootstrapComponentStart);let a=e instanceof V_;if(!this._injector.get(SD).done){let S="";throw new ie(405,S)}let l;a?l=e:l=this._injector.get(Wp).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let u=qR(l)?void 0:this._injector.get(ls),h=n||l.selector,g=l.create(o,[],h,u),y=g.location.nativeElement,x=g.injector.get(U_,null);return x?.registerApplication(y),g.onDestroy(()=>{this.detachView(g.hostView),Tp(this.components,g),x?.unregisterApplication(y)}),this._loadComponent(g),Un(Sn.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Un(Sn.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(A_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Un(Sn.ChangeDetectionEnd),new ie(101,!1);let e=ut(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ut(e),this.afterTick.next(),Un(Sn.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(bi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++wp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Tp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(G_,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Tp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ie(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tp(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Au(t,i){let e=lt(),n=rs();if(No(e,n,i)){let o=$n(),r=_u();if(F_(r,o,e,t,i))os(r)&&iR(e,r.index);else{let s=Ur(r,e);oR(e[Vn],s,null,r.value,t,i,null)}}return Au}function me(t,i,e,n){let o=lt(),r=rs();if(No(o,r,i)){let a=$n(),s=_u();zH(s,o,t,i,e,n)}return me}var Mx=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function qw(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function f8(t,i,e,n){let o,r,a=0,s=t.length-1,l=void 0;if(Array.isArray(i)){ut(n);let u=i.length-1;for(ut(null);a<=s&&a<=u;){let h=t.at(a),g=i[a],y=qw(a,h,a,g,e);if(y!==0){y<0&&t.updateValue(a,g),a++;continue}let x=t.at(s),S=i[u],P=qw(s,x,u,S,e);if(P!==0){P<0&&t.updateValue(s,S),s--,u--;continue}let j=e(a,h),F=e(s,x),G=e(a,g);if(Object.is(G,F)){let ve=e(u,S);Object.is(ve,j)?(t.swap(a,s),t.updateValue(s,S),u--,s--):t.move(s,a),t.updateValue(a,g),a++;continue}if(o??=new C_,r??=qk(t,a,s,e),Tx(t,o,a,G))t.updateValue(a,g),a++,s++;else if(r.has(G))o.set(j,t.detach(a)),s--;else{let ve=t.create(a,i[a]);t.attach(a,ve),a++,s++}}for(;a<=u;)Gk(t,o,e,a,i[a]),a++}else if(i!=null){ut(n);let u=i[Symbol.iterator]();ut(null);let h=u.next();for(;!h.done&&a<=s;){let g=t.at(a),y=h.value,x=qw(a,g,a,y,e);if(x!==0)x<0&&t.updateValue(a,y),a++,h=u.next();else{o??=new C_,r??=qk(t,a,s,e);let S=e(a,y);if(Tx(t,o,a,S))t.updateValue(a,y),a++,s++,h=u.next();else if(!r.has(S))t.attach(a,t.create(a,y)),a++,s++,h=u.next();else{let P=e(a,g);o.set(P,t.detach(a)),s--}}}for(;!h.done;)Gk(t,o,e,t.length,h.value),h=u.next()}for(;a<=s;)t.destroy(t.detach(s--));o?.forEach(u=>{t.destroy(u)})}function Tx(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Gk(t,i,e,n,o){if(Tx(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qk(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var C_=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function A(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,256,a,s),MD}function MD(t,i,e,n,o,r,a,s){Wr("NgControlFlow");let l=lt(),u=$n(),h=fr(u.consts,r);return Eu(l,u,t,i,e,n,o,h,512,a,s),MD}function R(t,i){Wr("NgControlFlow");let e=lt(),n=rs(),o=e[n]!==so?e[n]:-1,r=o!==-1?w_(e,si+o):void 0,a=0;if(No(e,n,t)){let s=ut(null);try{if(r!==void 0&&gR(r,a),t!==-1){let l=si+t,u=w_(e,l),h=Rx(e[mt],l),g=vR(u,h,e),y=Up(e,h,i,{dehydratedView:g});Hp(u,y,a,Su(h,g))}}finally{ut(s)}}else if(r!==void 0){let s=fR(r,a);s!==void 0&&(s[Di]=i)}}var Ix=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-vi}};function De(t,i){return i}var kx=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function fe(t,i,e,n,o,r,a,s,l,u,h,g,y){Wr("NgControlFlow");let x=lt(),S=$n(),P=l!==void 0,j=lt(),F=s?a.bind(j[Po][Di]):a,G=new kx(P,F);j[si+t]=G,Eu(x,S,t+1,i,e,n,o,fr(S.consts,r),256),P&&Eu(x,S,t+2,l,u,h,g,fr(S.consts,y),512)}var Ax=class extends Mx{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-vi}at(i){return this.getLView(i)[Di].$implicit}attach(i,e){let n=e[Rc];this.needsIndexUpdate||=i!==this.length,Hp(this.lContainer,e,i,Su(this.templateTNode,n)),g8(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,_8(this.lContainer,i),v8(this.lContainer,i)}create(i,e){let n=h_(this.lContainer,this.templateTNode.tView.ssrId);return Up(this.hostLView,this.templateTNode,new Ix(this.lContainer,e,i),{dehydratedView:n})}destroy(i){O_(i[mt],i)}updateValue(i,e){this.getLView(i)[Di].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[Os];yH(r,o),zc.delete(n[Ps]),o.detachedLeaveAnimationFns=void 0}}function _8(t,i){if(t.length<=vi)return;let e=vi+i,n=t[e],o=n?n[Tl]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function v8(t,i){return Rp(t,i)}function b8(t,i){return fR(t,i)}function Rx(t,i){return Bg(t,i)}function b(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return b}function Ox(t,i,e,n,o){F_(i,t,e,o?"class":"style",n)}function c(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?uD(a,o,2,i,aD,Hg(),e,n):r.data[a];if(os(s)){let l=o[ya].tracingService;if(l&&l.componentCreate){let u=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(ER(u),()=>(Yk(t,i,o,s,n),c))}}return Yk(t,i,o,s,n),c}function Yk(t,i,e,n,o){if(sD(n,e,t,i,YR),pu(n)){let r=e[mt];N_(r,e,n),zx(r,n,e)}o!=null&&zp(e,n)}function d(){let t=$n(),i=ki(),e=lD(i);return t.firstCreatePass&&mD(t,e),Mw(e)&&Tw(),Sw(),e.classesWithoutHost!=null&&iU(e)&&Ox(t,e,lt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&oU(e)&&Ox(t,e,lt(),e.stylesWithoutHost,!1),d}function O(t,i,e,n){return c(t,i,e,n),d(),O}function dn(t,i,e,n){let o=lt(),r=o[mt],a=t+si,s=r.firstCreatePass?D5(a,r,2,i,e,n):r.data[a];return sD(s,o,t,i,YR),n!=null&&zp(o,s),dn}function pn(){let t=ki(),i=lD(t);return Mw(i)&&Tw(),Sw(),pn}function mo(t,i,e,n){return dn(t,i,e,n),pn(),mo}var YR=(t,i,e,n,o)=>(Sp(!0),FA(i[Vn],n,Fw()));function us(t,i,e){let n=lt(),o=n[mt],r=t+si,a=o.firstCreatePass?uD(r,n,8,"ng-container",aD,Hg(),i,e):o.data[r];if(sD(a,n,t,"ng-container",y8),pu(a)){let s=n[mt];N_(s,n,a),zx(s,a,n)}return e!=null&&zp(n,a),us}function ms(){let t=$n(),i=ki(),e=lD(i);return t.firstCreatePass&&mD(t,e),ms}function Ri(t,i,e){return us(t,i,e),ms(),Ri}var y8=(t,i,e,n,o)=>(Sp(!0),QU(i[Vn],""));function W(){return lt()}function On(t,i,e){let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();nR(a,n,t,i,n[Vn],e)}return On}var Gp="en-US";var C8=Gp;function QR(t){typeof t=="string"&&(C8=t.toLowerCase().replace(/_/g,"-"))}function w(t,i,e){let n=lt(),o=$n(),r=ki();return KR(o,n,n[Vn],r,t,i,e),w}function Nl(t,i,e){let n=lt(),o=$n(),r=ki();return(r.type&3||e)&&DR(r,o,n,e,n[Vn],t,i,s_(r,n,i)),Nl}function KR(t,i,e,n,o,r,a){let s=!0,l=null;if((n.type&3||a)&&(l??=s_(n,i,r),DR(n,t,i,a,e,o,r,l)&&(s=!1)),s){let u=n.outputs?.[o],h=n.hostDirectiveOutputs?.[o];if(h&&h.length)for(let g=0;g>17&32767}function D8(t){return(t&2)==2}function S8(t,i){return t&131071|i<<17}function Px(t){return t|2}function Mu(t){return(t&131068)>>2}function Yw(t,i){return t&-131069|i<<2}function E8(t){return(t&1)===1}function Nx(t){return t|1}function M8(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Uc(a),l=Mu(a);t[n]=e;let u=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||cu(g,h)>0)&&(u=!0)}else h=e;if(o)if(l!==0){let y=Uc(t[s+1]);t[n+1]=t_(y,s),y!==0&&(t[y+1]=Yw(t[y+1],n)),t[s+1]=S8(t[s+1],n)}else t[n+1]=t_(s,0),s!==0&&(t[s+1]=Yw(t[s+1],n)),s=n;else t[n+1]=t_(l,0),s===0?s=n:t[l+1]=Yw(t[l+1],n),l=n;u&&(t[n+1]=Px(t[n+1])),Qk(t,h,n,!0),Qk(t,h,n,!1),T8(i,h,t,n,r),a=t_(s,l),r?i.classBindings=a:i.styleBindings=a}function T8(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&cu(r,i)>=0&&(e[n+1]=Nx(e[n+1]))}function Qk(t,i,e,n){let o=t[e+1],r=i===null,a=n?Uc(o):Mu(o),s=!1;for(;a!==0&&(s===!1||r);){let l=t[a],u=t[a+1];I8(l,i)&&(s=!0,t[a+1]=n?Nx(u):Px(u)),a=n?Uc(u):Mu(u)}s&&(t[e+1]=n?Px(o):Nx(o))}function I8(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?cu(t,i)>=0:!1}var Ea={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function k8(t){return t.substring(Ea.key,Ea.keyEnd)}function A8(t){return R8(t),ZR(t,XR(t,0,Ea.textEnd))}function ZR(t,i){let e=Ea.textEnd;return e===i?-1:(i=Ea.keyEnd=O8(t,Ea.key=i,e),XR(t,i,e))}function R8(t){Ea.key=0,Ea.keyEnd=0,Ea.value=0,Ea.valueEnd=0,Ea.textEnd=t.length}function XR(t,i,e){for(;i32;)i++;return i}function Si(t,i,e){return JR(t,i,e,!1),Si}function le(t,i){return JR(t,i,null,!0),le}function Tn(t){N8(z8,P8,t,!0)}function P8(t,i){for(let e=A8(i);e>=0;e=ZR(i,e))Fg(t,k8(i),!0)}function JR(t,i,e,n){let o=lt(),r=$n(),a=xp(2);if(r.firstUpdatePass&&tO(r,t,a,n),i!==so&&No(o,a,i)){let s=r.data[xa()];nO(r,s,o,o[Vn],t,o[a+1]=H8(i,e),n,a)}}function N8(t,i,e,n){let o=$n(),r=xp(2);o.firstUpdatePass&&tO(o,null,r,n);let a=lt();if(e!==so&&No(a,r,e)){let s=o.data[xa()];if(iO(s,n)&&!eO(o,r)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=kg(l,e||"")),Ox(o,s,a,e,n)}else U8(o,s,a,a[Vn],a[r+1],a[r+1]=j8(t,i,e),n,r)}}function eO(t,i){return i>=t.expandoStartIndex}function tO(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[xa()],a=eO(t,e);iO(r,n)&&i===null&&!a&&(i=!1),i=F8(o,r,i,n),M8(o,r,i,e,a,n)}}function F8(t,i,e,n){let o=ak(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Qw(null,t,i,e,n),e=Np(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Qw(o,t,i,e,n),r===null){let l=L8(t,i,n);l!==void 0&&Array.isArray(l)&&(l=Qw(null,t,i,l[1],n),l=Np(l,i.attrs,n),V8(t,i,n,l))}else r=B8(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function L8(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Mu(n)!==0)return t[Uc(n)]}function V8(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Uc(o)]=n}function B8(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let l=t[o],u=Array.isArray(l),h=u?l[1]:l,g=h===null,y=e[o+1];y===so&&(y=g?Co:void 0);let x=g?Lg(y,n):h===n?y:void 0;if(u&&!x_(x)&&(x=Lg(l,n)),x_(x)&&(s=x,a))return s;let S=t[o+1];o=a?Uc(S):Mu(S)}if(i!==null){let l=r?i.residualClasses:i.residualStyles;l!=null&&(s=Lg(l,n))}return s}function x_(t){return t!==void 0}function H8(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=fp(_r(t)))),t}function iO(t,i){return(t.flags&(i?8:16))!==0}function f(t,i=""){let e=lt(),n=$n(),o=t+si,r=n.firstCreatePass?Iu(n,o,1,i,null):n.data[o],a=W8(n,e,r,i);e[o]=a,Yg()&&oD(n,e,a,r),fu(r,!1)}var W8=(t,i,e,n)=>(Sp(!0),qU(i[Vn],n));function $8(t,i,e,n=""){return No(t,rs(),e)?i+_a(e)+n:so}function G8(t,i,e,n,o,r=""){let a=Ow(),s=fD(t,a,e,o);return xp(2),s?i+_a(e)+n+_a(o)+r:so}function q8(t,i,e,n,o,r,a,s=""){let l=Ow(),u=E5(t,l,e,o,a);return xp(3),u?i+_a(e)+n+_a(o)+r+_a(a)+s:so}function _e(t){return H("",t),_e}function H(t,i,e){let n=lt(),o=$8(n,t,i,e);return o!==so&&TD(n,xa(),o),H}function Fo(t,i,e,n,o){let r=lt(),a=G8(r,t,i,e,n,o);return a!==so&&TD(r,xa(),a),Fo}function K_(t,i,e,n,o,r,a){let s=lt(),l=q8(s,t,i,e,n,o,r,a);return l!==so&&TD(s,xa(),l),K_}function TD(t,i,e){let n=vw(i,t);YU(t[Vn],n,e)}function ee(t,i,e){wD(i)&&(i=i());let n=lt(),o=rs();if(No(n,o,i)){let r=$n(),a=_u();tR(a,n,t,i,n[Vn],e)}return ee}function ne(t,i){let e=wD(t);return e&&t.set(i),e}function te(t,i){let e=lt(),n=$n(),o=ki();return KR(n,e,e[Vn],o,t,i),te}function Fl(t){return No(lt(),rs(),t)?_a(t):so}function Zk(t,i,e){let n=$n();n.firstCreatePass&&oO(i,n.data,n.blueprint,wa(t),e)}function oO(t,i,e,n,o){if(t=ji(t),Array.isArray(t))for(let r=0;r>20;if(Ic(t)||!t.multi){let x=new jc(u,o,D,null),S=Zw(l,i,o?h:h+y,g);S===-1?(Jw(m_(s,a),r,l),Kw(r,t,i.length),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[S]=x,a[S]=x)}else{let x=Zw(l,i,h+y,g),S=Zw(l,i,h,h+y),P=x>=0&&e[x],j=S>=0&&e[S];if(o&&!j||!o&&!P){Jw(m_(s,a),r,l);let F=K8(o?Q8:Y8,e.length,o,n,u,t);!o&&j&&(e[S].providerFactory=F),Kw(r,t,i.length,0),i.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(F),a.push(F)}else{let F=rO(e[o?S:x],u,!o&&n);Kw(r,t,x>-1?x:S,F)}!o&&n&&j&&e[S].componentProviders++}}}function Kw(t,i,e,n){let o=Ic(i),r=WI(i);if(o||r){let l=(r?ji(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function rO(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Zw(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>Zk(n,o?o(t):t,!1),i&&(e.viewProvidersResolver=(n,o)=>Zk(n,o?o(i):i,!0))}}function ID(t,i,e){let n=t.\u0275cmp;n.directiveDefs=y_(i,BR),n.pipeDefs=y_(e,iw)}function Gc(t,i){let e=gu()+t,n=lt();return n[e]===so?hD(n,e,i()):S5(n,e)}function po(t,i,e){return sO(lt(),gu(),t,i,e)}function kD(t,i,e,n){return lO(lt(),gu(),t,i,e,n)}function aO(t,i){let e=t[i];return e===so?void 0:e}function sO(t,i,e,n,o,r){let a=i+e;return No(t,a,o)?hD(t,a+1,r?n.call(r,o):n(o)):aO(t,a+1)}function lO(t,i,e,n,o,r,a){let s=i+e;return fD(t,s,o,r)?hD(t,s+2,a?n.call(a,o,r):n(o,r)):aO(t,s+2)}function $t(t,i){let e=$n(),n,o=t+si;e.firstCreatePass?(n=Z8(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=xl(n.type,!0)),a,s=Ao(D);try{let l=u_(!1),u=r();return u_(l),bw(e,lt(),o,u),u}finally{Ao(s)}}function Z8(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function Xt(t,i,e){let n=t+si,o=lt(),r=jg(o,n);return cO(o,n)?sO(o,gu(),i,r.transform,e,r):r.transform(e)}function Z_(t,i,e,n){let o=t+si,r=lt(),a=jg(r,o);return cO(r,o)?lO(r,gu(),i,a.transform,e,n,a):a.transform(e,n)}function cO(t,i){return t[mt].data[i].pure}function qp(t,i){return L_(t,i)}var n_=null;function dO(t){n_!==null&&(t.defaultEncapsulation!==n_.defaultEncapsulation||t.preserveWhitespaces!==n_.preserveWhitespaces)||(n_=t)}var D_=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},AD=(()=>{class t{compileModuleSync(e){return new Pp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=nw(e),r=zA(o.declarations).reduce((a,s)=>{let l=ns(s);return l&&a.push(new Rl(l)),a},[]);return new D_(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uO=new L("");var mO=(()=>{class t{applicationErrorHandler=p(Xo);appRef=p(Hi);taskService=p(as);ngZone=p(be);zonelessEnabled=p(bu);tracing=p(Ia,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ue;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(pp):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Kg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?pk:Bw;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.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(pp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pO(){return[{provide:fa,useExisting:mO},{provide:be,useClass:hp},{provide:bu,useValue:!0}]}function X8(){return typeof $localize<"u"&&$localize.locale||Gp}var Ru=new L("",{factory:()=>p(Ru,{optional:!0,skipSelf:!0})||X8()});function hn(t){return TI(t)}function Lo(t,i){return Jm(t,i?.equal)}var J8=t=>t;function RD(t,i){if(typeof t=="function"){let e=VC(t,J8,i?.equal);return hO(e,i?.debugName)}else{let e=VC(t.source,t.computation,t.equal);return hO(e,t.debugName)}}function hO(t,i){let e=t[wi],n=t;return n.set=o=>EI(e,o),n.update=o=>MI(e,o),n.asReadonly=Qg.bind(t),n}var DO=Symbol("InputSignalNode#UNSET"),u6=Ye(q({},ep),{transformFn:void 0,applyValueToInputSignal(t,i){vc(t,i)}});function SO(t,i){let e=Object.create(u6);e.value=t,e.transformFn=i?.transform;function n(){if(pl(e),e.value===DO){let o=null;throw new ie(-950,o)}return e.value}return n[wi]=e,n}var Wi=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Lp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EO=(()=>{let t=new L("");return t.__NG_ELEMENT_ID__=i=>{let e=ki();if(e===null)throw new ie(-204,!1);if(e.type&2)return e.value;if(i&8)return null;throw new ie(-204,!1)},t})();function fO(t,i){return SO(t,i)}function m6(t){return SO(DO,t)}var MO=(fO.required=m6,fO);function gO(t,i){return vD(i)}function p6(t,i){return bD(i)}var Qp=(gO.required=p6,gO);function _O(t,i){return vD(i)}function h6(t,i){return bD(i)}var TO=(_O.required=h6,_O);function f6(t,i,e){let n=new Pp(e);return Promise.resolve(n)}function vO(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var g6=(()=>{class t{zone=p(be);changeDetectionScheduler=p(fa);applicationRef=p(Hi);applicationErrorHandler=p(Xo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_6=new L("",{factory:()=>!1});function v6({ngZoneFactory:t,scheduleInRootZone:i}){return t??=()=>new be(Ye(q({},kO()),{scheduleInRootZone:i})),[{provide:bu,useValue:!1},{provide:be,useFactory:t},{provide:Rs,multi:!0,useFactory:()=>{let e=p(g6,{optional:!0});return()=>e.initialize()}},{provide:Rs,multi:!0,useFactory:()=>{let e=p(b6);return()=>{e.initialize()}}},{provide:Kg,useValue:i??Vw}]}function IO(t){let i=t?.scheduleInRootZone,e=v6({ngZoneFactory:()=>{let n=kO(t);return n.scheduleInRootZone=i,n.shouldCoalesceEventChangeDetection&&Wr("NgZone_CoalesceEvent"),new be(n)},scheduleInRootZone:i});return El([{provide:_6,useValue:!0},e])}function kO(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var b6=(()=>{class t{subscription=new Ue;initialized=!1;zone=p(be);pendingTasks=p(as);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var X_=new L(""),y6=new L("");function Yp(t){return!t.moduleRef}function C6(t){let i=Yp(t)?t.r3Injector:t.moduleRef.injector,e=i.get(be);return e.run(()=>{Yp(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Xo),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Yp(t)){let r=()=>i.destroy(),a=t.platformInjector.get(X_);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(X_);a.add(r),t.moduleRef.onDestroy(()=>{Tp(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return x6(n,e,()=>{let r=i.get(as),a=r.add(),s=i.get(SD);return s.runInitializers(),s.donePromise.then(()=>{let l=i.get(Ru,Gp);if(QR(l||Gp),!i.get(y6,!0))return Yp(t)?i.get(Hi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Yp(t)){let h=i.get(Hi);return t.rootComponent!==void 0&&h.bootstrap(t.rootComponent),h}else return AO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{r.remove(a)})})})}var AO;function bO(){AO=w6}function w6(t,i){let e=t.injector.get(Hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new ie(-403,!1);i.push(t)}function x6(t,i,e){try{let n=e();return js(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var RO=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=[pO(),...n?.applicationProviders??[],fk],r=VR(e.moduleType,this.injector,o);return bO(),C6({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=ED({},n);return bO(),f6(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(X_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(xe(Te))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),UD=null;function D6(t){if(WD())throw new ie(400,!1);GR(),UD=t;let i=t.get(RO);return M6(t),i}function HD(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=WD();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??D6(S6(s,n))}return E6(o)}}function S6(t=[],i){return Te.create({name:i,providers:[{provide:yp,useValue:"platform"},{provide:X_,useValue:new Set([()=>UD=null])},...t]})}function E6(t){let i=WD();if(!i)throw new ie(-401,!1);return i}function WD(){return UD?.get(RO)??null}function M6(t){let i=t.get(S_,null);Ui(t,()=>{i?.forEach(e=>e())})}var T6=1e4;var V0e=T6-1e3;var Ze=(()=>{class t{static __NG_ELEMENT_ID__=I6}return t})();function I6(t){return k6(ki(),lt(),(t&16)===16)}function k6(t,i,e){if(os(t)&&!e){let n=Hr(t.index,i);return new Al(n,n)}else if(t.type&175){let n=i[Po];return new Al(n,i)}return null}var PD=class{supports(i){return pD(i)}create(i){return new ND(i)}},A6=(t,i)=>i,ND=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||A6}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new FD(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}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(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new J_),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new J_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},FD=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},LD=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},J_=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new LD,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yO(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new jD(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},jD=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function CO(){return new zs([new PD])}var zs=(()=>{class t{factories;static \u0275prov=$({token:t,providedIn:"root",factory:CO});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||CO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new ie(901,!1)}}return t})();function wO(){return new tv([new VD])}var tv=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:wO});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=p(t,{optional:!0,skipSelf:!0});return t.create(e,n||wO())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ie(901,!1)}}return t})();var OO=HD(null,"core",[]),PO=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(xe(Hi))};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function K(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ti(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var OD=Symbol("NOT_SET"),NO=new Set,R6=Ye(q({},ep),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:OD,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(pl(u),u.value),u.signal[wi]=u,u.registerCleanupFn=h=>(u.cleanup??=new Set).add(h),this.nodes[s]=u,this.hooks[s]=h=>u.phaseFn(h)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let i of this.onDestroyFns)i();super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??NO)e()}finally{fl(i)}}};function FO(t,i){let e=i?.injector??p(Te),n=e.get(fa),o=e.get(R_),r=e.get(Ia,null,{optional:!0});o.impl??=e.get(nD);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(vu,null,{optional:!0}),l=new zD(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(l),l}function nv(t,i){let e=ns(t),n=i.elementInjector||du();return new Rl(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function LO(t){let i=ns(t);if(!i)return null;let e=new Rl(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var VO=null;function vr(){return VO}function $D(t){VO??=t}var Kp=class{},Us=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(BO),providedIn:"platform"})}return t})(),GD=new L(""),BO=(()=>{class t extends Us{_location;_history;_doc=p(ke);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=vr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function iv(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function jO(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Aa(t){return t&&t[0]!=="?"?`?${t}`:t}var Ra=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(rv),providedIn:"root"})}return t})(),ov=new L(""),rv=(()=>{class t extends Ra{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return iv(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Aa(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(xe(Us),xe(ov,8))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ps=(()=>{class t{_subject=new Z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=N6(jO(zO(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Aa(n))}normalize(e){return t.stripTrailingSlash(P6(this._basePath,zO(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Aa(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=Aa;static joinWithSlash=iv;static stripTrailingSlash=jO;static \u0275fac=function(n){return new(n||t)(xe(Ra))};static \u0275prov=$({token:t,factory:()=>O6(),providedIn:"root"})}return t})();function O6(){return new ps(xe(Ra))}function P6(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function zO(t){return t.replace(/\/index\.html$/,"")}function N6(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var KD=(()=>{class t extends Ra{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=iv(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Aa(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(xe(Us),xe(ov,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var qD=/\s+/,UO=[],qc=(()=>{class t{_ngEl;_renderer;initialClasses=UO;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(qD):UO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(qD):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[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(e,n){e=e.trim(),e.length>0&&e.split(qD).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(D(se),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Zp=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:Ta.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(D(se),D(tv),D(Zt))};static \u0275dir=Q({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xp=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Te);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){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._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(D(En))};static \u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ct]})}return t})();function F6(t,i){return new ie(2100,!1)}var YD=class{createSubscription(i,e,n){return hn(()=>i.subscribe({next:e,error:n}))}dispose(i){hn(()=>i.unsubscribe())}},QD=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},L6=new QD,V6=new YD,Jp=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(Xo);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(js(e))return L6;if(W_(e))return V6;throw F6(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(D(Ze,16))};static \u0275pipe=ka({name:"async",type:t,pure:!1})}return t})();function B6(t,i){return{key:t,value:i}}var ZD=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=HO;transform(e,n=HO){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(B6(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(D(tv,16))};static \u0275pipe=ka({name:"keyvalue",type:t,pure:!1})}return t})();function HO(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function th(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var Yc=class{};var JD="browser";function WO(t){return t===JD}var eS=(()=>{class t{static \u0275prov=$({token:t,providedIn:"root",factory:()=>new XD(p(ke),window)})}return t})(),XD=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ye(q({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=z6(this.document,i);n&&(this.scrollToElement(n,e),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch(e){console.warn(ga(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ye(q({},e),{left:o-a[0],top:r-a[1]}))}};function z6(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var nh=class{_doc;constructor(i){this._doc=i}manager},av=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(xe(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),cv=new L(""),oS=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof av));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof av);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new ie(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(xe(cv),xe(be))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),tS="ng-app-id";function $O(t){for(let i of t)i.remove()}function GO(t,i){let e=i.createElement("style");return e.textContent=t,e}function U6(t,i,e,n){let o=t.head?.querySelectorAll(`style[${tS}="${i}"],link[${tS}="${i}"]`);if(o)for(let r of o)r.removeAttribute(tS),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function iS(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var rS=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,U6(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,GO);n?.forEach(o=>this.addUsage(o,this.external,iS))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&($O(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$O(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,GO(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,iS(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(xe(ke),xe(Ol),xe(Wc,8),xe(Hc))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),nS={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"},aS=/%COMP%/g;var YO="%COMP%",H6=`_nghost-${YO}`,W6=`_ngcontent-${YO}`,$6=!0,G6=new L("",{factory:()=>$6});function q6(t){return W6.replace(aS,t)}function Y6(t){return H6.replace(aS,t)}function QO(t,i){return i.map(e=>e.replace(aS,t))}var rh=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,o,r,a,s,l=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=l,this.tracingService=u,this.defaultRenderer=new ih(e,a,s,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof lv?o.applyToHost(e):o instanceof oh&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.tracingService;switch(n.encapsulation){case Ma.Emulated:r=new lv(l,u,n,this.appId,h,a,s,g);break;case Ma.ShadowDom:return new sv(l,e,n,a,s,this.nonce,g,u);case Ma.ExperimentalIsolatedShadowDom:return new sv(l,e,n,a,s,this.nonce,g);default:r=new oh(l,u,n,h,a,s,g);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(xe(oS),xe(rS),xe(Ol),xe(G6),xe(ke),xe(be),xe(Wc),xe(Ia,8))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),ih=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(nS[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new ie(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=nS[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=nS[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(Ta.DashCase|Ta.Important)?i.style.setProperty(e,n,o&Ta.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ta.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=vr().getGlobalEventTarget(this.doc,i),!i))throw new ie(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function qO(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var sv=class extends ih{hostEl;sharedStylesHost;shadowRoot;constructor(i,e,n,o,r,a,s,l){super(i,o,r,s),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=QO(n.id,u);for(let g of u){let y=document.createElement("style");a&&y.setAttribute("nonce",a),y.textContent=g,this.shadowRoot.appendChild(y)}let h=n.getExternalStyles?.();if(h)for(let g of h){let y=iS(g,o);a&&y.setAttribute("nonce",a),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},oh=class extends ih{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,l){super(i,r,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let u=n.styles;this.styles=l?QO(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},lv=class extends oh{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,l){let u=o+"-"+n.id;super(i,e,n,r,a,s,l,u),this.contentAttr=q6(u),this.hostAttr=Y6(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var dv=class t extends Kp{supportsDOMEvents=!0;static makeCurrent(){$D(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Q6();return e==null?null:K6(e)}resetBaseElement(){ah=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return th(document.cookie,i)}},ah=null;function Q6(){return ah=ah||document.head.querySelector("base"),ah?ah.getAttribute("href"):null}function K6(t){return new URL(t,document.baseURI).pathname}var uv=class{addToWindow(i){wo.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new ie(5103,!1);return r},wo.getAllAngularTestabilities=()=>i.getAllTestabilities(),wo.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=wo.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};wo.frameworkStabilizers||(wo.frameworkStabilizers=[]),wo.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?vr().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Z6=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),KO=["alt","control","meta","shift"],X6={"\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"},J6={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ZO=(()=>{class t extends nh{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),KO.forEach(u=>{let h=n.indexOf(u);h>-1&&(n.splice(h,1),a+=u+".")}),a+=r,n.length!=0||r.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let o=X6[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),KO.forEach(a=>{if(a!==o){let s=J6[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(xe(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function eW(){dv.makeCurrent()}function tW(){return new Ro}function nW(){return Bx(document),document}var iW=[{provide:Hc,useValue:JD},{provide:S_,useValue:eW,multi:!0},{provide:ke,useFactory:nW}],sS=HD(OO,"browser",iW);var oW=[{provide:H_,useClass:uv},{provide:U_,useClass:$p},{provide:$p,useClass:$p}],rW=[{provide:yp,useValue:"root"},{provide:Ro,useFactory:tW},{provide:cv,useClass:av,multi:!0},{provide:cv,useClass:ZO,multi:!0},rh,rS,oS,{provide:bi,useExisting:rh},{provide:Yc,useClass:Z6},[]],sh=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[...rW,...oW],imports:[eh,PO]})}return t})();var Jo=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var pv=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}},hv=class{encodeKey(i){return XO(i)}encodeValue(i){return XO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function aW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var sW=/%(\d[a-f0-9])/gi,lW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XO(t){return encodeURIComponent(t).replace(sW,(i,e)=>lW[e]??i)}function mv(t){return`${t}`}var Hs=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new hv,i.fromString){if(i.fromObject)throw new ie(2805,!1);this.map=aW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(mv):[mv(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(mv(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(mv(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};function cW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function JO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eP(t){return typeof Blob<"u"&&t instanceof Blob}function tP(t){return typeof FormData<"u"&&t instanceof FormData}function dW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var nP="Content-Type",iP="Accept",rP="text/plain",aP="application/json",uW=`${aP}, ${rP}, */*`,Pu=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(cW(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new ie(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new Jo,this.context??=new pv,!this.params)this.params=new Hs,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sCe.set(Le,i.setHeaders[Le]),ve)),i.setParams&&(oe=Object.keys(i.setParams).reduce((Ce,Le)=>Ce.set(Le,i.setParams[Le]),oe)),new t(e,n,j,{params:oe,headers:ve,context:Ne,reportProgress:G,responseType:o,withCredentials:F,transferCache:S,keepalive:r,cache:s,priority:a,timeout:P,mode:l,redirect:u,credentials:h,referrer:g,integrity:y,referrerPolicy:x})}},Qc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Qc||{}),Fu=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(i,e=200,n="OK"){this.headers=i.headers||new Jo,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.responseType=i.responseType,this.ok=this.status>=200&&this.status<300}},fv=class t extends Fu{constructor(i={}){super(i)}type=Qc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},lh=class t extends Fu{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Qc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected,responseType:i.responseType??this.responseType})}},Nu=class extends Fu{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},mW=200,pW=204;var hW=new L("");var fW=/^\)\]\}',?\n/;var cS=(()=>{class t{xhrFactory;tracingService=p(Ia,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new ie(-2800,!1);let n=this.xhrFactory;return Me(null).pipe(yn(()=>new dt(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((j,F)=>a.setRequestHeader(j,F.join(","))),e.headers.has(iP)||a.setRequestHeader(iP,uW),!e.headers.has(nP)){let j=e.detectContentTypeHeader();j!==null&&a.setRequestHeader(nP,j)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let j=e.responseType.toLowerCase();a.responseType=j!=="json"?j:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let j=a.statusText||"OK",F=new Jo(a.getAllResponseHeaders()),G=a.responseURL||e.url;return l=new fv({headers:F,status:a.status,statusText:j,url:G}),l},h=this.maybePropagateTrace(()=>{let{headers:j,status:F,statusText:G,url:ve}=u(),oe=null;F!==pW&&(oe=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=oe?mW:0);let Ne=F>=200&&F<300;if(e.responseType==="json"&&typeof oe=="string"){let Ce=oe;oe=oe.replace(fW,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Le){oe=Ce,Ne&&(Ne=!1,oe={error:Le,text:oe})}}Ne?(r.next(new lh({body:oe,headers:j,status:F,statusText:G,url:ve||void 0})),r.complete()):r.error(new Nu({error:oe,headers:j,status:F,statusText:G,url:ve||void 0}))}),g=this.maybePropagateTrace(j=>{let{url:F}=u(),G=new Nu({error:j,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});r.error(G)}),y=g;e.timeout&&(y=this.maybePropagateTrace(j=>{let{url:F}=u(),G=new Nu({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:F||void 0});r.error(G)}));let x=!1,S=this.maybePropagateTrace(j=>{x||(r.next(u()),x=!0);let F={type:Qc.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),r.next(F)}),P=this.maybePropagateTrace(j=>{let F={type:Qc.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),r.next(F)});return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",y),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",S),s!==null&&a.upload&&a.upload.addEventListener("progress",P)),a.send(s),r.next({type:Qc.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",S),s!==null&&a.upload&&a.upload.removeEventListener("progress",P)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(xe(Yc))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sP(t,i){return i(t)}function gW(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function _W(t,i,e){return(n,o)=>Ui(e,()=>i(n,r=>t(r,o)))}var lP=new L(""),dS=new L("",{factory:()=>[]}),cP=new L(""),uS=new L("",{factory:()=>!0});function vW(){let t=null;return(i,e)=>{t===null&&(t=(p(lP,{optional:!0})??[]).reduceRight(gW,sP));let n=p(yu);if(p(uS)){let r=n.add();return t(i,e).pipe(wl(r))}else return t(i,e)}}var mS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=xe(cS),o},providedIn:"root"})}return t})();var gv=(()=>{class t{backend;injector;chain=null;pendingTasks=p(yu);contributeToStability=p(uS);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(dS),...this.injector.get(cP,[])]));this.chain=n.reduceRight((o,r)=>_W(o,r,this.injector),sP)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(wl(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(xe(mS),xe(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=xe(gv),o},providedIn:"root"})}return t})();function lS(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Lu=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Pu)r=e;else{let l;o.headers instanceof Jo?l=o.headers:l=new Jo(o.headers);let u;o.params&&(o.params instanceof Hs?u=o.params:u=new Hs({fromObject:o.params})),r=new Pu(e,n,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let a=Me(r).pipe(Cl(l=>this.handler.handle(l)));if(e instanceof Pu||o.observe==="events")return a;let s=a.pipe(At(l=>l instanceof lh));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new ie(2806,!1);return l.body}));case"blob":return s.pipe(Qe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new ie(2807,!1);return l.body}));case"text":return s.pipe(Qe(l=>{if(l.body!==null&&typeof l.body!="string")throw new ie(2808,!1);return l.body}));default:return s.pipe(Qe(l=>l.body))}case"response":return s;default:throw new ie(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Hs().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,lS(o,n))}post(e,n,o={}){return this.request("POST",e,lS(o,n))}put(e,n,o={}){return this.request("PUT",e,lS(o,n))}static \u0275fac=function(n){return new(n||t)(xe(pS))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bW=new L("",{factory:()=>!0}),yW="XSRF-TOKEN",CW=new L("",{factory:()=>yW}),wW="X-XSRF-TOKEN",xW=new L("",{factory:()=>wW}),DW=(()=>{class t{cookieName=p(CW);doc=p(ke);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=th(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=xe(DW),o},providedIn:"root"})}return t})();function SW(t,i){if(!p(bW)||t.method==="GET"||t.method==="HEAD")return i(t);try{let o=p(Us).href,{origin:r}=new URL(o),{origin:a}=new URL(t.url,r);if(r!==a)return i(t)}catch(o){return i(t)}let e=p(dP).getToken(),n=p(xW);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var hS=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(hS||{});function EW(t,i){return{\u0275kind:t,\u0275providers:i}}function fS(...t){let i=[Lu,gv,{provide:pS,useExisting:gv},{provide:mS,useFactory:()=>p(hW,{optional:!0})??p(cS)},{provide:dS,useValue:SW,multi:!0}];for(let e of t)i.push(...e.\u0275providers);return El(i)}var oP=new L("");function gS(){return EW(hS.LegacyInterceptors,[{provide:oP,useFactory:vW},{provide:dS,useExisting:oP,multi:!0}])}var mP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(xe(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=xe(MW),o},providedIn:"root"})}return t})(),MW=(()=>{class t extends Ws{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ai.NONE:return n;case Ai.HTML:return cs(n,"HTML")?_r(n):I_(this._doc,String(n)).toString();case Ai.STYLE:return cs(n,"Style")?_r(n):n;case Ai.SCRIPT:if(cs(n,"Script"))return _r(n);throw new ie(5200,!1);case Ai.URL:return cs(n,"URL")?_r(n):Vp(String(n));case Ai.RESOURCE_URL:if(cs(n,"ResourceURL"))return _r(n);throw new ie(5201,!1);default:throw new ie(5202,!1)}}bypassSecurityTrustHtml(e){return Ux(e)}bypassSecurityTrustStyle(e){return Hx(e)}bypassSecurityTrustScript(e){return Wx(e)}bypassSecurityTrustUrl(e){return $x(e)}bypassSecurityTrustResourceUrl(e){return Gx(e)}static \u0275fac=function(n){return new(n||t)(xe(ke))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Vt="primary",Ch=Symbol("RouteTitle"),CS=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Zc(t){return new CS(t)}function _S(t,i,e){for(let n=0;nt.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengtht.length||e.pathMatch==="full"&&i.hasChildren()&&e.path!=="**")return null;let s={};return!_S(r,t.slice(0,r.length),s)||!_S(a,t.slice(t.length-a.length),s)?null:{consumed:t,posParams:s}}function wv(t){return new Promise((i,e)=>{t.pipe(ks()).subscribe({next:n=>i(n),error:n=>e(n)})})}function TW(t,i){if(t.length!==i.length)return!1;for(let e=0;en[r]===o)}else return t===i}function IW(t){return t.length>0?t[t.length-1]:null}function Jc(t){return Dc(t)?t:js(t)?Hn(Promise.resolve(t)):Me(t)}function wP(t){return Dc(t)?wv(t):Promise.resolve(t)}var kW={exact:SP,subset:EP},xP={exact:AW,subset:RW,ignored:()=>!0},DP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pP(t,i,e){return kW[e.paths](t.root,i.root,e.matrixParams)&&xP[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function AW(t,i){return hs(t,i)}function SP(t,i,e){if(!Kc(t.segments,i.segments)||!bv(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!SP(t.children[n],i.children[n],e))return!1;return!0}function RW(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>CP(t[e],i[e]))}function EP(t,i,e){return MP(t,i,i.segments,e)}function MP(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!Kc(o,e)||i.hasChildren()||!bv(o,e,n))}else if(t.segments.length===e.length){if(!Kc(t.segments,e)||!bv(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!EP(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!Kc(t.segments,o)||!bv(t.segments,o,n)||!t.children[Vt]?!1:MP(t.children[Vt],i,r,n)}}function bv(t,i,e){return i.every((n,o)=>xP[e](t[o].parameters,n.parameters))}var yr=class{root;queryParams;fragment;_queryParamMap;constructor(i=new In([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return NW.serialize(this)}},In=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yv(this)}},Ll=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return IP(this)}};function OW(t,i){return Kc(t,i)&&t.every((e,n)=>hs(e.parameters,i[n].parameters))}function Kc(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function PW(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Vt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Vt&&(e=e.concat(i(o,n)))}),e}var jl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>new Gs,providedIn:"root"})}return t})(),Gs=class{parse(i){let e=new SS(i);return new yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${dh(i.root,!0)}`,n=VW(i.queryParams),o=typeof i.fragment=="string"?`#${FW(i.fragment)}`:"";return`${e}${n}${o}`}},NW=new Gs;function yv(t){return t.segments.map(i=>IP(i)).join("/")}function dh(t,i){if(!t.hasChildren())return yv(t);if(i){let e=t.children[Vt]?dh(t.children[Vt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==Vt&&n.push(`${o}:${dh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=PW(t,(n,o)=>o===Vt?[dh(t.children[Vt],!1)]:[`${o}:${dh(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Vt]!=null?`${yv(t)}/${e[0]}`:`${yv(t)}/(${e.join("//")})`}}function TP(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _v(t){return TP(t).replace(/%3B/gi,";")}function FW(t){return encodeURI(t)}function DS(t){return TP(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cv(t){return decodeURIComponent(t)}function hP(t){return Cv(t.replace(/\+/g,"%20"))}function IP(t){return`${DS(t.path)}${LW(t.parameters)}`}function LW(t){return Object.entries(t).map(([i,e])=>`;${DS(i)}=${DS(e)}`).join("")}function VW(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${_v(e)}=${_v(o)}`).join("&"):`${_v(e)}=${_v(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var BW=/^[^\/()?;#]+/;function vS(t){let i=t.match(BW);return i?i[0]:""}var jW=/^[^\/()?;=#]+/;function zW(t){let i=t.match(jW);return i?i[0]:""}var UW=/^[^=?&#]+/;function HW(t){let i=t.match(UW);return i?i[0]:""}var WW=/^[^&#]+/;function $W(t){let i=t.match(WW);return i?i[0]:""}var SS=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new In([],{}):new In([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(i=0){if(i>50)throw new ie(4010,!1);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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,i));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,i)),(e.length>0||Object.keys(n).length>0)&&(o[Vt]=new In(e,n)),o}parseSegment(){let i=vS(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new ie(4009,!1);return this.capture(i),new Ll(Cv(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=zW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=vS(this.remaining);o&&(n=o,this.capture(n))}i[Cv(e)]=Cv(n)}parseQueryParam(i){let e=HW(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=$W(this.remaining);a&&(n=a,this.capture(n))}let o=hP(e),r=hP(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=vS(this.remaining),r=this.remaining[o.length];if(r!=="/"&&r!==")"&&r!==";")throw new ie(4010,!1);let a;o.indexOf(":")>-1?(a=o.slice(0,o.indexOf(":")),this.capture(a),this.capture(":")):i&&(a=Vt);let s=this.parseChildren(e+1);n[a??Vt]=Object.keys(s).length===1&&s[Vt]?s[Vt]:new In([],s),this.consumeOptional("//")}return n}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new ie(4011,!1)}};function kP(t){return t.segments.length>0?new In([],{[Vt]:t}):t}function AP(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=AP(o);if(n===Vt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new In(t.segments,i);return GW(e)}function GW(t){if(t.numberOfChildren===1&&t.children[Vt]){let i=t.children[Vt];return new In(t.segments.concat(i.segments),i.children)}return t}function Vl(t){return t instanceof yr}function RP(t,i,e=null,n=null,o=new Gs){let r=OP(t);return PP(r,i,e,n,o)}function OP(t){let i;function e(r){let a={};for(let l of r.children){let u=e(l);a[l.outlet]=u}let s=new In(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=kP(n);return i??o}function PP(t,i,e,n,o){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return bS(r,r,r,e,n,o);let a=qW(i);if(a.toRoot())return bS(r,r,new In([],{}),e,n,o);let s=YW(a,r,t),l=s.processChildren?mh(s.segmentGroup,s.index,a.commands):FP(s.segmentGroup,s.index,a.commands);return bS(r,s.segmentGroup,l,e,n,o)}function xv(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function hh(t){return typeof t=="object"&&t!=null&&t.outlets}function fP(t,i,e){t||="\u0275";let n=new yr;return n.queryParams={[t]:i},e.parse(e.serialize(n)).queryParams[t]}function bS(t,i,e,n,o,r){let a={};for(let[u,h]of Object.entries(n??{}))a[u]=Array.isArray(h)?h.map(g=>fP(u,g,r)):fP(u,h,r);let s;t===i?s=e:s=NP(t,i,e);let l=kP(AP(s));return new yr(l,a,o)}function NP(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=NP(r,i,e)}),new In(t.segments,n)}var Dv=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&xv(n[0]))throw new ie(4003,!1);let o=n.find(hh);if(o&&o!==IW(n))throw new ie(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function qW(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Dv(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Dv(e,i,n)}var Bu=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function YW(t,i,e){if(t.isAbsolute)return new Bu(i,!0,0);if(!e)return new Bu(i,!1,NaN);if(e.parent===null)return new Bu(e,!0,0);let n=xv(t.commands[0])?0:1,o=e.segments.length-1+n;return QW(e,o,t.numberOfDoubleDots)}function QW(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new ie(4005,!1);o=n.segments.length}return new Bu(n,!1,o-r)}function KW(t){return hh(t[0])?t[0].outlets:{[Vt]:t}}function FP(t,i,e){if(t??=new In([],{}),t.segments.length===0&&t.hasChildren())return mh(t,i,e);let n=ZW(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==Vt)&&t.children[Vt]&&t.numberOfChildren===1&&t.children[Vt].segments.length===0){let r=mh(t.children[Vt],i,e);return new In(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=FP(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new In(t.segments,o)}}function ZW(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(hh(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!_P(l,u,a))return r;n+=2}else{if(!_P(l,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function ES(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=ES(new In([],{}),0,n))}),i}function gP(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function _P(t,i,e){return t==e.path&&hs(i,e.parameters)}var ju="imperative",$i=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})($i||{}),Cr=class{id;url;constructor(i,e){this.id=i,this.url=e}},Bl=class extends Cr{type=$i.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends Cr{urlAfterRedirects;type=$i.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Do=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Do||{}),Uu=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Uu||{}),$r=class extends Cr{reason;code;type=$i.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function LP(t){return t instanceof $r&&(t.code===Do.Redirect||t.code===Do.SupersededByNewNavigation)}var fs=class extends Cr{reason;code;type=$i.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},Xc=class extends Cr{error;target;type=$i.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fh=class extends Cr{urlAfterRedirects;state;type=$i.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sv=class extends Cr{urlAfterRedirects;state;type=$i.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ev=class extends Cr{urlAfterRedirects;state;shouldActivate;type=$i.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Mv=class extends Cr{urlAfterRedirects;state;type=$i.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tv=class extends Cr{urlAfterRedirects;state;type=$i.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Iv=class{route;type=$i.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},kv=class{route;type=$i.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Av=class{snapshot;type=$i.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rv=class{snapshot;type=$i.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ov=class{snapshot;type=$i.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pv=class{snapshot;type=$i.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{routerEvent;position;anchor;scrollBehavior;type=$i.Scroll;constructor(i,e,n,o){this.routerEvent=i,this.position=e,this.anchor=n,this.scrollBehavior=o}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},Wu=class{},gh=class{},$u=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function JW(t){return!(t instanceof Wu)&&!(t instanceof $u)&&!(t instanceof gh)}var Nv=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ed(this.rootInjector)}},ed=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Nv(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(xe(Cn))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fv=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=MS(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=MS(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=TS(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return TS(i,this._root).map(e=>e.value)}};function MS(t,i){if(t===i.value)return i;for(let e of i.children){let n=MS(t,e);if(n)return n}return null}function TS(t,i){if(t===i.value)return[i];for(let e of i.children){let n=TS(t,e);if(n.length)return n.unshift(i),n}return[]}var br=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Vu(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var _h=class extends Fv{snapshot;constructor(i,e){super(i),this.snapshot=e,LS(this,i)}toString(){return this.snapshot.toString()}};function VP(t,i){let e=e$(t,i),n=new on([new Ll("",{})]),o=new on({}),r=new on({}),a=new on({}),s=new on(""),l=new tt(n,o,a,s,r,Vt,t,e.root);return l.snapshot=e.root,new _h(new br(l,[]),e)}function e$(t,i){let e={},n={},o={},a=new Gu([],e,o,"",n,Vt,t,null,{},i);return new vh("",new br(a,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Qe(u=>u[Ch]))??Me(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}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(Qe(i=>Zc(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Qe(i=>Zc(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function FS(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:q(q({},i.params),t.params),data:q(q({},i.data),t.data),resolve:q(q(q(q({},t.data),i.data),o?.data),t._resolvedData)}:n={params:q({},t.params),data:q({},t.data),resolve:q(q({},t.data),t._resolvedData??{})},o&&jP(o)&&(n.resolve[Ch]=o.title),n}var Gu=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ch]}constructor(i,e,n,o,r,a,s,l,u,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u,this._environmentInjector=h}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vh=class extends Fv{url;constructor(i,e){super(e),this.url=i,LS(this,e)}toString(){return BP(this._root)}};function LS(t,i){i.value._routerState=t,i.children.forEach(e=>LS(t,e))}function BP(t){let i=t.children.length>0?` { ${t.children.map(BP).join(", ")} } `:"";return`${t.value}${i}`}function yS(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),TW(i.url,e.url)||t.urlSubject.next(e.url),hs(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function IS(t,i){let e=hs(t.params,i.params)&&OW(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||IS(t.parent,i.parent))}function jP(t){return typeof t.title=="string"||t.title===null}var zP=new L(""),wh=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Vt;activateEvents=new V;deactivateEvents=new V;attachEvents=new V;detachEvents=new V;routerOutletData=MO();parentContexts=p(ed);location=p(En);changeDetector=p(Ze);inputBinder=p(xh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ie(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ie(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ie(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ie(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new kS(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),kS=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===tt?this.route:i===ed?this.childContexts:i===zP?this.outletData:this.parent.get(i,e)}},xh=new L(""),VS=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=yo([n.queryParams,n.params,n.data]).pipe(yn(([r,a,s],l)=>(s=q(q(q({},r),a),s),l===0?Me(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=LO(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),BS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&O(0,"router-outlet")},dependencies:[wh],encapsulation:2})}return t})();function jS(t){let i=t.children&&t.children.map(jS),e=i?Ye(q({},t),{children:i}):q({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=BS),e}function t$(t,i,e){let n=bh(t,i._root,e?e._root:void 0);return new _h(n,i)}function bh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=n$(t,i,e);return new br(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>bh(t,s)),a}}let n=i$(i.value),o=i.children.map(r=>bh(t,r));return new br(n,o)}}function n$(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return bh(t,n,o);return bh(t,n)})}function i$(t){return new tt(new on(t.url),new on(t.params),new on(t.queryParams),new on(t.fragment),new on(t.data),t.outlet,t.component,t)}var qu=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},UP="ngNavigationCancelingError";function Lv(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Vl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=HP(!1,Do.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function HP(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[UP]=!0,e.cancellationCode=i,e}function o$(t){return WP(t)&&Vl(t.url)}function WP(t){return!!t&&t[UP]}var AS=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),yS(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=Vu(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=Vu(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new Pv(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Rv(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(yS(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),yS(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Vv=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},zu=class{component;route;constructor(i,e){this.component=i,this.route=e}};function r$(t,i,e){let n=t._root,o=i?i._root:null;return uh(n,o,e,[n.value])}function a$(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Qu(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!XC(t)?t:i.get(t):n}function uh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Vu(i);return t.children.forEach(a=>{s$(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ph(s,e.getContext(a),o)),o}function s$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let l=l$(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Vv(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?uh(t,i,s?s.children:null,n,o):uh(t,i,e,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new zu(s.outlet.component,a))}else a&&ph(i,s,o),o.canActivateChecks.push(new Vv(n)),r.component?uh(t,null,s?s.children:null,n,o):uh(t,null,e,n,o);return o}function l$(t,i,e){if(typeof e=="function")return Ui(i._environmentInjector,()=>e(t,i));switch(e){case"pathParamsChange":return!Kc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Kc(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!IS(t,i)||!hs(t.queryParams,i.queryParams);default:return!IS(t,i)}}function ph(t,i,e){let n=Vu(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?ph(a,i.children.getContext(r),e):ph(a,null,e):ph(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new zu(i.outlet.component,o)):e.canDeactivateChecks.push(new zu(null,o)):e.canDeactivateChecks.push(new zu(null,o))}function Dh(t){return typeof t=="function"}function c$(t){return typeof t=="boolean"}function d$(t){return t&&Dh(t.canLoad)}function u$(t){return t&&Dh(t.canActivate)}function m$(t){return t&&Dh(t.canActivateChild)}function p$(t){return t&&Dh(t.canDeactivate)}function h$(t){return t&&Dh(t.canMatch)}function $P(t){return t instanceof Ms||t?.name==="EmptyError"}var vv=Symbol("INITIAL_VALUE");function Yu(){return yn(t=>yo(t.map(i=>i.pipe(bn(1),cn(vv)))).pipe(Qe(i=>{for(let e of i)if(e!==!0){if(e===vv)return vv;if(e===!1||f$(e))return e}return!0}),At(i=>i!==vv),bn(1)))}function f$(t){return Vl(t)||t instanceof qu}function GP(t){return t.aborted?Me(void 0).pipe(bn(1)):new dt(i=>{let e=()=>{i.next(),i.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function qP(t){return Je(GP(t))}function g$(t){return xi(i=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return r.length===0&&o.length===0?Me(Ye(q({},i),{guardsResult:!0})):_$(r,e,n).pipe(xi(a=>a&&c$(a)?v$(e,o,t):Me(a)),Qe(a=>Ye(q({},i),{guardsResult:a})))})}function _$(t,i,e){return Hn(t).pipe(xi(n=>x$(n.component,n.route,e,i)),ks(n=>n!==!0,!0))}function v$(t,i,e){return Hn(i).pipe(Cl(n=>es(y$(n.route.parent,e),b$(n.route,e),w$(t,n.path),C$(t,n.route))),ks(n=>n!==!0,!0))}function b$(t,i){return t!==null&&i&&i(new Ov(t)),Me(!0)}function y$(t,i){return t!==null&&i&&i(new Av(t)),Me(!0)}function C$(t,i){let e=i.routeConfig?i.routeConfig.canActivate:null;if(!e||e.length===0)return Me(!0);let n=e.map(o=>pr(()=>{let r=i._environmentInjector,a=Qu(o,r),s=u$(a)?a.canActivate(i,t):Ui(r,()=>a(i,t));return Jc(s).pipe(ks())}));return Me(n).pipe(Yu())}function w$(t,i){let e=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(r=>a$(r)).filter(r=>r!==null).map(r=>pr(()=>{let a=r.guards.map(s=>{let l=r.node._environmentInjector,u=Qu(s,l),h=m$(u)?u.canActivateChild(e,t):Ui(l,()=>u(e,t));return Jc(h).pipe(ks())});return Me(a).pipe(Yu())}));return Me(o).pipe(Yu())}function x$(t,i,e,n){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return Me(!0);let r=o.map(a=>{let s=i._environmentInjector,l=Qu(a,s),u=p$(l)?l.canDeactivate(t,i,e,n):Ui(s,()=>l(t,i,e,n));return Jc(u).pipe(ks())});return Me(r).pipe(Yu())}function D$(t,i,e,n,o){let r=i.canLoad;if(r===void 0||r.length===0)return Me(!0);let a=r.map(s=>{let l=Qu(s,t),u=d$(l)?l.canLoad(i,e):Ui(t,()=>l(i,e)),h=Jc(u);return o?h.pipe(qP(o)):h});return Me(a).pipe(Yu(),YP(n))}function YP(t){return EC(fi(i=>{if(typeof i!="boolean")throw Lv(t,i)}),Qe(i=>i===!0))}function S$(t,i,e,n,o,r){let a=i.canMatch;if(!a||a.length===0)return Me(!0);let s=a.map(l=>{let u=Qu(l,t),h=h$(u)?u.canMatch(i,e,o):Ui(t,()=>u(i,e,o));return Jc(h).pipe(qP(r))});return Me(s).pipe(Yu(),YP(n))}var $s=class t extends Error{segmentGroup;constructor(i){super(),this.segmentGroup=i||null,Object.setPrototypeOf(this,t.prototype)}},yh=class t extends Error{urlTree;constructor(i){super(),this.urlTree=i,Object.setPrototypeOf(this,t.prototype)}};function E$(t){throw new ie(4e3,!1)}function M$(t){throw HP(!1,Do.GuardRejected)}var RS=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){return B(this,null,function*(){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return n;if(o.numberOfChildren>1||!o.children[Vt])throw E$(`${i.redirectTo}`);o=o.children[Vt]}})}applyRedirectCommands(i,e,n,o,r){return B(this,null,function*(){let a=yield T$(e,o,r);if(a instanceof yr)throw new yh(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new yh(s);return s})}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new yr(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(i,l,n,o)}),new In(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new ie(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function T$(t,i,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return wv(Jc(Ui(e,()=>n(i))))}function I$(t,i){return t.providers&&!t._injector&&(t._injector=ku(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Oa(t){return t.outlet||Vt}function k$(t,i){let e=t.filter(n=>Oa(n)===i);return e.push(...t.filter(n=>Oa(n)!==i)),e}var OS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QP(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function A$(t,i,e,n,o,r,a){let s=KP(t,i,e);if(!s.matched)return Me(s);let l=QP(r(s));return n=I$(i,n),S$(n,i,e,o,l,a).pipe(Qe(u=>u===!0?s:q({},OS)))}function KP(t,i,e){if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?q({},OS):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||yP)(e,t,i);if(!o)return q({},OS);let r={};Object.entries(o.posParams??{}).forEach(([s,l])=>{r[s]=l.path});let a=o.consumed.length>0?q(q({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function vP(t,i,e,n,o){return e.length>0&&P$(t,e,n,o)?{segmentGroup:new In(i,O$(n,new In(e,t.children))),slicedSegments:[]}:e.length===0&&N$(t,e,n)?{segmentGroup:new In(t.segments,R$(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new In(t.segments,t.children),slicedSegments:e}}function R$(t,i,e,n){let o={};for(let r of e)if(jv(t,i,r)&&!n[Oa(r)]){let a=new In([],{});o[Oa(r)]=a}return q(q({},n),o)}function O$(t,i){let e={};e[Vt]=i;for(let n of t)if(n.path===""&&Oa(n)!==Vt){let o=new In([],{});e[Oa(n)]=o}return e}function P$(t,i,e,n){return e.some(o=>!jv(t,i,o)||!(Oa(o)!==Vt)?!1:!(n!==void 0&&Oa(o)===n))}function N$(t,i,e){return e.some(n=>jv(t,i,n))}function jv(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function F$(t,i,e){return i.length===0&&!t.children[e]}var PS=class{};function L$(t,i,e,n,o,r,a="emptyOnly",s){return B(this,null,function*(){return new NS(t,i,e,n,o,a,r,s).recognize()})}var V$=31,NS=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new RS(this.urlSerializer,this.urlTree)}noMatchError(i){return new ie(4002,`'${i.segmentGroup}'`)}recognize(){return B(this,null,function*(){let i=vP(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(i),o=new br(n,e),r=new vh("",o),a=RP(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}})}match(i){return B(this,null,function*(){let e=new Gu([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Vt,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,i,Vt,e),rootSnapshot:e}}catch(n){if(n instanceof yh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof $s?this.noMatchError(n):n}})}processSegmentGroup(i,e,n,o,r){return B(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(i,e,n,r);let a=yield this.processSegment(i,e,n,n.segments,o,!0,r);return a instanceof br?[a]:[]})}processChildren(i,e,n,o){return B(this,null,function*(){let r=[];for(let l of Object.keys(n.children))l==="primary"?r.unshift(l):r.push(l);let a=[];for(let l of r){let u=n.children[l],h=k$(e,l),g=yield this.processSegmentGroup(i,h,u,l,o);a.push(...g)}let s=ZP(a);return B$(s),s})}processSegment(i,e,n,o,r,a,s){return B(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??i,e,l,n,o,r,a,s)}catch(u){if(u instanceof $s||$P(u))continue;throw u}if(F$(n,o,r))return new PS;throw new $s(n)})}processSegmentAgainstRoute(i,e,n,o,r,a,s,l){return B(this,null,function*(){if(Oa(n)!==a&&(a===Vt||!jv(o,r,n)))throw new $s(o);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(i,o,n,r,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,l);throw new $s(o)})}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){return B(this,null,function*(){let{matched:l,parameters:u,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=KP(e,o,r);if(!l)throw new $s(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>V$&&(this.allowRedirects=!1));let x=this.createSnapshot(i,o,r,u,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let S=yield this.applyRedirects.applyRedirectCommands(h,o.redirectTo,g,QP(x),i),P=yield this.applyRedirects.lineralizeSegments(o,S);return this.processSegment(i,n,e,P.concat(y),a,!1,s)})}createSnapshot(i,e,n,o,r){let a=new Gu(n,o,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,z$(e),Oa(e),e.component??e._loadedComponent??null,e,U$(e),i),s=FS(a,r,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}matchSegmentAgainstRoute(i,e,n,o,r,a){return B(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=ve=>this.createSnapshot(i,n,ve.consumedSegments,ve.parameters,a),l=yield wv(A$(e,n,o,i,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new $s(e);i=n._injector??i;let{routes:u}=yield this.getChildConfig(i,n,o),h=n._loadedInjector??i,{parameters:g,consumedSegments:y,remainingSegments:x}=l,S=this.createSnapshot(i,n,y,g,a),{segmentGroup:P,slicedSegments:j}=vP(e,y,x,u,r);if(j.length===0&&P.hasChildren()){let ve=yield this.processChildren(h,u,P,S);return new br(S,ve)}if(u.length===0&&j.length===0)return new br(S,[]);let F=Oa(n)===r,G=yield this.processSegment(h,u,P,j,F?Vt:r,!0,S);return new br(S,G instanceof br?[G]:[])})}getChildConfig(i,e,n){return B(this,null,function*(){if(e.children)return{routes:e.children,injector:i};if(e.loadChildren){if(e._loadedRoutes!==void 0){let r=e._loadedNgModuleFactory;return r&&!e._loadedInjector&&(e._loadedInjector=r.create(i).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield wv(D$(i,e,n,this.urlSerializer,this.abortSignal))){let r=yield this.configLoader.loadChildren(i,e);return e._loadedRoutes=r.routes,e._loadedInjector=r.injector,e._loadedNgModuleFactory=r.factory,r}throw M$(e)}return{routes:[],injector:i}})}};function B$(t){t.sort((i,e)=>i.value.outlet===Vt?-1:e.value.outlet===Vt?1:i.value.outlet.localeCompare(e.value.outlet))}function j$(t){let i=t.value.routeConfig;return i&&i.path===""}function ZP(t){let i=[],e=new Set;for(let n of t){if(!j$(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=ZP(n.children);i.push(new br(n.value,o))}return i.filter(n=>!e.has(n))}function z$(t){return t.data||{}}function U$(t){return t.resolve||{}}function H$(t,i,e,n,o,r,a){return xi(s=>B(null,null,function*(){let{state:l,tree:u}=yield L$(t,i,e,n,s.extractedUrl,o,r,a);return Ye(q({},s),{targetSnapshot:l,urlAfterRedirects:u})}))}function W$(t){return xi(i=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=i;if(!n.length)return Me(i);let o=new Set(n.map(s=>s.route)),r=new Set;for(let s of o)if(!r.has(s))for(let l of XP(s))r.add(l);let a=0;return Hn(r).pipe(Cl(s=>o.has(s)?$$(s,e,t):(s.data=FS(s,s.parent,t).resolve,Me(void 0))),fi(()=>a++),bg(1),xi(s=>a===r.size?Me(i):hi))})}function XP(t){let i=t.children.map(e=>XP(e)).flat();return[t,...i]}function $$(t,i,e){let n=t.routeConfig,o=t._resolve;return n?.title!==void 0&&!jP(n)&&(o[Ch]=n.title),pr(()=>(t.data=FS(t,t.parent,e).resolve,G$(o,t,i).pipe(Qe(r=>(t._resolvedData=r,t.data=q(q({},t.data),r),null)))))}function G$(t,i,e){let n=wS(t);if(n.length===0)return Me({});let o={};return Hn(n).pipe(xi(r=>q$(t[r],i,e).pipe(ks(),fi(a=>{if(a instanceof qu)throw Lv(new Gs,a);o[r]=a}))),bg(1),Qe(()=>o),Bi(r=>$P(r)?hi:bl(r)))}function q$(t,i,e){let n=i._environmentInjector,o=Qu(t,n),r=o.resolve?o.resolve(i,e):Ui(n,()=>o(i,e));return Jc(r)}function bP(t){return yn(i=>{let e=t(i);return e?Hn(e).pipe(Qe(()=>i)):Me(i)})}var zS=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===Vt);return n}getResolvedTitleForRoute(e){return e.data[Ch]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(JP),providedIn:"root"})}return t})(),JP=(()=>{class t extends zS{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(xe(mP))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zl=new L("",{factory:()=>({})}),Ku=new L(""),zv=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(AD);loadComponent(e,n){return B(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield wP(Ui(e,()=>n.loadComponent())),a=yield nN(tN(r));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,o),o})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=B(this,null,function*(){try{let r=yield eN(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=r.routes,n._loadedInjector=r.injector,n._loadedNgModuleFactory=r.factory,r}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eN(t,i,e,n){return B(this,null,function*(){let o=yield wP(Ui(e,()=>t.loadChildren())),r=yield nN(tN(o)),a;r instanceof j_||Array.isArray(r)?a=r:a=yield i.compileModuleAsync(r),n&&n(t);let s,l,u=!1,h;return Array.isArray(a)?(l=a,u=!0):(s=a.create(e).injector,h=a,l=s.get(Ku,[],{optional:!0,self:!0}).flat()),{routes:l.map(jS),injector:s,factory:h}})}function Y$(t){return t&&typeof t=="object"&&"default"in t}function tN(t){return Y$(t)?t.default:t}function nN(t){return B(this,null,function*(){return t})}var Uv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(Q$),providedIn:"root"})}return t})(),Q$=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),US=new L(""),HS=new L("");function iN(t,i,e){let n=t.get(HS),o=t.get(ke);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let r,a=new Promise(u=>{r=u}),s=o.startViewTransition(()=>(r(),K$(t)));s.updateCallbackDone.catch(u=>{}),s.ready.catch(u=>{}),s.finished.catch(u=>{});let{onViewTransitionCreated:l}=n;return l&&Ui(t,()=>l({transition:s,from:i,to:e})),a}function K$(t){return new Promise(i=>{nn({read:()=>setTimeout(i)},{injector:t})})}var Z$=()=>{},WS=new L(""),Hv=(()=>{class t{currentNavigation=Re(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Re(null);events=new Z;transitionAbortWithErrorSubject=new Z;configLoader=p(zv);environmentInjector=p(Cn);destroyRef=p(xo);urlSerializer=p(jl);rootContexts=p(ed);location=p(ps);inputBindingEnabled=p(xh,{optional:!0})!==null;titleStrategy=p(zS);options=p(zl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Uv);createViewTransition=p(US,{optional:!0});navigationErrorHandler=p(WS,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Me(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Iv(o)),n=o=>this.events.next(new kv(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;hn(()=>{this.transitions?.next(Ye(q({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new on(null),this.transitions.pipe(At(n=>n!==null),yn(n=>{let o=!1,r=new AbortController,a=()=>!o&&this.currentTransition?.id===n.id;return Me(n).pipe(yn(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),hi;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?Ye(q({},l),{previousNavigation:null}):null,abort:()=>r.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.rawUrl),"",Uu.IgnoredSameUrlNavigation)),s.resolve(!1),hi;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Me(s).pipe(yn(g=>(this.events.next(new Bl(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?hi:Promise.resolve(g))),H$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,r.signal),fi(g=>{n.targetSnapshot=g.targetSnapshot,n.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=g.urlAfterRedirects,y)),this.events.next(new gh)}),yn(g=>Hn(n.routesRecognizeHandler.deferredHandle??Me(void 0)).pipe(Qe(()=>g))),fi(()=>{let g=new fh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:y,source:x,restoredState:S,extras:P}=s,j=new Bl(g,this.urlSerializer.serialize(y),x,S);this.events.next(j);let F=VP(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=Ye(q({},s),{targetSnapshot:F,urlAfterRedirects:y,extras:Ye(q({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(G=>(G.finalUrl=y,G)),Me(n)}else return this.events.next(new fs(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Uu.IgnoredByUrlHandlingStrategy)),s.resolve(!1),hi}),Qe(s=>{let l=new Sv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=Ye(q({},s),{guards:r$(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),g$(s=>this.events.next(s)),yn(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Lv(this.urlSerializer,s.guardsResult);let l=new Ev(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return hi;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",Do.GuardRejected),hi;if(s.guards.canActivateChecks.length===0)return Me(s);let u=new Mv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(u),!a())return hi;let h=!1;return Me(s).pipe(W$(this.paramsInheritanceStrategy),fi({next:()=>{h=!0;let g=new Tv(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g)},complete:()=>{h||this.cancelNavigationTransition(s,"",Do.NoDataFromResolver)}}))}),bP(s=>{let l=h=>{let g=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;g.push(this.configLoader.loadComponent(y,h.routeConfig).then(x=>{h.component=x}))}for(let y of h.children)g.push(...l(y));return g},u=l(s.targetSnapshot.root);return u.length===0?Me(s):Hn(Promise.all(u).then(()=>s))}),bP(()=>this.afterPreactivation()),yn(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?Hn(u).pipe(Qe(()=>n)):Me(n)}),bn(1),yn(s=>{let l=t$(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=Ye(q({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new Wu);let u=n.beforeActivateHandler.deferredHandle;return u?Hn(u.then(()=>s)):Me(s)}),fi(s=>{new AS(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(o=!0,this.currentNavigation.update(l=>(l.abort=Z$,l)),this.lastSuccessfulNavigation.set(hn(this.currentNavigation)),this.events.next(new er(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),Je(GP(r.signal).pipe(At(()=>!o&&!n.targetRouterState),fi(()=>{this.cancelNavigationTransition(n,r.signal.reason+"",Do.Aborted)}))),fi({complete:()=>{o=!0}}),Je(this.transitionAbortWithErrorSubject.pipe(fi(s=>{throw s}))),wl(()=>{r.abort(),o||this.cancelNavigationTransition(n,"",Do.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Bi(s=>{if(o=!0,this.destroyed)return n.resolve(!1),hi;if(WP(s))this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),o$(s)?this.events.next(new $u(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new Xc(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=Ui(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof qu){let{message:h,cancellationCode:g}=Lv(this.urlSerializer,u);this.events.next(new $r(n.id,this.urlSerializer.serialize(n.extractedUrl),h,g)),this.events.next(new $u(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return hi}))}))}cancelNavigationTransition(e,n,o){let r=new $r(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=hn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X$(t){return t!==ju}var oN=new L("");var rN=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(J$),providedIn:"root"})}return t})(),Bv=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}shouldDestroyInjector(i){return!0}},J$=(()=>{class t extends Bv{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wv=(()=>{class t{urlSerializer=p(jl);options=p(zl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(ps);urlHandlingStrategy=p(Uv);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new yr;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof yr?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=VP(null,p(Cn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:()=>p(eG),providedIn:"root"})}return t})(),eG=(()=>{class t extends Wv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof Bl?this.updateStateMemento():e instanceof fs?this.commitTransition(n):e instanceof fh?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Wu?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof $r&&!LP(e)?this.restoreHistory(n):e instanceof Xc?this.restoreHistory(n,!0):e instanceof er&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:o,id:r}=n,{replaceUrl:a,state:s}=o;if(this.location.isCurrentPathEqualTo(e)||a){let l=this.browserPageId,u=q(q({},s),this.generateNgRouterState(r,l,n));this.location.replaceState(e,"",u)}else{let l=q(q({},s),this.generateNgRouterState(r,this.browserPageId+1,n));this.location.go(e,"",l)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,o){return this.canceledNavigationResolution==="computed"?q({navigationId:e,\u0275routerPageId:n},this.routerUrlState(o)):q({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $v(t,i){t.events.pipe(At(e=>e instanceof er||e instanceof $r||e instanceof Xc||e instanceof fs),Qe(e=>e instanceof er||e instanceof fs?0:(e instanceof $r?e.code===Do.Redirect||e.code===Do.SupersededByNewNavigation:!1)?2:1),At(e=>e!==2),bn(1)).subscribe(()=>{i()})}var tr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(z_);stateManager=p(Wv);options=p(zl,{optional:!0})||{};pendingTasks=p(as);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Hv);urlSerializer=p(jl);location=p(ps);urlHandlingStrategy=p(Uv);injector=p(Cn);_events=new Z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(rN);injectorCleanup=p(oN,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ku,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(xh,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ue;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=hn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof $r&&n.code!==Do.Redirect&&n.code!==Do.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof er)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof $u){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),l=q({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||X$(o.source)},a);this.scheduleNavigation(s,ju,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}JW(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ju,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o,r)=>{this.navigateToSyncWithBrowser(e,o,n,r)})}navigateToSyncWithBrowser(e,n,o,r){let a=o?.navigationId?o:null,s=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(r=Ye(q({},r),{browserUrl:e})),o){let u=q({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(r.state=u)}let l=this.parseUrl(s);this.scheduleNavigation(l,n,a,r).catch(u=>{this.disposed||this.injector.get(Xo)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return hn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(jS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,u=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=q(q({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=o?o.snapshot:this.routerState.snapshot.root;g=OP(y)}catch(y){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root}return PP(g,e,h,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Vl(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,ju,null,n)}navigate(e,n={skipLocationChange:!1}){return tG(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(ga(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=q({},DP):n===!1?o=q({},xS):o=q(q({},xS),n),Vl(e))return pP(this.currentUrlTree,e,o);let r=this.parseUrl(e);return pP(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,y)=>{s=g,l=y});let h=this.pendingTasks.add();return $v(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tG(t){for(let i=0;i{class t{router=p(tr);stateManager=p(Wv);fragment=Re("");queryParams=Re({});path=Re("");serializer=p(jl);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof er&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new yr(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new Wi("href"),{optional:!0});reactiveHref=RD(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return hn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return hn(this._target)}_target=Re(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return hn(this._queryParams)}_queryParams=Re(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return hn(this._fragment)}_fragment=Re(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return hn(this._queryParamsHandling)}_queryParamsHandling=Re(void 0);set state(e){this._state.set(e)}get state(){return hn(this._state)}_state=Re(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return hn(this._info)}_info=Re(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return hn(this._relativeTo)}_relativeTo=Re(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return hn(this._preserveFragment)}_preserveFragment=Re(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return hn(this._skipLocationChange)}_skipLocationChange=Re(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return hn(this._replaceUrl)}_replaceUrl=Re(!1);isAnchorElement;onChanges=new Z;applicationErrorHandler=p(Xo);options=p(zl,{optional:!0});reactiveRouterState=p(iG);constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Re(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Vl(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}_urlTree=Lo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Vl(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return hn(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(D(tr),D(tt),Lp("tabindex"),D(Zt),D(se),D(Ra))};static \u0275dir=Q({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&w("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&me("href",o.reactiveHref(),qx)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",K],skipLocationChange:[2,"skipLocationChange","skipLocationChange",K],replaceUrl:[2,"replaceUrl","replaceUrl",K],routerLink:"routerLink"},features:[Ct]})}return t})();var Sh=class{};var aN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(At(e=>e instanceof er),Cl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=ku(r.providers,e,""));let a=r._injector??e;r._loadedNgModuleFactory&&!r._loadedInjector&&(r._loadedInjector=r._loadedNgModuleFactory.create(a).injector);let s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return Hn(o).pipe(yl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{if(e.destroyed)return Me(null);let o;n.loadChildren&&n.canLoad===void 0?o=Hn(this.loader.loadChildren(e,n)):o=Me(null);let r=o.pipe(xi(a=>a===null?Me(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,n._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return Hn([r,a]).pipe(yl())}else return r})}static \u0275fac=function(n){return new(n||t)(xe(tr),xe(Cn),xe(Sh),xe(zv))};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sN=new L(""),oG=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ju;restoredId=0;store={};isHydrating=p(jx,{optional:!0})??!1;urlSerializer=p(jl);zone=p(be);viewportScroller=p(eS);transitions=p(Hv);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(Hi).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Bl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof er?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fs&&e.code===Uu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Hu)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let o=hn(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B(this,null,function*(){yield new Promise(r=>{setTimeout(r),typeof requestAnimationFrame<"u"&&requestAnimationFrame(r)}),this.zone.run(()=>{this.transitions.events.next(new Hu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function rG(){return p(tr).routerState.root}function Eh(t,i){return{\u0275kind:t,\u0275providers:i}}function aG(){let t=p(Te);return i=>{let e=t.get(Hi);if(i!==e.components[0])return;let n=t.get(tr),o=t.get(lN);t.get(GS)===1&&n.initialNavigation(),t.get(uN,null,{optional:!0})?.setUpPreloading(),t.get(sN,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lN=new L("",{factory:()=>new Z}),GS=new L("",{factory:()=>1});function cN(){let t=[{provide:E_,useValue:!0},{provide:GS,useValue:0},$_(()=>{let i=p(Te);return i.get(GD,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(tr),r=i.get(lN);$v(o,()=>{n(!0)}),i.get(Hv).afterPreactivation=()=>(n(!0),r.closed?Me(void 0):r),o.initialNavigation()}))})];return Eh(2,t)}function dN(){let t=[$_(()=>{p(tr).setUpLocationChangeListener()}),{provide:GS,useValue:2}];return Eh(3,t)}var uN=new L("");function mN(t){return Eh(0,[{provide:uN,useExisting:aN},{provide:Sh,useExisting:t}])}function pN(){return Eh(8,[VS,{provide:xh,useExisting:VS}])}function hN(t){Wr("NgRouterViewTransitions");let i=[{provide:US,useValue:iN},{provide:HS,useValue:q({skipNextTransition:!!t?.skipInitialTransition},t)}];return Eh(9,i)}var fN=[ps,{provide:jl,useClass:Gs},tr,ed,{provide:tt,useFactory:rG},zv,[]],Gv=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[fN,[],{provide:Ku,multi:!0,useValue:e},[],n?.errorHandler?{provide:WS,useValue:n.errorHandler}:[],{provide:zl,useValue:n||{}},n?.useHash?lG():cG(),sG(),n?.preloadingStrategy?mN(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?dG(n):[],n?.bindToComponentInputs?pN().\u0275providers:[],n?.enableViewTransitions?hN().\u0275providers:[],uG()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ku,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function sG(){return{provide:sN,useFactory:()=>{let t=p(eS),i=p(zl);return i.scrollOffset&&t.setOffset(i.scrollOffset),new oG(i)}}}function lG(){return{provide:Ra,useClass:KD}}function cG(){return{provide:Ra,useClass:rv}}function dG(t){return[t.initialNavigation==="disabled"?dN().\u0275providers:[],t.initialNavigation==="enabledBlocking"?cN().\u0275providers:[]]}var $S=new L("");function uG(){return[{provide:$S,useFactory:aG},{provide:G_,multi:!0,useExisting:$S}]}var qv=class{constructor(i){this.user=i.user,this.role=i.role,this.admin=i.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};var qS;try{qS=typeof Intl<"u"&&Intl.v8BreakIterator}catch(t){qS=!1}var Ft=(()=>{class t{_platformId=p(Hc);isBrowser=this._platformId?WO(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||qS)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var YS;function gN(){if(YS==null){let t=typeof document<"u"?document.head:null;YS=!!(t&&(t.createShadowRoot||t.attachShadow))}return YS}function QS(t){if(gN()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Gr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Gi(t){return t.composedPath?t.composedPath()[0]:t.target}function KS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Yv=new WeakMap,an=(()=>{class t{_appRef;_injector=p(Te);_environmentInjector=p(Cn);load(e){let n=this._appRef=this._appRef||this._injector.get(Hi),o=Yv.get(n);o||(o={loaders:new Set,refs:[]},Yv.set(n,o),n.onDestroy(()=>{Yv.get(n)?.refs.forEach(r=>r.destroy()),Yv.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(nv(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ei(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qs(t){return Array.isArray(t)?t:[t]}function Pa(t,i=0){return Qv(t)?Number(t):arguments.length===2?i:0}function Qv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Vo(t){return t instanceof se?t.nativeElement:t}var mG=new L("cdk-dir-doc",{providedIn:"root",factory:()=>p(ke)}),pG=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function _N(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?pG.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var wn=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Re("ltr");change=new V;constructor(){let e=p(mG,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(_N(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Na=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Na||{}),Kv,td;function Zv(){if(td==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return td=!1,td;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)td=!0;else{let t=Element.prototype.scrollTo;t?td=!/\{\s*\[native code\]\s*\}/.test(t.toString()):td=!1}}return td}function Zu(){if(typeof document!="object"||!document)return Na.NORMAL;if(Kv==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Kv=Na.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Kv=t.scrollLeft===0?Na.NEGATED:Na.INVERTED),t.remove()}return Kv}var nd=class{};function Mh(t){return t&&typeof t.connect=="function"&&!(t instanceof tp)}var Fa=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Fa||{}),Xv=class{viewCacheSize=20;_viewCache=[];applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=()=>n(a,s,l);u=this._insertView(g,l,e,o(a)),h=u?Fa.INSERTED:Fa.REPLACED}else l==null?(this._detachAndCacheView(s,e),h=Fa.REMOVED):(u=this._moveView(s,l,e,o(a)),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){for(let i of this._viewCache)i.destroy();this._viewCache=[]}_insertView(i,e,n,o){let r=this._insertViewFromCache(e,n);if(r){r.context.$implicit=o;return}let a=i();return n.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(i,e){let n=e.detach(i);this._maybeCacheView(n,e)}_moveView(i,e,n,o){let r=n.get(i);return n.move(r,e),r.context.$implicit=o,r}_maybeCacheView(i,e){if(this._viewCache.length{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var hG=20,Ul=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_renderer=p(bi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Z;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=hG){return this._platform.isBrowser?new dt(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(au(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Me()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(At(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=Vo(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Th=(()=>{class t{elementRef=p(se);scrollDispatcher=p(Ul);ngZone=p(be);dir=p(wn,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Z;_renderer=p(Zt);_cleanupScroll;_elementScrolled=new Z;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&Zu()!=Na.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Zu()==Na.INVERTED?e.left=e.right:Zu()==Na.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;Zv()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&Zu()==Na.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Zu()==Na.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),fG=20,ho=(()=>{class t{_platform=p(Ft);_listeners;_viewportSize=null;_change=new Z;_document=p(ke);constructor(){let e=p(be),n=p(bi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body?.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=fG){return e>0?this._change.pipe(au(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vN=new L("CDK_VIRTUAL_SCROLL_VIEWPORT");var wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})(),Ih=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt,wr,pt,wr]})}return t})();var ZS={},zt=class t{_appId=p(Ol);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=!1){return this._appId!=="ng"&&(i+=this._appId),ZS.hasOwnProperty(i)||(ZS[i]=0),`${i}${e?t._infix+"-":""}${ZS[i]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})};var kh=class{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},nr=class extends kh{component;viewContainerRef;injector;projectableNodes;bindings;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o,this.bindings=r||null}},qi=class extends kh{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},XS=class extends kh{element;constructor(i){super(),this.element=i instanceof se?i.nativeElement:i}},Hl=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof nr)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof qi)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof XS)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Xu=class extends Hl{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ls,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Te.NULL,r=o.get(Cn,n.injector);e=nv(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},yN=(()=>{class t extends qi{constructor(){let e=p(mn),n=p(En);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[We]})}return t})(),Bo=(()=>{class t extends Hl{_moduleRef=p(ls,{optional:!0});_document=p(ke);_viewContainerRef=p(En);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new V;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[We]})}return t})(),xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();function un(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var CN=Zv();function Wl(t){return new Jv(t.get(ho),t.get(ke))}var Jv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ei(-this._previousScrollPosition.left),i.style.top=Ei(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),CN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),CN&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function TN(t,i){return new eb(t.get(Ul),t.get(be),t.get(ho),i)}var eb=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(At(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ah=class{enable(){}disable(){}attach(){}};function JS(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function wN(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function Dr(t,i){return new tb(t.get(Ul),t.get(ho),t.get(be),i)}var tb=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();JS(e,[{width:n,height:o,bottom:o,right:n,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}},IN=(()=>{class t{_injector=p(Te);constructor(){}noop=()=>new Ah;close=e=>TN(this._injector,e);block=()=>Wl(this._injector);reposition=e=>Dr(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jo=class{positionStrategy;scrollStrategy=new Ah;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var nb=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var kN=(()=>{class t{_attachedOverlays=[];_document=p(ke);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,n,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(n):!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AN=(()=>{class t extends kN{_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,e,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RN=(()=>{class t extends kN{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Gi(e)};_clickListener=e=>{let n=Gi(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a],l=s._outsidePointerEvents;if(!(!s.hasAttached()||!this.canReceiveEvent(s,e,l))){if(xN(s.overlayElement,n)||xN(s.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xN(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var ON=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -141,7 +141,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),ib=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||QS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function eE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=G(G({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye(G({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;eE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new JS(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=qs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},wN="cdk-overlay-connected-position-bounding-box",fG=/([A-Za-z%]+)$/;function La(t,i){return new em(i,t.get(ho),t.get(ke),t.get(Ft),t.get(ib))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(wN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:eE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=SN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,w=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,w),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=DN(this._overlayRef.getConfig().minHeight),s=DN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=SN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let w=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=w*2,g=i.x-w,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CN(i,n),isOriginOutsideView:XS(i,n),isOverlayClipped:CN(e,n),isOverlayOutsideView:XS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&qs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function DN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(fG);return!e||e==="px"?parseFloat(i):null}return t||null}function SN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function gG(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var EN="cdk-global-overlay-wrapper";function gs(t){return new nb}var nb=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(EN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",w="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:w=g):y?h==="left"||h==="end"?(P="flex-end",w=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",w=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":w,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(EN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},ON=(()=>{class t{_injector=p(Te);constructor(){}global(){return gs()}flexibleConnectedTo(e){return La(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function Uo(t,i){t.get(an).load(RN);let e=t.get(ib),n=t.get(ke),o=t.get(zt),r=t.get(Hi),a=t.get(xn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new jo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return eE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(kN),n,t.get(ps),t.get(AN),i?.disableAnimations??t.get(Ol,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var PN=(()=>{class t{scrollStrategies=p(TN);_positionBuilder=p(ON);_injector=p(Te);constructor(){}create(e){return Uo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_G=[{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"}],vG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),NN=new L("cdk-connected-overlay-default-config"),ob=(()=>{class t{_dir=p(xn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(vG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(NN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new qi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_G);let e=this._overlayRef=Uo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Gi(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new jo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=La(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(NC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[PN],imports:[pt,wr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function FN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return FN()?t:!!t.capture}var LN=new L("cdk-input-modality-detector-options"),VN={ignoreKeys:[18,17,224,91,16]},BN=650,tE={passive:!0,capture:!0},jN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(e)};constructor(){let e=p(be),n=p(ke),o=p(LN,{optional:!0});if(this._options=G(G({},VN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(_g()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,tE),r.listen(n,"mousedown",this._onMousedown,tE),r.listen(n,"touchstart",this._onTouchstart,tE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),zN=new L("cdk-focus-monitor-default-options"),rb=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(jN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(zN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Gi(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Vo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=YS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Vo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Vo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?BN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Gi(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,rb),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,rb)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,rb),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rb),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { +`],encapsulation:2,changeDetection:0})}return t})(),ob=(()=>{class t{_platform=p(Ft);_containerElement;_document=p(ke);_styleLoader=p(an);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||KS()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function tE(t){return t&&t.nodeType===1}var Ju=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Z;_attachments=new Z;_detachments=new Z;_positionStrategy;_scrollStrategy;_locationChanges=Ue.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new Z;_outsidePointerEvents=new Z;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,l,u,h=!1,g,y){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=h,this._injector=g,this._renderer=y,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(i){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(i);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=nn(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){if(this._disposed)return;let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=q(q({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ye(q({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ei(this._config.width),i.height=Ei(this._config.height),i.minWidth=Ei(this._config.minWidth),i.minHeight=Ei(this._config.minHeight),i.maxWidth=Ei(this._config.maxWidth),i.maxHeight=Ei(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachHost(){if(!this._host.parentElement){let i=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;tE(i)?i.after(this._host):i?.type==="parent"?i.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch(i){}}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new eE(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=qs(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=nn(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},DN="cdk-overlay-connected-position-bounding-box",gG=/([A-Za-z%]+)$/;function La(t,i){return new em(i,t.get(ho),t.get(ke),t.get(Ft),t.get(ob))}var em=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new Z;_resizeSubscription=Ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(DN),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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._getContainerRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(i,o,s),u=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(u,e,n,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(h,u,n)){r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=h,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&&id(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;i?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(i,this._getOriginPoint(this._originRect,this._containerRect,i))):this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}withPopoverLocation(i){return this._popoverLocation=i,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof se?this._origin.nativeElement:tE(this._origin)?this._origin:null}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=EN(e),{x:a,y:s}=i,l=this._getOffset(o,"x"),u=this._getOffset(o,"y");l&&(a+=l),u&&(s+=u);let h=0-a,g=a+r.width-n.width,y=0-s,x=s+r.height-n.height,S=this._subtractOverflows(r.width,h,g),P=this._subtractOverflows(r.height,y,x),j=S*P;return{visibleArea:j,isCompletelyWithinViewport:r.width*r.height===j,fitsInViewportVertically:P===r.height,fitsInViewportHorizontally:S==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=SN(this._overlayRef.getConfig().minHeight),s=SN(this._overlayRef.getConfig().minWidth),l=i.fitsInViewportVertically||a!=null&&a<=o,u=i.fitsInViewportHorizontally||s!=null&&s<=r;return l&&u}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=EN(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),l=Math.max(r.top-n.top-i.y,0),u=Math.max(r.left-n.left-i.x,0),h=0,g=0;return o.width<=r.width?h=u||-a:h=i.xS&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-S/2)}let l=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,u=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,h,g,y;if(u)y=n.width-i.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=i.x-this._getViewportMarginStart();else if(l)g=i.x,h=n.right-i.x-this._getViewportMarginEnd();else{let x=Math.min(n.right-i.x+n.left,i.x),S=this._lastBoundingBoxSize.width;h=x*2,g=i.x-x,h>S&&!this._isInitialRender&&!this._growAfterOpen&&(g=i.x-S/2)}return{top:a,left:g,bottom:s,right:y,width:h,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=Ei(n.width),o.height=Ei(n.height),o.top=Ei(n.top)||"auto",o.bottom=Ei(n.bottom)||"auto",o.left=Ei(n.left)||"auto",o.right=Ei(n.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=Ei(r)),a&&(o.maxWidth=Ei(a))}this._lastBoundingBoxSize=n,id(this._boundingBox.style,o)}_resetBoundingBoxStyles(){id(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){id(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();id(n,this._getExactOverlayY(e,i,h)),id(n,this._getExactOverlayX(e,i,h))}else n.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=Ei(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Ei(a.maxWidth):r&&(n.maxWidth="")),id(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=Ei(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=Ei(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wN(i,n),isOriginOutsideView:JS(i,n),isOverlayClipped:wN(e,n),isOverlayOutsideView:JS(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+i-this._getViewportMarginEnd(),bottom:n.top+e-this._getViewportMarginBottom(),width:i-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&qs(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let i=this._origin;if(i instanceof se)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}_getContainerRect(){let i=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();i&&(e.style.display="block");let n=e.getBoundingClientRect();return i&&(e.style.display=""),n}};function id(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function SN(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(gG);return!e||e==="px"?parseFloat(i):null}return t||null}function EN(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function _G(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var MN="cdk-global-overlay-wrapper";function gs(t){return new ib}var ib=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(MN),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,l=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",x="",S="",P="";l?P="flex-start":h==="center"?(P="center",y?S=g:x=g):y?h==="left"||h==="end"?(P="flex-end",x=g):(h==="right"||h==="start")&&(P="flex-start",S=g):h==="left"||h==="start"?(P="flex-start",x=g):(h==="right"||h==="end")&&(P="flex-end",S=g),i.position=this._cssPosition,i.marginLeft=l?"0":x,i.marginTop=u?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=l?"0":S,e.justifyContent=P,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(MN),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},PN=(()=>{class t{_injector=p(Te);constructor(){}global(){return gs()}flexibleConnectedTo(e){return La(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rh=new L("OVERLAY_DEFAULT_CONFIG");function Uo(t,i){t.get(an).load(ON);let e=t.get(ob),n=t.get(ke),o=t.get(zt),r=t.get(Hi),a=t.get(wn),s=t.get(Zt,null,{optional:!0})||t.get(bi).createRenderer(null,null),l=new jo(i),u=t.get(Rh,null,{optional:!0})?.usePopover??!0;l.direction=l.direction||a.value,"showPopover"in n.body?l.usePopover=i?.usePopover??u:l.usePopover=!1;let h=n.createElement("div"),g=n.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),g.appendChild(h),l.usePopover&&(g.setAttribute("popover","manual"),g.classList.add("cdk-overlay-popover"));let y=l.usePopover?l.positionStrategy?.getPopoverInsertionPoint?.():null;return tE(y)?y.after(g):y?.type==="parent"?y.element.appendChild(g):e.getContainerElement().appendChild(g),new Ju(new Xu(h,r,t),g,h,l,t.get(be),t.get(AN),n,t.get(ps),t.get(RN),i?.disableAnimations??t.get(Pl,null,{optional:!0})==="NoopAnimations",t.get(Cn),s)}var NN=(()=>{class t{scrollStrategies=p(IN);_positionBuilder=p(PN);_injector=p(Te);constructor(){}create(e){return Uo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vG=[{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"}],bG=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),tm=(()=>{class t{elementRef=p(se);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),FN=new L("cdk-connected-overlay-default-config"),rb=(()=>{class t{_dir=p(wn,{optional:!0});_injector=p(Te);_overlayRef;_templatePortal;_backdropSubscription=Ue.EMPTY;_attachSubscription=Ue.EMPTY;_detachSubscription=Ue.EMPTY;_positionSubscription=Ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(bG);_ngZone=p(be);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new V;positionChange=new V;attach=new V;detach=new V;overlayKeydown=new V;overlayOutsideClick=new V;constructor(){let e=p(mn),n=p(En),o=p(FN,{optional:!0}),r=p(Rh,{optional:!0});this.usePopover=r?.usePopover===!1?null:"global",this._templatePortal=new qi(e,n),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vG);let e=this._overlayRef=Uo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Gi(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new jo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(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(e){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 e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=La(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof tm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof tm?this.origin.elementRef.nativeElement:this.origin instanceof se?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(n=>this.backdropClick.emit(n)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(FC(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,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",K],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",K],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",K],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",K],push:[2,"cdkConnectedOverlayPush","push",K],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",K],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",K],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return t})(),fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[NN],imports:[pt,xr,Ih,Ih]})}return t})();function od(t){return t.buttons===0||t.detail===0}function rd(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Oh;function LN(){if(Oh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oh=!0}))}finally{Oh=Oh||!1}return Oh}function nm(t){return LN()?t:!!t.capture}var VN=new L("cdk-input-modality-detector-options"),BN={ignoreKeys:[18,17,224,91,16]},jN=650,nE={passive:!0,capture:!0},zN=(()=>{class t{_platform=p(Ft);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new on(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(rd(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(e)};constructor(){let e=p(be),n=p(ke),o=p(VN,{optional:!0});if(this._options=q(q({},BN),o),this.modalityDetected=this._modality.pipe(Ec(1)),this.modalityChanged=this.modalityDetected.pipe(vg()),this._platform.isBrowser){let r=p(bi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,nE),r.listen(n,"mousedown",this._onMousedown,nE),r.listen(n,"touchstart",this._onTouchstart,nE)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ph=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ph||{}),UN=new L("cdk-focus-monitor-default-options"),ab=nm({passive:!0,capture:!0}),Oi=(()=>{class t{_ngZone=p(be);_platform=p(Ft);_inputModalityDetector=p(zN);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=p(ke);_stopInputModalityDetector=new Z;constructor(){let e=p(UN,{optional:!0});this._detectionMode=e?.detectionMode||Ph.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Gi(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=Vo(e);if(!this._platform.isBrowser||o.nodeType!==1)return Me();let r=QS(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new Z,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Vo(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=Vo(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ph.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Ph.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jN:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Gi(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ab),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ab)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.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,ab),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ab),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=p(se);_focusMonitor=p(Oi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var qr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -160,14 +160,14 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),ab;function bG(){if(ab===void 0&&(ab=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ab=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ab}function ad(t){return bG()?.createHTML(t)||t}function UN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var HN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yG(t,i){if(!HN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),HN.add(t))}catch(e){console.error(e)}}function CG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return WN(qs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=WN(qs(e)).map(a=>this._registerQuery(a).observable),r=yo(o);return r=es(r.pipe(bn(1)),r.pipe(Ec(1),Is(0))),r.pipe(Qe(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),Qe(({matches:a})=>({query:e,matches:a})),Je(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WN(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=(()=>{class t{_mutationObserverFactory=p($N);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Vo(e);return new dt(o=>{let a=this._observeElement(n).pipe(Qe(s=>s.filter(l=>!xG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_contentObserver=p(GN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Pa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Is(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),sb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$N]})}return t})();var oE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return DG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=wG(RG(e));if(n&&(YN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=YN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return AG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wG(t){try{return t.frameElement}catch(i){return null}}function DG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function SG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function EG(t){return TG(t)&&t.type=="hidden"}function MG(t){return IG(t)&&t.hasAttribute("href")}function TG(t){return t.nodeName.toLowerCase()=="input"}function IG(t){return t.nodeName.toLowerCase()=="a"}function ZN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function YN(t){if(!ZN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function kG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function AG(t){return EG(t)?!1:SG(t)||MG(t)||t.hasAttribute("contenteditable")||ZN(t)}function RG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var iE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},lb=(()=>{class t{_checker=p(oE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(qr)}create(e,n=!1){return new iE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(lb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Gr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),XN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),JN=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),OG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(JN,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Ws);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(XN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:UN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Wl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Wl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Wl.BLACK_ON_WHITE}return Wl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(nE,QN,KN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Wl.BLACK_ON_WHITE?e.add(nE,QN):n===Wl.WHITE_ON_BLACK&&e.add(nE,KN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(eF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb]})}return t})();function PG(t,i){}var $l=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var sE=(()=>{class t extends Ul{_elementRef=p(se);_focusTrapFactory=p(lb);_config;_interactivityChecker=p(oE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ze);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p($l,{optional:!0})||new $l,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Gr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Gr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&xe(0,PG,0,0,"ng-template",0)},dependencies:[Bo],styles:[`.cdk-dialog-container { +`],encapsulation:2,changeDetection:0})}return t})(),sb;function yG(){if(sb===void 0&&(sb=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(sb=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return sb}function ad(t){return yG()?.createHTML(t)||t}function HN(t,i,e){let n=e.sanitize(Ai.HTML,i);t.innerHTML=ad(n||"")}var WN=new Set,sd,im=(()=>{class t{_platform=p(Ft);_nonce=p(Wc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):wG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&CG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function CG(t,i){if(!WN.has(t))try{sd||(sd=document.createElement("style"),i&&sd.setAttribute("nonce",i),sd.setAttribute("type","text/css"),document.head.appendChild(sd)),sd.sheet&&(sd.sheet.insertRule(`@media ${t} {body{ }}`,0),WN.add(t))}catch(e){console.error(e)}}function wG(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ld=(()=>{class t{_mediaMatcher=p(im);_zone=p(be);_queries=new Map;_destroySubject=new Z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return $N(qs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=$N(qs(e)).map(a=>this._registerQuery(a).observable),r=yo(o);return r=es(r.pipe(bn(1)),r.pipe(Ec(1),Is(0))),r.pipe(Qe(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new dt(a=>{let s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cn(n),Qe(({matches:a})=>({query:e,matches:a})),Je(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $N(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xG(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qN=(()=>{class t{_mutationObserverFactory=p(GN);_observedElements=new Map;_ngZone=p(be);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Vo(e);return new dt(o=>{let a=this._observeElement(n).pipe(Qe(s=>s.filter(l=>!xG(l))),At(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new Z,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YN=(()=>{class t{_contentObserver=p(qN);_elementRef=p(se);event=new V;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Pa(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Is(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",K],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),lb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[GN]})}return t})();var rE=(()=>{class t{_platform=p(Ft);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return SG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=DG(OG(e));if(n&&(QN(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=QN(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!AG(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return RG(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DG(t){try{return t.frameElement}catch(i){return null}}function SG(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function EG(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function MG(t){return IG(t)&&t.type=="hidden"}function TG(t){return kG(t)&&t.hasAttribute("href")}function IG(t){return t.nodeName.toLowerCase()=="input"}function kG(t){return t.nodeName.toLowerCase()=="a"}function XN(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function QN(t){if(!XN(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function AG(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function RG(t){return MG(t)?!1:EG(t)||TG(t)||t.hasAttribute("contenteditable")||XN(t)}function OG(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var oE=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?nn(i,{injector:this._injector}):setTimeout(i)}},cb=(()=>{class t{_checker=p(rE);_ngZone=p(be);_document=p(ke);_injector=p(Te);constructor(){p(an).load(qr)}create(e,n=!1){return new oE(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aE=(()=>{class t{_elementRef=p(se);_focusTrapFactory=p(cb);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=!1;constructor(){p(Ft).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(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Gr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",K],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",K]},exportAs:["cdkTrapFocus"],features:[Ct]})}return t})(),JN=new L("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),eF=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),PG=0,Fh=(()=>{class t{_ngZone=p(be);_defaultOptions=p(eF,{optional:!0});_liveElement;_document=p(ke);_sanitizer=p(Ws);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(JN,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:HN(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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 e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=p(Ft);_hasCheckedHighContrastMode=!1;_document=p(ke);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ld).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return $l.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return $l.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return $l.BLACK_ON_WHITE}return $l.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(iE,KN,ZN),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===$l.BLACK_ON_WHITE?e.add(iE,KN):n===$l.WHITE_ON_BLACK&&e.add(iE,ZN)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{constructor(){p(tF)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[lb]})}return t})();function NG(t,i){}var Gl=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var lE=(()=>{class t extends Hl{_elementRef=p(se);_focusTrapFactory=p(cb);_config;_interactivityChecker=p(rE);_ngZone=p(be);_focusMonitor=p(Oi);_renderer=p(Zt);_changeDetectorRef=p(Ze);_injector=p(Te);_platform=p(Ft);_document=p(ke);_portalOutlet;_focusTrapped=new Z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(Gl,{optional:!0})||new Gl,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||nn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=Gr(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Gr();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gr()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&me("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)},features:[We],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&we(0,NG,0,0,"ng-template",0)},dependencies:[Bo],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } -`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},NG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),FG=new L("DialogData"),LG=new L("DefaultDialogConfig");function VG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var lE=(()=>{class t{_injector=p(Te);_defaultOptions=p(LG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ib);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(NG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new $l;n=G(G({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=Uo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){aE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){aE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),aE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new jo({positionStrategy:e.positionStrategy||gs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:$l,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=sE;let l=new nr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=G(G({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new qi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new nr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:FG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(xn,null,{optional:!0}))&&s.push({provide:xn,useValue:VG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aE(t,i){let e=t.length;for(;e--;)i(t[e])}var tF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[lE],imports:[fo,wr,cd,wr]})}return t})();function Yr(t){return t!=null&&`${t}`!="false"}function nF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var cb={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 BG=new L("MATERIAL_ANIMATIONS"),iF=null;function cE(){return p(BG,{optional:!0})?.animationsDisabled||p(Ol,{optional:!0})==="NoopAnimations"?"di-disabled":(iF??=p(im).matchMedia("(prefers-reduced-motion)").matches,iF?"reduced-motion":"enabled")}function Bt(){return cE()!=="enabled"}var jG=200,db=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:jG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Is(i),At(()=>this._pressedLetters.length>0),Qe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof gr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ds(i)&&(this._effectRef=Fs(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new db(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Ys=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var aF=" ";function sm(t,i,e){let n=pb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(aF)))}function Gl(t,i,e){let n=pb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(aF)):t.removeAttribute(i)}function pb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var sF="cdk-describedby-message",mb="cdk-describedby-host",uE=0,hb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${uE++}`;constructor(){p(an).load(qr),this._id=p(Rl)+"-"+uE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=dE(n,o);typeof n!="string"?(rF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=dE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${mb}="${this._id}"]`);for(let n=0;no.indexOf(sF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(mb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Gl(e,"aria-describedby",o.messageElement.id),e.removeAttribute(mb)}_isElementDescribedByMessage(e,n){let o=pb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function rF(t,i){t.id||(t.id=`${sF}-${i}-${uE++}`)}function zG(t,i){}var gb=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},mE="mdc-dialog--open",lF="mdc-dialog--opening",cF="mdc-dialog--closing",UG=150,HG=75,WG=(()=>{class t extends sE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?uF(this._config.enterAnimationDuration)??UG:0;_exitAnimationDuration=this._animationsEnabled?uF(this._config.exitAnimationDuration)??HG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lF,mE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mE),this._animationsEnabled?(this._hostElement.style.setProperty(dF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(lF,cF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),xe(2,zG,0,0,"ng-template",2),d()())},dependencies:[Bo],styles:[`.mat-mdc-dialog-container { +`],encapsulation:2})}return t})(),Lh=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Z;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!un(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},FG=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Wl(t)}}),LG=new L("DialogData"),VG=new L("DefaultDialogConfig");function BG(t){let i=Re(t),e=new V;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var cE=(()=>{class t{_injector=p(Te);_defaultOptions=p(VG,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(ob);_idGenerator=p(zt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;_ariaHiddenElements=new Map;_scrollStrategy=p(FG);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new Gl;n=q(q({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=Uo(this._injector,r),s=new Lh(a,n),l=this._attachContainer(a,s,n);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(bn(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){sE(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){sE(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),sE(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new jo({positionStrategy:e.positionStrategy||gs().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:Gl,useValue:o},{provide:Lh,useValue:n},{provide:Ju,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=lE;let l=new nr(s,o.viewContainerRef,Te.create({parent:r||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof mn){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=q(q({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new qi(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new nr(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:LG,useValue:e.data},{provide:Lh,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(wn,null,{optional:!0}))&&s.push({provide:wn,useValue:BG(e.direction)}),Te.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&!r.hasAttribute("popover")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sE(t,i){let e=t.length;for(;e--;)i(t[e])}var nF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cE],imports:[fo,xr,cd,xr]})}return t})();function Yr(t){return t!=null&&`${t}`!="false"}function iF(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var db={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 jG=new L("MATERIAL_ANIMATIONS"),oF=null;function dE(){return p(jG,{optional:!0})?.animationsDisabled||p(Pl,{optional:!0})==="NoopAnimations"?"di-disabled":(oF??=p(im).matchMedia("(prefers-reduced-motion)").matches,oF?"reduced-motion":"enabled")}function Bt(){return dE()!=="enabled"}var zG=200,ub=class{_letterKeyStream=new Z;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Z;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:zG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(fi(e=>this._pressedLetters.push(e)),Is(i),At(()=>this._pressedLetters.length>0),Qe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof gr?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ds(i)&&(this._effectRef=Fs(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new Z;change=new Z;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new ub(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var dd=class extends om{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Ys=class extends om{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var sF=" ";function sm(t,i,e){let n=hb(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(sF)))}function ql(t,i,e){let n=hb(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(sF)):t.removeAttribute(i)}function hb(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var lF="cdk-describedby-message",pb="cdk-describedby-host",mE=0,fb=(()=>{class t{_platform=p(Ft);_document=p(ke);_messageRegistry=new Map;_messagesContainer=null;_id=`${mE++}`;constructor(){p(an).load(qr),this._id=p(Ol)+"-"+mE++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=uE(n,o);typeof n!="string"?(aF(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=uE(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${pb}="${this._id}"]`);for(let n=0;no.indexOf(lF)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);sm(e,"aria-describedby",o.messageElement.id),e.setAttribute(pb,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,ql(e,"aria-describedby",o.messageElement.id),e.removeAttribute(pb)}_isElementDescribedByMessage(e,n){let o=hb(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uE(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function aF(t,i){t.id||(t.id=`${lF}-${i}-${mE++}`)}function UG(t,i){}var _b=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},pE="mdc-dialog--open",cF="mdc-dialog--opening",dF="mdc-dialog--closing",HG=150,WG=75,$G=(()=>{class t extends lE{_animationStateChanged=new V;_animationsEnabled=!Bt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?mF(this._config.enterAnimationDuration)??HG:0;_exitAnimationDuration=this._animationsEnabled?mF(this._config.exitAnimationDuration)??WG:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cF,pE)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(pE),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(pE),this._animationsEnabled?(this._hostElement.style.setProperty(uF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(cF,dF)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(On("id",o._config.id),me("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),le("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[We],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),we(2,UG,0,0,"ng-template",2),d()())},dependencies:[Bo],styles:[`.mat-mdc-dialog-container { width: 100%; height: 100%; display: block; @@ -356,8 +356,8 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-dialog-component-host { display: contents; } -`],encapsulation:2})}return t})(),dF="--mat-dialog-transition-duration";function uF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Pa(t.substring(0,t.length-2)):t.endsWith("s")?Pa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var fb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(fb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Br(1);_beforeClosed=new Br(1);_result;_closeFallbackTimeout;_state=fb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),mF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=fb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=fb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function mF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),$G=new L("mat-mdc-dialog-default-options"),GG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Hl(t)}}),jh=(()=>{class t{_defaultOptions=p($G,{optional:!0});_scrollStrategy=p(GG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(lE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=gb;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=WG,this._dialogDataToken=bt}open(e,n){let o;n=G(G({},this._defaultOptions||new gb),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye(G({},n),{positionStrategy:gs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:$l,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=hF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){mF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&x("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),pF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=hF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),xt=(()=>{class t extends pF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[yD([Th])]})}return t})(),Dt=(()=>{class t extends pF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function hF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var fF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[tF,fo,wr,pt]})}return t})();var gF,_F=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],vF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var bF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},ql=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||QG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=qG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,w,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Wo(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Wo(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Wo(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Wo(yF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Wo(l,3);case"k":return Wo(i.getHours(),y===void 0?" ":y);case"L":return Wo(Math.floor(r%1e3),3);case"l":return Wo(yF(i),y===void 0?" ":y);case"M":return Wo(i.getMinutes(),y);case"m":return Wo(i.getMonth()+1,y);case"n":return` -`;case"o":return String(i.getDate())+YG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Wo(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Wo(CF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Wo(CF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(w=i.toString().match(/\((\w+)\)/),w&&w[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Wo(Math.abs(g/60))+Wo(g%60));default:return s}})},qG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Wo=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},YG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},CF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},pE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),Yi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=ql(pE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",hE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),wF=t=>t===""||t===null||t===void 0,_b=t=>t==="yes"||t===!0||t==="true"||t===1,QG={days:_F,shortDays:bF(_F),months:vF,shortMonths:bF(vF),AM:"AM",PM:"PM",am:"am",pm:"pm"},So=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return pg(t.pipe(RC(i)));e=pg(t)}return e},qn=class{static{gF=Symbol.toStringTag}constructor(){this[gF]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,DF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(DF),cm;let t=document.createElement("input");return cm=new Set(DF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),gE=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},SF=nm({passive:!0,capture:!0}),_E=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,SF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,SF)))}_delegateEventHandler=i=>{let e=Gi(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},KG=800,EF=nm({passive:!0,capture:!0}),MF=["mousedown","touchstart"],TF=["mouseup","mouseleave","touchend","touchcancel"],ZG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { +`],encapsulation:2})}return t})(),uF="--mat-dialog-transition-duration";function mF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Pa(t.substring(0,t.length-2)):t.endsWith("s")?Pa(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var gb=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(gb||{}),ct=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Br(1);_beforeClosed=new Br(1);_result;_closeFallbackTimeout;_state=gb.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(At(o=>o.state==="opened"),bn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(At(o=>o.state==="closed"),bn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(At(o=>o.keyCode===27&&!this.disableClose&&!un(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),pF(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(At(n=>n.state==="closing"),bn(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=gb.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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=gb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function pF(t,i,e){return t._closeInteractionType=i,t.close(e)}var bt=new L("MatMdcDialogData"),GG=new L("mat-mdc-dialog-default-options"),qG=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Wl(t)}}),jh=(()=>{class t{_defaultOptions=p(GG,{optional:!0});_scrollStrategy=p(qG);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(zt);_injector=p(Te);_dialog=p(cE);_animationsDisabled=Bt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Z;_afterOpenedAtThisLevel=new Z;dialogConfigClass=_b;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=pr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cn(void 0)));constructor(){this._dialogRefConstructor=ct,this._dialogContainerType=$G,this._dialogDataToken=bt}open(e,n){let o;n=q(q({},this._defaultOptions||new _b),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ye(q({},n),{positionStrategy:gs(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Gl,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,l)=>(o=new this._dialogRefConstructor(a,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nn=(()=>{class t{dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=fF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){pF(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&w("click",function(a){return o._onButtonClick(a)}),n&2&&me("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"],features:[Ct]})}return t})(),hF=(()=>{class t{_dialogRef=p(ct,{optional:!0});_elementRef=p(se);_dialog=p(jh);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=fF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})(),wt=(()=>{class t extends hF{id=p(zt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&On("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[We]})}return t})(),xt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[CD([Th])]})}return t})(),Dt=(()=>{class t extends hF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,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&&le("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"},features:[We]})}return t})();function fF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var gF=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[jh],imports:[nF,fo,xr,pt]})}return t})();var _F,vF=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bF=[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 lm=(t,i)=>{let e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download=i,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(e)},1e3)};var yF=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},Yl=(t,i,e)=>(typeof i>"u"&&(i=new Date),ud(t,i,e));var ud=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||KG;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=YG(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let l,u,h,g,y,x,S,P;if(h=null,y=null,s.length===2){if(h=s[0],h==="-")y="";else if(h==="_")y=" ";else if(h==="0")y="0";else return a;s=s[1]}switch(s){case"A":return o.days[i.getDay()];case"a":return o.shortDays[i.getDay()];case"B":return o.months[i.getMonth()];case"b":return o.shortMonths[i.getMonth()];case"C":return Wo(Math.floor(i.getFullYear()/100),y);case"D":return ud(o.formats.D||"%m/%d/%y",i,o);case"d":return Wo(i.getDate(),y);case"e":return i.getDate();case"F":return ud(o.formats.F||"%Y-%m-%d",i,o);case"H":return Wo(i.getHours(),y);case"h":return o.shortMonths[i.getMonth()];case"I":return Wo(CF(i),y);case"j":return S=new Date(i.getFullYear(),0,1),l=Math.ceil((i.getTime()-S.getTime())/(1e3*60*60*24)),Wo(l,3);case"k":return Wo(i.getHours(),y===void 0?" ":y);case"L":return Wo(Math.floor(r%1e3),3);case"l":return Wo(CF(i),y===void 0?" ":y);case"M":return Wo(i.getMinutes(),y);case"m":return Wo(i.getMonth()+1,y);case"n":return` +`;case"o":return String(i.getDate())+QG(i.getDate());case"P":return"";case"p":return"";case"R":return ud(o.formats.R||"%H:%M",i,o);case"r":return ud(o.formats.r||"%I:%M:%S %p",i,o);case"S":return Wo(i.getSeconds(),y);case"s":return Math.floor(r/1e3);case"T":return ud(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return Wo(wF(i,"sunday"),y);case"u":return u=i.getDay(),u===0?7:u;case"v":return ud(o.formats.v||"%e-%b-%Y",i,o);case"W":return Wo(wF(i,"monday"),y);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return P=String(i.getFullYear()),P.slice(P.length-2);case"Z":return n.utc?"GMT":(x=i.toString().match(/\((\w+)\)/),x&&x[1]||"");case"z":return n.utc?"+0000":(g=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(g<0?"-":"+")+Wo(Math.abs(g/60))+Wo(g%60));default:return s}})},YG=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},Wo=(t,i,e)=>{typeof i=="number"&&(e=i,i="0"),i=i??"0",e=e??2;let n=String(t);if(i)for(;n.length{let i;return i=t.getHours(),i===0?i=12:i>12&&(i-=12),i},QG=t=>{let i=t%10,e=t%100;if(e>=11&&e<=13||i===0||i>=4)return"th";switch(i){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},wF=(t,i)=>{i=i||"sunday";let e=t.getDay();i==="monday"&&(e===0?e=6:e--);let n=new Date(t.getFullYear(),0,1),o=Math.floor((t.getTime()-n.getTime())/864e5);return Math.floor((o+7-e)/7)},hE=t=>t.replace(/./g,i=>{switch(i){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+i;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 i}}),Yi=(t,i,e=null)=>{let n;if(i==="None"||i===null||i===void 0)i=7226578800,n=django.gettext("Never");else{let o=django.get_format(t);e&&(o+=e),n=Yl(hE(o),new Date(i*1e3))}return n},xF=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",fE=t=>!!(t==null||typeof t=="object"&&Object.keys(t).length===0&&t.constructor===Object||Array.isArray(t)&&t.length===0||typeof t=="string"&&t.trim()===""),DF=t=>t===""||t===null||t===void 0,vb=t=>t==="yes"||t===!0||t==="true"||t===1,KG={days:vF,shortDays:yF(vF),months:bF,shortMonths:yF(bF),AM:"AM",PM:"PM",am:"am",pm:"pm"},So=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qn)e=t;else{if(i)return hg(t.pipe(OC(i)));e=hg(t)}return e},qn=class{static{_F=Symbol.toStringTag}constructor(){this[_F]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((i,e)=>{this.resolve=i,this.reject=e})}then(i,e){return this.promise.then(i,e)}catch(i){return this.promise.catch(i)}finally(i){return this.promise.finally(i)}};var cm,SF=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function gE(){if(cm)return cm;if(typeof document!="object"||!document)return cm=new Set(SF),cm;let t=document.createElement("input");return cm=new Set(SF.filter(i=>(t.setAttribute("type",i),t.type===i))),cm}var Zr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(Zr||{}),_E=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Zr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},EF=nm({passive:!0,capture:!0}),vE=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,EF)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,EF)))}_delegateEventHandler=i=>{let e=Gi(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},zh={enterDuration:225,exitDuration:150},ZG=800,MF=nm({passive:!0,capture:!0}),TF=["mousedown","touchstart"],IF=["mouseup","mouseleave","touchend","touchcancel"],XG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -385,7 +385,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new _E;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Vo(n)),r&&r.get(an).load(ZG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=G(G({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||XG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,w=g.transitionDuration,S=y==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,P=new gE(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},q=()=>this._destroyRipple(P),ve=setTimeout(q,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",q),j={onTransitionEnd:F,onTransitionCancel:q,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=G(G({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Vo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,MF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TF.forEach(e=>{this._triggerElement.addEventListener(e,this,EF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(MF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(TF.forEach(e=>i.removeEventListener(e,this,EF)),this._pointerUpEventsRegistered=!1))}};function XG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Sr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:G(G(G({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,G(G({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,G(G({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var JG={capture:!0},e7=["focus","mousedown","mouseenter","touchstart"],vE="mat-ripple-loader-uninitialized",bE="mat-ripple-loader-class-name",IF="mat-ripple-loader-centered",vb="mat-ripple-loader-disabled",bb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>e7.map(n=>e.listen(this._document,n,this._onInteraction,JG)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(vE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(bE))&&e.setAttribute(bE,n.className||""),n.centered&&e.setAttribute(IF,""),n.disabled&&e.setAttribute(vb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(vb,""):e.removeAttribute(vb)}_onInteraction=e=>{let n=Gi(e);if(n instanceof HTMLElement){let o=n.closest(`[${vE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(bE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(vb),rippleConfig:{centered:e.hasAttribute(IF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(vE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),Uh=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new vE;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Vo(n)),r&&r.get(an).load(XG)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=q(q({},zh),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||JG(i,e,o),s=i-o.left,l=e-o.top,u=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,n.color!=null&&(h.style.backgroundColor=n.color),h.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),y=g.transitionProperty,x=g.transitionDuration,S=y==="none"||x==="0s"||x==="0s, 0s"||o.width===0&&o.height===0,P=new _E(this,h,n,S);h.style.transform="scale3d(1, 1, 1)",P.state=Zr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=P);let j=null;return!S&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>{j&&(j.fallbackTimer=null),clearTimeout(ve),this._finishRippleTransition(P)},G=()=>this._destroyRipple(P),ve=setTimeout(G,u+100);h.addEventListener("transitionend",F),h.addEventListener("transitioncancel",G),j={onTransitionEnd:F,onTransitionCancel:G,fallbackTimer:ve}}),this._activeRipples.set(P,j),(S||!u)&&this._finishRippleTransition(P),P}fadeOutRipple(i){if(i.state===Zr.FADING_OUT||i.state===Zr.HIDDEN)return;let e=i.element,n=q(q({},zh),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=Zr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=Vo(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TF.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{IF.forEach(e=>{this._triggerElement.addEventListener(e,this,MF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Zr.FADING_IN?this._startFadeOutTransition(i):i.state===Zr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=Zr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Zr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=od(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===Zr.VISIBLE||i.config.terminateOnPointerUp&&i.state===Zr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(TF.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(IF.forEach(e=>i.removeEventListener(e,this,MF)),this._pointerUpEventsRegistered=!1))}};function JG(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var dm=new L("mat-ripple-global-options"),Sr=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(be),n=p(Ft),o=p(dm,{optional:!0}),r=p(Te);this._globalOptions=o||{},this._rippleRenderer=new Uh(this,e,this._elementRef,n,r)}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:q(q(q({},this._globalOptions.animation),this._animationsDisabled?{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(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,q(q({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,q(q({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})();var e7={capture:!0},t7=["focus","mousedown","mouseenter","touchstart"],bE="mat-ripple-loader-uninitialized",yE="mat-ripple-loader-class-name",kF="mat-ripple-loader-centered",bb="mat-ripple-loader-disabled",yb=(()=>{class t{_document=p(ke);_animationsDisabled=Bt();_globalRippleOptions=p(dm,{optional:!0});_platform=p(Ft);_ngZone=p(be);_injector=p(Te);_eventCleanups;_hosts=new Map;constructor(){let e=p(bi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>t7.map(n=>e.listen(this._document,n,this._onInteraction,e7)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(bE,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(yE))&&e.setAttribute(yE,n.className||""),n.centered&&e.setAttribute(kF,""),n.disabled&&e.setAttribute(bb,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(bb,""):e.removeAttribute(bb)}_onInteraction=e=>{let n=Gi(e);if(n instanceof HTMLElement){let o=n.closest(`[${bE}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(yE)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??zh.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??zh.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(bb),rippleConfig:{centered:e.hasAttribute(kF),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},l=new Uh(s,this._ngZone,n,this._platform,this._injector),u=!s.rippleDisabled;u&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:u}),e.removeAttribute(bE)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -411,7 +411,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var t7=["mat-icon-button",""],n7=["*"],i7=new L("MAT_BUTTON_CONFIG");function kF(t){return t==null?void 0:ti(t)}var yE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(i7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(bb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",kF],_tabindex:[2,"tabindex","_tabindex",kF]}})}return t})(),yi=(()=>{class t extends yE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:t7,ngContentSelectors:n7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),mo(0,"span",0),Ie(1),mo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var n7=["mat-icon-button",""],i7=["*"],o7=new L("MAT_BUTTON_CONFIG");function AF(t){return t==null?void 0:ti(t)}var CE=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_animationsDisabled=Bt();_config=p(o7,{optional:!0});_focusMonitor=p(Oi);_cleanupClick;_renderer=p(Zt);_rippleLoader=p(yb);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){p(an).load(Mi);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null: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)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tn(o.color?"mat-"+o.color:""),le("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K],ariaDisabled:[2,"aria-disabled","ariaDisabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],tabIndex:[2,"tabIndex","tabIndex",AF],_tabindex:[2,"tabindex","_tabindex",AF]}})}return t})(),yi=(()=>{class t extends CE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[We],attrs:n7,ngContentSelectors:i7,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(),mo(0,"span",0),Ie(1),mo(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -536,7 +536,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var o7=["matButton",""],r7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],a7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var AF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends yE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=s7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?AF.get(this._appearance):null,r=AF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:o7,ngContentSelectors:a7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(r7),mo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),mo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var _s=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var r7=["matButton",""],a7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],s7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RF=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Fe=(()=>{class t extends CE{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=l7(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?RF.get(this._appearance):null,r=RF.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[We],attrs:r7,ngContentSelectors:s7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(vt(a7),mo(0,"span",0),Ie(1),dn(2,"span",1),Ie(3,1),pn(),Ie(4,2),mo(5,"span",2)(6,"span",3)),n&2&&le("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -1080,7 +1080,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function s7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var vs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var yb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Ws,16))}}static{this.\u0275pipe=ka({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function l7(t,i){if(t&1){let e=W();c(0,"button",4),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function c7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function d7(t,i){if(t&1){let e=W();c(0,"button",5),x("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),CE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),$t(1,"safeHtml"),O(2,"mat-dialog-content",1),$t(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,l7,4,1,"button",2),A(6,c7,3,1,"button",3),A(7,d7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,yb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),Wh=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var BF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),jF=(()=>{class t extends BF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var u7={provide:Go,useExisting:Wn(()=>Ht),multi:!0};function m7(){let t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var p7=new L(""),Ht=(()=>{class t extends BF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!m7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(p7,8))};static \u0275dir=Q({type:t,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&&x("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ke([u7]),We]})}return t})();function wE(t){return t==null||DE(t)===0}function DE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Xr=new L(""),Pb=new L(""),h7=/^(?=.{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])?)*$/,bs=class{static min(i){return f7(i)}static max(i){return g7(i)}static required(i){return zF(i)}static requiredTrue(i){return _7(i)}static email(i){return v7(i)}static minLength(i){return b7(i)}static maxLength(i){return UF(i)}static pattern(i){return y7(i)}static nullValidator(i){return xb()}static compose(i){return YF(i)}static composeAsync(i){return QF(i)}};function f7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function zF(t){return wE(t.value)?{required:!0}:null}function _7(t){return t.value===!0?null:{required:!0}}function v7(t){return wE(t.value)||h7.test(t.value)?null:{email:!0}}function b7(t){return i=>{let e=i.value?.length??DE(i.value);return e===null||e===0?null:e{let e=i.value?.length??DE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function y7(t){if(!t)return xb;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(wE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function xb(t){return null}function HF(t){return t!=null}function WF(t){return js(t)?Hn(t):t}function $F(t){let i={};return t.forEach(e=>{i=e!=null?G(G({},i),e):i}),Object.keys(i).length===0?null:i}function GF(t,i){return i.map(e=>e(t))}function C7(t){return!t.validate}function qF(t){return t.map(i=>C7(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){return $F(GF(e,i))}}function SE(t){return t!=null?YF(qF(t)):null}function QF(t){if(!t)return null;let i=t.filter(HF);return i.length==0?null:function(e){let n=GF(e,i).map(WF);return rp(n).pipe(Qe($F))}}function EE(t){return t!=null?QF(qF(t)):null}function OF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function KF(t){return t._rawValidators}function ZF(t){return t._rawAsyncValidators}function xE(t){return t?Array.isArray(t)?t:[t]:[]}function wb(t,i){return Array.isArray(t)?t.includes(i):t===i}function PF(t,i){let e=xE(i);return xE(t).forEach(o=>{wb(e,o)||e.push(o)}),e}function NF(t,i){return xE(i).filter(e=>!wb(t,e))}var Db=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=SE(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=EE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Qs=class extends Db{name;get formDirective(){return null}get path(){return null}},ir=class extends Db{_parent=null;name=null;valueAccessor=null},Sb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(ir,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),Nb=(()=>{class t extends Sb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Qs,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var $h="VALID",Cb="INVALID",um="PENDING",Gh="DISABLED",Yl=class{},Eb=class extends Yl{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Yh=class extends Yl{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Qh=class extends Yl{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends Yl{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Mb=class extends Yl{source;constructor(i){super(),this.source=i}},Tb=class extends Yl{source;constructor(i){super(),this.source=i}};function XF(t){return(Fb(t)?t.validators:t)||null}function x7(t){return Array.isArray(t)?SE(t):t||null}function JF(t,i){return(Fb(i)?i.asyncValidators:t)||null}function w7(t){return Array.isArray(t)?EE(t):t||null}function Fb(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function D7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function S7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Ib=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Lo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===$h}get invalid(){return this.status===Cb}get pending(){return this.status===um}get disabled(){return this.status===Gh}get enabled(){return this.status!==Gh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Lo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Lo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(PF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(PF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(NF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}hasValidator(i){return wb(this._rawValidators,i)}hasAsyncValidator(i){return wb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye(G({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Yh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Yh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye(G({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this.errors=null,this._forEachChild(o=>{o.disable(Ye(G({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=$h,this._forEachChild(n=>{n.enable(Ye(G({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye(G({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$h||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Eb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye(G({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gh:$h}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=WF(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?Gh:this.errors?Cb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Cb)?Cb:$h}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Yh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Qh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Fb(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=x7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=w7(this._rawAsyncValidators)}},kb=class extends Ib{constructor(i,e,n){super(XF(e),JF(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){S7(this,!0,i),Object.keys(i).forEach(n=>{D7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye(G({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Tb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>Lb}),Lb="always";function E7(t,i){return[...i.path,t]}function Kh(t,i,e=Lb){ME(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),T7(t,i),k7(t,i),I7(t,i),M7(t,i)}function Ab(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),Ob(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Rb(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function M7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ME(t,i){let e=KF(t);i.validator!==null?t.setValidators(OF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ZF(t);i.asyncValidator!==null?t.setAsyncValidators(OF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Rb(i._rawValidators,o),Rb(i._rawAsyncValidators,o)}function Ob(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=KF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return Rb(i._rawValidators,n),Rb(i._rawAsyncValidators,n),e}function T7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&e2(t,i)})}function I7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&e2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function e2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function k7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function t2(t,i){t==null,ME(t,i)}function A7(t,i){return Ob(t,i)}function n2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function R7(t){return Object.getPrototypeOf(t.constructor)===jF}function i2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function o2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Ht?e=r:R7(r)?n=r:o=r}),o||n||e||null}function O7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var P7={provide:Qs,useExisting:Wn(()=>Jr)},qh=Promise.resolve(),Jr=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Lo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new kb({},SE(e),EE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Kh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qh.then(()=>{let n=this._findContainer(e.path),o=new kb({});t2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){qh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),i2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([P7]),We]})}return t})();function FF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function LF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Vb=class extends Ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(XF(e),JF(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fb(e)&&(e.nonNullable||e.initialValueIsDefault)&&(LF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Tb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){FF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){FF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){LF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var N7=t=>t instanceof Vb;var F7={provide:ir,useExisting:Wn(()=>Xe)},VF=Promise.resolve(),Xe=(()=>{class t extends ir{_changeDetectorRef;callSetDisabledState;control=new Vb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=o2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),n2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Kh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){VF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);VF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?E7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Qs,9),D(Xr,10),D(Pb,10),D(Go,10),D(Ze,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ke([F7]),We,Ct]})}return t})();var Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),L7={provide:Go,useExisting:Wn(()=>Er),multi:!0},Er=(()=>{class t extends jF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&x("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ke([L7]),We]})}return t})();var V7=(()=>{class t extends Qs{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Lo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ob(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Kh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Ab(e.control||null,e,!1),O7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,i2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Mb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(Ab(n||null,e),N7(o)&&(Kh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);t2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&A7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ME(this.form,this),this._oldForm&&Ob(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var r2=new L(""),B7={provide:ir,useExisting:Wn(()=>TE)},TE=(()=>{class t extends ir{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=o2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Ab(n,this,!1),Kh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}n2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ab(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Xr,10),D(Pb,10),D(Go,10),D(r2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ke([B7]),We,Ct]})}return t})();var j7={provide:Qs,useExisting:Wn(()=>Ql)},Ql=(()=>{class t extends V7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&x("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([j7]),We]})}return t})();function z7(t){return typeof t=="number"?t:parseInt(t,10)}var a2=(()=>{class t{_validator=xb;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):xb,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var U7={provide:Xr,useExisting:Wn(()=>Qi),multi:!0};var Qi=(()=>{class t extends a2{required;inputName="required";normalizeInput=K;createValidator=e=>zF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ke([U7]),We]})}return t})();var H7={provide:Xr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends a2{maxlength;inputName="maxlength";normalizeInput=e=>z7(e);createValidator=e=>UF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ke([H7]),We]})}return t})();var s2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var l2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})(),jb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:r2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??Lb}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[s2]})}return t})();var IE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),yg({bufferSize:1,refCount:!0}),Je(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},zb=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new IE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PE=["*"];function W7(t,i){t&1&&Ie(0)}var $7=["tabListContainer"],G7=["tabList"],q7=["tabListInner"],Y7=["nextPaginator"],Q7=["previousPaginator"],K7=["content"];function Z7(t,i){}var X7=["tabBodyWrapper"],J7=["tabHeader"];function e9(t,i){}function t9(t,i){if(t&1&&xe(0,e9,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function n9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function i9(t,i){if(t&1){let e=W();c(0,"div",7,2),x("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,t9,1,1,null,12)(7,n9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function o9(t,i){t&1&&Ie(0)}function r9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),x("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var a9=new L("MatTabContent"),s9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ke([{provide:a9,useExisting:t}])]})}return t})(),l9=new L("MatTabLabel"),m2=new L("MAT_TAB"),Yn=(()=>{class t extends bN{_closestTab=p(m2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ke([{provide:l9,useExisting:t}]),We]})}return t})(),p2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(p2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,s9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ke([{provide:m2,useExisting:t}]),Ct],ngContentSelectors:PE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Bs(0,W7,1,0,"ng-template"))},encapsulation:2})}return t})(),kE="mdc-tab-indicator--active",c2="mdc-tab-indicator--no-transition",AE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},c9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(kE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(c2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(c2),n.classList.add(kE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(kE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var h2=(()=>{class t extends c9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),d2={passive:!0},d9=650,u9=100,m9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_viewportRuler=p(ho);_dir=p(xn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(zb);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),d2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),d2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Is(32),Je(this._destroyed)),o=this._viewportRuler.change(150).pipe(Je(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ys(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ts(d9,u9).pipe(Je(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),p9=(()=>{class t extends m9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new AE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,h2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at($7,7)(G7,7)(q7,7)(Y7,5)(Q7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:PE,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){n&1&&(vt(),c(0,"div",5,0),x("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),x("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),x("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),x("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Sr,qN],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return t})();function l7(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var vs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,pt]})}return t})();var Ee=(()=>{class t{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}static{this.\u0275fac=function(n){return new(n||t)(D(se))}}static{this.\u0275dir=Q({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var Cb=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,n){return e=e.replace(/<\s*script\s*/gi,""),e=e.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,""),e=e.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Ws,16))}}static{this.\u0275pipe=ka({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function c7(t,i){if(t&1){let e=W();c(0,"button",4),w("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"Close"),d(),f(3),d()}if(t&2){let e=_();m(3),_e(e.extra)}}function d7(t,i){if(t&1){let e=W();c(0,"button",5),w("click",function(){I(e);let o=_();return k(o.resolveAndClose(!0))}),c(1,"uds-translate"),f(2,"Yes"),d()()}if(t&2){let e=_();b("color",e.yesColor)}}function u7(t,i){if(t&1){let e=W();c(0,"button",5),w("click",function(){I(e);let o=_();return k(o.resolveAndClose(!1))}),c(1,"uds-translate"),f(2,"No"),d()()}if(t&2){let e=_();b("color",e.noColor)}}var Hh=(function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t})(Hh||{}),wE=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qn}resolveAndClose(e){this.acceptance.resolve(e),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(e){this.extra=" ("+Math.floor(e/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return B(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=ap(1e3).subscribe(n=>{let o=e-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Hh.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal"]],standalone:!1,decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","mat-dialog-close","",3,"color"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(O(0,"h4",0),$t(1,"safeHtml"),O(2,"mat-dialog-content",1),$t(3,"safeHtml"),c(4,"mat-dialog-actions"),A(5,c7,4,1,"button",2),A(6,d7,3,1,"button",3),A(7,u7,3,1,"button",3),d()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(2),b("innerHTML",Xt(3,7,o.data.body),Bn),m(3),R(o.data.type===0?5:-1),m(),R(o.data.type===1?6:-1),m(),R(o.data.type===1?7:-1))},dependencies:[Fe,Nn,wt,Dt,xt,Ee,Cb],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Xr=3e4,Wh=class extends Error{},Qs=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Qs||{}),li=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return So(this.api.http.get(n,{headers:this.headers,observe:"response"}),Xr).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPost(i)}save(i,e,n){return e=e!==void 0?e:i.id,this.typedPut(i,e,n)}test(i,e){return So(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(Bi(n=>this.handleError(n))),Xr)}delete(i){return So(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),Xr)}permision(){return this.api.user.isAdmin?Qs.ALL:Qs.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return So(this.api.http.put(r,a,{headers:this.headers}).pipe(Bi(s=>this.handleError(s))),Xr)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return So(this.api.http.put(e,n,{headers:this.headers}).pipe(Bi(o=>this.handleError(o))),Xr)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new xE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return So(this.api.http.get(i,{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),Xr)}doGetWithEtag(i){return So(this.api.http.get(i,{headers:this.headers,observe:"response"}).pipe(Qe(e=>{let n=e.body;return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n._etag=e.headers.get("ETag")??null),n}),Bi(e=>this.handleError(e))),Xr)}typedGet(i){return this.doGetWithEtag(this.getPath(this.base,i))}typedPut(i,e,n){let o=n!=null?this.headers.set("If-Match",n):this.headers;return So(this.api.http.put(this.getPath(this.base,e),i,{headers:o}).pipe(Bi(r=>this.handleError(r,!0))),Xr)}typedPost(i,e){return So(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(Bi(n=>this.handleError(n,!0))),Xr)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?So(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),Xr):So(this.api.http.post(o,{},{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),Xr)}handleError(i,e=!1){if(e&&i.status===412)return this.api.gui.alert(django.gettext("Item changed by another administrator"),django.gettext("This item was modified by another administrator while you were editing it. Reload it to get the current version before saving your changes again.")),bl(()=>new Wh("Precondition failed (stale ETag)"));let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),bl(()=>new Error(n))}},xE=class extends li{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Qs.ALL}},wb=class extends li{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},xb=class extends li{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Db=class extends li{constructor(i){super(i,"osmanagers"),this.api=i}},Sb=class extends li{constructor(i){super(i,"transports"),this.api=i}},Eb=class extends li{constructor(i){super(i,"networks"),this.api=i}},Mb=class extends li{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},Tb=class extends li{constructor(i){super(i,"servers/groups"),this.api=i}},Ib=class extends li{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},kb=class extends li{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke(i+"/fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/fallback_access")}},Ab=class extends li{constructor(i){super(i,"config"),this.api=i}},Rb=class extends li{constructor(i){super(i,"gallery/images"),this.api=i}},Ob=class extends li{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},Pb=class extends li{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},Nb=class extends li{constructor(i){super(i,"reports"),this.api=i}types(){return So(Me([]))}},Fb=class extends li{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},Lb=class extends li{constructor(i){super(i,"calendars"),this.api=i}},Vb=class extends li{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},Bb=class extends li{constructor(i){super(i,"actortokens"),this.api=i}},jb=class extends li{constructor(i){super(i,"servers/tokens"),this.api=i}},zb=class extends li{constructor(i){super(i,"mfa"),this.api=i}},Ub=class extends li{constructor(i){super(i,"messaging/notifiers"),this.api=i}},Hb=class extends li{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return So(this.api.http.get(this.getPath(this.base),{headers:this.headers}),Xr).catch(()=>null)}};var $o=(function(t){return t.TEXT="text",t.TEXT_AUTOCOMPLETE="text-autocomplete",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t.INFO="internal-info",t})($o||{}),$h=class{static locateChoice(i,e){let n=e.gui.choices;if(n===void 0)return{id:"",img:"",text:""};let o=n.find(r=>r.id===i);if(o===void 0)try{o=n[0]}catch(r){o={id:"",img:"",text:""}}return o}};var jF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se))};static \u0275dir=Q({type:t})}return t})(),zF=(()=>{class t extends jF{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,features:[We]})}return t})(),Go=new L("");var m7={provide:Go,useExisting:Wn(()=>Ht),multi:!0};function p7(){let t=vr()?vr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var h7=new L(""),Ht=(()=>{class t extends jF{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!p7())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(D(Zt),D(se),D(h7,8))};static \u0275dir=Q({type:t,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&&w("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Ke([m7]),We]})}return t})();function SE(t){return t==null||EE(t)===0}function EE(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Jr=new L(""),i0=new L(""),f7=/^(?=.{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])?)*$/,bs=class{static min(i){return g7(i)}static max(i){return _7(i)}static required(i){return UF(i)}static requiredTrue(i){return v7(i)}static email(i){return b7(i)}static minLength(i){return y7(i)}static maxLength(i){return HF(i)}static pattern(i){return C7(i)}static nullValidator(i){return $b()}static compose(i){return QF(i)}static composeAsync(i){return KF(i)}};function g7(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function UF(t){return SE(t.value)?{required:!0}:null}function v7(t){return t.value===!0?null:{required:!0}}function b7(t){return SE(t.value)||f7.test(t.value)?null:{email:!0}}function y7(t){return i=>{let e=i.value?.length??EE(i.value);return e===null||e===0?null:e{let e=i.value?.length??EE(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function C7(t){if(!t)return $b;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(SE(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function $b(t){return null}function WF(t){return t!=null}function $F(t){return js(t)?Hn(t):t}function GF(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function qF(t,i){return i.map(e=>e(t))}function w7(t){return!t.validate}function YF(t){return t.map(i=>w7(i)?i:e=>i.validate(e))}function QF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){return GF(qF(e,i))}}function ME(t){return t!=null?QF(YF(t)):null}function KF(t){if(!t)return null;let i=t.filter(WF);return i.length==0?null:function(e){let n=qF(e,i).map($F);return rp(n).pipe(Qe(GF))}}function TE(t){return t!=null?KF(YF(t)):null}function PF(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ZF(t){return t._rawValidators}function XF(t){return t._rawAsyncValidators}function DE(t){return t?Array.isArray(t)?t:[t]:[]}function Gb(t,i){return Array.isArray(t)?t.includes(i):t===i}function NF(t,i){let e=DE(i);return DE(t).forEach(o=>{Gb(e,o)||e.push(o)}),e}function FF(t,i){return DE(i).filter(e=>!Gb(t,e))}var qb=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=ME(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=TE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},Ks=class extends qb{name;get formDirective(){return null}get path(){return null}},ir=class extends qb{_parent=null;name=null;valueAccessor=null},Yb=class{_cd;constructor(i){this._cd=i}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}};var $e=(()=>{class t extends Yb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(ir,2))};static \u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})(),o0=(()=>{class t extends Yb{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(D(Ks,10))};static \u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&le("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)},standalone:!1,features:[We]})}return t})();var Gh="VALID",Wb="INVALID",um="PENDING",qh="DISABLED",Ql=class{},Qb=class extends Ql{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Qh=class extends Ql{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Kh=class extends Ql{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},mm=class extends Ql{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Kb=class extends Ql{source;constructor(i){super(),this.source=i}},Zb=class extends Ql{source;constructor(i){super(),this.source=i}};function JF(t){return(r0(t)?t.validators:t)||null}function x7(t){return Array.isArray(t)?ME(t):t||null}function e2(t,i){return(r0(i)?i.asyncValidators:t)||null}function D7(t){return Array.isArray(t)?TE(t):t||null}function r0(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function S7(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new ie(1e3,"");if(!n[e])throw new ie(1001,"")}function E7(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new ie(-1002,"")})}var Xb=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return hn(this.statusReactive)}set status(i){hn(()=>this.statusReactive.set(i))}_status=Lo(()=>this.statusReactive());statusReactive=Re(void 0);get valid(){return this.status===Gh}get invalid(){return this.status===Wb}get pending(){return this.status===um}get disabled(){return this.status===qh}get enabled(){return this.status!==qh}errors;get pristine(){return hn(this.pristineReactive)}set pristine(i){hn(()=>this.pristineReactive.set(i))}_pristine=Lo(()=>this.pristineReactive());pristineReactive=Re(!0);get dirty(){return!this.pristine}get touched(){return hn(this.touchedReactive)}set touched(i){hn(()=>this.touchedReactive.set(i))}_touched=Lo(()=>this.touchedReactive());touchedReactive=Re(!1);get untouched(){return!this.touched}_events=new Z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(NF(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(NF(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(FF(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(FF(i,this._rawAsyncValidators))}hasValidator(i){return Gb(this._rawValidators,i)}hasAsyncValidator(i){return Gb(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(Ye(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Kh(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),i.onlySelf||this._parent?._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Kh(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(Ye(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Qh(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Qh(!0,n))}markAsPending(i={}){this.status=um;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new mm(this.status,e)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(Ye(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=qh,this.errors=null,this._forEachChild(o=>{o.disable(Ye(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Qb(this.value,n)),this._events.next(new mm(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ye(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Gh,this._forEachChild(n=>{n.enable(Ye(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ye(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gh||this.status===um)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Qb(this.value,e)),this._events.next(new mm(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(Ye(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qh:Gh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=$F(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n?.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new mm(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?qh:this.errors?Wb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(Wb)?Wb:Gh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,i.onlySelf||this._parent?._updatePristine(i,e),o&&this._events.next(new Qh(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Kh(this.touched,e)),i.onlySelf||this._parent?._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){r0(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=x7(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=D7(this._rawAsyncValidators)}},Jb=class extends Xb{constructor(i,e,n){super(JF(e),e2(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){E7(this,!0,i),Object.keys(i).forEach(n=>{S7(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,Ye(q({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Zb(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var pm=new L("",{factory:()=>a0}),a0="always";function M7(t,i){return[...i.path,t]}function Zh(t,i,e=a0){IE(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),I7(t,i),A7(t,i),k7(t,i),T7(t,i)}function e0(t,i,e=!0){let n=()=>{};i?.valueAccessor?.registerOnChange(n),i?.valueAccessor?.registerOnTouched(n),n0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function t0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function T7(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function IE(t,i){let e=ZF(t);i.validator!==null?t.setValidators(PF(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=XF(t);i.asyncValidator!==null?t.setAsyncValidators(PF(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();t0(i._rawValidators,o),t0(i._rawAsyncValidators,o)}function n0(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ZF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=XF(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return t0(i._rawValidators,n),t0(i._rawAsyncValidators,n),e}function I7(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&t2(t,i)})}function k7(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&t2(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function t2(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function A7(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function n2(t,i){t==null,IE(t,i)}function R7(t,i){return n0(t,i)}function i2(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function O7(t){return Object.getPrototypeOf(t.constructor)===zF}function o2(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function r2(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===Ht?e=r:O7(r)?n=r:o=r}),o||n||e||null}function P7(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var N7={provide:Ks,useExisting:Wn(()=>ea)},Yh=Promise.resolve(),ea=(()=>{class t extends Ks{callSetDisabledState;get submitted(){return hn(this.submittedReactive)}_submitted=Lo(()=>this.submittedReactive());submittedReactive=Re(!1);_directives=new Set;form;ngSubmit=new V;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Jb({},ME(e),TE(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Yh.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Zh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Yh.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Yh.then(()=>{let n=this._findContainer(e.path),o=new Jb({});n2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Yh.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Yh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),o2(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Kb(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(D(Jr,10),D(i0,10),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&w("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([N7]),We]})}return t})();function LF(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var s0=class extends Xb{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(JF(e),e2(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),r0(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VF(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Zb(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){LF(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){LF(this._onDisabledChange,i)}_forEachChild(i){}_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(i){VF(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var F7=t=>t instanceof s0;var L7={provide:ir,useExisting:Wn(()=>Xe)},BF=Promise.resolve(),Xe=(()=>{class t extends ir{_changeDetectorRef;callSetDisabledState;control=new s0;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=r2(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),i2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Zh(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){BF.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&K(n);BF.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?M7(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(D(Ks,9),D(Jr,10),D(i0,10),D(Go,10),D(Ze,8),D(pm,8))};static \u0275dir=Q({type:t,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"],standalone:!1,features:[Ke([L7]),We,Ct]})}return t})();var l0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),V7={provide:Go,useExisting:Wn(()=>Er),multi:!0},Er=(()=>{class t extends zF{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&w("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ke([V7]),We]})}return t})();var B7=(()=>{class t extends Ks{callSetDisabledState;get submitted(){return hn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Lo(()=>this._submittedReactive());_submittedReactive=Re(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(n0(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let n=this.form.get(e.path);return Zh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){e0(e.control||null,e,!1),P7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,n){this.form.get(e.path).setValue(n)}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,o2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Kb(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(e0(n||null,e),F7(o)&&(Zh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);n2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let n=this.form?.get(e.path);n&&R7(n,e)&&n.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){IE(this.form,this),this._oldForm&&n0(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(n){return new(n||t)(D(Jr,10),D(i0,10),D(pm,8))};static \u0275dir=Q({type:t,features:[We,Ct]})}return t})();var a2=new L(""),j7={provide:ir,useExisting:Wn(()=>kE)},kE=(()=>{class t extends ir{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=r2(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&e0(n,this,!1),Zh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}i2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&e0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(D(Jr,10),D(i0,10),D(Go,10),D(a2,8),D(pm,8))};static \u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ke([j7]),We,Ct]})}return t})();var z7={provide:Ks,useExisting:Wn(()=>Kl)},Kl=(()=>{class t extends B7{form=null;ngSubmit=new V;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&w("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ke([z7]),We]})}return t})();function U7(t){return typeof t=="number"?t:parseInt(t,10)}var s2=(()=>{class t{_validator=$b;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):$b,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})();var H7={provide:Jr,useExisting:Wn(()=>Qi),multi:!0};var Qi=(()=>{class t extends s2{required;inputName="required";normalizeInput=K;createValidator=e=>UF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&me("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ke([H7]),We]})}return t})();var W7={provide:Jr,useExisting:Wn(()=>md),multi:!0},md=(()=>{class t extends s2{maxlength;inputName="maxlength";normalizeInput=e=>U7(e);createValidator=e=>HF(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ke([W7]),We]})}return t})();var l2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var c2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pm,useValue:e.callSetDisabledState??a0}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})(),c0=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:a2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:pm,useValue:e.callSetDisabledState??a0}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[l2]})}return t})();var AE=class{_box;_destroyed=new Z;_resizeSubject=new Z;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new dt(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(At(e=>e.some(n=>n.target===i)),Cg({bufferSize:1,refCount:!0}),Je(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},d0=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(be);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new AE(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var FE=["*"];function $7(t,i){t&1&&Ie(0)}var G7=["tabListContainer"],q7=["tabList"],Y7=["tabListInner"],Q7=["nextPaginator"],K7=["previousPaginator"],Z7=["content"];function X7(t,i){}var J7=["tabBodyWrapper"],e9=["tabHeader"];function t9(t,i){}function n9(t,i){if(t&1&&we(0,t9,0,0,"ng-template",12),t&2){let e=_().$implicit;b("cdkPortalOutlet",e.templateLabel)}}function i9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;_e(e.textLabel)}}function o9(t,i){if(t&1){let e=W();c(0,"div",7,2),w("click",function(){let o=I(e),r=o.$implicit,a=o.$index,s=_(),l=Pt(1);return k(s._handleClick(r,l,a))})("cdkFocusChange",function(o){let r=I(e).$index,a=_();return k(a._tabFocusChanged(o,r))}),O(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),A(6,n9,1,1,null,12)(7,i9,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Pt(1),r=_();Tn(e.labelClass),le("mdc-tab--active",r.selectedIndex===n),b("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),me("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),b("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),m(3),R(e.templateLabel?6:7)}}function r9(t,i){t&1&&Ie(0)}function a9(t,i){if(t&1){let e=W();c(0,"mat-tab-body",13),w("_onCentered",function(){I(e);let o=_();return k(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){I(e);let r=_();return k(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){I(e);let r=_();return k(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=_();Tn(e.bodyClass),b("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),me("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var s9=new L("MatTabContent"),l9=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[Ke([{provide:s9,useExisting:t}])]})}return t})(),c9=new L("MatTabLabel"),p2=new L("MAT_TAB"),Yn=(()=>{class t extends yN{_closestTab=p(p2,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ke([{provide:c9,useExisting:t}]),We]})}return t})(),h2=new L("MAT_TAB_GROUP"),Qn=(()=>{class t{_viewContainerRef=p(En);_closestTabGroup=p(h2,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new Z;position=null;origin=null;isActive=!1;constructor(){p(an).load(Mi)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Yn,5)(r,l9,7,mn),n&2){let a;X(a=J())&&(o.templateLabel=a.first),X(a=J())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&at(mn,7),n&2){let r;X(r=J())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&me("id",null)},inputs:{disabled:[2,"disabled","disabled",K],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ke([{provide:p2,useExisting:t}]),Ct],ngContentSelectors:FE,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Bs(0,$7,1,0,"ng-template"))},encapsulation:2})}return t})(),RE="mdc-tab-indicator--active",d2="mdc-tab-indicator--no-transition",OE=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},d9=(()=>{class t{_elementRef=p(se);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(RE);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(d2),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(d2),n.classList.add(RE),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(RE)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",K]}})}return t})();var f2=(()=>{class t extends d9{elementRef=p(se);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(me("aria-disabled",!!o.disabled),le("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",K]},features:[We]})}return t})(),u2={passive:!0},u9=650,m9=100,p9=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_viewportRuler=p(ho);_dir=p(wn,{optional:!0});_ngZone=p(be);_platform=p(Ft);_sharedResizeObserver=p(d0);_injector=p(Te);_renderer=p(Zt);_animationsDisabled=Bt();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new Z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new Z;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new V;indexFocused=new V;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),u2),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),u2))}ngAfterContentInit(){let e=this._dir?this._dir.change:Me("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Is(32),Je(this._destroyed)),o=this._viewportRuler.change(150).pipe(Je(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ys(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),nn(r,{injector:this._injector}),rn(e,o,n,this._items.changes,this._itemsResized()).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?hi:this._items.changes.pipe(cn(this._items),yn(e=>new dt(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ec(1),At(e=>e.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._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!un(e))switch(e.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(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=r,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-r,s=l-a);let u=this.scrollDistance,h=this.scrollDistance+o;sh&&(this.scrollDistance+=Math.min(l-h,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-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 e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ts(u9,m9).pipe(Je(rn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),h9=(()=>{class t extends p9{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new OE(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,f2,4),n&2){let a;X(a=J())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&at(G7,7)(q7,7)(Y7,7)(Q7,5)(K7,5),n&2){let r;X(r=J())&&(o._tabListContainer=r.first),X(r=J())&&(o._tabList=r.first),X(r=J())&&(o._tabListInner=r.first),X(r=J())&&(o._nextPaginator=r.first),X(r=J())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&le("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",K]},features:[We],ngContentSelectors:FE,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){n&1&&(vt(),c(0,"div",5,0),w("click",function(){return o._handlePaginatorClick("before")})("mousedown",function(a){return o._handlePaginatorPress("before",a)})("touchend",function(){return o._stopInterval()}),O(2,"div",6),d(),c(3,"div",7,1),w("keydown",function(a){return o._handleKeydown(a)}),c(5,"div",8,2),w("cdkObserveContent",function(){return o._onContentChanges()}),c(7,"div",9,3),Ie(9),d()()(),c(10,"div",10,4),w("mousedown",function(a){return o._handlePaginatorPress("after",a)})("click",function(){return o._handlePaginatorClick("after")})("touchend",function(){return o._stopInterval()}),O(12,"div",6),d()),n&2&&(le("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),b("matRippleDisabled",o._disableScrollBefore||o.disableRipple),m(3),le("_mat-animation-noopable",o._animationsDisabled),m(2),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),m(5),le("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),b("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Sr,YN],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -1199,7 +1199,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` color: GrayText; } } -`],encapsulation:2})}return t})(),h9=new L("MAT_TABS_CONFIG"),u2=(()=>{class t extends Bo{_host=p(RE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),RE=(()=>{class t{_elementRef=p(se);_dir=p(xn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ze);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(u2,5)(K7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),xe(2,Z7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[u2,Th],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return t})(),f9=new L("MAT_TABS_CONFIG"),m2=(()=>{class t extends Bo{_host=p(PE);_ngZone=p(be);_centeringSub=Ue.EMPTY;_leavingSub=Ue.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cn(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[We]})}return t})(),PE=(()=>{class t{_elementRef=p(se);_dir=p(wn,{optional:!0});_ngZone=p(be);_injector=p(Te);_renderer=p(Zt);_diAnimationsDisabled=Bt();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ue.EMPTY;_position;_previousPosition;_onCentering=new V;_beforeCentering=new V;_afterLeavingCenter=new V;_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(Ze);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),nn(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),nn(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&at(m2,5)(Z7,5),n&2){let r;X(r=J())&&(o._portalHost=r.first),X(r=J())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&me("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(c(0,"div",1,0),we(2,X7,0,0,"ng-template",2),d()),n&2&&le("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[m2,Th],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -1251,7 +1251,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(h9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new OE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(X7,5)(J7,5)(RE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ke([{provide:p2,useExisting:t}])],ngContentSelectors:PE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),x("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,i9,8,17,"div",4,De),d(),A(4,o9,1,0),c(5,"div",5,1),fe(7,r9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[p9,h2,Nh,Sr,Bo,RE],styles:[`.mdc-tab { +`],encapsulation:2})}return t})(),ii=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_tabsSubscription=Ue.EMPTY;_tabLabelSubscription=Ue.EMPTY;_tabBodySubscription=Ue.EMPTY;_diAnimationsDisabled=Bt();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new gr;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V;focusChange=new V;animationDone=new V;selectedTabChange=new V(!0);_groupId;_isServer=!p(Ft).isBrowser;constructor(){let e=p(f9,{optional:!0});this._groupId=p(zt).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new NE;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=rn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qn,5),n&2){let a;X(a=J())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&at(J7,5)(e9,5)(PE,5),n&2){let r;X(r=J())&&(o._tabBodyWrapper=r.first),X(r=J())&&(o._tabHeader=r.first),X(r=J())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(me("mat-align-tabs",o.alignTabs),Tn("mat-"+(o.color||"primary")),Si("--mat-tab-animation-duration",o.animationDuration),le("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",K],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",K],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",K],selectedIndex:[2,"selectedIndex","selectedIndex",ti],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ti],disablePagination:[2,"disablePagination","disablePagination",K],disableRipple:[2,"disableRipple","disableRipple",K],preserveContent:[2,"preserveContent","preserveContent",K],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ke([{provide:h2,useExisting:t}])],ngContentSelectors:FE,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-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-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","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){n&1&&(vt(),c(0,"mat-tab-header",3,0),w("indexFocused",function(a){return o._focusChanged(a)})("selectFocusedIndex",function(a){return o.selectedIndex=a}),fe(2,o9,8,17,"div",4,De),d(),A(4,r9,1,0),c(5,"div",5,1),fe(7,a9,1,10,"mat-tab-body",6,De),d()),n&2&&(b("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),Au("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(2),ge(o._tabs),m(2),R(o._isServer?4:-1),m(),le("_mat-animation-noopable",o._animationsDisabled()),m(2),ge(o._tabs))},dependencies:[h9,f2,Nh,Sr,Bo,PE],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -1472,15 +1472,15 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transition: none !important; animation: none !important; } -`],encapsulation:2})}return t})(),OE=class{index;tab};var f2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function f9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function g9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function M9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),x("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var Ub=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,f9,1,1,"uds-field-text",1)(2,g9,1,1,"uds-field-autocomplete",1)(3,_9,1,1,"uds-field-textbox",1)(4,v9,1,1,"uds-field-numeric",1)(5,b9,1,1,"uds-field-password",1)(6,y9,1,1,"uds-field-hidden",1)(7,C9,1,1,"uds-field-choice",1)(8,x9,1,1,"uds-field-multichoice",1)(9,w9,1,1,"uds-field-editlist",1)(10,D9,1,1,"uds-field-checkbox",1)(11,S9,1,1,"uds-field-imgchoice",1)(12,E9,1,1,"uds-field-date",1)(13,M9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function I9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function k9(t,i){if(t&1){let e=W();c(0,"uds-field",6),x("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function A9(t,i){if(t&1&&(c(0,"mat-tab",2),xe(1,I9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,k9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function R9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,A9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function O9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),x("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function P9(t,i){if(t&1&&(c(0,"div",1),fe(1,O9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var g2=django.gettext("Main"),N9=django.gettext("Advanced"),_2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?g2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===g2?-1:e===N9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,R9,3,2,"mat-tab-group",0)(1,P9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,Ub],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}"]})}}return t})();function L9(t,i){if(t&1){let e=W();c(0,"button",10),x("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var v2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),$t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),x("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,L9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),x("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),x("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,Bb,Nb,Jr,Fe,xt,Dt,wt,Ee,_2,yb],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}"]})}}return t})();var Hb=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let w=y.split("."),S=g;for(let P of w)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(v2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},w={},S=F=>{if(w.hasOwnProperty(F.name)){let q=w[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(w[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(q=>{q!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+q,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let q of j)S(q);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id,r._etag):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("
")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let w=new Array;for(let S of g.choices)w.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=w,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var V9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Wb=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new Hb(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(CE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(CE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return So(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var $b={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Gt=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Gt||{});var NE="provider",FE="service",Zh="pool",B9="authenticator",Xh="user",LE="group",VE="transport",BE="osmanager",Gb="calendar",jE="poolgroup",j9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+j9[i]+"",type:Gt.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case NE:this.gotoProvider(o(0));break;case FE:this.gotoService(o(0),o(1));break;case Zh:this.gotoServicePool(o(0));break;case B9:this.gotoAuthenticator(o(0));break;case Xh:this.gotoUser(o(0),o(1));break;case LE:this.gotoGroup(o(0),o(1));break;case VE:this.gotoTransport(o(0));break;case BE:this.gotoOSManager(o(0));break;case Gb:this.gotoCalendar(o(0));break;case jE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function z9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),x("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var U9=["label"];function H9(t,i){}var W9=Math.pow(2,31)-1,Jh=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,W9))}_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}},b2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},$9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),y2=(()=>{class t{snackBarRef=p(Jh);data=p(b2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,z9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` -`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,$9,G9,q9],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2})}return t})(),NE=class{index;tab};var g2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function g9(t,i){if(t&1){let e=W();c(0,"uds-field-text",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function _9(t,i){if(t&1){let e=W();c(0,"uds-field-autocomplete",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function v9(t,i){if(t&1){let e=W();c(0,"uds-field-textbox",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function b9(t,i){if(t&1){let e=W();c(0,"uds-field-numeric",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function y9(t,i){if(t&1){let e=W();c(0,"uds-field-password",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function C9(t,i){if(t&1){let e=W();c(0,"uds-field-hidden",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function w9(t,i){if(t&1){let e=W();c(0,"uds-field-choice",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function x9(t,i){if(t&1){let e=W();c(0,"uds-field-multichoice",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function D9(t,i){if(t&1){let e=W();c(0,"uds-field-editlist",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function S9(t,i){if(t&1){let e=W();c(0,"uds-field-checkbox",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function E9(t,i){if(t&1){let e=W();c(0,"uds-field-imgchoice",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function M9(t,i){if(t&1){let e=W();c(0,"uds-field-date",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}function T9(t,i){if(t&1){let e=W();c(0,"uds-field-tags",2),w("changed",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()}if(t&2){let e=_();b("field",e.field)}}var u0=(()=>{class t{constructor(){this.field={},this.changed=new V,this.udsGuiFieldType=$o}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:14,vars:2,consts:[["matTooltipShowDelay","1000",1,"field",3,"matTooltip"],[3,"field"],[3,"changed","field"]],template:function(n,o){if(n&1&&(c(0,"div",0),A(1,g9,1,1,"uds-field-text",1)(2,_9,1,1,"uds-field-autocomplete",1)(3,v9,1,1,"uds-field-textbox",1)(4,b9,1,1,"uds-field-numeric",1)(5,y9,1,1,"uds-field-password",1)(6,C9,1,1,"uds-field-hidden",1)(7,w9,1,1,"uds-field-choice",1)(8,x9,1,1,"uds-field-multichoice",1)(9,D9,1,1,"uds-field-editlist",1)(10,S9,1,1,"uds-field-checkbox",1)(11,E9,1,1,"uds-field-imgchoice",1)(12,M9,1,1,"uds-field-date",1)(13,T9,1,1,"uds-field-tags",1),d()),n&2){let r;b("matTooltip",o.field.gui.tooltip),m(),R((r=o.field.gui.type)===o.udsGuiFieldType.TEXT?1:r===o.udsGuiFieldType.TEXT_AUTOCOMPLETE?2:r===o.udsGuiFieldType.TEXTBOX?3:r===o.udsGuiFieldType.NUMERIC?4:r===o.udsGuiFieldType.PASSWORD?5:r===o.udsGuiFieldType.HIDDEN?6:r===o.udsGuiFieldType.CHOICE?7:r===o.udsGuiFieldType.MULTI_CHOICE?8:r===o.udsGuiFieldType.EDITLIST?9:r===o.udsGuiFieldType.CHECKBOX?10:r===o.udsGuiFieldType.IMAGECHOICE?11:r===o.udsGuiFieldType.DATE?12:r===o.udsGuiFieldType.TAGLIST?13:-1)}},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}"]})}}return t})();function k9(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function A9(t,i){if(t&1){let e=W();c(0,"uds-field",6),w("changed",function(o){I(e);let r=_(3);return k(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;b("field",e)}}function R9(t,i){if(t&1&&(c(0,"mat-tab",2),we(1,k9,1,1,"ng-template",3),c(2,"div",1)(3,"div",4),fe(4,A9,1,1,"uds-field",5,De),d()()()),t&2){let e=i.$implicit,n=_(2);m(4),ge(n.fieldsByTab[e])}}function O9(t,i){if(t&1&&(c(0,"mat-tab-group",0),fe(1,R9,6,0,"mat-tab",2,De),d()),t&2){let e=_();b("disableRipple",!1)("@.disabled",!0),m(),ge(e.tabs)}}function P9(t,i){if(t&1){let e=W();c(0,"div")(1,"uds-field",6),w("changed",function(o){I(e);let r=_(2);return k(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;m(),b("field",e)}}function N9(t,i){if(t&1&&(c(0,"div",1),fe(1,P9,2,1,"div",null,De),d()),t&2){let e=_();m(),ge(e.fields)}}var _2=django.gettext("Main"),F9=django.gettext("Advanced"),v2=(()=>{class t{constructor(){this.fields=[],this.changed=new V,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?_2:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}this.tabs.sort((e,n)=>this.tabWeight(e)-this.tabWeight(n))}tabWeight(e){return e===_2?-1:e===F9?1:0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},standalone:!1,decls:2,vars:1,consts:[["backgroundColor","primary",3,"disableRipple"],[1,"form-content"],[1,"noOverflow"],["mat-tab-label",""],[1,"content"],[3,"field"],[3,"changed","field"]],template:function(n,o){n&1&&A(0,O9,3,2,"mat-tab-group",0)(1,N9,3,0,"div",1),n&2&&R(o.tabs.length>1?0:1)},dependencies:[Yn,Qn,ii,u0],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}"]})}}return t})();function V9(t,i){if(t&1){let e=W();c(0,"button",10),w("click",function(){I(e);let o=_();return k(o.customButtonClicked())}),f(1),d()}if(t&2){let e=_();m(),_e(e.data.customButton)}}var b2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new V(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(e){this.onEvent.emit({type:"changed",data:e,dialog:this.dialogRef})}getFields(){let e={},n=[];return this.data.guiFields.forEach(o=>{let r=o.value;if(o.gui.required&&r!==0&&r!==!1&&(!r||r instanceof Array&&r.length===0)&&n.push(o.gui.label),typeof r=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),l=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),l!==987654321&&r>l&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let l=s.split("."),u=e;for(let h=0;h0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));return}this.onEvent.emit({data:e.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let e=this.getFields();this.onEvent.emit({data:e.data,type:this.data.customButton||"",errors:e.errors,dialog:this.dialogRef})}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-modal-form"]],standalone:!1,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",""],[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){n&1&&(O(0,"h4",1),$t(1,"safeHtml"),c(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),w("changed",function(a){return o.changed(a)}),d()()(),c(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),A(9,V9,2,1,"button",6),d(),c(10,"div",7)(11,"button",8),w("click",function(){return o.dialogRef.close()})("click",function(){return o.cancel()}),c(12,"uds-translate"),f(13,"Discard & close"),d()(),c(14,"button",9),w("click",function(){return o.save()}),c(15,"uds-translate"),f(16,"Save"),d()()()()()),n&2&&(b("innerHtml",Xt(1,5,o.data.title),Bn),m(5),b("fields",o.data.guiFields),m(4),R(o.data.customButton!==void 0?9:-1),m(2),b("disabled",o.saving),m(3),b("disabled",o.saving))},dependencies:[qc,l0,o0,ea,Fe,wt,Dt,xt,Ee,v2,Cb],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}"]})}}return t})();var m0=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((l,u)=>l.gui.order>u.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(l=>{(r===!1||l.gui.readonly===void 0)&&(l.gui.readonly=!1),l.gui.type===$o.TEXT&&l.gui.lines&&(l.gui.type=$o.TEXTBOX);let h=((g,y)=>{let x=y.split("."),S=g;for(let P of x)if(S&&typeof S=="object")S=S[P];else return;return S!==null?S:void 0})(n,l.name);if(h!==void 0)if(h instanceof Array){let g=new Array;h.forEach(y=>g.push(y)),l.value=g}else l.value=h});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(b2,{position:{top:"64px"},width:a,data:{title:i,guiFields:e,customButton:o,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(i,e,n,o,r,a,s){return B(this,null,function*(){let l=s||{},u=l.callback||(()=>{}),h=o||[],g=n?django.gettext("Test"):void 0,y={},x={},S=F=>{if(x.hasOwnProperty(F.name)){let G=x[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(i,F,y)}},P=l.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield i.table.rest.gui(a);if(P.dismiss(),h!==void 0)for(let F of h)j.push(F);for(let F of j){if(F.gui.type===$o.INFO){F.name==="title"&&(e+=" "+(F.value||F.gui.default||""));continue}y[F.name]=F,F.gui.fills!==void 0&&(x[F.name]=F.gui.fills)}this.modalForm(e,j,r,g).subscribe(F=>B(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case g:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,F.data).then(G=>{G!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+G,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let G of j)S(G);else S(F.data.field);u({on:F.data,all:y});break;case"save":if(l.save===void 0){F.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(F.data,r.id,r._etag):yield i.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),i.table.reloadPage()}catch(G){if(G instanceof Wh)F.dialog.close(),i.table.reloadPage();else throw G}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),l.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,l=new V,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),h=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,h,s,{snack:u,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return B(this,null,function*(){let a=i.param?i.param.type:void 0;return this.typedForm(i,e,n,o,null,a,{callback:r})})}deleteForm(i,e,n,o){return B(this,null,function*(){let r=new Array,a=new Array;for(let u of i.table.selection.selected){let h=u.name||u.friendly_name||u[n||"name"]||u.id;if(h&&h.changingThisBreaksApplicationSecurity&&(h=h.changingThisBreaksApplicationSecurity),o){let g=h.indexOf("")+7;h=h.substring(0,g)+h.substring(g).replace(//g,">")}else h=h.replace(//g,">");r.push(h),a.push(u.id)}let s=django.gettext("Are you sure do you want to delete the following items?")+"
"+r.join(", ")+"";if(yield this.gui.questionDialog(e,s,!0)){for(let h of a)try{yield i.table.rest.delete(h)}catch(g){console.warn("Error deleting item",h,g)}let u=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return B(this,arguments,function*(i,e,n,o={}){let l=new Array;if(!e.gui.fills)return;for(let g of e.gui.fills.parameters)l.push(g+"="+encodeURIComponent(n[g].value));let u=yield i.table.rest.callback(e.gui.fills.callback_name,l.join("&")),h=new Array;for(let g of u){let y=n[g.name];if(y!==void 0){y.gui.fills!==void 0&&h.push(y);let x=new Array;for(let S of g.choices)x.push({id:S.id,text:S.text,img:S.img});if(y.gui.choices=x,y.value instanceof Array){let S=new Array;for(let P of y.gui.choices)y.value.indexOf(P.id)>=0&&S.push(P.id);y.value=S}else(!y.value||y.value instanceof Array&&y.value.length===0)&&(y.value=g.choices.length>0?g.choices[0].id:"")}}for(let g of h)o[g.name]===void 0&&(o[g.name]=!0,this.executeCallback(i,g,n,o))})}};var B9="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",p0=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new m0(this)}alert(i,e,n=0,o){return B(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(wE,{width:r,data:{title:i,body:e,autoclose:n,type:Hh.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return B(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(wE,{width:o,data:{title:i,body:e,type:Hh.question,warnOnYes:n},disableClose:!0});return So(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var h0={production:!0};var sn=(function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="icon",t.BOOLEAN="boolean",t.DICTIONARY="dictionary",t.IMAGE="image",t})(sn||{}),Gt=(function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t})(Gt||{});var LE="provider",VE="service",Xh="pool",j9="authenticator",Jh="user",BE="group",jE="transport",zE="osmanager",f0="calendar",UE="poolgroup",z9={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")},Pi=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+z9[i]+"",type:Gt.ACCELERATOR,acceleratorProperties:[e,n||""]}}gotoProvider(i){i!==void 0?this.router.navigate(["services","providers",i]):this.router.navigate(["services","providers"])}gotoService(i,e){e!==void 0?this.router.navigate(["services","providers",i,"detail",e]):this.router.navigate(["services","providers",i,"detail"])}gotoServer(i){this.router.navigate(["services","servers",i])}gotoServerDetail(i){this.router.navigate(["services","servers",i,"detail"])}gotoServicePool(i){this.router.navigate(["pools","service-pools",i])}gotoServicePoolDetail(i){this.router.navigate(["pools","service-pools",i,"detail"])}gotoMetapool(i){this.router.navigate(["pools","meta-pools",i])}gotoMetapoolDetail(i){this.router.navigate(["pools","meta-pools",i,"detail"])}gotoCalendar(i){this.router.navigate(["pools","calendars",i])}gotoCalendarDetail(i){this.router.navigate(["pools","calendars",i,"detail"])}gotoAccount(i){this.router.navigate(["pools","accounts",i])}gotoAccountDetail(i){this.router.navigate(["pools","accounts",i,"detail"])}gotoPoolGroup(i){i=i||"",this.router.navigate(["pools","pool-groups",i])}gotoAuthenticator(i){this.router.navigate(["authenticators",i])}gotoAuthenticatorDetail(i){this.router.navigate(["authenticators",i,"detail"])}gotoMFA(i){this.router.navigate(["mfas",i])}gotoUser(i,e){this.router.navigate(["authenticators",i,"detail","users",e])}gotoGroup(i,e){this.router.navigate(["authenticators",i,"detail","groups",e])}gotoTransport(i){this.router.navigate(["connectivity/transports",i])}gotoTunnel(i){this.router.navigate(["connectivity/tunnels",i])}gotoTunnelDetail(i){this.router.navigate(["connectivity/tunnels",i,"detail"])}gotoOSManager(i){this.router.navigate(["osmanagers",i])}goto(i,e,n){let o=r=>{let a=e;if(n[r].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(i){case LE:this.gotoProvider(o(0));break;case VE:this.gotoService(o(0),o(1));break;case Xh:this.gotoServicePool(o(0));break;case j9:this.gotoAuthenticator(o(0));break;case Jh:this.gotoUser(o(0),o(1));break;case BE:this.gotoGroup(o(0),o(1));break;case jE:this.gotoTransport(o(0));break;case zE:this.gotoOSManager(o(0));break;case f0:this.gotoCalendar(o(0));break;case UE:this.gotoPoolGroup(o(0));break}}catch(r){}}};function U9(t,i){if(t&1){let e=W();c(0,"div",1)(1,"button",2),w("click",function(){I(e);let o=_();return k(o.action())}),f(2),d()()}if(t&2){let e=_();m(2),H(" ",e.data.action," ")}}var H9=["label"];function W9(t,i){}var $9=Math.pow(2,31)-1,ef=class{_overlayRef;instance;containerInstance;_afterDismissed=new Z;_afterOpened=new Z;_onAction=new Z;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,$9))}_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}},y2=new L("MatSnackBarData"),hm=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},G9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),q9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),Y9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),C2=(()=>{class t{snackBarRef=p(ef);data=p(y2);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(c(0,"div",0),f(1),d(),A(2,U9,3,1,"div",1)),n&2&&(m(),H(" ",o.data.message,` +`),m(),R(o.hasAction?2:-1))},dependencies:[Fe,G9,q9,Y9],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),zE="_mat-snack-bar-enter",UE="_mat-snack-bar-exit",Y9=(()=>{class t extends Ul{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===UE?this._completeExit():e===zE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(zE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(zE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(UE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(UE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7)(U9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&x("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),xe(4,H9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Bo],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return t})(),HE="_mat-snack-bar-enter",WE="_mat-snack-bar-exit",Q9=(()=>{class t extends Hl{_ngZone=p(be);_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_animationsDisabled=Bt();snackBarConfig=p(hm);_document=p(ke);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=p(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Z;_onExit=new Z;_onEnter=new Z;_animationState="void";_live;_label;_role;_liveElementId=p(zt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===WE?this._completeExit():e===HE&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(HE)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(HE)},200)))}exit(){return this._destroyed?Me(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?nn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(WE)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(WE),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&at(Bo,7)(H9,7),n&2){let r;X(r=J())&&(o._portalOutlet=r.first),X(r=J())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&w("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&le("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[We],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),we(4,W9,0,0,"ng-template",4),d(),O(5,"div"),d()()),n&2&&(m(5),me("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Bo],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1596,7 +1596,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return t})(),Q9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),HE=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Q9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=y2;snackBarContainerComponent=Y9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=G(G({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new nr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=G(G(G({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Jh(a,r);if(e instanceof mn){let l=new qi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new nr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(cb.HandsetPortrait).pipe(Je(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new jo;n.direction=e.direction;let o=gs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,Uo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:Jh,useValue:n},{provide:b2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[HE],imports:[fo,wr,vs,y2,pt]})}return t})();var ef=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",lo=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Kl=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qb=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2})}return t})(),K9=new L("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hm}),$E=(()=>{class t{_live=p(Fh);_injector=p(Te);_breakpointObserver=p(ld);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(K9);_animationsDisabled=Bt();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=C2;snackBarContainerComponent=Q9;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=q(q({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=Te.create({parent:o||this._injector,providers:[{provide:hm,useValue:n}]}),a=new nr(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=q(q(q({},new hm),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new ef(a,r);if(e instanceof mn){let l=new qi(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(o,s),u=new nr(e,void 0,l),h=a.attachComponentPortal(u);s.instance=h.instance}return this._breakpointObserver.observe(db.HandsetPortrait).pipe(Je(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new jo;n.direction=e.direction;let o=gs(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,Uo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:o||this._injector,providers:[{provide:ef,useValue:n},{provide:y2,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[$E],imports:[fo,xr,vs,C2,pt]})}return t})();var tf=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>p(Ru)}),fm="Method not implemented",lo=class{locale;_localeChanges=new Z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(fm)}getHours(i){throw new Error(fm)}getMinutes(i){throw new Error(fm)}getSeconds(i){throw new Error(fm)}parseTime(i,e){throw new Error(fm)}addSeconds(i,e){throw new Error(fm)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Zl=new L("mat-date-formats");var pd=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var g0=(()=>{class t{_animationsDisabled=Bt();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&le("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._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1702,7 +1702,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();var Z9=["text"],X9=[[["mat-icon"]],"*"],J9=["mat-icon","*"];function eq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function tq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function nq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ze);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(qr),this._signalDisableRipple=!!this._parent&&ds(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(Z9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:J9,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(X9),A(0,eq,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,tq,1,1,"mat-pseudo-checkbox",3),A(6,nq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qb,Sr],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return t})();var X9=["text"],J9=[[["mat-icon"]],"*"],eq=["mat-icon","*"];function tq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=_();b("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function nq(t,i){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=_();b("disabled",e.disabled)}}function iq(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),H("(",e.group.label,")")}}var _m=new L("MAT_OPTION_PARENT_COMPONENT"),vm=new L("MatOptgroup");var gm=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Mt=(()=>{class t{_element=p(se);_changeDetectorRef=p(Ze);_parent=p(_m,{optional:!0});group=p(vm,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(zt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Re(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new V;_text;_stateChanges=new Z;constructor(){let e=p(an);e.load(Mi),e.load(qr),this._signalDisableRipple=!!this._parent&&ds(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,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(e){(e.keyCode===13||e.keyCode===32)&&!un(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new gm(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&at(X9,7),n&2){let r;X(r=J())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&w("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),le("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",K]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:eq,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(vt(J9),A(0,tq,1,2,"mat-pseudo-checkbox",1),Ie(1),c(2,"span",2,0),Ie(4,1),d(),A(5,nq,1,1,"mat-pseudo-checkbox",3),A(6,iq,2,1,"span",4),O(7,"div",5)),n&2&&(R(o.multiple?0:-1),m(5),R(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),R(o.group&&o.group._inert?6:-1),m(),b("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[g0,Sr],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -1823,7 +1823,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})();function tf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,x2,Mt,pt]})}return t})();var Zl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var iq=["mat-internal-form-field",""],oq=["*"],Yb=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:iq,ngContentSelectors:oq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2,changeDetection:0})}return t})();function nf(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var x2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bm=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,x2,Mt,pt]})}return t})();var Xl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var oq=["mat-internal-form-field",""],rq=["*"],_0=(()=>{class t{labelPosition="after";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:oq,ngContentSelectors:rq,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1857,7 +1857,7 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var rq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,aq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function WE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(ef,{optional:!0});constructor(){super();let e=p(ef,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return WE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return WE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return WE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(G({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(rq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(aq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),$E(o,0,23)&&$E(r,0,59)&&(a==null||$E(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function $E(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var lq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var w2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[cq()]})}return t})();function cq(t=lq){return[{provide:lo,useClass:sq},{provide:Kl,useValue:t}]}var D2="dark-theme",S2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new Gv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new Wb(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return $b.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[D2,S2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?D2:S2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(we(Lu),we(tr),we(jh),we(HE),we(Ws),we(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var E2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function uq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var M2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,uq,7,1,"div",2),A(6,mq,7,1,"div",2),A(7,pq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var ea=3e4,Ks=(function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t})(Ks||{}),ci=class{constructor(i,e){this.api=i,this.base=e,this.id=e,this.headers=new Jo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(i){return this.typedGet(i)}getLogs(i){return this.doGet(this.getPath(this.base,i)+"/log")}overview(i){return this.typedGet("overview"+(i?"?"+i:""))}list(i,e){let n=this.getPath(this.base)+"/overview?sumarize=true"+(i?"&"+i:""),o;return So(this.api.http.get(n,{headers:this.headers,observe:"response"}),ea).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new Jo}:(this.handleError(r),{items:[],headers:new Jo}))}put(i,e){return this.typedPut(i,e)}create(i){return this.typedPut(i)}save(i,e,n){return e=e!==void 0?e:i.id,this.typedPut(i,e,n)}test(i,e){return So(this.api.http.post(this.getPath(this.base+"/test",i),e,{headers:this.headers}).pipe(Bi(n=>this.handleError(n))),ea)}delete(i){return So(this.api.http.delete(this.getPath(this.base,i),{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}permision(){return this.api.user.isAdmin?Ks.ALL:Ks.NONE}getPermissions(i){return this.doGet(this.getPath("permissions/"+this.base+"/"+i))}addPermission(i,e,n,o){let r=this.getPath("permissions/"+this.base+"/"+i+"/"+e+"/add/"+n),a={perm:o};return So(this.api.http.put(r,a,{headers:this.headers}).pipe(Bi(s=>this.handleError(s))),ea)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return So(this.api.http.put(e,n,{headers:this.headers}).pipe(Bi(o=>this.handleError(o))),ea)}types(){return this.doGet(this.getPath(this.base+"/types"))}gui(i){let e=this.getPath(this.base+"/gui"+(i!==void 0?"/"+i:""));return this.doGet(e)}callback(i,e){let n=this.getPath("gui/callback/"+i+"?"+e);return this.doGet(n)}tableInfo(){return this.doGet(this.getPath(this.base+"/tableinfo"))}detail(i,e){return new GE(this,i,e)}export(i){return this.overview(i)}position(i){return this.doGet(this.getPath(this.base)+"/position/"+i)}getPath(i,e){return this.api.restPath(i+(e!==void 0?"/"+e:""))}doGet(i){return So(this.api.http.get(i,{headers:this.headers}).pipe(Bi(e=>this.handleError(e))),ea)}doGetWithEtag(i){return So(this.api.http.get(i,{headers:this.headers,observe:"response"}).pipe(Qe(e=>{let n=e.body;return n!==null&&typeof n=="object"&&!Array.isArray(n)&&(n._etag=e.headers.get("ETag")??null),n}),Bi(e=>this.handleError(e))),ea)}typedGet(i){return this.doGetWithEtag(this.getPath(this.base,i))}typedPut(i,e,n){let o=n!=null?this.headers.set("If-Match",n):this.headers;return So(this.api.http.put(this.getPath(this.base,e),i,{headers:o}).pipe(Bi(r=>this.handleError(r,!0))),ea)}typedPost(i,e){return So(this.api.http.post(this.getPath(this.base,e),i,{headers:this.headers}).pipe(Bi(n=>this.handleError(n,!0))),ea)}invoke(i,e,n="GET"){let o=this.getPath(this.base)+"/"+i+(e?"?"+e:"");return n==="GET"?this.doGet(o):n==="QUERY"?So(this.api.http.request("QUERY",o,{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea):So(this.api.http.post(o,{},{headers:this.headers}).pipe(Bi(r=>this.handleError(r,!0))),ea)}handleError(i,e=!1){let n="";return i.error instanceof ErrorEvent?n=i.error.message:(typeof i.error=="object"?i.error.error!==void 0?n=i.error.error:n=JSON.stringify(i.error):n=i.error,e||(n=`Error ${i.status}: ${i.statusText} - ${n}`)),this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),wc(()=>new Error(n))}},GE=class extends ci{constructor(i,e,n,o){super(i.api,[i.base,e,n].join("/")),this.parentModel=i,this.parentId=e,this.model=n,this.perm=o}permision(){return this.perm||Ks.ALL}},Kb=class extends ci{constructor(i){super(i,"providers"),this.api=i}allServices(){return this.get("allservices")}service(i){return this.get("service/"+i)}maintenance(i){return this.invoke(i+"/maintenance",void 0,"POST")}},Zb=class extends ci{constructor(i){super(i,"authenticators"),this.api=i}search(i,e,n,o=12){return this.get(i+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+o)}users_with_services(i){return this.get(i+"/users_with_services")}},Xb=class extends ci{constructor(i){super(i,"osmanagers"),this.api=i}},Jb=class extends ci{constructor(i){super(i,"transports"),this.api=i}},e0=class extends ci{constructor(i){super(i,"networks"),this.api=i}},t0=class extends ci{constructor(i){super(i,"tunnels/tunnels"),this.api=i}tunnels(i){return this.get(i+"/tunnels")}assign(i,e){return this.invoke(i+"/assign/"+e,void 0,"POST")}},n0=class extends ci{constructor(i){super(i,"servers/groups"),this.api=i}},i0=class extends ci{constructor(i){super(i,"servicespools"),this.api=i}setFallbackAccess(i,e){return this.invoke("/set_fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}actionsList(i){return this.get(i+"/actions_list")}listAssignables(i){return this.get(i+"/list_assignables")}createFromAssignable(i,e,n){return this.invoke(i+"/create_from_assignable","user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n),"POST")}},o0=class extends ci{constructor(i){super(i,"metapools"),this.api=i}setFallbackAccess(i,e){return this.invoke("/set_fallback_access","fallback_access="+encodeURIComponent(e),"POST")}getFallbackAccess(i){return this.get(i+"/get_fallback_access")}},r0=class extends ci{constructor(i){super(i,"config"),this.api=i}},a0=class extends ci{constructor(i){super(i,"gallery/images"),this.api=i}},s0=class extends ci{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},l0=class extends ci{constructor(i){super(i,"system"),this.api=i}information(){return this.get("overview")}stats(i,e){let n="stats/"+i;return e&&(n+="/"+e),this.get(n)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},c0=class extends ci{constructor(i){super(i,"reports"),this.api=i}types(){return So(Me([]))}},d0=class extends ci{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},u0=class extends ci{constructor(i){super(i,"calendars"),this.api=i}},m0=class extends ci{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.invoke(i+"/timemark",void 0,"POST")}},p0=class extends ci{constructor(i){super(i,"actortokens"),this.api=i}},h0=class extends ci{constructor(i){super(i,"servers/tokens"),this.api=i}},f0=class extends ci{constructor(i){super(i,"mfa"),this.api=i}},g0=class extends ci{constructor(i){super(i,"messaging/notifiers"),this.api=i}},_0=class extends ci{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return So(this.api.http.get(this.getPath(this.base),{headers:this.headers}),ea).catch(()=>null)}};var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new Kb(e),this.serverGroups=new n0(e),this.authenticators=new Zb(e),this.mfas=new f0(e),this.osManagers=new Xb(e),this.transports=new Jb(e),this.networks=new e0(e),this.tunnels=new t0(e),this.servicesPools=new i0(e),this.metaPools=new o0(e),this.gallery=new a0(e),this.servicesPoolGroups=new s0(e),this.calendars=new u0(e),this.accounts=new m0(e),this.system=new l0(e),this.configuration=new r0(e),this.actorToken=new p0(e),this.serversTokens=new h0(e),this.reports=new c0(e),this.dashboard=new d0(e),this.enterprise=new _0(e),this.notifiers=new g0(e)}static{this.\u0275fac=function(n){return new(n||t)(we(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var T2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fq=["determinateSpinner"];function gq(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var _q=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:I2})}),I2=100,vq=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(_q),n=cE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=I2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-vq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(fq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(xe(0,gq,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),Da(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { +`],encapsulation:2,changeDetection:0})}return t})();var aq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,sq=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function GE(t,i){let e=Array(t);for(let n=0;n{class t extends lo{_matDateLocale=p(tf,{optional:!0});constructor(){super();let e=p(tf,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return GE(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return GE(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return GE(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ye(q({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(aq.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match(sq);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),qE(o,0,23)&&qE(r,0,59)&&(a==null||qE(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function qE(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var cq={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var D2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[dq()]})}return t})();function dq(t=cq){return[{provide:lo,useClass:lq},{provide:Zl,useValue:t}]}var S2="dark-theme",E2="light-theme",Y=(()=>{class t{get isDarkTheme(){return this._isDarkTheme}get sidebarVisible(){return this._sidebarVisible}constructor(e,n,o,r,a,s){this.http=e,this.router=n,this.dialog=o,this.snackbar=r,this.sanitizer=a,this.dateAdapter=s,this._isDarkTheme=!1,this._sidebarVisible=!0,this.user=new qv(udsData.profile),this.navigation=new Pi(this.router),this.gui=new p0(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language),this.initTheme()}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(e){return this.config.urls.rest+e}staticURL(e){return h0.production?this.config.urls.static+e:"/static/"+e}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(e,n){typeof Storage!==void 0&&localStorage.setItem(e,n)}getFromStorage(e){return typeof Storage!==void 0?localStorage.getItem(e):null}safeString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}boolAsHumanString(e){return e?django.gettext("yes"):django.gettext("no")}initTheme(){this._isDarkTheme=this.getFromStorage("blackTheme")==="true",this.applyTheme()}toggleTheme(){this._isDarkTheme=!this._isDarkTheme,this.putOnStorage("blackTheme",this._isDarkTheme.toString()),this.applyTheme()}applyTheme(){let e=document.getElementsByTagName("html")[0];[S2,E2].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?S2:E2)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(xe(Lu),xe(tr),xe(jh),xe($E),xe(Ws),xe(lo))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var M2=(()=>{class t{constructor(e){this.api=e}canActivate(e,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}static{this.\u0275fac=function(n){return new(n||t)(xe(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Jl=(()=>{class t{constructor(){this.headerDataSubject=new on({title:""}),this.headerData$=this.headerDataSubject.asObservable()}setTitle(e,n,o,r=!1){this.headerDataSubject.next({title:e,icon:n,parentRoute:o,isDetail:r})}clear(){this.headerDataSubject.next({title:""})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function mq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"UDS ID"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.udsid)}}function pq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Brand"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.brand)}}function hq(t,i){if(t&1&&(c(0,"div",2)(1,"span",3)(2,"uds-translate"),f(3,"Support level"),d(),f(4,":\xA0"),d(),c(5,"span",4),f(6),d()()),t&2){let e=_();m(6),_e(e.data.support)}}var T2=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-license-info"]],standalone:!1,decls:61,vars:10,consts:[["mat-dialog-title",""],[1,"license-detail-grid"],[1,"detail-row"],[1,"detail-label"],[1,"detail-value"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"License information"),d()(),c(3,"mat-dialog-content")(4,"div",1),A(5,mq,7,1,"div",2),A(6,pq,7,1,"div",2),A(7,hq,7,1,"div",2),c(8,"div",2)(9,"span",3)(10,"uds-translate"),f(11,"Licensed users"),d(),f(12,":\xA0"),d(),c(13,"span",4),f(14),d()(),c(15,"div",2)(16,"span",3)(17,"uds-translate"),f(18,"Model"),d(),f(19,":\xA0"),d(),c(20,"span",4),f(21),d()(),c(22,"div",2)(23,"span",3)(24,"uds-translate"),f(25,"Total users"),d(),f(26,":\xA0"),d(),c(27,"span",4),f(28),d()(),c(29,"div",2)(30,"span",3)(31,"uds-translate"),f(32,"Users with services"),d(),f(33,":\xA0"),d(),c(34,"span",4),f(35),d()(),c(36,"div",2)(37,"span",3)(38,"uds-translate"),f(39,"Assigned services"),d(),f(40,":\xA0"),d(),c(41,"span",4),f(42),d()(),c(43,"div",2)(44,"span",3)(45,"uds-translate"),f(46,"Start date"),d(),f(47,":\xA0"),d(),c(48,"span",4),f(49),d()(),c(50,"div",2)(51,"span",3)(52,"uds-translate"),f(53,"End date"),d(),f(54,":\xA0"),d(),c(55,"span",4),f(56),d()()()(),c(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),f(60,"Close"),d()()()),n&2&&(m(5),R(o.data.udsid?5:-1),m(),R(o.data.brand?6:-1),m(),R(o.data.support?7:-1),m(7),_e(o.data.licensed_users),m(7),_e(o.data.model),m(7),_e(o.data.users),m(7),_e(o.data.users_with_services),m(7),_e(o.data.assigned_services),m(7),_e(o.data.start_date),m(7),_e(o.data.end_date))},dependencies:[Fe,Nn,wt,Dt,xt,Ee],styles:[".license-detail-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;min-width:320px;padding:.5rem 0}.detail-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;align-items:baseline;gap:.5rem 1rem}.detail-label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem;font-weight:600;text-align:left;word-break:break-word}"]})}}return t})();var ce=(()=>{class t{constructor(e){this.api=e,this.providers=new wb(e),this.serverGroups=new Tb(e),this.authenticators=new xb(e),this.mfas=new zb(e),this.osManagers=new Db(e),this.transports=new Sb(e),this.networks=new Eb(e),this.tunnels=new Mb(e),this.servicesPools=new Ib(e),this.metaPools=new kb(e),this.gallery=new Rb(e),this.servicesPoolGroups=new Ob(e),this.calendars=new Lb(e),this.accounts=new Vb(e),this.system=new Pb(e),this.configuration=new Ab(e),this.actorToken=new Bb(e),this.serversTokens=new jb(e),this.reports=new Nb(e),this.dashboard=new Fb(e),this.enterprise=new Hb(e),this.notifiers=new Ub(e)}static{this.\u0275fac=function(n){return new(n||t)(xe(Y))}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var I2=(()=>{class t{constructor(){this.store=new Map}static{this.DEFAULT_TTL_SECONDS=300}has(e){let n=this.store.get(e);return n===void 0?!1:n.expiresAt<=Date.now()?(this.store.delete(e),!1):!0}get(e){let n=this.store.get(e);if(n!==void 0){if(n.expiresAt<=Date.now()){this.store.delete(e);return}return n.value}}set(e,n,o=t.DEFAULT_TTL_SECONDS){let r=o>0?o:t.DEFAULT_TTL_SECONDS;this.store.set(e,{value:n,expiresAt:Date.now()+r*1e3})}delete(e){return this.store.delete(e)}clear(){this.store.clear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gq=["determinateSpinner"];function _q(t,i){if(t&1&&(Gn(),c(0,"svg",11),O(1,"circle",12),d()),t&2){let e=_();me("viewBox",e._viewBox()),m(),Si("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),me("r",e._circleRadius())}}var vq=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:k2})}),k2=100,bq=10,ym=(()=>{class t{_elementRef=p(se);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(vq),n=dE(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=k2;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-bq)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&at(gq,5),n&2){let r;X(r=J())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(me("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tn("mat-"+o.color),Si("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),le("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ti],diameter:[2,"diameter","diameter",ti],strokeWidth:[2,"strokeWidth","strokeWidth",ti]},exportAs:["matProgressSpinner"],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&&(we(0,_q,2,8,"ng-template",null,0,qp),c(2,"div",2,1),Gn(),c(4,"svg",3),O(5,"circle",4),d()(),Da(),c(6,"div",5)(7,"div",6)(8,"div",7),Ri(9,8),d(),c(10,"div",9),Ri(11,8),d(),c(12,"div",10),Ri(13,8),d()()()),n&2){let r=Pt(1);m(4),me("viewBox",o._viewBox()),m(),Si("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),me("r",o._circleRadius()),m(4),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r),m(2),b("ngTemplateOutlet",r)}},dependencies:[Xp],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; @@ -2032,9 +2032,9 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` transform: rotate(-265deg); } } -`],encapsulation:2,changeDetection:0})}return t})();var k2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bq="uplot",yq="u-hz",Cq="u-vt",xq="u-title",wq="u-wrap",Dq="u-under",Sq="u-over",Eq="u-axis",gd="u-off",Mq="u-select",Tq="u-cursor-x",Iq="u-cursor-y",kq="u-cursor-pt",Aq="u-legend",Rq="u-live",Oq="u-inline",Pq="u-series",Nq="u-marker",R2="u-label",Fq="u-value",rf="width",af="height";var O2="bottom",Cm="left",qE="right",dM="#000",P2=dM+"0",YE="mousemove",N2="mousedown",QE="mouseup",F2="mouseenter",L2="mouseleave",V2="dblclick",Lq="resize",Vq="scroll",B2="change",x0="dppxchange",uM="--",Tm=typeof window<"u",eM=Tm?document:null,wm=Tm?window:null,Bq=Tm?navigator:null,kn,v0;function tM(){let t=devicePixelRatio;kn!=t&&(kn=t,v0&&iM(B2,v0,tM),v0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(B2,v0,tM),wm.dispatchEvent(new CustomEvent(x0)))}function Tr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function nM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function Va(t,i,e,n){let o=eM.createElement(t);return i!=null&&Tr(o,i),e?.insertBefore(o,n),o}function ta(t,i){return Va("div",t,i)}var j2=new WeakMap;function ys(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=j2.get(t);r!=a&&(t.style.transform=r,j2.set(t,r),i<0||e<0||i>n||e>o?Tr(t,gd):nM(t,gd))}var z2=new WeakMap;function U2(t,i,e){let n=i+e,o=z2.get(t);n!=o&&(z2.set(t,n),t.style.background=i,t.style.borderColor=e)}var H2=new WeakMap;function W2(t,i,e,n){let o=i+""+e,r=H2.get(t);o!=r&&(H2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var mM={passive:!0},jq=Ye(G({},mM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?jq:mM)}function iM(t,i,e,n){i.removeEventListener(t,e,mM)}Tm&&tM();function Ba(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Ir((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var bL=t=>t!=null,yL=t=>t!=null&&t>0,S0=vL(bL),zq=vL(yL);function Uq(t,i,e,n=0,o=!1){let r=o?zq:S0,a=o?yL:bL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function E0(t,i,e,n){let o=q2(t),r=q2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Zs:CL,s=o==1?Ir:na,l=r==1?na:Ir,u=s(a(Xi(t))),h=l(a(Xi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=SL(t,g),i=M0(i,y)),[t,i]}function pM(t,i,e,n){let o=E0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var hM=.1,$2={mode:3,pad:hM},lf={pad:0,soft:null,mode:0},Hq={min:lf,max:lf};function w0(t,i,e,n){return T0(e)?G2(t,i,e):(lf.pad=e,lf.soft=n?0:null,lf.mode=n?3:0,G2(t,i,Hq))}function wn(t,i){return t??i}function Wq(t,i,e){for(i=wn(i,0),e=wn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function G2(t,i,e){let n=e.min,o=e.max,r=wn(n.pad,0),a=wn(o.pad,0),s=wn(n.hard,-Kn),l=wn(o.hard,Kn),u=wn(n.soft,Kn),h=wn(o.soft,-Kn),g=wn(n.mode,0),y=wn(o.mode,0),w=i-t,S=Zs(w),P=qo(Xi(t),Xi(i)),j=Zs(P),F=Xi(j-S);(w<1e-24||F>10)&&(w=0,(t==0||i==0)&&(w=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let q=w||P||1e3,ve=Zs(q),oe=Dm(10,Ir(ve)),Ne=q*(w==0?t==0?.1:1:r),Ce=Zn(SL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,et=qo(s,Ce=Le?Le:ja(Le,Ce)),Nt=q*(w==0?i==0?.1:1:a),ht=Zn(M0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=ja(l,ht>Se&&i<=Se?Se:qo(Se,ht));return et==Tt&&et==0&&(Tt=100),[et,Tt]}var $q=new Intl.NumberFormat(Tm?Bq.language:"en-US"),fM=t=>$q.format(t),kr=Math,C0=kr.PI,Xi=kr.abs,Ir=kr.floor,Zi=kr.round,na=kr.ceil,ja=kr.min,qo=kr.max,Dm=kr.pow,q2=kr.sign,Zs=kr.log10,CL=kr.log2,Gq=(t,i=1)=>kr.sinh(t)*i,KE=(t,i=1)=>kr.asinh(t/i),Kn=1/0;function Y2(t){return(Zs((t^t>>31)-(t>>31))|0)+1}function oM(t,i,e){return ja(qo(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var qq=()=>{},wL=t=>t,DL=(t,i)=>i,Yq=t=>null,Q2=t=>!0,K2=(t,i)=>t==i,Qq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(ML(t)||ec.has(t))return t;let i=`${t}`,e=i.match(Qq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function M0(t,i){return vd(na(vd(t/i))*i)}function SL(t,i){return vd(Ir(vd(t/i))*i)}function Zn(t,i=0){if(ML(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Zi(n)/e}var ec=new Map;function EL(t){return((""+t).split(".")[1]||"").length}function df(t,i,e,n){let o=[],r=n.map(EL);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),ec.set(y,g)}}return o}var cf={},gM=[],Sm=[null,null],Jl=Array.isArray,ML=Number.isInteger,Kq=t=>t===void 0;function Z2(t){return typeof t=="string"}function T0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Zq(t){return t!=null&&typeof t=="object"}var Xq=Object.getPrototypeOf(Uint8Array),TL="__proto__";function Em(t,i=T0){let e;if(Jl(t)){let n=t.find(o=>o!=null);if(Jl(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function rY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Ir((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var IL=["January","February","March","April","May","June","July","August","September","October","November","December"],kL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function AL(t){return t.slice(0,3)}var lY=kL.map(AL),cY=IL.map(AL),dY={MMMM:IL,MMM:cY,WWWW:kL,WWW:lY};function of(t){return(t<10?"0":"")+t}function uY(t){return(t<10?"00":t<100?"0":"")+t}var mY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>of(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>of(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>of(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>of(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>of(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>uY(t.getMilliseconds())};function _M(t,i){i=i||dY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?mY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,D0=[1,2,2.5,5],fY=df(10,-32,0,D0),OL=df(10,0,32,D0),gY=OL.filter(RL),fd=fY.concat(OL),vM=` -`,PL="{YYYY}",X2=vM+PL,NL="{M}/{D}",sf=vM+NL,b0=sf+"/{YY}",FL="{aa}",_Y="{h}:{mm}",xm=_Y+FL,J2=vM+xm,eL=":{ss}",Fn=null;function LL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?df(10,0,3,D0).filter(RL):df(10,-3,0,D0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,PL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",X2,Fn,Fn,Fn,Fn,Fn,1],[o,NL,X2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+FL,b0,Fn,sf,Fn,Fn,Fn,1],[e,xm,b0,Fn,sf,Fn,Fn,Fn,1],[i,eL,b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1],[t,eL+".{fff}",b0+" "+xm,Fn,sf+" "+xm,Fn,J2,Fn,1]];function h(g){return(y,w,S,P,j,F)=>{let q=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Ir(S)-Ir(Ce),Se=et+ht+M0(Ce-et,Nt);q.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[w]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Ir(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=q[q.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&q.push(Se)}else q.push(Se)}return q}}return[l,u,h]}var[vY,bY,yY]=LL(1),[CY,xY,wY]=LL(.001);df(2,-53,53,[1]);function tL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function nL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,w;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),q=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||q!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=w&&s[7]||s[1];return l=j,u=F,h=q,g=ve,y=oe,w=Ne,Ce(P)})}}function DY(t,i){let e=_M(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function ZE(t,i,e){return new Date(t,i,e)}function iL(t,i){return i(t)}var SY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function oL(t,i){return(e,n,o,r)=>r==null?uM:i(t(n))}function EY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function MY(t,i){return t.series[i].fill(t,i)}var TY={show:!0,live:!0,isolate:!1,mount:qq,markers:{show:!0,width:2,stroke:EY,fill:MY,dash:"solid"},idx:null,idxs:null,values:[]};function IY(t,i){let e=t.cursor.points,n=ta(),o=e.size(t,i);di(n,rf,o),di(n,af,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function kY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function AY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function RY(t,i){return t.series[i].points.size}var XE=[0,0];function OY(t,i,e){return XE[0]=i,XE[1]=e,XE}function y0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function JE(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var PY={show:!0,x:!0,y:!0,lock:!1,move:OY,points:{one:!1,show:IY,size:RY,width:0,stroke:AY,fill:kY},bind:{mousedown:y0,mouseup:y0,click:y0,dblclick:y0,mousemove:JE,mouseleave:JE,mouseenter:JE},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},VL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},bM=Ni({},VL,{filter:DL}),BL=Ni({},bM,{size:10}),jL=Ni({},VL,{show:!1}),yM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',zL="bold "+yM,UL=1.5,rL={show:!0,scale:"x",stroke:dM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:zL,side:2,grid:bM,ticks:BL,border:jL,font:yM,lineGap:UL,rotate:0},NY="Value",FY="Time",aL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function LY(t,i,e,n,o){return i.map(r=>r==null?"":fM(r))}function VY(t,i,e,n,o,r,a){let s=[],l=ec.get(o)||0;e=a?e:Zn(M0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function rM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Zs:CL,h=Ir(u(e));o=Dm(l,h),l==10&&(o=fd[Ba(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Ba(y,fd)]);do s.push(g),g=g+o,l==10&&!ec.has(g)&&(g=Zn(g,ec.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Ba(y,fd)]));while(g<=n);return s}function BY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?rM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?rM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var HL=/./,jY=/[12357]/,zY=/[125]/,sL=/1/,aM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function UY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?HL:l(7,a)-h>=u?jY:l(5,a)-h>=u?zY:sL;if(g==sL){let y=Xi(l(1,a)-h);if(yo,dL={show:!0,auto:!0,sorted:0,gaps:WL,alpha:1,facets:[Ni({},cL,{scale:"x"}),Ni({},cL,{scale:"y"})]},uL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:WL,alpha:1,points:{show:GY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function qY(t,i,e,n,o){return e/10}var $L={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},YY=Ni({},$L,{time:!1,ori:1}),mL={};function GL(t,i){let e=mL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,q=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;q==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,w)),Le=F(y(l[oe],h,j,S)),et=F(g(s[Ne],u,P,w)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,et,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function I0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?R0:wM,l=e;for(let g=0;gy[0]){let w=y[0]-l;w>0&&s(a,l,n,w,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function KY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let w=r(t[g]),S=y==g?w:r(t[y]),P=g-o;w=a<=0&&P>=0&&P=0&&F>=0&&F=w&&s.push([w,S])}return s}function pL(t){return t==0?wL:t==1?Zi:i=>hd(i,t)}function qL(t){let i=t==0?k0:A0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=ja(u,s/2,l/2),h=ja(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var k0=(t,i,e)=>{t.moveTo(i,e)},A0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},R0=qL(0),wM=qL(1),YL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},QL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},KL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function XL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,w,S,P,j)=>{let{pxRound:F,points:q}=a,ve,oe;u.ori==0?(ve=k0,oe=YL):(ve=A0,oe=QL);let Ne=Zn(q.width*kn,3),Ce=(q.size-q.width)/2*kn,Le=Zn(Ce*2,3),et=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;R0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,w)),ae=F(y(l[ot],h,j,S));ve(et,pe+Ce,ae),oe(et,pe,ae,Ce,0,C0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?et:null,fill:et,clip:Nt,flags:Mm|sM}})}function JL(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var ZY=JL(Im),XY=JL(km);function eV(t){let i=wn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,w,S,P,j)=>{[o,r]=S0(l,o,r);let F=a.pxRound,q=qe=>F(g(qe,u,P,w)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=ZY):(oe=km,Ne=XY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},et=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=q(s[Ce==1?o:r]),gt=q(s[o]),Qt=q(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:q(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(et,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(et,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(et,q(s[qe]),ve(It))}let[Se,Tt]=CM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(et),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=q(s[o]),ae=q(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,q,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=I0(qe,u.ori,w,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Xs(e,n,o,r,et,-1),Xs(e,n,o,r,et,1)]:Xs(e,n,o,r,et,Tt)),Le})}function JY(t){let i=wn(t.align,1),e=wn(t.ascDesc,!1),n=wn(t.alignGaps,0),o=wn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,w,S,P,j,F,q,ve)=>{[s,l]=S0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,q,j)),et=gt=>oe(P(gt,w,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=et(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=et(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=CM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=et(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=I0(gt,y.ori,j,F,q,ve)}return nt!=0&&(ht.band=nt==2?[Xs(r,a,s,l,Se,-1),Xs(r,a,s,l,Se,1)]:Xs(r,a,s,l,Se,nt)),ht})}function hL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(w,S,P,j)=>bd(w,S,(F,q,ve,oe,Ne,Ce,Le,et,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(w,S):[He,ae]=r(w,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?R0:wM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,ac,Ga,sc)=>{h(Pe,ei,Vi,ac,Pd,sc,Ga)},ft=wn(w.bands,gM).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(w,S,F.min,F.max,Ve),eo=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,ws=null,Or=null,al=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,ws=g.values(w,S,P,j),Or=new Map,new Set(ws).forEach(Pe=>{Pe!=null&&Or.set(Pe,new Path2D)}),jn>0&&(al=y.values(w,S,P,j),Ad=new Map,new Set(al).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,q=Rd.values(w,S,P,j),Rd.unit==2&&(q=q.map(Vi=>w.posToVal(et+Vi*ht,oe.key,!0)));let Pe=Hm.values(w,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,et)-Ce(0,oe,ht,et),Jn=hL(q,ve,Ce,oe,ht,et,Jn),Li=Jn-Rt+It}else Jn=hL(q,ve,Ce,oe,ht,et,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=wL);let Tf=Li>0,oc=Jn-Li-(Tf?jn:0);Rt=Tt(oM(oc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(Tf?jn/2:0));let Mo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Qo?null:new Path2D,Ds=null;if(ft!=null)Ds=w.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(w,S,P,j),Ds=Pe.values(w,S,P,j))}let rc=ae*Rt,Wt=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(Ds!=null){let Ko=Ds[Pe]??0;if(ei-Ko==0)continue;eo=Le(Ko,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?q[Pe]:Pe,Pd=Ce(Vi,oe,ht,et),ac=Le(wn(ei,jt),Ne,Se,Nt),Ga=Tt(Pd-Xn),sc=Tt(qo(ac,eo)),lr=Tt(ja(ac,eo)),Pr=sc-lr;if(ei!=null){let Ko=ei<0?Wt:rc,la=ei<0?rc:Wt;Qo?(jn>0&&al[Pe]!=null&>(Ad.get(al[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),ws[Pe]!=null&>(Or.get(ws[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la)):gt(Od,Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),Qt(w,S,Pe,Ga-jn/2,lr,Rt+jn,Pr)}}return jn>0?Mo.stroke=Qo?Ad:Od:Qo||(Mo._fill=F.width==0?F._fill:F._stroke??F._fill,Mo.width=0),Mo.fill=Qo?Or:Od,Mo})}function tQ(t,i){let e=wn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,w,S,P,j,F)=>{[r,a]=S0(u,r,a);let q=s.pxRound,ve=ae=>q(y(ae,h,j,S)),oe=ae=>q(w(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=k0,Le=Im,Ce=KL):(Ne=A0,Le=km,Ce=ZL);let et=h.dir*(h.ori==0?1:-1),Nt=ve(l[et==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=et==1?r:a;ae>=r&&ae<=a;ae+=et)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,q),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=CM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,et,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=I0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Xs(n,o,r,a,It,-1),Xs(n,o,r,a,It,1)]:Xs(n,o,r,a,It,pe)),qe})}function nQ(t){return tQ(iQ,t)}function iQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var oQ=eV(),rQ=XL();function gL(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>cM(r,a,i,e))}function aQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function cM(t,i,e,n){return Ni({},i==0?e:n,t)}function tV(t,i,e){return i==null?Sm:[i,e]}var sQ=tV;function lQ(t,i,e){return i==null?Sm:w0(i,e,hM,!0)}function nV(t,i,e,n){return i==null?Sm:E0(i,e,t.scales[n].log,!1)}var cQ=nV;function iV(t,i,e,n){return i==null?Sm:pM(i,e,t.scales[n].log,!1)}var dQ=iV;function uQ(t,i,e,n,o){let r=qo(Y2(t),Y2(i)),a=i-t,s=Ba(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?ec.get(l):0)<=17)return[l,u]}while(++s(i=Zi((e=+o)*kn))+"px"),[t,i,e]}function mQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:wn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ta(bq);if(t.id!=null&&(u.id=t.id),Tr(u,t.class),t.title){let v=ta(xq,u);v.textContent=t.title}let h=Va("canvas"),g=n.ctx=h.getContext("2d"),y=ta(wq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&uo.click(n,v)},!0);let w=n.under=ta(Dq,y);y.appendChild(h);let S=n.over=ta(Sq,y);t=Em(t);let P=+wn(t.pxAlign,1),j=pL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,q=n.series=o==1?gL(t.series||[],aL,uL,!1):aQ(t.series||[null],dL),ve=n.axes=gL(t.axes||[],rL,lL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1)});let Ce=o==2?q[1].facets[0].scale:q[0].scale,Le={axes:o4,series:Jj},et=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Zs(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>KE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||cf)[v]||cf;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?$L:YY,E),C.key=v;let M=C.time,N=C.range,U=Jl(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?$2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?$2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&T0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:w0(ye,Ae,re)}C.range=ln(N||(M?sQ:v==Ce?C.distr==3?cQ:C.distr==4?dQ:tV:C.distr==3?nV:C.distr==4?iV:lQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||qY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&q.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Tr(u,yq),qe=r,It=a):(Tr(u,Cq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Zi(v/F))),ae=t.fmtDate||_M,He=F==1?yY(pe):wY(pe),nt=nL(pe,tL(F==1?bY:xY,ae)),gt=oL(pe,iL(SY,ae)),Qt=[],ft=n.legend=Ni({},TY,t.legend),Ve=n.cursor=Ni({},PY,{drag:{y:o==2}},t.cursor),jt=ft.show,eo=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Qo=[],ws,Or=!1,al={};if(ft.live){let v=q[1]?q[1].values:null;Or=v!=null,ws=Or?v(n,1,0):{_:0};for(let C in ws)al[C]=uM}if(jt)if(Rt=Va("table",Aq,u),Jn=Va("tbody",null,Rt),ft.mount(n,Rt),Or){Li=Va("thead",null,Rt,Jn);let v=Va("tr",null,Li);Va("th",null,v);for(var Ad in ws)Va("th",R2,v).textContent=Ad}else Tr(Rt,Oq),ft.live&&Tr(Rt,Rq);let Rd={show:!0},Hm={show:!1};function Tf(v,C){if(C==0&&(Or||!ft.live||o==2))return Sm;let E=[],M=Va("tr",Pq,Jn,Jn.childNodes[C]);Tr(M,v.class),v.show||Tr(M,gd);let N=Va("th",null,M);if(Xn.show){let he=ta(Nq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ta(R2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),Mo("click",N,he=>{if(Ve._lock)return;cc(he);let ye=q.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=q.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);q.forEach((Oe,Be)=>{Be>0&&Ya(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else Ya(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&Mo(F2,N,he=>{Ve._lock||(cc(he),Ya(q.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in ws){let he=Va("td",Fq,M);he.textContent="--",E.push(he)}return[M,E]}let oc=new Map;function Mo(v,C,E,M=!0){let N=oc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),oc.set(C,N))}function Od(v,C,E){let M=oc.get(C)||{};for(let N in M)(v==null||N==v)&&(iM(N,C,M[N]),delete M[N]);v==null&&oc.delete(C)}let Ds=0,rc=0,Wt=0,Pe=0,ei=0,Vi=0,Pd=ei,ac=Vi,Ga=Wt,sc=Pe,lr=0,Pr=0,Ko=0,la=0;n.bbox={};let Uy=!1,If=!1,Nd=!1,lc=!1,kf=!1,Nr=!1;function Hy(v,C,E){(E||v!=n.width||C!=n.height)&&aT(v,C),zd(!1),Nd=!0,If=!0,Ud()}function aT(v,C){n.width=Ds=Wt=v,n.height=rc=Pe=C,ei=Vi=0,Gj(),qj();let E=n.bbox;lr=E.left=hd(ei*kn,.5),Pr=E.top=hd(Vi*kn,.5),Ko=E.width=hd(Wt*kn,.5),la=E.height=hd(Pe*kn,.5)}let Hj=3;function Wj(){let v=!1,C=0;for(;!v;){C++;let E=n4(C),M=i4(C);v=C==Hj||E&&M,v||(aT(n.width,n.height),If=!0)}}function $j({width:v,height:C}){Hy(v,C)}n.setSize=$j;function Gj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?(Wt-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),dc[0]=v,dc[1]=E,dc[2]=C,dc[3]=M,Wt-=sl[1]+sl[3],ei+=sl[3],Pe-=sl[2]+sl[0],Vi+=sl[0]}function qj(){let v=ei+Wt,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let cc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let _o=Ve.points;_o.show=ln(_o.show),_o.size=ln(_o.size),_o.stroke=ln(_o.stroke),_o.width=ln(_o.width),_o.fill=ln(_o.fill);let qa=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=qa.prox>=0,Ld=Fd&&_o.one,Fr=[],Vd=[],Bd=[];function sT(v,C){let E=_o.show(n,C);if(E instanceof HTMLElement)return Tr(E,kq),Tr(E,v.class),ys(E,-10,-10,Wt,Pe),S.insertBefore(E,Fr[C]),E}function lT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?Z2(M)?oL(pe,iL(M,ae)):M||gt:M||WY,v.label=v.label||(E?FY:NY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||oQ||Yq,v.fillTo=ln(v.fillTo||QY),v.pxAlign=+wn(v.pxAlign,P),v.pxRound=pL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=$Y(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:rQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=Tf(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(eo){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=sT(v,C)):C>0&&(E=sT(v,C)),Fr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}ro("addSeries",C)}function Yj(v,C){C=C??q.length,v=o==1?cM(v,C,aL,uL):cM(v,C,{},dL),q.splice(C,0,v),lT(q[C],C)}n.addSeries=Yj;function Qj(v){if(q.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}eo&&(Qt.splice(v,1),Fr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),ro("delSeries",v)}n.delSeries=Qj;let dc=[!1,!1,!1,!1];function Kj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?q[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),Jl(v.incrs)&&v.incrs.forEach(re=>{!ec.has(re)&&ec.set(re,EL(re))}),v.incrs=ln(v.incrs||(M.distr==2?gY:N?F==1?vY:CY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?rM:M.distr==4?BY:VY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=Jl(U)&&!Jl(U[0])?ln(U):N?Jl(U)?nL(pe,tL(U,ae)):Z2(U)?DY(pe,U):U||nt:U||LY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?UY:M.distr==3&&M.log==2?HY:DL)),v.font=_L(v.font),v.labelFont=_L(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(dc[C]=!0,v._el=ta(Eq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Zi(rL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Zi(lL.size/2):0),Ae}let cT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(wn(v,Wm))),sl=n._padding=cT.map((v,C)=>v(n,C,dc,0)),co,to=null,no=null,Af=o==1?q[0].idxs:null,ca=null,$m=!1;function dT(v,C){if(i=v??[],n.data=n._data=i,o==2){co=0;for(let E=1;E=0,Nr=!0,Ud()}}n.setData=dT;function Wy(){$m=!0;let v,C;o==1&&(co>0?(to=Af[0]=0,no=Af[1]=co-1,v=i[0][to],C=i[0][no],Tt==2?(v=to,C=no):v==C&&(Tt==3?[v,C]=E0(v,v,Se.log,!1):Tt==4?[v,C]=pM(v,v,Se.log,!1):Se.time?C=v+Zi(86400/F):[v,C]=w0(v,C,hM,!0))):(to=Af[0]=v=null,no=Af[1]=C=null)),cl(Ce,v,C)}let Rf,jd,$y,Gy,qy,Yy,Qy,Ky,Zy,Zo;function uT(v,C,E,M,N,U){v??=P2,E??=gM,M??="butt",N??=P2,U??="round",v!=Rf&&(g.strokeStyle=Rf=v),N!=jd&&(g.fillStyle=jd=N),C!=$y&&(g.lineWidth=$y=C),U!=qy&&(g.lineJoin=qy=U),M!=Yy&&(g.lineCap=Yy=M),E!=Gy&&g.setLineDash(Gy=E)}function mT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Qy&&(g.font=Qy=v),E!=Ky&&(g.textAlign=Ky=E),M!=Zy&&(g.textBaseline=Zy=M)}function Xy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=wn(to,0),re=wn(no,M.length-1),he=E.min==null?Uq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=ja(v.min,E.min=he[0]),v.max=qo(v.max,E.max=he[1])}}let pT={min:null,max:null};function Zj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=pT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=pT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Zq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(co==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(co>0){q.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],to=Ba(he.min,i[0]),no=Ba(he.max,i[0]),no-to>1&&(i[0][to]he.max&&no--),M.min=ca[to],M.max=ca[no]}else M.show&&M.auto&&Xy(he,re,M,i[N],M.sorted);M.idxs[0]=to,M.idxs[1]=no}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Xy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Xy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Zs(U.min):re==4?KE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Zs(U.max):re==4?KE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){q.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,ro("setScale",M);eo&&Ve.left>=0&&(lc=Nr=!0)}for(let M in ot)ot[M]=null}function Xj(v){let C=oM(to-1,0,co-1),E=oM(no+1,0,co-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=q.some(C=>C._focus)&&Zo!=qa.alpha;v&&(g.globalAlpha=Zo=qa.alpha),q.forEach((C,E)=>{if(E>0&&C.show&&(hT(E,!1),hT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Xj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),q.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&fT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,to,no,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,to,no,re),fT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),ro("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function hT(v,C){let E=C?q[v].points:q[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function fT(v,C){let E=C?q[v].points:q[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=lr-Ae/2,vn=Pr-Ae/2,tn=Ko+Ae,St=la+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?Jy(he,Ae,E.dash,E.cap,ye,M,N,re,U):e4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function e4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=q[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||cf).band;Jl(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&Wq(tn,to,no)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,Jy(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||Jy(C,E,M,N,U,re,he,ye,Ae,Oe)}let gT=Mm|sM;function Jy(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){uT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&gT)==gT?(g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),Of(v,U,C)):he&sM?(Pf(N,re),g.clip(Be),Of(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Pf(N,re),g.restore(),Of(v,U,C)):(Pf(N,re),Of(v,U,C)),(ye||Ae||Be)&&g.restore()}function Of(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Rf=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Pf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function t4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=uQ(C,E,he,M,re)}return N._found=U}function eC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),uT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=t4(M,he,ye,re==0?Wt:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>ca[rt]):Lt,vn=N.distr==2?ca[Lt[1]]-ca[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=na(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function i4(v){let C=!0;return cT.forEach((E,M)=>{let N=E(n,M,dc,v);N!=sl[M]&&(C=!1),sl[M]=N}),C}function o4(){for(let v=0;vca[Io]):Dn,tn=Oe.distr==2?ca[Dn[1]]-ca[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Zi(ai*kn),ao=Zi((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-C0/180,_i=j(C._pos*kn),cr=(gi+ao)*he,To=_i+cr;U=M==0?To:0,N=M==1?To:0;let Lr=C.font[0],da=C.align==1?Cm:C.align==2?qE:zn>0?Cm:zn<0?qE:M==0?"center":E==3?qE:Cm,Ka=zn||M==1?"middle":E==2?"top":O2;mT(Lr,re,da,Ka);let dr=C.font[1]*C.lineGap,Vr=Dn.map(Io=>j(s(Io,Oe,Be,Lt))),ua=C._values;for(let Io=0;Io{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Nf=!1,tC=!1,Gm=[];function r4(){tC=!1;for(let v=0;v0&&queueMicrotask(r4)}n.batch=a4;function _T(){if(Uy&&(Zj(),Uy=!1),Nd&&(Wj(),Nd=!1),If){if(di(w,Cm,ei),di(w,"top",Vi),di(w,rf,Wt),di(w,af,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,rf,Wt),di(S,af,Pe),di(y,rf,Ds),di(y,af,rc),h.width=Zi(Ds*kn),h.height=Zi(rc*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:Wt),nM(v,gd)}else Tr(v,gd)}),Rf=jd=$y=qy=Yy=Qy=Ky=Zy=Gy=null,Zo=1,Qm(!0),ei!=Pd||Vi!=ac||Wt!=Ga||Pe!=sc){zd(!1);let v=Wt/Ga,C=Pe/sc;if(eo&&!lc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&ys(Hd,Zi(Ve.left),0,Wt,Pe),Wd&&ys(Wd,0,Zi(Ve.top),Wt,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in sC)di(qd,E,ri[E])}Pd=ei,ac=Vi,Ga=Wt,sc=Pe}ro("setSize"),If=!1}Ds>0&&rc>0&&(g.clearRect(0,0,h.width,h.height),ro("drawClear"),et.forEach(v=>v()),ro("draw")),ri.show&&kf&&(Ff(ri),kf=!1),eo&&lc&&(mc(null,!0,!1),lc=!1),ft.show&&ft.live&&Nr&&(rC(),Nr=!1),l||(l=!0,n.status=1,ro("ready")),$m=!1,Nf=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?cl(Ce,Se.min,Se.max):Ud()};function nC(v,C){let E=oe[v];if(E.from==null){if(co==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(co>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&co>0&&(C.min=Ba(C.min,i[0]),C.max=Ba(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Uy=!0,Ud()}}n.setScale=nC;let iC,oC,Hd,Wd,vT,bT,$d,Gd,yT,CT,oi,ui,ll=!1,uo=Ve.drag,io=uo.x,oo=uo.y;eo&&(Ve.x&&(iC=ta(Tq,S)),Ve.y&&(oC=ta(Iq,S)),Se.ori==0?(Hd=iC,Wd=oC):(Hd=oC,Wd=iC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ta(Mq,ri.over?S:w):null;function Ff(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in sC&&di(qd,E,v[E]);C!==!1&&ro("setSelect")}}n.setSelect=Ff;function s4(v){if(q[v].show)jt&&nM(jn[v],gd);else if(jt&&Tr(jn[v],gd),eo){let E=Ld?Fr[0]:Fr[v];E!=null&&ys(E,-10,-10,Wt,Pe)}}function cl(v,C,E){nC(v,{min:C,max:E})}function Ya(v,C,E,M){C.focus!=null&&m4(v),C.show!=null&&q.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,s4(U),o==2?(cl(N.facets[0].scale,null,null),cl(N.facets[1].scale,null,null)):cl(N.scale,null,null),Ud())}),E!==!1&&ro("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=Ya;function l4(v,C){Ni(Ne[v],C)}function c4(v,C){v.fill=ln(v.fill||null),v.dir=wn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function d4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=c4,n.setBand=l4,n.delBand=d4;function u4(v,C){q[v].alpha=C,eo&&Fr[v]!=null&&(Fr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ss,dl,uc,Yd={focus:!0};function m4(v){if(v!=uc){let C=v==null,E=qa.alpha!=1;q.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&u4(N,U?1:qa.alpha)}}),uc=v,E&&Ud()}}jt&&Fd&&Mo(L2,Rt,v=>{Ve._lock||(cc(v),uc!=null&&Ya(null,Yd,!0,Ii.setSeries))});function Qa(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=Wt;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?Gq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function p4(v,C){let E=Qa(v,Ce,C);return Ba(E,i[0],to,no)}n.valToIdx=v=>Ba(v,i[0]),n.posToIdx=p4,n.posToVal=Qa,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:Wt,E?lr:0):a(v,oe[C],E?la:Pe,E?Pr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,mc(null,C,E)};function xT(v,C){di(qd,Cm,ri.left=v),di(qd,rf,ri.width=C)}function wT(v,C){di(qd,"top",ri.top=v),di(qd,af,ri.height=C)}let qm=Se.ori==0?xT:wT,Ym=Se.ori==1?xT:wT;function h4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Kq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Or)&&f4(E,Qt[E]);h4()}Nr=!1,C!==!1&&ro("setLegend")}n.setLegend=rC;function f4(v,C){let E=q[v],M=v==0&&Tt==2?ca:i[v],N;Or?N=E.values(n,v,C)??al:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?al:{_:N}),ft.values[v]=N}function mc(v,C,E){yT=oi,CT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,eo&&(Hd&&ys(Hd,Zi(oi),0,Wt,Pe),Wd&&ys(Wd,0,Zi(ui),Wt,Pe));let M,N=to>no;Ss=Kn,dl=null;let U=Se.ori==0?Wt:Pe,re=Se.ori==1?Wt:Pe;if(oi<0||co==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let cr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),To=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Lr=Se.ori==1?oi:ui,da=Xi(qa.dist(n,rt,zn,To,Lr));if(da=0?1:-1,ua=dr>=0?1:-1;ua==Vr&&(ua==1?Ka==1?_i>=dr:_i<=dr:Ka==1?_i<=dr:_i>=dr)&&(Ss=da,dl=rt)}else Ss=da,dl=rt}}if(Nr||Ld){let Lr,da;Se.ori==0?(Lr=cr,da=To):(Lr=To,da=cr);let Ka,dr,Vr,ua,Za,Io,ur=!0,pc=_o.bbox;if(pc!=null){ur=!1;let ko=pc(n,rt);Vr=ko.left,ua=ko.top,Ka=ko.width,dr=ko.height}else Vr=Lr,ua=da,Ka=dr=_o.size(n,rt);if(Io=_o.fill(n,rt),Za=_o.stroke(n,rt),Ld)rt==dl&&Ss<=qa.prox&&(Oe=Vr,Be=ua,Lt=Ka,Dn=dr,vn=ur,tn=Io,St=Za);else{let ko=Fr[rt];ko!=null&&(Vd[rt]=Vr,Bd[rt]=ua,W2(ko,Ka,dr,ur),U2(ko,Io,Za),ys(ko,na(Vr),na(ua),Wt,Pe))}}}}if(Ld){let rt=qa.prox,ai=uc==null?Ss<=rt:Ss>rt||dl!=uc;if(Nr||ai){let gi=Fr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,W2(gi,Lt,Dn,vn),U2(gi,tn,St),ys(gi,na(Oe),na(Be),Wt,Pe))}}}if(ri.show&&ll)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(io=Dn._x,oo=Dn._y,io||oo){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ao,zn,_i,cr,To,Lr=he!=null&&Ae(he,Be),da=ye!=null&&Oe(ye,Lt);Lr&&io?(ai==0?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[he],cr=qe(gi(ao,Be),_i,U,0),To=qe(gi(ao+zn,Be),_i,U,0),qm(ja(cr,To),Xi(To-cr))):qm(0,U),da&&oo?(ai==1?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[ye],cr=It(gi(ao,Lt),_i,re,0),To=It(gi(ao+zn,Lt),_i,re,0),Ym(ja(cr,To),Xi(To-cr))):Ym(0,re)}else lC()}else{let he=Xi(yT-vT),ye=Xi(CT-bT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}io=uo.x&&he>=uo.dist,oo=uo.y&&ye>=uo.dist;let Ae=uo.uni;Ae!=null?io&&oo&&(io=he>=Ae,oo=ye>=Ae,!io&&!oo&&(ye>he?oo=!0:io=!0)):uo.x&&uo.y&&(io||oo)&&(io=oo=!0);let Oe,Be;io&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(ja(Oe,Be),Xi(Be-Oe)),oo||Ym(0,re)),oo&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(ja(Oe,Be),Xi(Be-Oe)),io||qm(0,U)),!io&&!oo&&(qm(0,0),Ym(0,0))}if(uo._x=io,uo._y=oo,v==null){if(E){if(PT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Qa(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Qa(Se.ori==1?oi:ui,ye):null}Km(YE,n,oi,ui,Wt,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=qa.prox;uc==null?Ss<=ye&&Ya(dl,Yd,!0,he):Ss>ye?Ya(null,Yd,!0,he):dl!=uc&&Ya(dl,Yd,!0,he)}}Nr&&(ft.idx=M,rC()),C!==!1&&ro("setCursor")}let ul=null;Object.defineProperty(n,"rect",{get(){return ul==null&&Qm(!1),ul}});function Qm(v=!1){v?ul=null:(ul=S.getBoundingClientRect(),ro("syncRect",ul))}function DT(v,C,E,M,N,U,re){Ve._lock||ll&&v!=null&&v.movementX==0&&v.movementY==0||(aC(v,C,E,M,N,U,re,!1,v!=null),v!=null?mc(null,!0,!0):mc(C,!0,!1))}function aC(v,C,E,M,N,U,re,he,ye){if(ul==null&&Qm(!1),cc(v),v!=null)E=v.clientX-ul.left,M=v.clientY-ul.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?Wt:Pe,ao=Se.ori==1?Wt:Pe,zn=ai?U:N,_i=ai?N:U,cr=ai?M:E,To=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(cr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ao,0):-10:M=ao*(To/_i),Se.ori==1){let Lr=E;E=M,M=Lr}}ye&&(C==null||C.cursor.event.type==YE)&&((E<=1||E>=Wt-1)&&(E=hd(E,Wt)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(vT=E,bT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let sC={width:0,height:0,left:0,top:0};function lC(){Ff(sC,!1)}let ST,ET,MT,TT;function IT(v,C,E,M,N,U,re){ll=!0,io=oo=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!0,!1),v!=null&&(Mo(QE,eM,kT,!1),Km(N2,n,$d,Gd,Wt,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ST=he,ET=ye,MT=Ae,TT=Oe}function kT(v,C,E,M,N,U,re){ll=uo._x=uo._y=!1,aC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ST!=he||ET!=ye||MT!=Ae||TT!=Oe;if(Be&&Lt&&Ff(ri),uo.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),io&&cl(Ce,Qa(Dn,Ce),Qa(Dn+vn,Ce)),oo)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&cl(rt,Qa(tn+St,rt),Qa(tn,rt))}lC()}else Ve.lock&&(Ve._lock=!Ve._lock,mc(C,!0,v!=null));v!=null&&(Od(QE,eM),Km(QE,n,oi,ui,Wt,Pe,null))}function g4(v,C,E,M,N,U,re){if(Ve._lock)return;cc(v);let he=ll;if(ll){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=io,Lt=oo):(Be=oo,Lt=io),Be&&Lt&&(ye=oi<=Oe||oi>=Wt-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:Wt),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&Ya(E,M,!0,!1)},eo&&(Mo(N2,S,IT),Mo(YE,S,DT),Mo(F2,S,v=>{cc(v),Qm(!1)}),Mo(L2,S,g4),Mo(V2,S,AT),lM.add(n),n.syncRect=Qm);let Lf=n.hooks=t.hooks||{};function ro(v,C,E){tC?Gm.push([v,C,E]):v in Lf&&Lf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Lf[C]=(Lf[C]||[]).concat(v.hooks[C])});let OT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:Q2,sub:Q2},scales:[Ce,q[1]?q[1].scale:null],match:[K2,K2,OT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(OT),Ve.sync=Ii;let PT=Ii.key,cC=GL(PT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&cC.pub(v,C,E,M,N,U,re)}cC.sub(n);function _4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=_4;function v4(){cC.unsub(n),lM.delete(n),oc.clear(),iM(x0,wm,RT),u.remove(),Rt?.remove(),ro("destroy")}n.destroy=v4;function dC(){ro("init",t,i),dT(i||t.data,!1),ot[Ce]?nC(Ce,ot[Ce]):Wy(),kf=ri.show&&(ri.width>0||ri.height>0),lc=Nr=!0,Hy(t.width,t.height)}return q.forEach(lT),ve.forEach(Kj),e?e instanceof HTMLElement?(e.appendChild(u),dC()):e(n,dC):dC(),n}Ti.assign=Ni;Ti.fmtNum=fM;Ti.rangeNum=w0;Ti.rangeLog=E0;Ti.rangeAsinh=pM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=iY;Ti.fmtDate=_M,Ti.tzDate=hY;Ti.sync=GL;{Ti.addGap=KY,Ti.clipGaps=I0;let t=Ti.paths={points:XL};t.linear=eV,t.stepped=JY,t.bars=eQ,t.spline=nQ}var pQ=["host"],hQ=["donut"],oV=(t,i)=>i.name;function fQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function gQ(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,fQ,6,4,"div",6,oV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function _Q(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function vQ(t,i){if(t&1&&(c(0,"div",10),fe(1,_Q,3,3,"span",13,oV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function bQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),x("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),x("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),Q_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function yQ(t,i){if(t&1&&(c(0,"div",3),A(1,vQ,3,0,"div",10),O(2,"div",11,0),A(4,bQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var O0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function CQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,w=l.deltaY<0?y*.9:y/.9,S=g-h*w,P=S+w;[S,P]=o(w,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var rV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>Yi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>Yi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye(G({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),q=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,et)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[et]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[q,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>q,y=Ne=>j[Ne]??""}let w={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[CQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(w,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(w.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:O0[r%O0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,w=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,w,w+j),l.closePath(),l.fillStyle=O0[P%O0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),w+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(pQ,5)(hQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,gQ,8,0,"div",2)(1,yQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var wQ=(t,i)=>i.value,DQ=(t,i)=>i.user;function SQ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function EQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function MQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function TQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function IQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function kQ(t,i){if(t&1){let e=W();c(0,"div",12),x("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,MQ,6,1)(2,TQ,9,2)(3,IQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function AQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),Fo(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function RQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function OQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function PQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function NQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function FQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function LQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function VQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function BQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function jQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function zQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function UQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function HQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function WQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function $Q(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function GQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function qQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function YQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function QQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function KQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function ZQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function XQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function JQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function eK(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function tK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,eK,11,5,"tr",null,DQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function nK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function iK(t,i){if(t&1&&(A(0,OQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,PQ,1,1,"uds-uplot-chart",19)(7,NQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,FQ,1,1,"uds-uplot-chart",19)(13,LQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,VQ,1,1,"uds-uplot-chart",19)(19,BQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,jQ,1,1,"uds-uplot-chart",19)(25,zQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,UQ,1,1,"uds-uplot-chart",19)(31,HQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,WQ,1,1,"uds-uplot-chart",19)(37,$Q,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,GQ,1,1,"uds-uplot-chart",19)(43,qQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,YQ,1,1,"uds-uplot-chart",19)(49,QQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,KQ,1,1,"uds-uplot-chart",19)(55,ZQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,XQ,1,1,"uds-uplot-chart",19)(61,JQ,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,tK,25,0,"div",23),c(74,"div",24),A(75,nK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var aV=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.cache=o,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){this.cache.has("cachedEnterpriseInfo")||this.cache.set("cachedEnterpriseInfo",(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?Yi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return this.cache.get("cachedEnterpriseInfo")}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(M2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(T2))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,SQ,2,3,"button",3,wQ),d(),c(5,"div",4),A(6,EQ,4,1,"div",5),c(7,"button",6),x("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,kQ,4,5,"div",8),A(11,AQ,2,2,"div",9),d()(),A(12,RQ,5,0,"div",10)(13,iK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,rV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function rK(t,i){t&1&&O(0,"uds-dashboard")}function aK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var sV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,rK,1,0,"uds-dashboard")(3,aK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var Cs=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var P0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Fa.INSERTED}else l==null?(e.remove(s),h=Fa.REMOVED):(u=e.get(s),e.move(u,l),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var sK=["notch"],lK=["matFormFieldNotchedOutline",""],cK=["*"],lV=["iconPrefixContainer"],cV=["textPrefixContainer"],dV=["iconSuffixContainer"],uV=["textSuffixContainer"],dK=["textField"],uK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function pK(t,i){t&1&&O(0,"span",21)}function hK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,pK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function fK(t,i){if(t&1&&A(0,hK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function gK(t,i){t&1&&O(0,"div",7)}function _K(t,i){}function vK(t,i){if(t&1&&xe(0,_K,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function bK(t,i){if(t&1&&(c(0,"div",9),A(1,vK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function yK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function CK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function xK(t,i){}function wK(t,i){if(t&1&&xe(0,xK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function DK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function SK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function EK(t,i){t&1&&O(0,"div",16)}function MK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function TK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function IK(t,i){if(t&1&&(c(0,"div",19),A(1,TK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),vV=new L("MatError");var DM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),bV=new L("MatPrefix");var SM=new L("MatSuffix"),Ar=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ke([{provide:SM,useExisting:t}])]})}return t})(),yV=new L("FloatingLabelParent"),mV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(zb);_ngZone=p(be);_parent=p(yV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return kK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function kK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var pV="mdc-line-ripple--active",N0="mdc-line-ripple--deactivating",hV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(N0),e.add(pV)}deactivate(){this._elementRef.nativeElement.classList.add(N0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(N0);e.propertyName==="opacity"&&o&&n.remove(pV,N0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(sK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:lK,ngContentSelectors:cK,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&&(vt(),mo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),mo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Js=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var ia=new L("MatFormField"),F0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),gV="fill",AK="auto",_V="fixed",RK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(F0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Lo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=MO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Yr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||AK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||gV;this._appearanceSignal.set(n)}_appearanceSignal=Re(gV);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_V}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||_V}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(xn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Fs(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Lo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),Qe(()=>[n.errorState,n.userAriaDescribedBy]),bg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){NO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Lo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,w=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${RK} translateX(${w}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(G_(r,o._labelChild,st,5),Mn(r,Js,5)(r,bV,5)(r,SM,5)(r,vV,5)(r,DM,5)),n&2){Y_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(q_(o._iconPrefixContainerSignal,lV,5)(o._textPrefixContainerSignal,cV,5)(o._iconSuffixContainerSignal,dV,5)(o._textSuffixContainerSignal,uV,5),at(dK,5)(lV,5)(cV,5)(dV,5)(uV,5)(mV,5)(fV,5)(hV,5)),n&2){Y_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ke([{provide:ia,useExisting:t},{provide:yV,useExisting:t}])],ngContentSelectors:mK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(uK),xe(0,fK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),x("click",function(a){return o._control.onContainerClick(a)}),A(4,gK,1,0,"div",7),c(5,"div",8),A(6,bK,2,2,"div",9),A(7,yK,3,0,"div",10),A(8,CK,3,0,"div",11),c(9,"div",12),A(10,wK,1,1,null,13),Ie(11),d(),A(12,DK,3,0,"div",14),A(13,SK,3,0,"div",15),d(),A(14,EK,1,0,"div",16),d(),c(15,"div",17),A(16,MK,2,0,"div",18)(17,IK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[mV,fV,Xp,hV,DM],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return t})();var A2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var yq="uplot",Cq="u-hz",wq="u-vt",xq="u-title",Dq="u-wrap",Sq="u-under",Eq="u-over",Mq="u-axis",gd="u-off",Tq="u-select",Iq="u-cursor-x",kq="u-cursor-y",Aq="u-cursor-pt",Rq="u-legend",Oq="u-live",Pq="u-inline",Nq="u-series",Fq="u-marker",O2="u-label",Lq="u-value",af="width",sf="height";var P2="bottom",Cm="left",YE="right",uM="#000",N2=uM+"0",QE="mousemove",F2="mousedown",KE="mouseup",L2="mouseenter",V2="mouseleave",B2="dblclick",Vq="resize",Bq="scroll",j2="change",x0="dppxchange",mM="--",Tm=typeof window<"u",tM=Tm?document:null,xm=Tm?window:null,jq=Tm?navigator:null,kn,b0;function nM(){let t=devicePixelRatio;kn!=t&&(kn=t,b0&&oM(j2,b0,nM),b0=matchMedia(`(min-resolution: ${kn-.001}dppx) and (max-resolution: ${kn+.001}dppx)`),_d(j2,b0,nM),xm.dispatchEvent(new CustomEvent(x0)))}function Tr(t,i){if(i!=null){let e=t.classList;!e.contains(i)&&e.add(i)}}function iM(t,i){let e=t.classList;e.contains(i)&&e.remove(i)}function di(t,i,e){t.style[i]=e+"px"}function Va(t,i,e,n){let o=tM.createElement(t);return i!=null&&Tr(o,i),e?.insertBefore(o,n),o}function ta(t,i){return Va("div",t,i)}var z2=new WeakMap;function ys(t,i,e,n,o){let r="translate("+i+"px,"+e+"px)",a=z2.get(t);r!=a&&(t.style.transform=r,z2.set(t,r),i<0||e<0||i>n||e>o?Tr(t,gd):iM(t,gd))}var U2=new WeakMap;function H2(t,i,e){let n=i+e,o=U2.get(t);n!=o&&(U2.set(t,n),t.style.background=i,t.style.borderColor=e)}var W2=new WeakMap;function $2(t,i,e,n){let o=i+""+e,r=W2.get(t);o!=r&&(W2.set(t,o),t.style.height=e+"px",t.style.width=i+"px",t.style.marginLeft=n?-i/2+"px":0,t.style.marginTop=n?-e/2+"px":0)}var pM={passive:!0},zq=Ye(q({},pM),{capture:!0});function _d(t,i,e,n){i.addEventListener(t,e,n?zq:pM)}function oM(t,i,e,n){i.removeEventListener(t,e,pM)}Tm&&nM();function Ba(t,i,e,n){let o;e=e||0,n=n||i.length-1;let r=n<=2147483647;for(;n-e>1;)o=r?e+n>>1:Ir((e+n)/2),i[o]{let r=-1,a=-1;for(let s=n;s<=o;s++)if(t(e[s])){r=s;break}for(let s=o;s>=n;s--)if(t(e[s])){a=s;break}return[r,a]}}var yL=t=>t!=null,CL=t=>t!=null&&t>0,E0=bL(yL),Uq=bL(CL);function Hq(t,i,e,n=0,o=!1){let r=o?Uq:E0,a=o?CL:yL;[i,e]=r(t,i,e);let s=t[i],l=t[i];if(i>-1)if(n==1)s=t[i],l=t[e];else if(n==-1)s=t[e],l=t[i];else for(let u=i;u<=e;u++){let h=t[u];a(h)&&(hl&&(l=h))}return[s??Kn,l??-Kn]}function M0(t,i,e,n){let o=Y2(t),r=Y2(i);t==i&&(o==-1?(t*=e,i/=e):(t/=e,i*=e));let a=e==10?Zs:wL,s=o==1?Ir:na,l=r==1?na:Ir,u=s(a(Xi(t))),h=l(a(Xi(i))),g=Dm(e,u),y=Dm(e,h);return e==10&&(u<0&&(g=Zn(g,-u)),h<0&&(y=Zn(y,-h))),n||e==2?(t=g*o,i=y*r):(t=EL(t,g),i=T0(i,y)),[t,i]}function hM(t,i,e,n){let o=M0(t,i,e,n);return t==0&&(o[0]=0),i==0&&(o[1]=0),o}var fM=.1,G2={mode:3,pad:fM},cf={pad:0,soft:null,mode:0},Wq={min:cf,max:cf};function D0(t,i,e,n){return I0(e)?q2(t,i,e):(cf.pad=e,cf.soft=n?0:null,cf.mode=n?3:0,q2(t,i,Wq))}function xn(t,i){return t??i}function $q(t,i,e){for(i=xn(i,0),e=xn(e,t.length-1);i<=e;){if(t[i]!=null)return!0;i++}return!1}function q2(t,i,e){let n=e.min,o=e.max,r=xn(n.pad,0),a=xn(o.pad,0),s=xn(n.hard,-Kn),l=xn(o.hard,Kn),u=xn(n.soft,Kn),h=xn(o.soft,-Kn),g=xn(n.mode,0),y=xn(o.mode,0),x=i-t,S=Zs(x),P=qo(Xi(t),Xi(i)),j=Zs(P),F=Xi(j-S);(x<1e-24||F>10)&&(x=0,(t==0||i==0)&&(x=1e-24,g==2&&u!=Kn&&(r=0),y==2&&h!=-Kn&&(a=0)));let G=x||P||1e3,ve=Zs(G),oe=Dm(10,Ir(ve)),Ne=G*(x==0?t==0?.1:1:r),Ce=Zn(EL(t-Ne,oe/10),24),Le=t>=u&&(g==1||g==3&&Ce<=u||g==2&&Ce>=u)?u:Kn,et=qo(s,Ce=Le?Le:ja(Le,Ce)),Nt=G*(x==0?i==0?.1:1:a),ht=Zn(T0(i+Nt,oe/10),24),Se=i<=h&&(y==1||y==3&&ht>=h||y==2&&ht<=h)?h:-Kn,Tt=ja(l,ht>Se&&i<=Se?Se:qo(Se,ht));return et==Tt&&et==0&&(Tt=100),[et,Tt]}var Gq=new Intl.NumberFormat(Tm?jq.language:"en-US"),gM=t=>Gq.format(t),kr=Math,w0=kr.PI,Xi=kr.abs,Ir=kr.floor,Zi=kr.round,na=kr.ceil,ja=kr.min,qo=kr.max,Dm=kr.pow,Y2=kr.sign,Zs=kr.log10,wL=kr.log2,qq=(t,i=1)=>kr.sinh(t)*i,ZE=(t,i=1)=>kr.asinh(t/i),Kn=1/0;function Q2(t){return(Zs((t^t>>31)-(t>>31))|0)+1}function rM(t,i,e){return ja(qo(t,i),e)}function xL(t){return typeof t=="function"}function ln(t){return xL(t)?t:()=>t}var Yq=()=>{},DL=t=>t,SL=(t,i)=>i,Qq=t=>null,K2=t=>!0,Z2=(t,i)=>t==i,Kq=/\.\d*?(?=9{6,}|0{6,})/gm,vd=t=>{if(TL(t)||tc.has(t))return t;let i=`${t}`,e=i.match(Kq);if(e==null)return t;let n=e[0].length-1;if(i.indexOf("e-")!=-1){let[o,r]=i.split("e");return+`${vd(o)}e${r}`}return Zn(t,n)};function hd(t,i){return vd(Zn(vd(t/i))*i)}function T0(t,i){return vd(na(vd(t/i))*i)}function EL(t,i){return vd(Ir(vd(t/i))*i)}function Zn(t,i=0){if(TL(t))return t;let e=10**i,n=t*e*(1+Number.EPSILON);return Zi(n)/e}var tc=new Map;function ML(t){return((""+t).split(".")[1]||"").length}function uf(t,i,e,n){let o=[],r=n.map(ML);for(let a=i;a=0?0:s)+(a>=r[u]?0:r[u]),y=t==10?h:Zn(h,g);o.push(y),tc.set(y,g)}}return o}var df={},_M=[],Sm=[null,null],ec=Array.isArray,TL=Number.isInteger,Zq=t=>t===void 0;function X2(t){return typeof t=="string"}function I0(t){let i=!1;if(t!=null){let e=t.constructor;i=e==null||e==Object}return i}function Xq(t){return t!=null&&typeof t=="object"}var Jq=Object.getPrototypeOf(Uint8Array),IL="__proto__";function Em(t,i=I0){let e;if(ec(t)){let n=t.find(o=>o!=null);if(ec(n)||i(n)){e=Array(t.length);for(let o=0;or){for(o=a-1;o>=0&&t[o]==null;)t[o--]=null;for(o=a+1;oa-s)],o=n[0].length,r=new Map;for(let a=0;a"u"?t=>Promise.resolve().then(t):queueMicrotask;function aY(t){let i=t[0],e=i.length,n=Array(e);for(let r=0;ri[r]-i[a]);let o=[];for(let r=0;r=n&&t[o]==null;)o--;if(o<=n)return!0;let r=qo(1,Ir((o-n+1)/i));for(let a=t[n],s=n+r;s<=o;s+=r){let l=t[s];if(l!=null){if(l<=a)return!1;a=l}}return!0}var kL=["January","February","March","April","May","June","July","August","September","October","November","December"],AL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function RL(t){return t.slice(0,3)}var cY=AL.map(RL),dY=kL.map(RL),uY={MMMM:kL,MMM:dY,WWWW:AL,WWW:cY};function rf(t){return(t<10?"0":"")+t}function mY(t){return(t<10?"00":t<100?"0":"")+t}var pY={YYYY:t=>t.getFullYear(),YY:t=>(t.getFullYear()+"").slice(2),MMMM:(t,i)=>i.MMMM[t.getMonth()],MMM:(t,i)=>i.MMM[t.getMonth()],MM:t=>rf(t.getMonth()+1),M:t=>t.getMonth()+1,DD:t=>rf(t.getDate()),D:t=>t.getDate(),WWWW:(t,i)=>i.WWWW[t.getDay()],WWW:(t,i)=>i.WWW[t.getDay()],HH:t=>rf(t.getHours()),H:t=>t.getHours(),h:t=>{let i=t.getHours();return i==0?12:i>12?i-12:i},AA:t=>t.getHours()>=12?"PM":"AM",aa:t=>t.getHours()>=12?"pm":"am",a:t=>t.getHours()>=12?"p":"a",mm:t=>rf(t.getMinutes()),m:t=>t.getMinutes(),ss:t=>rf(t.getSeconds()),s:t=>t.getSeconds(),fff:t=>mY(t.getMilliseconds())};function vM(t,i){i=i||uY;let e=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(t);)e.push(o[0][0]=="{"?pY[o[1]]:o[0]);return r=>{let a="";for(let s=0;st%1==0,S0=[1,2,2.5,5],gY=uf(10,-32,0,S0),PL=uf(10,0,32,S0),_Y=PL.filter(OL),fd=gY.concat(PL),bM=` +`,NL="{YYYY}",J2=bM+NL,FL="{M}/{D}",lf=bM+FL,y0=lf+"/{YY}",LL="{aa}",vY="{h}:{mm}",wm=vY+LL,eL=bM+wm,tL=":{ss}",Fn=null;function VL(t){let i=t*1e3,e=i*60,n=e*60,o=n*24,r=o*30,a=o*365,l=(t==1?uf(10,0,3,S0).filter(OL):uf(10,-3,0,S0)).concat([i,i*5,i*10,i*15,i*30,e,e*5,e*10,e*15,e*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,r,r*2,r*3,r*4,r*6,a,a*2,a*5,a*10,a*25,a*50,a*100]),u=[[a,NL,Fn,Fn,Fn,Fn,Fn,Fn,1],[o*28,"{MMM}",J2,Fn,Fn,Fn,Fn,Fn,1],[o,FL,J2,Fn,Fn,Fn,Fn,Fn,1],[n,"{h}"+LL,y0,Fn,lf,Fn,Fn,Fn,1],[e,wm,y0,Fn,lf,Fn,Fn,Fn,1],[i,tL,y0+" "+wm,Fn,lf+" "+wm,Fn,eL,Fn,1],[t,tL+".{fff}",y0+" "+wm,Fn,lf+" "+wm,Fn,eL,Fn,1]];function h(g){return(y,x,S,P,j,F)=>{let G=[],ve=j>=a,oe=j>=r&&j=o?o:j,ht=Ir(S)-Ir(Ce),Se=et+ht+T0(Ce-et,Nt);G.push(Se);let Tt=g(Se),qe=Tt.getHours()+Tt.getMinutes()/e+Tt.getSeconds()/n,It=j/n,ot=y.axes[x]._space,pe=F/ot;for(;Se=Zn(Se+j,t==1?0:3),!(Se>P);)if(It>1){let ae=Ir(Zn(qe+It,6))%24,gt=g(Se).getHours()-ae;gt>1&&(gt=-1),Se-=gt*n,qe=(qe+It)%24;let Qt=G[G.length-1];Zn((Se-Qt)/j,3)*pe>=.7&&G.push(Se)}else G.push(Se)}return G}}return[l,u,h]}var[bY,yY,CY]=VL(1),[wY,xY,DY]=VL(.001);uf(2,-53,53,[1]);function nL(t,i){return t.map(e=>e.map((n,o)=>o==0||o==8||n==null?n:i(o==1||e[8]==0?n:e[1]+n)))}function iL(t,i){return(e,n,o,r,a)=>{let s=i.find(S=>a>=S[0])||i[i.length-1],l,u,h,g,y,x;return n.map(S=>{let P=t(S),j=P.getFullYear(),F=P.getMonth(),G=P.getDate(),ve=P.getHours(),oe=P.getMinutes(),Ne=P.getSeconds(),Ce=j!=l&&s[2]||F!=u&&s[3]||G!=h&&s[4]||ve!=g&&s[5]||oe!=y&&s[6]||Ne!=x&&s[7]||s[1];return l=j,u=F,h=G,g=ve,y=oe,x=Ne,Ce(P)})}}function SY(t,i){let e=vM(i);return(n,o,r,a,s)=>o.map(l=>e(t(l)))}function XE(t,i,e){return new Date(t,i,e)}function oL(t,i){return i(t)}var EY="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function rL(t,i){return(e,n,o,r)=>r==null?mM:i(t(n))}function MY(t,i){let e=t.series[i];return e.width?e.stroke(t,i):e.points.width?e.points.stroke(t,i):null}function TY(t,i){return t.series[i].fill(t,i)}var IY={show:!0,live:!0,isolate:!1,mount:Yq,markers:{show:!0,width:2,stroke:MY,fill:TY,dash:"solid"},idx:null,idxs:null,values:[]};function kY(t,i){let e=t.cursor.points,n=ta(),o=e.size(t,i);di(n,af,o),di(n,sf,o);let r=o/-2;di(n,"marginLeft",r),di(n,"marginTop",r);let a=e.width(t,i,o);return a&&di(n,"borderWidth",a),n}function AY(t,i){let e=t.series[i].points;return e._fill||e._stroke}function RY(t,i){let e=t.series[i].points;return e._stroke||e._fill}function OY(t,i){return t.series[i].points.size}var JE=[0,0];function PY(t,i,e){return JE[0]=i,JE[1]=e,JE}function C0(t,i,e,n=!0){return o=>{o.button==0&&(!n||o.target==i)&&e(o)}}function eM(t,i,e,n=!0){return o=>{(!n||o.target==i)&&e(o)}}var NY={show:!0,x:!0,y:!0,lock:!1,move:PY,points:{one:!1,show:kY,size:OY,width:0,stroke:RY,fill:AY},bind:{mousedown:C0,mouseup:C0,click:C0,dblclick:C0,mousemove:eM,mouseleave:eM,mouseenter:eM},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(t,i)=>{i.stopPropagation(),i.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(t,i,e,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},BL={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},yM=Ni({},BL,{filter:SL}),jL=Ni({},yM,{size:10}),zL=Ni({},BL,{show:!1}),CM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',UL="bold "+CM,HL=1.5,aL={show:!0,scale:"x",stroke:uM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:UL,side:2,grid:yM,ticks:jL,border:zL,font:CM,lineGap:HL,rotate:0},FY="Value",LY="Time",sL={show:!0,scale:"x",auto:!1,sorted:1,min:Kn,max:-Kn,idxs:[]};function VY(t,i,e,n,o){return i.map(r=>r==null?"":gM(r))}function BY(t,i,e,n,o,r,a){let s=[],l=tc.get(o)||0;e=a?e:Zn(T0(e,o),l);for(let u=e;u<=n;u=Zn(u+o,l))s.push(Object.is(u,-0)?0:u);return s}function aM(t,i,e,n,o,r,a){let s=[],l=t.scales[t.axes[i].scale].log,u=l==10?Zs:wL,h=Ir(u(e));o=Dm(l,h),l==10&&(o=fd[Ba(o,fd)]);let g=e,y=o*l;l==10&&(y=fd[Ba(y,fd)]);do s.push(g),g=g+o,l==10&&!tc.has(g)&&(g=Zn(g,tc.get(o))),g>=y&&(o=g,y=o*l,l==10&&(y=fd[Ba(y,fd)]));while(g<=n);return s}function jY(t,i,e,n,o,r,a){let l=t.scales[t.axes[i].scale].asinh,u=n>l?aM(t,i,qo(l,e),n,o):[l],h=n>=0&&e<=0?[0]:[];return(e<-l?aM(t,i,qo(l,-n),-e,o):[l]).reverse().map(y=>-y).concat(h,u)}var WL=/./,zY=/[12357]/,UY=/[125]/,lL=/1/,sM=(t,i,e,n)=>t.map((o,r)=>i==4&&o==0||r%n==0&&e.test(o.toExponential()[o<0?1:0])?o:null);function HY(t,i,e,n,o){let r=t.axes[e],a=r.scale,s=t.scales[a],l=t.valToPos,u=r._space,h=l(10,a),g=l(9,a)-h>=u?WL:l(7,a)-h>=u?zY:l(5,a)-h>=u?UY:lL;if(g==lL){let y=Xi(l(1,a)-h);if(yo,uL={show:!0,auto:!0,sorted:0,gaps:$L,alpha:1,facets:[Ni({},dL,{scale:"x"}),Ni({},dL,{scale:"y"})]},mL={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:$L,alpha:1,points:{show:qY,filter:null},values:null,min:Kn,max:-Kn,idxs:[],path:null,clip:null};function YY(t,i,e,n,o){return e/10}var GL={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},QY=Ni({},GL,{time:!1,ori:1}),pL={};function qL(t,i){let e=pL[t];return e||(e={key:t,plots:[],sub(n){e.plots.push(n)},unsub(n){e.plots=e.plots.filter(o=>o!=n)},pub(n,o,r,a,s,l,u){for(let h=0;h{let F=a.pxRound,G=u.dir*(u.ori==0?1:-1),ve=u.ori==0?Im:km,oe,Ne;G==1?(oe=e,Ne=n):(oe=n,Ne=e);let Ce=F(g(s[oe],u,P,x)),Le=F(y(l[oe],h,j,S)),et=F(g(s[Ne],u,P,x)),Nt=F(y(r==1?h.max:h.min,h,j,S)),ht=new Path2D(o);return ve(ht,et,Nt),ve(ht,Ce,Nt),ve(ht,Ce,Le),ht})}function k0(t,i,e,n,o,r){let a=null;if(t.length>0){a=new Path2D;let s=i==0?O0:DM,l=e;for(let g=0;gy[0]){let x=y[0]-l;x>0&&s(a,l,n,x,n+r),l=y[1]}}let u=e+o-l,h=10;u>0&&s(a,l,n-h/2,u,n+r+h)}return a}function ZY(t,i,e){let n=t[t.length-1];n&&n[0]==i?n[1]=e:t.push([i,e])}function xM(t,i,e,n,o,r,a){let s=[],l=t.length;for(let u=o==1?e:n;u>=e&&u<=n;u+=o)if(i[u]===null){let g=u,y=u;if(o==1)for(;++u<=n&&i[u]===null;)y=u;else for(;--u>=e&&i[u]===null;)y=u;let x=r(t[g]),S=y==g?x:r(t[y]),P=g-o;x=a<=0&&P>=0&&P=0&&F>=0&&F=x&&s.push([x,S])}return s}function hL(t){return t==0?DL:t==1?Zi:i=>hd(i,t)}function YL(t){let i=t==0?A0:R0,e=t==0?(o,r,a,s,l,u)=>{o.arcTo(r,a,s,l,u)}:(o,r,a,s,l,u)=>{o.arcTo(a,r,l,s,u)},n=t==0?(o,r,a,s,l)=>{o.rect(r,a,s,l)}:(o,r,a,s,l)=>{o.rect(a,r,l,s)};return(o,r,a,s,l,u=0,h=0)=>{u==0&&h==0?n(o,r,a,s,l):(u=ja(u,s/2,l/2),h=ja(h,s/2,l/2),i(o,r+u,a),e(o,r+s,a,r+s,a+l,u),e(o,r+s,a+l,r,a+l,h),e(o,r,a+l,r,a,h),e(o,r,a,r+s,a,u),o.closePath())}}var A0=(t,i,e)=>{t.moveTo(i,e)},R0=(t,i,e)=>{t.moveTo(e,i)},Im=(t,i,e)=>{t.lineTo(i,e)},km=(t,i,e)=>{t.lineTo(e,i)},O0=YL(0),DM=YL(1),QL=(t,i,e,n,o,r)=>{t.arc(i,e,n,o,r)},KL=(t,i,e,n,o,r)=>{t.arc(e,i,n,o,r)},ZL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(i,e,n,o,r,a)},XL=(t,i,e,n,o,r,a)=>{t.bezierCurveTo(e,i,o,n,a,r)};function JL(t){return(i,e,n,o,r)=>bd(i,e,(a,s,l,u,h,g,y,x,S,P,j)=>{let{pxRound:F,points:G}=a,ve,oe;u.ori==0?(ve=A0,oe=QL):(ve=R0,oe=KL);let Ne=Zn(G.width*kn,3),Ce=(G.size-G.width)/2*kn,Le=Zn(Ce*2,3),et=new Path2D,Nt=new Path2D,{left:ht,top:Se,width:Tt,height:qe}=i.bbox;O0(Nt,ht-Le,Se-Le,Tt+Le*2,qe+Le*2);let It=ot=>{if(l[ot]!=null){let pe=F(g(s[ot],u,P,x)),ae=F(y(l[ot],h,j,S));ve(et,pe+Ce,ae),oe(et,pe,ae,Ce,0,w0*2)}};if(r)r.forEach(It);else for(let ot=n;ot<=o;ot++)It(ot);return{stroke:Ne>0?et:null,fill:et,clip:Nt,flags:Mm|lM}})}function eV(t){return(i,e,n,o,r,a)=>{n!=o&&(r!=n&&a!=n&&t(i,e,n),r!=o&&a!=o&&t(i,e,o),t(i,e,a))}}var XY=eV(Im),JY=eV(km);function tV(t){let i=xn(t?.alignGaps,0);return(e,n,o,r)=>bd(e,n,(a,s,l,u,h,g,y,x,S,P,j)=>{[o,r]=E0(l,o,r);let F=a.pxRound,G=qe=>F(g(qe,u,P,x)),ve=qe=>F(y(qe,h,j,S)),oe,Ne;u.ori==0?(oe=Im,Ne=XY):(oe=km,Ne=JY);let Ce=u.dir*(u.ori==0?1:-1),Le={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},et=Le.stroke,Nt=!1;if(r-o>=P*4){let qe=Ve=>e.posToVal(Ve,u.key,!0),It=null,ot=null,pe,ae,He,nt=G(s[Ce==1?o:r]),gt=G(s[o]),Qt=G(s[r]),ft=qe(Ce==1?gt+1:Qt-1);for(let Ve=Ce==1?o:r;Ve>=o&&Ve<=r;Ve+=Ce){let jt=s[Ve],Xn=(Ce==1?jtft)?nt:G(jt),Rt=l[Ve];Xn==nt?Rt!=null?(ae=Rt,It==null?(oe(et,Xn,ve(ae)),pe=It=ot=ae):aeot&&(ot=ae)):Rt===null&&(Nt=!0):(It!=null&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae)),Rt!=null?(ae=Rt,oe(et,Xn,ve(ae)),It=ot=pe=ae):(It=ot=null,Rt===null&&(Nt=!0)),nt=Xn,ft=qe(nt+Ce))}It!=null&&It!=ot&&He!=nt&&Ne(et,nt,ve(It),ve(ot),ve(pe),ve(ae))}else for(let qe=Ce==1?o:r;qe>=o&&qe<=r;qe+=Ce){let It=l[qe];It===null?Nt=!0:It!=null&&oe(et,G(s[qe]),ve(It))}let[Se,Tt]=wM(e,n);if(a.fill!=null||Se!=0){let qe=Le.fill=new Path2D(et),It=a.fillTo(e,n,a.min,a.max,Se),ot=ve(It),pe=G(s[o]),ae=G(s[r]);Ce==-1&&([ae,pe]=[pe,ae]),oe(qe,ae,ot),oe(qe,pe,ot)}if(!a.spanGaps){let qe=[];Nt&&qe.push(...xM(s,l,o,r,Ce,G,i)),Le.gaps=qe=a.gaps(e,n,o,r,qe),Le.clip=k0(qe,u.ori,x,S,P,j)}return Tt!=0&&(Le.band=Tt==2?[Xs(e,n,o,r,et,-1),Xs(e,n,o,r,et,1)]:Xs(e,n,o,r,et,Tt)),Le})}function eQ(t){let i=xn(t.align,1),e=xn(t.ascDesc,!1),n=xn(t.alignGaps,0),o=xn(t.extend,!1);return(r,a,s,l)=>bd(r,a,(u,h,g,y,x,S,P,j,F,G,ve)=>{[s,l]=E0(g,s,l);let oe=u.pxRound,{left:Ne,width:Ce}=r.bbox,Le=gt=>oe(S(gt,y,G,j)),et=gt=>oe(P(gt,x,ve,F)),Nt=y.ori==0?Im:km,ht={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Mm},Se=ht.stroke,Tt=y.dir*(y.ori==0?1:-1),qe=et(g[Tt==1?s:l]),It=Le(h[Tt==1?s:l]),ot=It,pe=It;o&&i==-1&&(pe=Ne,Nt(Se,pe,qe)),Nt(Se,It,qe);for(let gt=Tt==1?s:l;gt>=s&><=l;gt+=Tt){let Qt=g[gt];if(Qt==null)continue;let ft=Le(h[gt]),Ve=et(Qt);i==1?Nt(Se,ft,qe):Nt(Se,ot,Ve),Nt(Se,ft,Ve),qe=Ve,ot=ft}let ae=ot;o&&i==1&&(ae=Ne+Ce,Nt(Se,ae,qe));let[He,nt]=wM(r,a);if(u.fill!=null||He!=0){let gt=ht.fill=new Path2D(Se),Qt=u.fillTo(r,a,u.min,u.max,He),ft=et(Qt);Nt(gt,ae,ft),Nt(gt,pe,ft)}if(!u.spanGaps){let gt=[];gt.push(...xM(h,g,s,l,Tt,Le,n));let Qt=u.width*kn/2,ft=e||i==1?Qt:-Qt,Ve=e||i==-1?-Qt:Qt;gt.forEach(jt=>{jt[0]+=ft,jt[1]+=Ve}),ht.gaps=gt=u.gaps(r,a,s,l,gt),ht.clip=k0(gt,y.ori,j,F,G,ve)}return nt!=0&&(ht.band=nt==2?[Xs(r,a,s,l,Se,-1),Xs(r,a,s,l,Se,1)]:Xs(r,a,s,l,Se,nt)),ht})}function fL(t,i,e,n,o,r,a=Kn){if(t.length>1){let s=null;for(let l=0,u=1/0;l{}),{fill:g,stroke:y}=u;return(x,S,P,j)=>bd(x,S,(F,G,ve,oe,Ne,Ce,Le,et,Nt,ht,Se)=>{let Tt=F.pxRound,qe=e,It=n*kn,ot=s*kn,pe=l*kn,ae,He;oe.ori==0?[ae,He]=r(x,S):[He,ae]=r(x,S);let nt=oe.dir*(oe.ori==0?1:-1),gt=oe.ori==0?O0:DM,Qt=oe.ori==0?h:(Pe,ei,Vi,Pd,sc,Ga,lc)=>{h(Pe,ei,Vi,sc,Pd,lc,Ga)},ft=xn(x.bands,_M).find(Pe=>Pe.series[0]==S),Ve=ft!=null?ft.dir:0,jt=F.fillTo(x,S,F.min,F.max,Ve),eo=Tt(Le(jt,Ne,Se,Nt)),Xn,Rt,Li,Jn=ht,jn=Tt(F.width*kn),Qo=!1,xs=null,Or=null,al=null,Ad=null;g!=null&&(jn==0||y!=null)&&(Qo=!0,xs=g.values(x,S,P,j),Or=new Map,new Set(xs).forEach(Pe=>{Pe!=null&&Or.set(Pe,new Path2D)}),jn>0&&(al=y.values(x,S,P,j),Ad=new Map,new Set(al).forEach(Pe=>{Pe!=null&&Ad.set(Pe,new Path2D)})));let{x0:Rd,size:Hm}=u;if(Rd!=null&&Hm!=null){qe=1,G=Rd.values(x,S,P,j),Rd.unit==2&&(G=G.map(Vi=>x.posToVal(et+Vi*ht,oe.key,!0)));let Pe=Hm.values(x,S,P,j);Hm.unit==2?Rt=Pe[0]*ht:Rt=Ce(Pe[0],oe,ht,et)-Ce(0,oe,ht,et),Jn=fL(G,ve,Ce,oe,ht,et,Jn),Li=Jn-Rt+It}else Jn=fL(G,ve,Ce,oe,ht,et,Jn),Li=Jn*a+It,Rt=Jn-Li;Li<1&&(Li=0),jn>=Rt/2&&(jn=0),Li<5&&(Tt=DL);let If=Li>0,rc=Jn-Li-(If?jn:0);Rt=Tt(rM(rc,pe,ot)),Xn=(qe==0?Rt/2:qe==nt?0:Rt)-qe*nt*((qe==0?It/2:0)+(If?jn/2:0));let Mo={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Od=Qo?null:new Path2D,Ds=null;if(ft!=null)Ds=x.data[ft.series[1]];else{let{y0:Pe,y1:ei}=u;Pe!=null&&ei!=null&&(ve=ei.values(x,S,P,j),Ds=Pe.values(x,S,P,j))}let ac=ae*Rt,Wt=He*Rt;for(let Pe=nt==1?P:j;Pe>=P&&Pe<=j;Pe+=nt){let ei=ve[Pe];if(ei==null)continue;if(Ds!=null){let Ko=Ds[Pe]??0;if(ei-Ko==0)continue;eo=Le(Ko,Ne,Se,Nt)}let Vi=oe.distr!=2||u!=null?G[Pe]:Pe,Pd=Ce(Vi,oe,ht,et),sc=Le(xn(ei,jt),Ne,Se,Nt),Ga=Tt(Pd-Xn),lc=Tt(qo(sc,eo)),lr=Tt(ja(sc,eo)),Pr=lc-lr;if(ei!=null){let Ko=ei<0?Wt:ac,la=ei<0?ac:Wt;Qo?(jn>0&&al[Pe]!=null&>(Ad.get(al[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),xs[Pe]!=null&>(Or.get(xs[Pe]),Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la)):gt(Od,Ga,lr+Ir(jn/2),Rt,qo(0,Pr-jn),Ko,la),Qt(x,S,Pe,Ga-jn/2,lr,Rt+jn,Pr)}}return jn>0?Mo.stroke=Qo?Ad:Od:Qo||(Mo._fill=F.width==0?F._fill:F._stroke??F._fill,Mo.width=0),Mo.fill=Qo?Or:Od,Mo})}function nQ(t,i){let e=xn(i?.alignGaps,0);return(n,o,r,a)=>bd(n,o,(s,l,u,h,g,y,x,S,P,j,F)=>{[r,a]=E0(u,r,a);let G=s.pxRound,ve=ae=>G(y(ae,h,j,S)),oe=ae=>G(x(ae,g,F,P)),Ne,Ce,Le;h.ori==0?(Ne=A0,Le=Im,Ce=ZL):(Ne=R0,Le=km,Ce=XL);let et=h.dir*(h.ori==0?1:-1),Nt=ve(l[et==1?r:a]),ht=Nt,Se=[],Tt=[];for(let ae=et==1?r:a;ae>=r&&ae<=a;ae+=et)if(u[ae]!=null){let nt=l[ae],gt=ve(nt);Se.push(ht=gt),Tt.push(oe(u[ae]))}let qe={stroke:t(Se,Tt,Ne,Le,Ce,G),fill:null,clip:null,band:null,gaps:null,flags:Mm},It=qe.stroke,[ot,pe]=wM(n,o);if(s.fill!=null||ot!=0){let ae=qe.fill=new Path2D(It),He=s.fillTo(n,o,s.min,s.max,ot),nt=oe(He);Le(ae,ht,nt),Le(ae,Nt,nt)}if(!s.spanGaps){let ae=[];ae.push(...xM(l,u,r,a,et,ve,e)),qe.gaps=ae=s.gaps(n,o,r,a,ae),qe.clip=k0(ae,h.ori,S,P,j,F)}return pe!=0&&(qe.band=pe==2?[Xs(n,o,r,a,It,-1),Xs(n,o,r,a,It,1)]:Xs(n,o,r,a,It,pe)),qe})}function iQ(t){return nQ(oQ,t)}function oQ(t,i,e,n,o,r){let a=t.length;if(a<2)return null;let s=new Path2D;if(e(s,t[0],i[0]),a==2)n(s,t[1],i[1]);else{let l=Array(a),u=Array(a-1),h=Array(a-1),g=Array(a-1);for(let y=0;y0!=u[y]>0?l[y]=0:(l[y]=3*(g[y-1]+g[y])/((2*g[y]+g[y-1])/u[y-1]+(g[y]+2*g[y-1])/u[y]),isFinite(l[y])||(l[y]=0));l[a-1]=u[a-2];for(let y=0;y{Ti.pxRatio=kn}));var rQ=tV(),aQ=JL();function _L(t,i,e,n){return(n?[t[0],t[1]].concat(t.slice(2)):[t[0]].concat(t.slice(1))).map((r,a)=>dM(r,a,i,e))}function sQ(t,i){return t.map((e,n)=>n==0?{}:Ni({},i,e))}function dM(t,i,e,n){return Ni({},i==0?e:n,t)}function nV(t,i,e){return i==null?Sm:[i,e]}var lQ=nV;function cQ(t,i,e){return i==null?Sm:D0(i,e,fM,!0)}function iV(t,i,e,n){return i==null?Sm:M0(i,e,t.scales[n].log,!1)}var dQ=iV;function oV(t,i,e,n){return i==null?Sm:hM(i,e,t.scales[n].log,!1)}var uQ=oV;function mQ(t,i,e,n,o){let r=qo(Q2(t),Q2(i)),a=i-t,s=Ba(o/n*a,e);do{let l=e[s],u=n*l/a;if(u>=o&&r+(l<5?tc.get(l):0)<=17)return[l,u]}while(++s(i=Zi((e=+o)*kn))+"px"),[t,i,e]}function pQ(t){t.show&&[t.font,t.labelFont].forEach(i=>{let e=Zn(i[2]*kn,1);i[0]=i[0].replace(/[0-9.]+px/,e+"px"),i[1]=e})}function Ti(t,i,e){let n={mode:xn(t.mode,1)},o=n.mode;function r(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?1-N:N)}function a(v,C,E,M){let N=C.valToPct(v);return M+E*(C.dir==-1?N:1-N)}function s(v,C,E,M){return C.ori==0?r(v,C,E,M):a(v,C,E,M)}n.valToPosH=r,n.valToPosV=a;let l=!1;n.status=0;let u=n.root=ta(yq);if(t.id!=null&&(u.id=t.id),Tr(u,t.class),t.title){let v=ta(xq,u);v.textContent=t.title}let h=Va("canvas"),g=n.ctx=h.getContext("2d"),y=ta(Dq,u);_d("click",y,v=>{v.target===S&&(oi!=$d||ui!=Gd)&&uo.click(n,v)},!0);let x=n.under=ta(Sq,y);y.appendChild(h);let S=n.over=ta(Eq,y);t=Em(t);let P=+xn(t.pxAlign,1),j=hL(P);(t.plugins||[]).forEach(v=>{v.opts&&(t=v.opts(n,t)||t)});let F=t.ms||.001,G=n.series=o==1?_L(t.series||[],sL,mL,!1):sQ(t.series||[null],uL),ve=n.axes=_L(t.axes||[],aL,cL,!0),oe=n.scales={},Ne=n.bands=t.bands||[];Ne.forEach(v=>{v.fill=ln(v.fill||null),v.dir=xn(v.dir,-1)});let Ce=o==2?G[1].facets[0].scale:G[0].scale,Le={axes:r4,series:e4},et=(t.drawOrder||["axes","series"]).map(v=>Le[v]);function Nt(v){let C=v.distr==3?E=>Zs(E>0?E:v.clamp(n,E,v.min,v.max,v.key)):v.distr==4?E=>ZE(E,v.asinh):v.distr==100?E=>v.fwd(E):E=>E;return E=>{let M=C(E),{_min:N,_max:U}=v,re=U-N;return(M-N)/re}}function ht(v){let C=oe[v];if(C==null){let E=(t.scales||df)[v]||df;if(E.from!=null){ht(E.from);let M=Ni({},oe[E.from],E,{key:v});M.valToPct=Nt(M),oe[v]=M}else{C=oe[v]=Ni({},v==Ce?GL:QY,E),C.key=v;let M=C.time,N=C.range,U=ec(N);if((v!=Ce||o==2&&!M)&&(U&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?G2:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?G2:{mode:1,hard:N[1],soft:N[1]}},U=!1),!U&&I0(N))){let re=N;N=(he,ye,Ae)=>ye==null?Sm:D0(ye,Ae,re)}C.range=ln(N||(M?lQ:v==Ce?C.distr==3?dQ:C.distr==4?uQ:nV:C.distr==3?iV:C.distr==4?oV:cQ)),C.auto=ln(U?!1:C.auto),C.clamp=ln(C.clamp||YY),C._min=C._max=null,C.valToPct=Nt(C)}}}ht("x"),ht("y"),o==1&&G.forEach(v=>{ht(v.scale)}),ve.forEach(v=>{ht(v.scale)});for(let v in t.scales)ht(v);let Se=oe[Ce],Tt=Se.distr,qe,It;Se.ori==0?(Tr(u,Cq),qe=r,It=a):(Tr(u,wq),qe=a,It=r);let ot={};for(let v in oe){let C=oe[v];(C.min!=null||C.max!=null)&&(ot[v]={min:C.min,max:C.max},C.min=C.max=null)}let pe=t.tzDate||(v=>new Date(Zi(v/F))),ae=t.fmtDate||vM,He=F==1?CY(pe):DY(pe),nt=iL(pe,nL(F==1?yY:xY,ae)),gt=rL(pe,oL(EY,ae)),Qt=[],ft=n.legend=Ni({},IY,t.legend),Ve=n.cursor=Ni({},NY,{drag:{y:o==2}},t.cursor),jt=ft.show,eo=Ve.show,Xn=ft.markers;ft.idxs=Qt,Xn.width=ln(Xn.width),Xn.dash=ln(Xn.dash),Xn.stroke=ln(Xn.stroke),Xn.fill=ln(Xn.fill);let Rt,Li,Jn,jn=[],Qo=[],xs,Or=!1,al={};if(ft.live){let v=G[1]?G[1].values:null;Or=v!=null,xs=Or?v(n,1,0):{_:0};for(let C in xs)al[C]=mM}if(jt)if(Rt=Va("table",Rq,u),Jn=Va("tbody",null,Rt),ft.mount(n,Rt),Or){Li=Va("thead",null,Rt,Jn);let v=Va("tr",null,Li);Va("th",null,v);for(var Ad in xs)Va("th",O2,v).textContent=Ad}else Tr(Rt,Pq),ft.live&&Tr(Rt,Oq);let Rd={show:!0},Hm={show:!1};function If(v,C){if(C==0&&(Or||!ft.live||o==2))return Sm;let E=[],M=Va("tr",Nq,Jn,Jn.childNodes[C]);Tr(M,v.class),v.show||Tr(M,gd);let N=Va("th",null,M);if(Xn.show){let he=ta(Fq,N);if(C>0){let ye=Xn.width(n,C);ye&&(he.style.border=ye+"px "+Xn.dash(n,C)+" "+Xn.stroke(n,C)),he.style.background=Xn.fill(n,C)}}let U=ta(O2,N);v.label instanceof HTMLElement?U.appendChild(v.label):U.textContent=v.label,C>0&&(Xn.show||(U.style.color=v.width>0?Xn.stroke(n,C):Xn.fill(n,C)),Mo("click",N,he=>{if(Ve._lock)return;dc(he);let ye=G.indexOf(v);if((he.ctrlKey||he.metaKey)!=ft.isolate){let Ae=G.some((Oe,Be)=>Be>0&&Be!=ye&&Oe.show);G.forEach((Oe,Be)=>{Be>0&&Ya(Be,Ae?Be==ye?Rd:Hm:Rd,!0,Ii.setSeries)})}else Ya(ye,{show:!v.show},!0,Ii.setSeries)},!1),Fd&&Mo(L2,N,he=>{Ve._lock||(dc(he),Ya(G.indexOf(v),Yd,!0,Ii.setSeries))},!1));for(var re in xs){let he=Va("td",Lq,M);he.textContent="--",E.push(he)}return[M,E]}let rc=new Map;function Mo(v,C,E,M=!0){let N=rc.get(C)||{},U=Ve.bind[v](n,C,E,M);U&&(_d(v,C,N[v]=U),rc.set(C,N))}function Od(v,C,E){let M=rc.get(C)||{};for(let N in M)(v==null||N==v)&&(oM(N,C,M[N]),delete M[N]);v==null&&rc.delete(C)}let Ds=0,ac=0,Wt=0,Pe=0,ei=0,Vi=0,Pd=ei,sc=Vi,Ga=Wt,lc=Pe,lr=0,Pr=0,Ko=0,la=0;n.bbox={};let Hy=!1,kf=!1,Nd=!1,cc=!1,Af=!1,Nr=!1;function Wy(v,C,E){(E||v!=n.width||C!=n.height)&&sT(v,C),zd(!1),Nd=!0,kf=!0,Ud()}function sT(v,C){n.width=Ds=Wt=v,n.height=ac=Pe=C,ei=Vi=0,qj(),Yj();let E=n.bbox;lr=E.left=hd(ei*kn,.5),Pr=E.top=hd(Vi*kn,.5),Ko=E.width=hd(Wt*kn,.5),la=E.height=hd(Pe*kn,.5)}let Wj=3;function $j(){let v=!1,C=0;for(;!v;){C++;let E=i4(C),M=o4(C);v=C==Wj||E&&M,v||(sT(n.width,n.height),kf=!0)}}function Gj({width:v,height:C}){Wy(v,C)}n.setSize=Gj;function qj(){let v=!1,C=!1,E=!1,M=!1;ve.forEach((N,U)=>{if(N.show&&N._show){let{side:re,_size:he}=N,ye=re%2,Ae=N.label!=null?N.labelSize:0,Oe=he+Ae;Oe>0&&(ye?(Wt-=Oe,re==3?(ei+=Oe,M=!0):E=!0):(Pe-=Oe,re==0?(Vi+=Oe,v=!0):C=!0))}}),uc[0]=v,uc[1]=E,uc[2]=C,uc[3]=M,Wt-=sl[1]+sl[3],ei+=sl[3],Pe-=sl[2]+sl[0],Vi+=sl[0]}function Yj(){let v=ei+Wt,C=Vi+Pe,E=ei,M=Vi;function N(U,re){switch(U){case 1:return v+=re,v-re;case 2:return C+=re,C-re;case 3:return E-=re,E+re;case 0:return M-=re,M+re}}ve.forEach((U,re)=>{if(U.show&&U._show){let he=U.side;U._pos=N(he,U._size),U.label!=null&&(U._lpos=N(he,U.labelSize))}})}if(Ve.dataIdx==null){let v=Ve.hover,C=v.skip=new Set(v.skip??[]);C.add(void 0);let E=v.prox=ln(v.prox),M=v.bias??=0;Ve.dataIdx=(N,U,re,he)=>{if(U==0)return re;let ye=re,Ae=E(N,U,re,he)??Kn,Oe=Ae>=0&&Ae0;)C.has(vn[rt])||(tn=rt);if(M==0||M==1)for(rt=re;St==null&&rt++Ae&&(ye=null);return ye}}let dc=v=>{Ve.event=v};Ve.idxs=Qt,Ve._lock=!1;let _o=Ve.points;_o.show=ln(_o.show),_o.size=ln(_o.size),_o.stroke=ln(_o.stroke),_o.width=ln(_o.width),_o.fill=ln(_o.fill);let qa=n.focus=Ni({},t.focus||{alpha:.3},Ve.focus),Fd=qa.prox>=0,Ld=Fd&&_o.one,Fr=[],Vd=[],Bd=[];function lT(v,C){let E=_o.show(n,C);if(E instanceof HTMLElement)return Tr(E,Aq),Tr(E,v.class),ys(E,-10,-10,Wt,Pe),S.insertBefore(E,Fr[C]),E}function cT(v,C){if(o==1||C>0){let E=o==1&&oe[v.scale].time,M=v.value;v.value=E?X2(M)?rL(pe,oL(M,ae)):M||gt:M||$Y,v.label=v.label||(E?LY:FY)}if(Ld||C>0){v.width=v.width==null?1:v.width,v.paths=v.paths||rQ||Qq,v.fillTo=ln(v.fillTo||KY),v.pxAlign=+xn(v.pxAlign,P),v.pxRound=hL(v.pxAlign),v.stroke=ln(v.stroke||null),v.fill=ln(v.fill||null),v._stroke=v._fill=v._paths=v._focus=null;let E=GY(qo(1,v.width),1),M=v.points=Ni({},{size:E,width:qo(1,E*.2),stroke:v.stroke,space:E*2,paths:aQ,_stroke:null,_fill:null},v.points);M.show=ln(M.show),M.filter=ln(M.filter),M.fill=ln(M.fill),M.stroke=ln(M.stroke),M.paths=ln(M.paths),M.pxAlign=v.pxAlign}if(jt){let E=If(v,C);jn.splice(C,0,E[0]),Qo.splice(C,0,E[1]),ft.values.push(null)}if(eo){Qt.splice(C,0,null);let E=null;Ld?C==0&&(E=lT(v,C)):C>0&&(E=lT(v,C)),Fr.splice(C,0,E),Vd.splice(C,0,0),Bd.splice(C,0,0)}ro("addSeries",C)}function Qj(v,C){C=C??G.length,v=o==1?dM(v,C,sL,mL):dM(v,C,{},uL),G.splice(C,0,v),cT(G[C],C)}n.addSeries=Qj;function Kj(v){if(G.splice(v,1),jt){ft.values.splice(v,1),Qo.splice(v,1);let C=jn.splice(v,1)[0];Od(null,C.firstChild),C.remove()}eo&&(Qt.splice(v,1),Fr.splice(v,1)[0].remove(),Vd.splice(v,1),Bd.splice(v,1)),ro("delSeries",v)}n.delSeries=Kj;let uc=[!1,!1,!1,!1];function Zj(v,C){if(v._show=v.show,v.show){let E=v.side%2,M=oe[v.scale];M==null&&(v.scale=E?G[1].scale:Ce,M=oe[v.scale]);let N=M.time;v.size=ln(v.size),v.space=ln(v.space),v.rotate=ln(v.rotate),ec(v.incrs)&&v.incrs.forEach(re=>{!tc.has(re)&&tc.set(re,ML(re))}),v.incrs=ln(v.incrs||(M.distr==2?_Y:N?F==1?bY:wY:fd)),v.splits=ln(v.splits||(N&&M.distr==1?He:M.distr==3?aM:M.distr==4?jY:BY)),v.stroke=ln(v.stroke),v.grid.stroke=ln(v.grid.stroke),v.ticks.stroke=ln(v.ticks.stroke),v.border.stroke=ln(v.border.stroke);let U=v.values;v.values=ec(U)&&!ec(U[0])?ln(U):N?ec(U)?iL(pe,nL(U,ae)):X2(U)?SY(pe,U):U||nt:U||VY,v.filter=ln(v.filter||(M.distr>=3&&M.log==10?HY:M.distr==3&&M.log==2?WY:SL)),v.font=vL(v.font),v.labelFont=vL(v.labelFont),v._size=v.size(n,null,C,0),v._space=v._rotate=v._incrs=v._found=v._splits=v._values=null,v._size>0&&(uc[C]=!0,v._el=ta(Mq,y))}}function Wm(v,C,E,M){let[N,U,re,he]=E,ye=C%2,Ae=0;return ye==0&&(he||U)&&(Ae=C==0&&!N||C==2&&!re?Zi(aL.size/3):0),ye==1&&(N||re)&&(Ae=C==1&&!U||C==3&&!he?Zi(cL.size/2):0),Ae}let dT=n.padding=(t.padding||[Wm,Wm,Wm,Wm]).map(v=>ln(xn(v,Wm))),sl=n._padding=dT.map((v,C)=>v(n,C,uc,0)),co,to=null,no=null,Rf=o==1?G[0].idxs:null,ca=null,$m=!1;function uT(v,C){if(i=v??[],n.data=n._data=i,o==2){co=0;for(let E=1;E=0,Nr=!0,Ud()}}n.setData=uT;function $y(){$m=!0;let v,C;o==1&&(co>0?(to=Rf[0]=0,no=Rf[1]=co-1,v=i[0][to],C=i[0][no],Tt==2?(v=to,C=no):v==C&&(Tt==3?[v,C]=M0(v,v,Se.log,!1):Tt==4?[v,C]=hM(v,v,Se.log,!1):Se.time?C=v+Zi(86400/F):[v,C]=D0(v,C,fM,!0))):(to=Rf[0]=v=null,no=Rf[1]=C=null)),cl(Ce,v,C)}let Of,jd,Gy,qy,Yy,Qy,Ky,Zy,Xy,Zo;function mT(v,C,E,M,N,U){v??=N2,E??=_M,M??="butt",N??=N2,U??="round",v!=Of&&(g.strokeStyle=Of=v),N!=jd&&(g.fillStyle=jd=N),C!=Gy&&(g.lineWidth=Gy=C),U!=Yy&&(g.lineJoin=Yy=U),M!=Qy&&(g.lineCap=Qy=M),E!=qy&&g.setLineDash(qy=E)}function pT(v,C,E,M){C!=jd&&(g.fillStyle=jd=C),v!=Ky&&(g.font=Ky=v),E!=Zy&&(g.textAlign=Zy=E),M!=Xy&&(g.textBaseline=Xy=M)}function Jy(v,C,E,M,N=0){if(M.length>0&&v.auto(n,$m)&&(C==null||C.min==null)){let U=xn(to,0),re=xn(no,M.length-1),he=E.min==null?Hq(M,U,re,N,v.distr==3):[E.min,E.max];v.min=ja(v.min,E.min=he[0]),v.max=qo(v.max,E.max=he[1])}}let hT={min:null,max:null};function Xj(){for(let M in oe){let N=oe[M];ot[M]==null&&(N.min==null||ot[Ce]!=null&&N.auto(n,$m))&&(ot[M]=hT)}for(let M in oe){let N=oe[M];ot[M]==null&&N.from!=null&&ot[N.from]!=null&&(ot[M]=hT)}ot[Ce]!=null&&zd(!0);let v={};for(let M in ot){let N=ot[M];if(N!=null){let U=v[M]=Em(oe[M],Xq);if(N.min!=null)Ni(U,N);else if(M!=Ce||o==2)if(co==0&&U.from==null){let re=U.range(n,null,null,M);U.min=re[0],U.max=re[1]}else U.min=Kn,U.max=-Kn}}if(co>0){G.forEach((M,N)=>{if(o==1){let U=M.scale,re=ot[U];if(re==null)return;let he=v[U];if(N==0){let ye=he.range(n,he.min,he.max,U);he.min=ye[0],he.max=ye[1],to=Ba(he.min,i[0]),no=Ba(he.max,i[0]),no-to>1&&(i[0][to]he.max&&no--),M.min=ca[to],M.max=ca[no]}else M.show&&M.auto&&Jy(he,re,M,i[N],M.sorted);M.idxs[0]=to,M.idxs[1]=no}else if(N>0&&M.show&&M.auto){let[U,re]=M.facets,he=U.scale,ye=re.scale,[Ae,Oe]=i[N],Be=v[he],Lt=v[ye];Be!=null&&Jy(Be,ot[he],U,Ae,U.sorted),Lt!=null&&Jy(Lt,ot[ye],re,Oe,re.sorted),M.min=re.min,M.max=re.max}});for(let M in v){let N=v[M],U=ot[M];if(N.from==null&&(U==null||U.min==null)){let re=N.range(n,N.min==Kn?null:N.min,N.max==-Kn?null:N.max,M);N.min=re[0],N.max=re[1]}}}for(let M in v){let N=v[M];if(N.from!=null){let U=v[N.from];if(U.min==null)N.min=N.max=null;else{let re=N.range(n,U.min,U.max,M);N.min=re[0],N.max=re[1]}}}let C={},E=!1;for(let M in v){let N=v[M],U=oe[M];if(U.min!=N.min||U.max!=N.max){U.min=N.min,U.max=N.max;let re=U.distr;U._min=re==3?Zs(U.min):re==4?ZE(U.min,U.asinh):re==100?U.fwd(U.min):U.min,U._max=re==3?Zs(U.max):re==4?ZE(U.max,U.asinh):re==100?U.fwd(U.max):U.max,C[M]=E=!0}}if(E){G.forEach((M,N)=>{o==2?N>0&&C.y&&(M._paths=null):C[M.scale]&&(M._paths=null)});for(let M in C)Nd=!0,ro("setScale",M);eo&&Ve.left>=0&&(cc=Nr=!0)}for(let M in ot)ot[M]=null}function Jj(v){let C=rM(to-1,0,co-1),E=rM(no+1,0,co-1);for(;v[C]==null&&C>0;)C--;for(;v[E]==null&&E0){let v=G.some(C=>C._focus)&&Zo!=qa.alpha;v&&(g.globalAlpha=Zo=qa.alpha),G.forEach((C,E)=>{if(E>0&&C.show&&(fT(E,!1),fT(E,!0),C._paths==null)){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha);let N=o==2?[0,i[E][0].length-1]:Jj(i[E]);C._paths=C.paths(n,E,N[0],N[1]),Zo!=M&&(g.globalAlpha=Zo=M)}}),G.forEach((C,E)=>{if(E>0&&C.show){let M=Zo;Zo!=C.alpha&&(g.globalAlpha=Zo=C.alpha),C._paths!=null&&gT(E,!1);{let N=C._paths!=null?C._paths.gaps:null,U=C.points.show(n,E,to,no,N),re=C.points.filter(n,E,U,N);(U||re)&&(C.points._paths=C.points.paths(n,E,to,no,re),gT(E,!0))}Zo!=M&&(g.globalAlpha=Zo=M),ro("drawSeries",E)}}),v&&(g.globalAlpha=Zo=1)}}function fT(v,C){let E=C?G[v].points:G[v];E._stroke=E.stroke(n,v),E._fill=E.fill(n,v)}function gT(v,C){let E=C?G[v].points:G[v],{stroke:M,fill:N,clip:U,flags:re,_stroke:he=E._stroke,_fill:ye=E._fill,_width:Ae=E.width}=E._paths;Ae=Zn(Ae*kn,3);let Oe=null,Be=Ae%2/2;C&&ye==null&&(ye=Ae>0?"#fff":he);let Lt=E.pxAlign==1&&Be>0;if(Lt&&g.translate(Be,Be),!C){let Dn=lr-Ae/2,vn=Pr-Ae/2,tn=Ko+Ae,St=la+Ae;Oe=new Path2D,Oe.rect(Dn,vn,tn,St)}C?eC(he,Ae,E.dash,E.cap,ye,M,N,re,U):t4(v,he,Ae,E.dash,E.cap,ye,M,N,re,Oe,U),Lt&&g.translate(-Be,-Be)}function t4(v,C,E,M,N,U,re,he,ye,Ae,Oe){let Be=!1;ye!=0&&Ne.forEach((Lt,Dn)=>{if(Lt.series[0]==v){let vn=G[Lt.series[1]],tn=i[Lt.series[1]],St=(vn._paths||df).band;ec(St)&&(St=Lt.dir==1?St[0]:St[1]);let rt,ai=null;vn.show&&St&&$q(tn,to,no)?(ai=Lt.fill(n,Dn)||U,rt=vn._paths.clip):St=null,eC(C,E,M,N,ai,re,he,ye,Ae,Oe,rt,St),Be=!0}}),Be||eC(C,E,M,N,U,re,he,ye,Ae,Oe)}let _T=Mm|lM;function eC(v,C,E,M,N,U,re,he,ye,Ae,Oe,Be){mT(v,C,E,M,N),(ye||Ae||Be)&&(g.save(),ye&&g.clip(ye),Ae&&g.clip(Ae)),Be?(he&_T)==_T?(g.clip(Be),Oe&&g.clip(Oe),Nf(N,re),Pf(v,U,C)):he&lM?(Nf(N,re),g.clip(Be),Pf(v,U,C)):he&Mm&&(g.save(),g.clip(Be),Oe&&g.clip(Oe),Nf(N,re),g.restore(),Pf(v,U,C)):(Nf(N,re),Pf(v,U,C)),(ye||Ae||Be)&&g.restore()}function Pf(v,C,E){E>0&&(C instanceof Map?C.forEach((M,N)=>{g.strokeStyle=Of=N,g.stroke(M)}):C!=null&&v&&g.stroke(C))}function Nf(v,C){C instanceof Map?C.forEach((E,M)=>{g.fillStyle=jd=M,g.fill(E)}):C!=null&&v&&g.fill(C)}function n4(v,C,E,M){let N=ve[v],U;if(M<=0)U=[0,0];else{let re=N._space=N.space(n,v,C,E,M),he=N._incrs=N.incrs(n,v,C,E,M,re);U=mQ(C,E,he,M,re)}return N._found=U}function tC(v,C,E,M,N,U,re,he,ye,Ae){let Oe=re%2/2;P==1&&g.translate(Oe,Oe),mT(he,re,ye,Ae,he),g.beginPath();let Be,Lt,Dn,vn,tn=N+(M==0||M==3?-U:U);E==0?(Lt=N,vn=tn):(Be=N,Dn=tn);for(let St=0;St{if(!E.show)return;let N=oe[E.scale];if(N.min==null){E._show&&(C=!1,E._show=!1,zd(!1));return}else E._show||(C=!1,E._show=!0,zd(!1));let U=E.side,re=U%2,{min:he,max:ye}=N,[Ae,Oe]=n4(M,he,ye,re==0?Wt:Pe);if(Oe==0)return;let Be=N.distr==2,Lt=E._splits=E.splits(n,M,he,ye,Ae,Oe,Be),Dn=N.distr==2?Lt.map(rt=>ca[rt]):Lt,vn=N.distr==2?ca[Lt[1]]-ca[Lt[0]]:Ae,tn=E._values=E.values(n,E.filter(n,Dn,M,Oe,vn),M,Oe,vn);E._rotate=U==2?E.rotate(n,tn,M,Oe):0;let St=E._size;E._size=na(E.size(n,tn,M,v)),St!=null&&E._size!=St&&(C=!1)}),C}function o4(v){let C=!0;return dT.forEach((E,M)=>{let N=E(n,M,uc,v);N!=sl[M]&&(C=!1),sl[M]=N}),C}function r4(){for(let v=0;vca[Io]):Dn,tn=Oe.distr==2?ca[Dn[1]]-ca[Dn[0]]:ye,St=C.ticks,rt=C.border,ai=St.show?St.size:0,gi=Zi(ai*kn),ao=Zi((C.alignTo==2?C._size-ai-C.gap:C.gap)*kn),zn=C._rotate*-w0/180,_i=j(C._pos*kn),cr=(gi+ao)*he,To=_i+cr;U=M==0?To:0,N=M==1?To:0;let Lr=C.font[0],da=C.align==1?Cm:C.align==2?YE:zn>0?Cm:zn<0?YE:M==0?"center":E==3?YE:Cm,Ka=zn||M==1?"middle":E==2?"top":P2;pT(Lr,re,da,Ka);let dr=C.font[1]*C.lineGap,Vr=Dn.map(Io=>j(s(Io,Oe,Be,Lt))),ua=C._values;for(let Io=0;Io{E>0&&(C._paths=null,v&&(o==1?(C.min=null,C.max=null):C.facets.forEach(M=>{M.min=null,M.max=null})))})}let Ff=!1,nC=!1,Gm=[];function a4(){nC=!1;for(let v=0;v0&&queueMicrotask(a4)}n.batch=s4;function vT(){if(Hy&&(Xj(),Hy=!1),Nd&&($j(),Nd=!1),kf){if(di(x,Cm,ei),di(x,"top",Vi),di(x,af,Wt),di(x,sf,Pe),di(S,Cm,ei),di(S,"top",Vi),di(S,af,Wt),di(S,sf,Pe),di(y,af,Ds),di(y,sf,ac),h.width=Zi(Ds*kn),h.height=Zi(ac*kn),ve.forEach(({_el:v,_show:C,_size:E,_pos:M,side:N})=>{if(v!=null)if(C){let U=N===3||N===0?E:0,re=N%2==1;di(v,re?"left":"top",M-U),di(v,re?"width":"height",E),di(v,re?"top":"left",re?Vi:ei),di(v,re?"height":"width",re?Pe:Wt),iM(v,gd)}else Tr(v,gd)}),Of=jd=Gy=Yy=Qy=Ky=Zy=Xy=qy=null,Zo=1,Qm(!0),ei!=Pd||Vi!=sc||Wt!=Ga||Pe!=lc){zd(!1);let v=Wt/Ga,C=Pe/lc;if(eo&&!cc&&Ve.left>=0){Ve.left*=v,Ve.top*=C,Hd&&ys(Hd,Zi(Ve.left),0,Wt,Pe),Wd&&ys(Wd,0,Zi(Ve.top),Wt,Pe);for(let E=0;E=0&&ri.width>0){ri.left*=v,ri.width*=v,ri.top*=C,ri.height*=C;for(let E in lC)di(qd,E,ri[E])}Pd=ei,sc=Vi,Ga=Wt,lc=Pe}ro("setSize"),kf=!1}Ds>0&&ac>0&&(g.clearRect(0,0,h.width,h.height),ro("drawClear"),et.forEach(v=>v()),ro("draw")),ri.show&&Af&&(Lf(ri),Af=!1),eo&&cc&&(pc(null,!0,!1),cc=!1),ft.show&&ft.live&&Nr&&(aC(),Nr=!1),l||(l=!0,n.status=1,ro("ready")),$m=!1,Ff=!1}n.redraw=(v,C)=>{Nd=C||!1,v!==!1?cl(Ce,Se.min,Se.max):Ud()};function iC(v,C){let E=oe[v];if(E.from==null){if(co==0){let M=E.range(n,C.min,C.max,v);C.min=M[0],C.max=M[1]}if(C.min>C.max){let M=C.min;C.min=C.max,C.max=M}if(co>1&&C.min!=null&&C.max!=null&&C.max-C.min<1e-16)return;v==Ce&&E.distr==2&&co>0&&(C.min=Ba(C.min,i[0]),C.max=Ba(C.max,i[0]),C.min==C.max&&C.max++),ot[v]=C,Hy=!0,Ud()}}n.setScale=iC;let oC,rC,Hd,Wd,bT,yT,$d,Gd,CT,wT,oi,ui,ll=!1,uo=Ve.drag,io=uo.x,oo=uo.y;eo&&(Ve.x&&(oC=ta(Iq,S)),Ve.y&&(rC=ta(kq,S)),Se.ori==0?(Hd=oC,Wd=rC):(Hd=rC,Wd=oC),oi=Ve.left,ui=Ve.top);let ri=n.select=Ni({show:!0,over:!0,left:0,width:0,top:0,height:0},t.select),qd=ri.show?ta(Tq,ri.over?S:x):null;function Lf(v,C){if(ri.show){for(let E in v)ri[E]=v[E],E in lC&&di(qd,E,v[E]);C!==!1&&ro("setSelect")}}n.setSelect=Lf;function l4(v){if(G[v].show)jt&&iM(jn[v],gd);else if(jt&&Tr(jn[v],gd),eo){let E=Ld?Fr[0]:Fr[v];E!=null&&ys(E,-10,-10,Wt,Pe)}}function cl(v,C,E){iC(v,{min:C,max:E})}function Ya(v,C,E,M){C.focus!=null&&p4(v),C.show!=null&&G.forEach((N,U)=>{U>0&&(v==U||v==null)&&(N.show=C.show,l4(U),o==2?(cl(N.facets[0].scale,null,null),cl(N.facets[1].scale,null,null)):cl(N.scale,null,null),Ud())}),E!==!1&&ro("setSeries",v,C),M&&Km("setSeries",n,v,C)}n.setSeries=Ya;function c4(v,C){Ni(Ne[v],C)}function d4(v,C){v.fill=ln(v.fill||null),v.dir=xn(v.dir,-1),C=C??Ne.length,Ne.splice(C,0,v)}function u4(v){v==null?Ne.length=0:Ne.splice(v,1)}n.addBand=d4,n.setBand=c4,n.delBand=u4;function m4(v,C){G[v].alpha=C,eo&&Fr[v]!=null&&(Fr[v].style.opacity=C),jt&&jn[v]&&(jn[v].style.opacity=C)}let Ss,dl,mc,Yd={focus:!0};function p4(v){if(v!=mc){let C=v==null,E=qa.alpha!=1;G.forEach((M,N)=>{if(o==1||N>0){let U=C||N==0||N==v;M._focus=C?null:U,E&&m4(N,U?1:qa.alpha)}}),mc=v,E&&Ud()}}jt&&Fd&&Mo(V2,Rt,v=>{Ve._lock||(dc(v),mc!=null&&Ya(null,Yd,!0,Ii.setSeries))});function Qa(v,C,E){let M=oe[C];E&&(v=v/kn-(M.ori==1?Vi:ei));let N=Wt;M.ori==1&&(N=Pe,v=N-v),M.dir==-1&&(v=N-v);let U=M._min,re=M._max,he=v/N,ye=U+(re-U)*he,Ae=M.distr;return Ae==3?Dm(10,ye):Ae==4?qq(ye,M.asinh):Ae==100?M.bwd(ye):ye}function h4(v,C){let E=Qa(v,Ce,C);return Ba(E,i[0],to,no)}n.valToIdx=v=>Ba(v,i[0]),n.posToIdx=h4,n.posToVal=Qa,n.valToPos=(v,C,E)=>oe[C].ori==0?r(v,oe[C],E?Ko:Wt,E?lr:0):a(v,oe[C],E?la:Pe,E?Pr:0),n.setCursor=(v,C,E)=>{oi=v.left,ui=v.top,pc(null,C,E)};function xT(v,C){di(qd,Cm,ri.left=v),di(qd,af,ri.width=C)}function DT(v,C){di(qd,"top",ri.top=v),di(qd,sf,ri.height=C)}let qm=Se.ori==0?xT:DT,Ym=Se.ori==1?xT:DT;function f4(){if(jt&&ft.live)for(let v=o==2?1:0;v{Qt[M]=E}):Zq(v.idx)||Qt.fill(v.idx),ft.idx=Qt[0]),jt&&ft.live){for(let E=0;E0||o==1&&!Or)&&g4(E,Qt[E]);f4()}Nr=!1,C!==!1&&ro("setLegend")}n.setLegend=aC;function g4(v,C){let E=G[v],M=v==0&&Tt==2?ca:i[v],N;Or?N=E.values(n,v,C)??al:(N=E.value(n,C==null?null:M[C],v,C),N=N==null?al:{_:N}),ft.values[v]=N}function pc(v,C,E){CT=oi,wT=ui,[oi,ui]=Ve.move(n,oi,ui),Ve.left=oi,Ve.top=ui,eo&&(Hd&&ys(Hd,Zi(oi),0,Wt,Pe),Wd&&ys(Wd,0,Zi(ui),Wt,Pe));let M,N=to>no;Ss=Kn,dl=null;let U=Se.ori==0?Wt:Pe,re=Se.ori==1?Wt:Pe;if(oi<0||co==0||N){M=Ve.idx=null;for(let he=0;he0&&ai.show){let cr=zn==null?-10:zn==M?Ae:qe(o==1?i[0][zn]:i[rt][0][zn],Se,U,0),To=_i==null?-10:It(_i,o==1?oe[ai.scale]:oe[ai.facets[1].scale],re,0);if(Fd&&_i!=null){let Lr=Se.ori==1?oi:ui,da=Xi(qa.dist(n,rt,zn,To,Lr));if(da=0?1:-1,ua=dr>=0?1:-1;ua==Vr&&(ua==1?Ka==1?_i>=dr:_i<=dr:Ka==1?_i<=dr:_i>=dr)&&(Ss=da,dl=rt)}else Ss=da,dl=rt}}if(Nr||Ld){let Lr,da;Se.ori==0?(Lr=cr,da=To):(Lr=To,da=cr);let Ka,dr,Vr,ua,Za,Io,ur=!0,hc=_o.bbox;if(hc!=null){ur=!1;let ko=hc(n,rt);Vr=ko.left,ua=ko.top,Ka=ko.width,dr=ko.height}else Vr=Lr,ua=da,Ka=dr=_o.size(n,rt);if(Io=_o.fill(n,rt),Za=_o.stroke(n,rt),Ld)rt==dl&&Ss<=qa.prox&&(Oe=Vr,Be=ua,Lt=Ka,Dn=dr,vn=ur,tn=Io,St=Za);else{let ko=Fr[rt];ko!=null&&(Vd[rt]=Vr,Bd[rt]=ua,$2(ko,Ka,dr,ur),H2(ko,Io,Za),ys(ko,na(Vr),na(ua),Wt,Pe))}}}}if(Ld){let rt=qa.prox,ai=mc==null?Ss<=rt:Ss>rt||dl!=mc;if(Nr||ai){let gi=Fr[0];gi!=null&&(Vd[0]=Oe,Bd[0]=Be,$2(gi,Lt,Dn,vn),H2(gi,tn,St),ys(gi,na(Oe),na(Be),Wt,Pe))}}}if(ri.show&&ll)if(v!=null){let[he,ye]=Ii.scales,[Ae,Oe]=Ii.match,[Be,Lt]=v.cursor.sync.scales,Dn=v.cursor.drag;if(io=Dn._x,oo=Dn._y,io||oo){let{left:vn,top:tn,width:St,height:rt}=v.select,ai=v.scales[Be].ori,gi=v.posToVal,ao,zn,_i,cr,To,Lr=he!=null&&Ae(he,Be),da=ye!=null&&Oe(ye,Lt);Lr&&io?(ai==0?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[he],cr=qe(gi(ao,Be),_i,U,0),To=qe(gi(ao+zn,Be),_i,U,0),qm(ja(cr,To),Xi(To-cr))):qm(0,U),da&&oo?(ai==1?(ao=vn,zn=St):(ao=tn,zn=rt),_i=oe[ye],cr=It(gi(ao,Lt),_i,re,0),To=It(gi(ao+zn,Lt),_i,re,0),Ym(ja(cr,To),Xi(To-cr))):Ym(0,re)}else cC()}else{let he=Xi(CT-bT),ye=Xi(wT-yT);if(Se.ori==1){let Lt=he;he=ye,ye=Lt}io=uo.x&&he>=uo.dist,oo=uo.y&&ye>=uo.dist;let Ae=uo.uni;Ae!=null?io&&oo&&(io=he>=Ae,oo=ye>=Ae,!io&&!oo&&(ye>he?oo=!0:io=!0)):uo.x&&uo.y&&(io||oo)&&(io=oo=!0);let Oe,Be;io&&(Se.ori==0?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),qm(ja(Oe,Be),Xi(Be-Oe)),oo||Ym(0,re)),oo&&(Se.ori==1?(Oe=$d,Be=oi):(Oe=Gd,Be=ui),Ym(ja(Oe,Be),Xi(Be-Oe)),io||qm(0,U)),!io&&!oo&&(qm(0,0),Ym(0,0))}if(uo._x=io,uo._y=oo,v==null){if(E){if(NT!=null){let[he,ye]=Ii.scales;Ii.values[0]=he!=null?Qa(Se.ori==0?oi:ui,he):null,Ii.values[1]=ye!=null?Qa(Se.ori==1?oi:ui,ye):null}Km(QE,n,oi,ui,Wt,Pe,M)}if(Fd){let he=E&&Ii.setSeries,ye=qa.prox;mc==null?Ss<=ye&&Ya(dl,Yd,!0,he):Ss>ye?Ya(null,Yd,!0,he):dl!=mc&&Ya(dl,Yd,!0,he)}}Nr&&(ft.idx=M,aC()),C!==!1&&ro("setCursor")}let ul=null;Object.defineProperty(n,"rect",{get(){return ul==null&&Qm(!1),ul}});function Qm(v=!1){v?ul=null:(ul=S.getBoundingClientRect(),ro("syncRect",ul))}function ST(v,C,E,M,N,U,re){Ve._lock||ll&&v!=null&&v.movementX==0&&v.movementY==0||(sC(v,C,E,M,N,U,re,!1,v!=null),v!=null?pc(null,!0,!0):pc(C,!0,!1))}function sC(v,C,E,M,N,U,re,he,ye){if(ul==null&&Qm(!1),dc(v),v!=null)E=v.clientX-ul.left,M=v.clientY-ul.top;else{if(E<0||M<0){oi=-10,ui=-10;return}let[Ae,Oe]=Ii.scales,Be=C.cursor.sync,[Lt,Dn]=Be.values,[vn,tn]=Be.scales,[St,rt]=Ii.match,ai=C.axes[0].side%2==1,gi=Se.ori==0?Wt:Pe,ao=Se.ori==1?Wt:Pe,zn=ai?U:N,_i=ai?N:U,cr=ai?M:E,To=ai?E:M;if(vn!=null?E=St(Ae,vn)?s(Lt,oe[Ae],gi,0):-10:E=gi*(cr/zn),tn!=null?M=rt(Oe,tn)?s(Dn,oe[Oe],ao,0):-10:M=ao*(To/_i),Se.ori==1){let Lr=E;E=M,M=Lr}}ye&&(C==null||C.cursor.event.type==QE)&&((E<=1||E>=Wt-1)&&(E=hd(E,Wt)),(M<=1||M>=Pe-1)&&(M=hd(M,Pe))),he?(bT=E,yT=M,[$d,Gd]=Ve.move(n,E,M)):(oi=E,ui=M)}let lC={width:0,height:0,left:0,top:0};function cC(){Lf(lC,!1)}let ET,MT,TT,IT;function kT(v,C,E,M,N,U,re){ll=!0,io=oo=uo._x=uo._y=!1,sC(v,C,E,M,N,U,re,!0,!1),v!=null&&(Mo(KE,tM,AT,!1),Km(F2,n,$d,Gd,Wt,Pe,null));let{left:he,top:ye,width:Ae,height:Oe}=ri;ET=he,MT=ye,TT=Ae,IT=Oe}function AT(v,C,E,M,N,U,re){ll=uo._x=uo._y=!1,sC(v,C,E,M,N,U,re,!1,!0);let{left:he,top:ye,width:Ae,height:Oe}=ri,Be=Ae>0||Oe>0,Lt=ET!=he||MT!=ye||TT!=Ae||IT!=Oe;if(Be&&Lt&&Lf(ri),uo.setScale&&Be&&Lt){let Dn=he,vn=Ae,tn=ye,St=Oe;if(Se.ori==1&&(Dn=ye,vn=Oe,tn=he,St=Ae),io&&cl(Ce,Qa(Dn,Ce),Qa(Dn+vn,Ce)),oo)for(let rt in oe){let ai=oe[rt];rt!=Ce&&ai.from==null&&ai.min!=Kn&&cl(rt,Qa(tn+St,rt),Qa(tn,rt))}cC()}else Ve.lock&&(Ve._lock=!Ve._lock,pc(C,!0,v!=null));v!=null&&(Od(KE,tM),Km(KE,n,oi,ui,Wt,Pe,null))}function _4(v,C,E,M,N,U,re){if(Ve._lock)return;dc(v);let he=ll;if(ll){let ye=!0,Ae=!0,Oe=10,Be,Lt;Se.ori==0?(Be=io,Lt=oo):(Be=oo,Lt=io),Be&&Lt&&(ye=oi<=Oe||oi>=Wt-Oe,Ae=ui<=Oe||ui>=Pe-Oe),Be&&ye&&(oi=oi<$d?0:Wt),Lt&&Ae&&(ui=ui{let N=Ii.match[2];E=N(n,C,E),E!=-1&&Ya(E,M,!0,!1)},eo&&(Mo(F2,S,kT),Mo(QE,S,ST),Mo(L2,S,v=>{dc(v),Qm(!1)}),Mo(V2,S,_4),Mo(B2,S,RT),cM.add(n),n.syncRect=Qm);let Vf=n.hooks=t.hooks||{};function ro(v,C,E){nC?Gm.push([v,C,E]):v in Vf&&Vf[v].forEach(M=>{M.call(null,n,C,E)})}(t.plugins||[]).forEach(v=>{for(let C in v.hooks)Vf[C]=(Vf[C]||[]).concat(v.hooks[C])});let PT=(v,C,E)=>E,Ii=Ni({key:null,setSeries:!1,filters:{pub:K2,sub:K2},scales:[Ce,G[1]?G[1].scale:null],match:[Z2,Z2,PT],values:[null,null]},Ve.sync);Ii.match.length==2&&Ii.match.push(PT),Ve.sync=Ii;let NT=Ii.key,dC=qL(NT);function Km(v,C,E,M,N,U,re){Ii.filters.pub(v,C,E,M,N,U,re)&&dC.pub(v,C,E,M,N,U,re)}dC.sub(n);function v4(v,C,E,M,N,U,re){Ii.filters.sub(v,C,E,M,N,U,re)&&Qd[v](null,C,E,M,N,U,re)}n.pub=v4;function b4(){dC.unsub(n),cM.delete(n),rc.clear(),oM(x0,xm,OT),u.remove(),Rt?.remove(),ro("destroy")}n.destroy=b4;function uC(){ro("init",t,i),uT(i||t.data,!1),ot[Ce]?iC(Ce,ot[Ce]):$y(),Af=ri.show&&(ri.width>0||ri.height>0),cc=Nr=!0,Wy(t.width,t.height)}return G.forEach(cT),ve.forEach(Zj),e?e instanceof HTMLElement?(e.appendChild(u),uC()):e(n,uC):uC(),n}Ti.assign=Ni;Ti.fmtNum=gM;Ti.rangeNum=D0;Ti.rangeLog=M0;Ti.rangeAsinh=hM;Ti.orient=bd;Ti.pxRatio=kn;Ti.join=oY;Ti.fmtDate=vM,Ti.tzDate=fY;Ti.sync=qL;{Ti.addGap=ZY,Ti.clipGaps=k0;let t=Ti.paths={points:JL};t.linear=tV,t.stepped=eQ,t.bars=tQ,t.spline=iQ}var hQ=["host"],fQ=["donut"],rV=(t,i)=>i.name;function gQ(t,i){if(t&1&&(c(0,"div",6),O(1,"span",7),c(2,"span",8),f(3),d(),c(4,"span",9),f(5),d()()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(2),_e(e.name),m(2),_e(e.pct)}}function _Q(t,i){if(t&1&&(c(0,"div",2)(1,"div",4,0),O(3,"canvas",null,1),d(),c(5,"div",5),fe(6,gQ,6,4,"div",6,rV),d()()),t&2){let e=_();m(6),ge(e.legend)}}function vQ(t,i){if(t&1&&(c(0,"span",13),O(1,"span",14),f(2),d()),t&2){let e=i.$implicit;m(),Si("background",e.color),m(),H("",e.name," ")}}function bQ(t,i){if(t&1&&(c(0,"div",10),fe(1,vQ,3,3,"span",13,rV),d()),t&2){let e=_(2);m(),ge(e.seriesLegend)}}function yQ(t,i){if(t&1){let e=W();c(0,"div",12)(1,"button",15),w("click",function(){I(e);let o=_(2);return k(o.pagePrev())}),f(2,"\u2039"),d(),c(3,"input",16),w("input",function(o){I(e);let r=_(2);return k(r.pageTo(o))}),d(),c(4,"button",15),w("click",function(){I(e);let o=_(2);return k(o.pageNext())}),f(5,"\u203A"),d(),c(6,"span",17),f(7),d()()}if(t&2){let e=_(2);m(),b("disabled",e.barOffset===0),m(2),b("max",e.maxOffset)("value",e.barOffset),m(),b("disabled",e.barOffset>=e.maxOffset),m(3),K_("",e.barOffset+1,"\u2013",e.visibleEnd," / ",e.totalCategories)}}function CQ(t,i){if(t&1&&(c(0,"div",3),A(1,bQ,3,0,"div",10),O(2,"div",11,0),A(4,yQ,8,7,"div",12),d()),t&2){let e=_();m(),R(e.seriesLegend.length?1:-1),m(3),R(e.showPager?4:-1)}}var P0=["#3b82f6","#10b981","#f59e0b","#ef4444","#6366f1","#a855f7","#0ea5e9","#14b8a6","#f43f5e","#eab308","#8b5cf6","#22c55e"];function wQ(){let i=0,e=0,n=0,o=(r,a,s,l,u)=>r>u-l?[l,u]:au?[u-r,u]:[a,s];return{hooks:{ready:r=>{i=r.scales.x.min,e=r.scales.x.max,n=e-i;let a=r.over,s=a.getBoundingClientRect();a.addEventListener("mousemove",()=>s=a.getBoundingClientRect()),a.addEventListener("wheel",l=>{l.preventDefault();let u=r.cursor.left??0,h=u/s.width,g=r.posToVal(u,"x"),y=r.scales.x.max-r.scales.x.min,x=l.deltaY<0?y*.9:y/.9,S=g-h*x,P=S+x;[S,P]=o(x,S,P,i,e),r.batch(()=>r.setScale("x",{min:S,max:P}))},{passive:!1})}}}}var aV=(()=>{class t{get seriesLegend(){let e=this._spec;return(e?.kind==="bar"||e?.kind==="line")&&e.series.length>1?e.series.map(n=>({name:n.name,color:n.color})):[]}constructor(e){this.api=e,this.legend=[],this.barPageSize=5,this.barOffset=0,this._spec=null,this.chart=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=e.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.render())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}set spec(e){this._spec=e,this.barOffset=0,setTimeout(()=>this.render(),0)}get spec(){return this._spec}get totalCategories(){return this._spec?.kind==="bar"?this._spec.categories.length:0}get showPager(){return this._spec?.kind==="bar"&&this.totalCategories>this.barPageSize}get maxOffset(){return Math.max(0,this.totalCategories-this.barPageSize)}get visibleEnd(){return Math.min(this.barOffset+this.barPageSize,this.totalCategories)}pagePrev(){this.barOffset=Math.max(0,this.barOffset-this.barPageSize),this.render()}pageNext(){this.barOffset=Math.min(this.maxOffset,this.barOffset+this.barPageSize),this.render()}pageTo(e){let n=Number(e.target.value);this.barOffset=Math.min(this.maxOffset,Math.max(0,n)),this.render()}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}get textColor(){return this.api.isDarkTheme?"#f8fafc":"#1e293b"}get gridColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get cardColor(){return this.api.isDarkTheme?"#0f172a":"#ffffff"}observe(e,n){this.resizeObserver?.disconnect(),this.resizeObserver=new ResizeObserver(o=>{let r=o[0]?.contentRect;r&&r.width>0&&r.height>0&&n()}),this.resizeObserver.observe(e)}size(){let e=this.hostRef.nativeElement;return{width:e.clientWidth||400,height:e.clientHeight||260}}render(){this.chart?.destroy(),this.chart=null;let e=this._spec;e&&(e.kind==="donut"?this.renderDonut(e.items):this.renderUplot(e))}renderUplot(e){let{width:n,height:o}=this.size(),r=this.textColor,a=this.gridColor,s=Ti.paths,l,u=[{}],h=[{stroke:r,grid:{stroke:a},ticks:{stroke:a}},{stroke:r,grid:{stroke:a},ticks:{stroke:a}}],g={},y;if(e.kind==="line"){let S=s.spline();l=[e.x,...e.series.map(P=>P.data)];for(let P of e.series)u.push({label:P.name,stroke:P.color,width:3,fill:P.area,paths:S});g={time:!0},h[0].values=(P,j)=>j.map(F=>Yi("SHORT_DATE_FORMAT",new Date(F*1e3))),y=P=>Yi("SHORT_DATETIME_FORMAT",new Date(e.x[P]*1e3))}else{let S=s.bars({size:[.6,100]}),P=this.barOffset,j=e.categories.slice(P,P+this.barPageSize),F=e.series.map(Ne=>Ye(q({},Ne),{data:Ne.data.slice(P,P+this.barPageSize)})),G=j.map((Ne,Ce)=>Ce),ve=F.map((Ne,Ce)=>j.map((Le,et)=>F.slice(0,Ce+1).reduce((Nt,ht)=>Nt+(ht.data[et]||0),0))),oe=[];for(let Ne=F.length-1;Ne>=0;Ne--)oe.push(ve[Ne]),u.push({label:F[Ne].name,stroke:F[Ne].color,fill:F[Ne].color,paths:S});l=[G,...oe],h[0].values=(Ne,Ce)=>Ce.map(Le=>Number.isInteger(Le)?this.truncate(j[Le]):""),h[0].splits=()=>G,y=Ne=>j[Ne]??""}let x={width:n,height:o,scales:{x:g,y:{range:(S,P,j)=>[0,(j||1)*1.1]}},legend:{show:!1},cursor:{drag:{x:!0,y:!1}},plugins:[wQ(),this.tooltipPlugin(y)],axes:h,series:u};this.chart=new Ti(x,l,this.hostRef.nativeElement),this.observe(this.hostRef.nativeElement,()=>{let S=this.size();this.chart?.setSize(S)})}truncate(e){return e?e.length>10?e.slice(0,9)+"\u2026":e:""}escape(e){let n={"&":"&","<":"<",">":">",'"':"""};return e.replace(/[&<>"]/g,o=>n[o])}tooltipPlugin(e){let n=null,o=this.api.isDarkTheme?"#1e293b":"#ffffff",r=this.api.isDarkTheme?"#334155":"#e2e8f0",a=this.textColor;return{hooks:{init:s=>{n=document.createElement("div"),Object.assign(n.style,{position:"absolute",pointerEvents:"none",zIndex:"10",padding:"6px 8px",font:"12px sans-serif",whiteSpace:"nowrap",background:o,color:a,border:`1px solid ${r}`,borderRadius:"6px",transform:"translate(-50%, calc(-100% - 12px))",display:"none",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}),s.over.appendChild(n)},setCursor:s=>{if(!n)return;let l=s.cursor.idx,u=s.cursor.left??-1,h=s.cursor.top??-1;if(l==null||u<0){n.style.display="none";return}let g=[];for(let y=1;y${this.escape(String(x.label??""))}: ${P??"-"}`)}n.innerHTML=`
${this.escape(e(l))}
${g.join("")}`,n.style.display="block",n.style.left=u+"px",n.style.top=h+"px"}}}}renderDonut(e){let n=e.reduce((o,r)=>o+r.value,0)||1;this.legend=e.map((o,r)=>({name:o.name,color:P0[r%P0.length],pct:(o.value/n*100).toFixed(1)+"%"})),setTimeout(()=>{let o=this.donutRef?.nativeElement;o&&(this.drawDonut(o,e,n),this.observe(this.hostRef.nativeElement,()=>this.drawDonut(o,e,n)))},0)}drawDonut(e,n,o){let r=e.parentElement,a=Math.max(80,Math.min(r.clientWidth,r.clientHeight)),s=window.devicePixelRatio||1;e.width=a*s,e.height=a*s,e.style.width=a+"px",e.style.height=a+"px";let l=e.getContext("2d");l.setTransform(s,0,0,s,0,0),l.clearRect(0,0,a,a);let u=a/2,h=a/2,g=a*.46,y=g*.6,x=-Math.PI/2;n.forEach((S,P)=>{let j=S.value/o*Math.PI*2;l.beginPath(),l.moveTo(u,h),l.arc(u,h,g,x,x+j),l.closePath(),l.fillStyle=P0[P%P0.length],l.fill(),l.lineWidth=2,l.strokeStyle=this.cardColor,l.stroke(),x+=j}),l.globalCompositeOperation="destination-out",l.beginPath(),l.arc(u,h,y,0,Math.PI*2),l.fill(),l.globalCompositeOperation="source-over"}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-uplot-chart"]],viewQuery:function(n,o){if(n&1&&at(hQ,5)(fQ,5),n&2){let r;X(r=J())&&(o.hostRef=r.first),X(r=J())&&(o.donutRef=r.first)}},inputs:{spec:"spec"},standalone:!1,decls:2,vars:1,consts:[["host",""],["donut",""],[1,"donut-wrap"],[1,"chart-col"],[1,"donut-canvas-box"],[1,"donut-legend"],[1,"donut-legend-item"],[1,"donut-swatch"],[1,"donut-name"],[1,"donut-pct"],[1,"series-legend"],[1,"uplot-host"],[1,"chart-pager"],[1,"series-legend-item"],[1,"series-swatch"],["type","button",1,"pager-btn",3,"click","disabled"],["type","range","min","0","step","1",1,"pager-range",3,"input","max","value"],[1,"pager-label"]],template:function(n,o){n&1&&A(0,_Q,8,0,"div",2)(1,CQ,5,2,"div",3),n&2&&R((o.spec==null?null:o.spec.kind)==="donut"?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.chart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.series-legend[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;padding-bottom:.25rem;font-size:.75rem;opacity:.85}.series-legend-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.series-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;display:inline-block}.uplot-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.chart-pager[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:.5rem;padding:.25rem .25rem 0;font-size:.75rem;opacity:.85}.pager-btn[_ngcontent-%COMP%]{border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:22px;height:22px;line-height:1;cursor:pointer;opacity:.7}.pager-btn[_ngcontent-%COMP%]:hover:not(:disabled){opacity:1}.pager-btn[_ngcontent-%COMP%]:disabled{opacity:.25;cursor:default}.pager-range[_ngcontent-%COMP%]{flex:1 1 auto;accent-color:#3b82f6;cursor:pointer}.pager-label[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap;opacity:.7}.donut-wrap[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;gap:.75rem;align-items:center}.donut-canvas-box[_ngcontent-%COMP%]{flex:0 0 auto;width:55%;height:100%;display:flex;align-items:center;justify-content:center}.donut-legend[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:.25rem;overflow:auto;max-height:100%;font-size:.8rem}.donut-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem}.donut-swatch[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:2px;flex:0 0 auto}.donut-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut-pct[_ngcontent-%COMP%]{opacity:.7}"]})}}return t})();var DQ=(t,i)=>i.value,SQ=(t,i)=>i.user;function EQ(t,i){if(t&1){let e=W();c(0,"button",11),w("click",function(){let o=I(e).$implicit,r=_();return k(r.changePeriod(o.value))}),f(1),d()}if(t&2){let e=i.$implicit,n=_();le("active",e.value===n.days),m(),H(" ",e.label," ")}}function MQ(t,i){if(t&1&&(c(0,"div",5)(1,"uds-translate"),f(2,"Updated"),d(),f(3),d()),t&2){let e=_();m(3),H(": ",e.renderTimestamp(e.data.generated)," ")}}function TQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expired"),d(),f(5),d()),t&2){let e=_(2);m(5),H(": ",e.license.end_date)}}function IQ(t,i){if(t&1&&(c(0,"span",13),f(1,"!"),d(),c(2,"span")(3,"uds-translate"),f(4,"License expires in"),d(),f(5),c(6,"uds-translate"),f(7,"days"),d(),f(8),d()),t&2){let e=_(2);m(5),H(" ",e.licenseDaysRemaining," "),m(3),H(" (",e.license.end_date,")")}}function kQ(t,i){if(t&1&&(c(0,"span")(1,"uds-translate"),f(2,"License valid until"),d(),f(3),d()),t&2){let e=_(2);m(3),H(" ",e.license.end_date)}}function AQ(t,i){if(t&1){let e=W();c(0,"div",12),w("click",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.enter",function(){I(e);let o=_();return k(o.showLicenseDetails())})("keydown.space",function(){I(e);let o=_();return k(o.showLicenseDetails())}),A(1,TQ,6,1)(2,IQ,9,2)(3,kQ,4,1,"span"),d()}if(t&2){let e=_();le("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),m(),R(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function RQ(t,i){if(t&1&&(c(0,"div",9),f(1),d()),t&2){let e=_();m(),Fo(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function OQ(t,i){t&1&&(c(0,"div",10),O(1,"mat-progress-spinner",14),c(2,"span")(3,"uds-translate"),f(4,"Loading dashboard data..."),d()()())}function PQ(t,i){if(t&1&&(c(0,"div",15)(1,"a",26)(2,"div",27),f(3),d(),c(4,"div",28)(5,"uds-translate"),f(6,"Users"),d()()(),c(7,"a",29)(8,"div",27),f(9),d(),c(10,"div",28)(11,"uds-translate"),f(12,"Groups"),d()()(),c(13,"a",30)(14,"div",27),f(15),d(),c(16,"div",28)(17,"uds-translate"),f(18,"Service pools"),d()()(),c(19,"a",31)(20,"div",27),f(21),d(),c(22,"div",28)(23,"uds-translate"),f(24,"User services"),d()()(),c(25,"a",32)(26,"div",27),f(27),d(),c(28,"div",28)(29,"uds-translate"),f(30,"Assigned services"),d()()(),c(31,"a",33)(32,"div",27),f(33),d(),c(34,"div",28)(35,"uds-translate"),f(36,"Users with services"),d()()(),c(37,"a",34)(38,"div",27),f(39),d(),c(40,"div",28)(41,"uds-translate"),f(42,"Authenticators"),d()()(),c(43,"a",35)(44,"div",27),f(45),d(),c(46,"div",28)(47,"uds-translate"),f(48,"Restrained pools"),d()()()()),t&2){let e=_(2);m(3),_e(e.data.kpis.users),m(6),_e(e.data.kpis.groups),m(6),_e(e.data.kpis.service_pools),m(6),_e(e.data.kpis.user_services),m(6),_e(e.data.kpis.assigned_user_services),m(6),_e(e.data.kpis.users_with_services),m(6),_e(e.data.kpis.authenticators),m(4),le("kpi-danger",e.data.kpis.restrained_service_pools>0),m(2),_e(e.data.kpis.restrained_service_pools)}}function NQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.peak)}}function FQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.peak_concurrency))}}function LQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.saturation)}}function VQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.pool_saturation))}}function BQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.cache)}}function jQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.cache_efficiency))}}function zQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.tunnel)}}function UQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.tunnel_usage))}}function HQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.platforms)}}function WQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function $Q(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.browsers)}}function GQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.client_platforms))}}function qQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.sessions)}}function YQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.session_duration))}}function QQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.errors)}}function KQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.userservice_errors))}}function ZQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.failedLogins)}}function XQ(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.failed_logins))}}function JQ(t,i){if(t&1&&O(0,"uds-uplot-chart",19),t&2){let e=_(2);b("spec",e.charts.topUsers)}}function eK(t,i){if(t&1&&(c(0,"div",20),f(1),d()),t&2){let e=_(2);m(),_e(e.emptyText(e.data.top_users))}}function tK(t,i){if(t&1&&(c(0,"tr")(1,"td"),f(2),d(),c(3,"td"),f(4),d(),c(5,"td"),f(6),d(),c(7,"td"),f(8),d(),c(9,"td"),f(10),d()()),t&2){let e=i.$implicit;m(2),_e(e.user||"-"),m(2),_e(e.sessions),m(2),_e(e.pools),m(2),_e(e.hours),m(2),_e(e.average)}}function nK(t,i){if(t&1&&(c(0,"div",23)(1,"div",18)(2,"uds-translate"),f(3,"Top users detail"),d()(),c(4,"table",36)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),f(9,"User"),d()(),c(10,"th")(11,"uds-translate"),f(12,"Sessions"),d()(),c(13,"th")(14,"uds-translate"),f(15,"Pools used"),d()(),c(16,"th")(17,"uds-translate"),f(18,"Hours"),d()(),c(19,"th")(20,"uds-translate"),f(21,"Avg hours/session"),d()()()(),c(22,"tbody"),fe(23,tK,11,5,"tr",null,SQ),d()()()),t&2){let e=_(2);m(23),ge(e.data.top_users)}}function iK(t,i){if(t&1&&(c(0,"div",25)(1,"div",37),O(2,"img",38),c(3,"div",39)(4,"ul")(5,"li"),f(6),c(7,"uds-translate"),f(8,"restrained services"),d()()()()(),c(9,"div",40)(10,"a",41)(11,"uds-translate"),f(12,"View service pools"),d()()()()),t&2){let e=_(2);m(2),b("src",e.api.staticURL("admin/img/icons/logs.png"),it),m(4),H("",e.info.restrained_services_pools," ")}}function oK(t,i){if(t&1&&(A(0,PQ,49,10,"div",15),c(1,"div",16)(2,"div",17)(3,"div",18)(4,"uds-translate"),f(5,"Peak concurrent sessions per pool"),d()(),A(6,NQ,1,1,"uds-uplot-chart",19)(7,FQ,2,1,"div",20),d(),c(8,"div",17)(9,"div",18)(10,"uds-translate"),f(11,"Pool saturation (% of capacity)"),d()(),A(12,LQ,1,1,"uds-uplot-chart",19)(13,VQ,2,1,"div",20),d(),c(14,"div",17)(15,"div",18)(16,"uds-translate"),f(17,"Cache hits / misses per pool"),d()(),A(18,BQ,1,1,"uds-uplot-chart",19)(19,jQ,2,1,"div",20),d(),c(20,"div",17)(21,"div",18)(22,"uds-translate"),f(23,"Tunnel sessions per pool"),d()(),A(24,zQ,1,1,"uds-uplot-chart",19)(25,UQ,2,1,"div",20),d(),c(26,"div",17)(27,"div",18)(28,"uds-translate"),f(29,"Client platforms"),d()(),A(30,HQ,1,1,"uds-uplot-chart",19)(31,WQ,2,1,"div",20),d(),c(32,"div",17)(33,"div",18)(34,"uds-translate"),f(35,"Client browsers"),d()(),A(36,$Q,1,1,"uds-uplot-chart",19)(37,GQ,2,1,"div",20),d(),c(38,"div",17)(39,"div",18)(40,"uds-translate"),f(41,"Session duration distribution"),d()(),A(42,qQ,1,1,"uds-uplot-chart",19)(43,YQ,2,1,"div",20),d(),c(44,"div",17)(45,"div",18)(46,"uds-translate"),f(47,"User services in error per pool"),d()(),A(48,QQ,1,1,"uds-uplot-chart",19)(49,KQ,2,1,"div",20),d(),c(50,"div",17)(51,"div",18)(52,"uds-translate"),f(53,"Failed logins per user"),d()(),A(54,ZQ,1,1,"uds-uplot-chart",19)(55,XQ,2,1,"div",20),d(),c(56,"div",21)(57,"div",18)(58,"uds-translate"),f(59,"Top users by session time"),d()(),A(60,JQ,1,1,"uds-uplot-chart",19)(61,eK,2,1,"div",20),d(),c(62,"div",22)(63,"div",17)(64,"div",18)(65,"uds-translate"),f(66,"Assigned services chart"),d()(),O(67,"uds-uplot-chart",19),d(),c(68,"div",17)(69,"div",18)(70,"uds-translate"),f(71,"In use services chart"),d()(),O(72,"uds-uplot-chart",19),d()()(),A(73,nK,25,0,"div",23),c(74,"div",24),A(75,iK,13,2,"div",25),d()),t&2){let e=_();R(e.data.kpis?0:-1),m(6),R(e.hasData(e.data.peak_concurrency)?6:7),m(6),R(e.hasData(e.data.pool_saturation)?12:13),m(6),R(e.hasData(e.data.cache_efficiency)?18:19),m(6),R(e.hasData(e.data.tunnel_usage)?24:25),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),m(6),R(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),m(6),R(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),m(6),R(e.hasData(e.data.userservice_errors)?48:49),m(6),R(e.hasData(e.data.failed_logins)?54:55),m(6),R(e.hasData(e.data.top_users)?60:61),m(7),b("spec",e.charts.assigned),m(5),b("spec",e.charts.inuse),m(),R(e.hasData(e.data.top_users)?73:-1),m(2),R(e.info.restrained_services_pools>0?75:-1)}}var sV=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.cache=o,this.periods=[{value:7,label:django.gettext("Last 7 days")},{value:30,label:django.gettext("Last 30 days")},{value:90,label:django.gettext("Last 90 days")},{value:365,label:django.gettext("Last year")}],this.days=30,this.loading=!0,this.data={},this.info={},this.charts={peak:null,saturation:null,cache:null,tunnel:null,platforms:null,browsers:null,topUsers:null,sessions:null,errors:null,failedLogins:null,assigned:null,inuse:null}}ngOnInit(){return B(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return B(this,null,function*(){this.cache.has("cachedEnterpriseInfo")||this.cache.set("cachedEnterpriseInfo",(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return B(this,null,function*(){this.info=(yield this.rest.system.information())||{};for(let e of["assigned","inuse"]){let n=yield this.rest.system.stats(e);this.charts[e]=this.lineChart(e,n||[])}})}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return B(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return B(this,null,function*(){this.loading=!0;let n=yield this.rest.dashboard.data(this.days,e);this.data=n||{},yield this.buildCharts(),this.loading=!1})}renderTimestamp(e){return e?Yi("SHORT_DATETIME_FORMAT",e):"-"}get license(){return this.cache.get("cachedEnterpriseInfo")}get hasLicense(){return this.license!==null&&!!this.license?.end_date}static{this.EXPIRING_SOON_DAYS=30}get licenseDaysRemaining(){if(!this.hasLicense)return 0;let e=new Date(this.license.end_date+"T12:00:00Z"),n=new Date,o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0);return Math.ceil((e.getTime()-o)/(1e3*60*60*24))}get licenseExpired(){return this.hasLicense&&this.licenseDaysRemaining<0}get licenseExpiringSoon(){return this.hasLicense&&this.licenseDaysRemaining>=0&&this.licenseDaysRemaining<=t.EXPIRING_SOON_DAYS}_openLicenseDialog(e){let n=window.innerWidth<800?"85%":"480px";this.api.gui.dialog.open(T2,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}barChart(e,n){return{kind:"bar",categories:e,series:n}}pieChart(e){return{kind:"donut",items:e}}lineChart(e,n){let o=e==="assigned"?"#3b82f6":"#10b981",r=e==="assigned"?"rgba(37, 99, 235, 0.2)":"rgba(16, 185, 129, 0.2)";return{kind:"line",x:n.map(a=>Math.floor(new Date(a.stamp).getTime()/1e3)),series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),color:o,area:r,data:n.map(a=>a.value)}]}}buildCharts(){return B(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Peak sessions"),data:r.map(a=>a.peak),color:"#3b82f6"}])}if(Array.isArray(e.pool_saturation)){let r=e.pool_saturation;this.charts.saturation=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Saturation %"),data:r.map(a=>Number(a.pct_value||0)),color:"#f59e0b"}])}if(Array.isArray(e.cache_efficiency)){let r=e.cache_efficiency;this.charts.cache=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Opens"),data:r.map(a=>a.opens),color:"#6366f1"},{name:django.gettext("Closes"),data:r.map(a=>a.closes),color:"#a855f7"}])}let n=e.client_platforms;if(n&&Array.isArray(n.platforms)&&(this.charts.platforms=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=e.top_users;this.charts.topUsers=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}])}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions=this.barChart(o.buckets.map(r=>r.bucket),[{name:django.gettext("Sessions"),data:o.buckets.map(r=>r.count),color:"#14b8a6"}])),Array.isArray(e.userservice_errors)){let r=e.userservice_errors;this.charts.errors=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Errors"),data:r.map(a=>a.count),color:"#ef4444"}])}if(Array.isArray(e.failed_logins)){let r=e.failed_logins;this.charts.failedLogins=this.barChart(r.map(a=>(a.user||"-")+" @ "+(a.auth||"-")),[{name:django.gettext("Failed attempts"),data:r.map(a=>a.attempts),color:"#f43f5e"}])}})}hasData(e){return e?Array.isArray(e)?e.length>0:!e.error:!1}emptyText(e){return e&&e.error?e.error:django.gettext("No data for this period")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(I2))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard"]],standalone:!1,decls:14,vars:7,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"toolbar-right"],[1,"last-updated"],["mat-icon-button","","aria-label","Refresh",1,"refresh-button",3,"click","disabled"],[1,"material-icons"],["role","button","tabindex","0",1,"license-badge",3,"license-expired","license-expiring"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["role","button","tabindex","0",1,"license-badge",3,"click","keydown.enter","keydown.space"],[1,"license-icon"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],[1,"chart-body",3,"spec"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],[1,"chart-card","chart-card-table"],[1,"info-row"],[1,"info-panel","info-danger"],["routerLink","/summary/users",1,"kpi-card"],[1,"kpi-value"],[1,"kpi-label"],["routerLink","/summary/groups",1,"kpi-card"],["routerLink","/pools/service-pools",1,"kpi-card"],["routerLink","/summary/user-services",1,"kpi-card"],["routerLink","/summary/assigned-services",1,"kpi-card"],["routerLink","/summary/users-with-services",1,"kpi-card"],["routerLink","/authenticators",1,"kpi-card"],["routerLink","/summary/restrained-pools",1,"kpi-card"],[1,"dashboard-table"],[1,"info-panel-data"],[3,"src"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/pools/service-pools"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),fe(3,EQ,2,3,"button",3,DQ),d(),c(5,"div",4),A(6,MQ,4,1,"div",5),c(7,"button",6),w("click",function(){return o.refresh()}),c(8,"i",7),f(9,"autorenew"),d()(),A(10,AQ,4,5,"div",8),A(11,RQ,2,2,"div",9),d()(),A(12,OQ,5,0,"div",10)(13,oK,76,15),d()),n&2&&(m(3),ge(o.periods),m(3),R(o.data.generated?6:-1),m(),b("disabled",o.loading),m(),le("spinning",o.loading),m(2),R(o.hasLicense?10:-1),m(),R(o.data.since&&o.data.until?11:-1),m(),R(o.loading?12:13))},dependencies:[mi,Fe,yi,ym,Ee,aV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.dashboard[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.dashboard-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1rem 1.5rem 2rem}.period-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.25rem}.period-button[_ngcontent-%COMP%]{border:1px solid rgba(128,138,158,.45);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff;border-color:transparent}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem}.toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.last-updated[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8rem;white-space:nowrap}.refresh-button[_ngcontent-%COMP%]{color:var(--text-secondary)}.refresh-button[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{display:block}.refresh-button[_ngcontent-%COMP%] i.spinning[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dashboard-refresh-spin 1s linear infinite}@keyframes _ngcontent-%COMP%_dashboard-refresh-spin{to{transform:rotate(360deg)}}.license-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.4rem;padding:.35rem .85rem;border-radius:999px;font-size:.8rem;font-weight:500;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:var(--text-secondary);white-space:nowrap;cursor:pointer;transition:background .2s ease}.license-badge[_ngcontent-%COMP%]:hover{background:#10b98133}.license-badge.license-expiring[_ngcontent-%COMP%]{background:#f59e0b1f;border-color:#f59e0b66;color:#f59e0b}.license-badge.license-expiring[_ngcontent-%COMP%]:hover{background:#f59e0b38}.license-badge.license-expired[_ngcontent-%COMP%]{background:#ef44441f;border-color:#ef444466;color:#ef4444}.license-badge.license-expired[_ngcontent-%COMP%]:hover{background:#ef444438}.license-icon[_ngcontent-%COMP%]{font-weight:700;font-size:.85rem}.dashboard-loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:4rem 0;color:var(--text-secondary)}.kpi-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding-left:3rem;padding-right:3rem}@media(max-width:720px){.kpi-row[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.kpi-card[_ngcontent-%COMP%]{display:block;background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 4px 15px var(--glass-shadow);padding:1.25rem 1rem;text-align:center;text-decoration:none;color:inherit;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.kpi-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 25px var(--glass-shadow)}.kpi-card[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--bg-button);outline-offset:2px}.kpi-value[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:var(--text-primary);line-height:1.1}.kpi-label[_ngcontent-%COMP%]{margin-top:.35rem;font-size:.8rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.kpi-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4);background:#ef44441a}.kpi-danger[_ngcontent-%COMP%] .kpi-value[_ngcontent-%COMP%]{color:#ef4444}.chart-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:1.25rem;padding:3rem}@media(max-width:720px){.chart-grid[_ngcontent-%COMP%]{padding:1rem;grid-template-columns:1fr}}.chart-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);color:var(--text-primary);display:flex;flex-direction:column;overflow:hidden}.chart-card-wide[_ngcontent-%COMP%]{grid-column:1/-1}.legacy-charts[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:1024px){.legacy-charts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 3rem 0}@media(max-width:720px){.chart-card-table[_ngcontent-%COMP%]{margin:1.25rem 1rem 0}}.chart-title[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-bottom:1px solid var(--glass-border);padding:12px 16px;text-align:center;font-weight:600;font-size:.9rem}.chart-body[_ngcontent-%COMP%]{height:320px;width:100%;padding:.5rem;box-sizing:border-box}.chart-card-wide[_ngcontent-%COMP%] .chart-body[_ngcontent-%COMP%]{height:380px}.chart-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:320px;color:var(--text-secondary);font-size:.9rem;padding:1rem;text-align:center}.dashboard-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.88rem}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.55rem .9rem;text-align:left;border-bottom:1px solid var(--glass-border)}.dashboard-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--text-secondary);text-transform:uppercase;font-size:.75rem;letter-spacing:.5px}.dashboard-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--text-primary)}.dashboard-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)}.info-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1.5rem;margin-bottom:1.5rem;padding:0 3rem}@media(max-width:720px){.info-row[_ngcontent-%COMP%]{padding:0 1rem}}.info-panel[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:20px;box-shadow:0 4px 15px var(--glass-shadow);box-sizing:border-box;color:var(--text-primary);display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}.info-panel[_ngcontent-%COMP%]:hover{transform:translateY(-5px);background:var(--glass-hover-bg);box-shadow:0 8px 25px var(--glass-shadow)}.info-danger[_ngcontent-%COMP%]{border:1px solid rgba(239,68,68,.4)!important;background:#ef44441a!important}.info-danger[_ngcontent-%COMP%] .info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ef4444!important}.info-danger[_ngcontent-%COMP%] .info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ef4444,#b91c1c)!important}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1.5rem;flex-grow:1}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1.5rem;width:3.5rem;height:3.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.info-text[_ngcontent-%COMP%]{width:100%;min-height:4rem;text-align:left}.info-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;margin:0}.info-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;font-weight:600;font-size:1.2rem;color:var(--text-primary)}.info-text[_ngcontent-%COMP%] uds-translate[_ngcontent-%COMP%]{font-weight:400;font-size:.85rem;color:var(--text-secondary);display:block;margin-top:2px}.info-panel-link[_ngcontent-%COMP%]{background:var(--glass-header-bg);border-top:1px solid var(--glass-border);padding:8px;text-align:center}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:var(--text-primary)!important;font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}"]})}}return t})();function aK(t,i){t&1&&O(0,"uds-dashboard")}function sK(t,i){t&1&&(c(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),f(4,"UDS Administration"),d()(),c(5,"div",5)(6,"p")(7,"uds-translate"),f(8,"You are accessing UDS Administration as staff member."),d()(),c(9,"p")(10,"uds-translate"),f(11,"This means that you have restricted access to elements."),d()(),c(12,"p")(13,"uds-translate"),f(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),O(15,"br"),c(16,"p")(17,"uds-translate"),f(18,"Thank you."),d()()()()())}var lV=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n}ngOnInit(){this.headerService.setTitle(django.gettext("Dashboard"),"dashboard-monitor")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Jl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1),A(2,aK,1,0,"uds-dashboard")(3,sK,19,0,"div",2),d()()),n&2&&(m(2),R(o.api.user.isAdmin?2:3))},dependencies:[Ee,sV],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.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}"]})}}return t})();var Cs=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new Z;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var N0=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,l)=>{let u,h;if(a.previousIndex==null){let g=n(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Fa.INSERTED}else l==null?(e.remove(s),h=Fa.REMOVED):(u=e.get(s),e.move(u,l),h=Fa.MOVED);r&&r({context:u?.context,operation:h,record:a})})}detach(){}};var lK=["notch"],cK=["matFormFieldNotchedOutline",""],dK=["*"],cV=["iconPrefixContainer"],dV=["textPrefixContainer"],uV=["iconSuffixContainer"],mV=["textSuffixContainer"],uK=["textField"],mK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function hK(t,i){t&1&&O(0,"span",21)}function fK(t,i){if(t&1&&(c(0,"label",20),Ie(1,1),A(2,hK,1,0,"span",21),d()),t&2){let e=_(2);b("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),me("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),R(!e.hideRequiredMarker&&e._control.required?2:-1)}}function gK(t,i){if(t&1&&A(0,fK,3,5,"label",20),t&2){let e=_();R(e._hasFloatingLabel()?0:-1)}}function _K(t,i){t&1&&O(0,"div",7)}function vK(t,i){}function bK(t,i){if(t&1&&we(0,vK,0,0,"ng-template",13),t&2){_(2);let e=Pt(1);b("ngTemplateOutlet",e)}}function yK(t,i){if(t&1&&(c(0,"div",9),A(1,bK,1,1,null,13),d()),t&2){let e=_();b("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),R(e._forceDisplayInfixLabel()?-1:1)}}function CK(t,i){t&1&&(c(0,"div",10,2),Ie(2,2),d())}function wK(t,i){t&1&&(c(0,"div",11,3),Ie(2,3),d())}function xK(t,i){}function DK(t,i){if(t&1&&we(0,xK,0,0,"ng-template",13),t&2){_();let e=Pt(1);b("ngTemplateOutlet",e)}}function SK(t,i){t&1&&(c(0,"div",14,4),Ie(2,4),d())}function EK(t,i){t&1&&(c(0,"div",15,5),Ie(2,5),d())}function MK(t,i){t&1&&O(0,"div",16)}function TK(t,i){t&1&&(c(0,"div",18),Ie(1,6),d())}function IK(t,i){if(t&1&&(c(0,"mat-hint",22),f(1),d()),t&2){let e=_(2);b("id",e._hintLabelId),m(),_e(e.hintLabel)}}function kK(t,i){if(t&1&&(c(0,"div",19),A(1,IK,2,2,"mat-hint",22),Ie(2,7),O(3,"div",23),Ie(4,8),d()),t&2){let e=_();m(),R(e.hintLabel?1:-1)}}var st=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-label"]]})}return t})(),bV=new L("MatError");var SM=(()=>{class t{align="start";id=p(zt).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(On("id",o.id),me("align",null),le("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),yV=new L("MatPrefix");var EM=new L("MatSuffix"),Ar=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ke([{provide:EM,useExisting:t}])]})}return t})(),CV=new L("FloatingLabelParent"),pV=(()=>{class t{_elementRef=p(se);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=p(d0);_ngZone=p(be);_parent=p(CV);_resizeSubscription=new Ue;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return AK(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())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function AK(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var hV="mdc-line-ripple--active",F0="mdc-line-ripple--deactivating",fV=(()=>{class t{_elementRef=p(se);_cleanupTransitionEnd;constructor(){let e=p(be),n=p(Zt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(F0),e.add(hV)}deactivate(){this._elementRef.nativeElement.classList.add(F0)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(F0);e.propertyName==="opacity"&&o&&n.remove(hV,F0)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),gV=(()=>{class t{_elementRef=p(se);_ngZone=p(be);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&at(lK,5),n&2){let r;X(r=J())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&le("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:cK,ngContentSelectors:dK,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&&(vt(),mo(0,"div",1),dn(1,"div",2,0),Ie(3),pn(),mo(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Js=(()=>{class t{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t})}return t})();var ia=new L("MatFormField"),L0=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_V="fill",RK="auto",vV="fixed",OK="translateY(-50%)",ze=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_platform=p(Ft);_idGenerator=p(zt);_ngZone=p(be);_defaults=p(L0,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Qp("iconPrefixContainer");_textPrefixContainerSignal=Qp("textPrefixContainer");_iconSuffixContainerSignal=Qp("iconSuffixContainer");_textSuffixContainerSignal=Qp("textSuffixContainer");_prefixSuffixContainers=Lo(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=TO(st);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Yr(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||RK}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||_V;this._appearanceSignal.set(n)}_appearanceSignal=Re(_V);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||vV}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||vV}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new Z;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Bt();constructor(){let e=this._defaults,n=p(wn);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),Fs(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Lo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(cn([void 0,void 0]),Qe(()=>[n.errorState,n.userAriaDescribedBy]),yg(),At(([[r,a],[s,l]])=>r!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),rn(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(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){FO({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Lo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,u=r?.getBoundingClientRect().width??0,h=this._currentDirection==="rtl"?"-1":"1",g=`${a+s}px`,x=`calc(${h} * (${g} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,S=`var(--mat-mdc-form-field-label-transform, ${OK} translateX(${x}))`,P=a+s+l+u;return[S,P]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(q_(r,o._labelChild,st,5),Mn(r,Js,5)(r,yV,5)(r,EM,5)(r,bV,5)(r,SM,5)),n&2){Q_();let a;X(a=J())&&(o._formFieldControl=a.first),X(a=J())&&(o._prefixChildren=a),X(a=J())&&(o._suffixChildren=a),X(a=J())&&(o._errorChildren=a),X(a=J())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(Y_(o._iconPrefixContainerSignal,cV,5)(o._textPrefixContainerSignal,dV,5)(o._iconSuffixContainerSignal,uV,5)(o._textSuffixContainerSignal,mV,5),at(uK,5)(cV,5)(dV,5)(uV,5)(mV,5)(pV,5)(gV,5)(fV,5)),n&2){Q_(4);let r;X(r=J())&&(o._textField=r.first),X(r=J())&&(o._iconPrefixContainer=r.first),X(r=J())&&(o._textPrefixContainer=r.first),X(r=J())&&(o._iconSuffixContainer=r.first),X(r=J())&&(o._textSuffixContainer=r.first),X(r=J())&&(o._floatingLabel=r.first),X(r=J())&&(o._notchedOutline=r.first),X(r=J())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&le("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-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("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"],features:[Ke([{provide:ia,useExisting:t},{provide:CV,useExisting:t}])],ngContentSelectors:pK,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",""],["aria-atomic","true","aria-live","polite",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&&(vt(mK),we(0,gK,1,1,"ng-template",null,0,qp),c(2,"div",6,1),w("click",function(a){return o._control.onContainerClick(a)}),A(4,_K,1,0,"div",7),c(5,"div",8),A(6,yK,2,2,"div",9),A(7,CK,3,0,"div",10),A(8,wK,3,0,"div",11),c(9,"div",12),A(10,DK,1,1,null,13),Ie(11),d(),A(12,SK,3,0,"div",14),A(13,EK,3,0,"div",15),d(),A(14,MK,1,0,"div",16),d(),c(15,"div",17),A(16,TK,2,0,"div",18)(17,kK,5,1,"div",19),d()),n&2){let r;m(2),le("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),m(2),R(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),R(o._hasOutline()?6:-1),m(),R(o._hasIconPrefix?7:-1),m(),R(o._hasTextPrefix?8:-1),m(2),R(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),R(o._hasTextSuffix?12:-1),m(),R(o._hasIconSuffix?13:-1),m(),R(o._hasOutline()?-1:14),m(),le("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(),R((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[pV,gV,Xp,fV,SM],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -2983,7 +2983,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[sb,ze,pt]})}return t})();var OK=["trigger"],PK=["panel"],NK=[[["mat-select-trigger"]],"*"],FK=["mat-select-trigger","*"];function LK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function VK(t,i){t&1&&Ie(0)}function BK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function jK(t,i){if(t&1&&(c(0,"span",5),A(1,VK,1,0)(2,BK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function zK(t,i){if(t&1){let e=W();c(0,"div",12,1),x("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var UK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),HK=new L("MAT_SELECT_CONFIG"),CV=new L("MatSelectTrigger"),EM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(ho);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(xn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(ia,{optional:!0});ngControl=p(ir,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(HK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=tf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=nf(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new EM(this,e)}_scrollStrategyFactory=p(UK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=pr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),Qe(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),Qe(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(Jr,{optional:!0}),o=p(Ql,{optional:!0}),r=p(new Wi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Zl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Cs(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Je(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(Je(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Je(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=Gi(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,CV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(OK,5)(PK,5)(ob,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ke([{provide:Js,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:FK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(NK),c(0,"div",2,0),x("click",function(){return o.open()}),c(3,"div",3),A(4,LK,2,1,"span",4)(5,jK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),xe(10,zK,3,16,"ng-template",10),x("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,ob],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return t})();var yd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[lb,ze,pt]})}return t})();var PK=["trigger"],NK=["panel"],FK=[[["mat-select-trigger"]],"*"],LK=["mat-select-trigger","*"];function VK(t,i){if(t&1&&(c(0,"span",4),f(1),d()),t&2){let e=_();m(),_e(e.placeholder)}}function BK(t,i){t&1&&Ie(0)}function jK(t,i){if(t&1&&(c(0,"span",11),f(1),d()),t&2){let e=_(2);m(),_e(e.triggerValue)}}function zK(t,i){if(t&1&&(c(0,"span",5),A(1,BK,1,0)(2,jK,2,1,"span",11),d()),t&2){let e=_();m(),R(e.customTrigger?1:2)}}function UK(t,i){if(t&1){let e=W();c(0,"div",12,1),w("keydown",function(o){I(e);let r=_();return k(r._handleKeydown(o))}),Ie(2,1),d()}if(t&2){let e=_();Tn(e.panelClass),le("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var HK=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),WK=new L("MAT_SELECT_CONFIG"),wV=new L("MatSelectTrigger"),MM=class{source;value;constructor(i,e){this.source=i,this.value=e}},en=(()=>{class t{_viewportRuler=p(ho);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(wn,{optional:!0});_idGenerator=p(zt);_renderer=p(Zt);_parentFormField=p(ia,{optional:!0});ngControl=p(ir,{self:!0,optional:!0});_liveAnnouncer=p(Fh);_defaultOptions=p(WK,{optional:!0});_animationsDisabled=Bt();_popoverLocation;_initialized=new Z;_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=nf(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=of(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MM(this,e)}_scrollStrategyFactory=p(HK);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new Z;_errorStateTracker;stateChanges=new Z;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Re(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=pr(()=>{let e=this.options;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelectionChanges))});openedChange=new V;_openedStream=this.openedChange.pipe(At(e=>e),Qe(()=>{}));_closedStream=this.openedChange.pipe(At(e=>!e),Qe(()=>{}));selectionChange=new V;valueChange=new V;constructor(){let e=p(pd),n=p(ea,{optional:!0}),o=p(Kl,{optional:!0}),r=p(new Wi("tabindex"),{optional:!0}),a=p(Rh,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Xl(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this._popoverLocation=a?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new Cs(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Je(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(Je(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(cn(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):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(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),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._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(bn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&ql(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;ql(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!un(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!un(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!un(e)&&(e.preventDefault(),this.close())}_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())}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(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch(r){return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof tm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new dd(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 e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Je(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,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 e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(e){let n=Gi(e);n&&(n.tagName==="MAT-OPTION"||n.classList.contains("cdk-overlay-backdrop")||n.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,wV,5)(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.customTrigger=a.first),X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(PK,5)(NK,5)(rb,5),n&2){let r;X(r=J())&&(o.trigger=r.first),X(r=J())&&(o.panel=r.first),X(r=J())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&w("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(me("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()),le("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)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K],placeholder:"placeholder",required:[2,"required","required",K],multiple:[2,"multiple","multiple",K],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",K],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ti],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",K]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ke([{provide:Js,useExisting:t},{provide:_m,useExisting:t}]),Ct],ngContentSelectors:LK,decls:11,vars:10,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","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(n,o){if(n&1&&(vt(FK),c(0,"div",2,0),w("click",function(){return o.open()}),c(3,"div",3),A(4,VK,2,1,"span",4)(5,zK,3,1,"span",5),d(),c(6,"div",6)(7,"div",7),Gn(),c(8,"svg",8),O(9,"path",9),d()()()(),we(10,UK,3,16,"ng-template",10),w("detach",function(){return o.close()})("backdropClick",function(){return o.close()})("overlayKeydown",function(a){return o._handleOverlayKeydown(a)})),n&2){let r=Pt(1);m(3),me("id",o._valueId),m(),R(o.empty?4:5),m(6),b("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",o._popoverLocation)}},dependencies:[tm,rb],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -3172,7 +3172,7 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return t})(),L0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ke([{provide:CV,useExisting:t}])]})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,pt,xr,yd,bm]})}return t})();var WK=["tooltip"],$K=20;var GK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t,{scrollThrottle:$K})}}),qK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",YK={passive:!0},QK=8,KK=8,ZK=24,XK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(hb);_focusMonitor=p(Oi);_dir=p(xn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(qK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=wV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Yr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Yr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=QK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 nr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(zl).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=La(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Je(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Uo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(GK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(G(G({},o.main),r.main)),this._addOffset(G(G({},o.fallback),r.fallback))])}_addOffset(e){let n=KK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,YK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),wV=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>ZK&&e.width>=XK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at(WK,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&x("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Pl("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { +`],encapsulation:2,changeDetection:0})}return t})(),V0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-select-trigger"]],features:[Ke([{provide:wV,useExisting:t}])]})}return t})(),B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,pt,wr,yd,bm]})}return t})();var $K=["tooltip"],GK=20;var qK=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t,{scrollThrottle:GK})}}),YK=new L("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var xV="tooltip-panel",QK={passive:!0},KK=8,ZK=8,XK=24,JK=200,Yo=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_ariaDescriber=p(fb);_focusMonitor=p(Oi);_dir=p(wn);_injector=p(Te);_viewContainerRef=p(En);_mediaMatcher=p(im);_document=p(ke);_renderer=p(Zt);_animationsDisabled=Bt();_defaultOptions=p(YK,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=DV;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Yr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Yr(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pa(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new Z;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=KK}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(n=>n()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 nr(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof se)return this._overlayRef;this._detach()}let n=this._injector.get(Ul).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${xV}`,r=La(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n).withPopoverLocation("global");return r.positionChanges.pipe(Je(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Uo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(qK)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(a=>{a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(q(q({},o.main),r.main)),this._addOffset(q(q({},o.fallback),r.fallback))])}_addOffset(e){let n=ZK,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!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"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!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"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),nn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${xV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let n=e.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,n){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,n,QK))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||nn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!un(e):!0;static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&le("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"]})}return t})(),DV=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Bt();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>XK&&e.width>=JK}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&at($K,7),n&2){let r;X(r=J())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&w("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){n&1&&(dn(0,"div",1,0),Nl("animationend",function(a){return o._handleAnimationEnd(a)}),dn(2,"div",2),f(3),pn()()),n&2&&(Tn(o.tooltipClass),le("mdc-tooltip--multiline",o._isMultiline),m(3),_e(o.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -3277,7 +3277,7 @@ div.mat-mdc-select-panel { .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return t})();var B0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,fo,pt,xr]})}return t})();function JK(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function eZ(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,JK,2,2,"mat-option",17,De),d(),c(5,"div",18),x("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function tZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function nZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,eZ,6,7,"mat-form-field",14),A(4,tZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function iZ(t,i){if(t&1){let e=W();c(0,"button",19),x("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function oZ(t,i){if(t&1){let e=W();c(0,"button",21),x("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var uf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(uf);_changeDetectorRef=p(Ze);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Br(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(aZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,nZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,iZ,3,5,"button",6),c(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),Da(),c(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,oZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { +`],encapsulation:2,changeDetection:0})}return t})();var j0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[cd,fo,pt,wr]})}return t})();function eZ(t,i){if(t&1&&(c(0,"mat-option",17),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function tZ(t,i){if(t&1){let e=W();c(0,"mat-form-field",14)(1,"mat-select",16,0),w("selectionChange",function(o){I(e);let r=_(2);return k(r._changePageSize(o.value))}),fe(3,eZ,2,2,"mat-option",17,De),d(),c(5,"div",18),w("click",function(){I(e);let o=Pt(2);return k(o.open())}),d()()}if(t&2){let e=_(2);b("appearance",e._formFieldAppearance)("color",e.color),m(),b("value",e.pageSize)("disabled",e.disabled),Au("aria-labelledby",e._pageSizeLabelId),b("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(2),ge(e._displayedPageSizeOptions)}}function nZ(t,i){if(t&1&&(c(0,"div",15),f(1),d()),t&2){let e=_(2);m(),_e(e.pageSize)}}function iZ(t,i){if(t&1&&(c(0,"div",3)(1,"div",13),f(2),d(),A(3,tZ,6,7,"mat-form-field",14),A(4,nZ,2,1,"div",15),d()),t&2){let e=_();m(),me("id",e._pageSizeLabelId),m(),H(" ",e._intl.itemsPerPageLabel," "),m(),R(e._displayedPageSizeOptions.length>1?3:-1),m(),R(e._displayedPageSizeOptions.length<=1?4:-1)}}function oZ(t,i){if(t&1){let e=W();c(0,"button",19),w("click",function(){I(e);let o=_();return k(o._buttonClicked(0,o._previousButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",20),d()()}if(t&2){let e=_();b("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),me("aria-label",e._intl.firstPageLabel)}}function rZ(t,i){if(t&1){let e=W();c(0,"button",21),w("click",function(){I(e);let o=_();return k(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),Gn(),c(1,"svg",8),O(2,"path",22),d()()}if(t&2){let e=_();b("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),me("aria-label",e._intl.lastPageLabel)}}var mf=(()=>{class t{changes=new Z;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=p(mf);_changeDetectorRef=p(Ze);_formFieldAppearance;_pageSizeLabelId=p(zt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Br(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ti(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(sZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ti],length:[2,"length","length",ti],pageSize:[2,"pageSize","pageSize",ti],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",K],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",K],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",K]},outputs:{page:"page"},exportAs:["matPaginator"],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-atomic","true","aria-live","polite","role","status",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["aria-hidden","true",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"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["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),A(2,iZ,5,4,"div",3),c(3,"div",4)(4,"div",5),f(5),d(),A(6,oZ,3,5,"button",6),c(7,"button",7),w("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),Gn(),c(8,"svg",8),O(9,"path",9),d()(),Da(),c(10,"button",10),w("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),Gn(),c(11,"svg",8),O(12,"path",11),d()(),A(13,rZ,3,5,"button",12),d()()()),n&2&&(m(2),R(o.hidePageSize?-1:2),m(3),H(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),R(o.showFirstLastButtons?6:-1),m(),b("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),me("aria-label",o._intl.previousPageLabel),m(3),b("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),me("aria-label",o._intl.nextPageLabel),m(3),R(o.showFirstLastButtons?13:-1))},dependencies:[ze,en,Mt,yi,Yo],styles:[`.mat-mdc-paginator { display: block; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; @@ -3378,10 +3378,10 @@ div.mat-mdc-select-panel { transform: translate(-50%, -50%); cursor: pointer; } -`],encapsulation:2,changeDetection:0})}return t})(),DV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[vs,V0,B0,el]})}return t})();var sZ=[[["caption"]],[["colgroup"],["col"]],"*"],lZ=["caption","colgroup, col","*"];function cZ(t,i){t&1&&Ie(0,2)}function dZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function uZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var za=new L("CDK_TABLE");var H0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),TV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(za,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,H0,5)(r,W0,5)(r,TV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),U0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},IV=(()=>{class t extends U0{constructor(){super(p(tc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var kV=(()=>{class t extends U0{constructor(){let e=p(tc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var TM=(()=>{class t{template=p(mn);_differs=p(zs);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof IM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),pf=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),IM=(()=>{class t extends TM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),$0=(()=>{class t extends TM{_table=p(za,{optional:!0});when;constructor(){super(p(mn),p(zs))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),kM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),AV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),EV=["top","bottom","left","right"],MM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),w,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{w=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(w,e),P=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:w.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:w.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);EV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of EV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&mZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function mZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var mf=new L("STICKY_POSITIONING_LISTENER");var RM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),FM=(()=>{class t{_differs=p(zs);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(xn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(ho);_injector=p(Te);_virtualScrollViewport=p(_N,{optional:!0,host:!0});_positionListener=p(mf,{optional:!0})||p(mf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Wi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Je(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Zv:new P0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Fa.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=MV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),z0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=z0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=z0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=z0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=yo([e,this.viewChange]).pipe(Je(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new MM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Je(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?Jf:Kf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Je(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),yo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Je(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let w=r.get(y+a);if(w&&w.rootNodes.length){u=w.rootNodes[w.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,AV,5)(r,tc,5)(r,$0,5)(r,pf,5)(r,IM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ke([{provide:za,useExisting:t},{provide:mf,useValue:null}])],ngContentSelectors:lZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(sZ),Ie(0),Ie(1,1),A(2,cZ,1,0),A(3,dZ,7,0)(4,uZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.cdk-table-fixed-layout { +`],encapsulation:2,changeDetection:0})}return t})(),SV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[vs,B0,j0,el]})}return t})();var lZ=[[["caption"]],[["colgroup"],["col"]],"*"],cZ=["caption","colgroup, col","*"];function dZ(t,i){t&1&&Ie(0,2)}function uZ(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",0),Ri(3,2)(4,3),d(),c(5,"tfoot",0),Ri(6,4),d())}function mZ(t,i){t&1&&Ri(0,1)(1,2)(2,3)(3,4)}var za=new L("CDK_TABLE");var W0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),$0=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),IV=(()=>{class t{template=p(mn);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),nc=(()=>{class t{_table=p(za,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,W0,5)(r,$0,5)(r,IV,5),n&2){let a;X(a=J())&&(o.cell=a.first),X(a=J())&&(o.headerCell=a.first),X(a=J())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",K],stickyEnd:[2,"stickyEnd","stickyEnd",K]}})}return t})(),H0=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},kV=(()=>{class t extends H0{constructor(){super(p(nc),p(se))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[We]})}return t})();var AV=(()=>{class t extends H0{constructor(){let e=p(nc),n=p(se);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[We]})}return t})();var IM=(()=>{class t{template=p(mn);_differs=p(zs);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hf?e.headerCell.template:this instanceof kM?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,features:[Ct]})}return t})(),hf=(()=>{class t extends IM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),kM=(()=>{class t extends IM{_table=p(za,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(p(mn),p(zs))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",K]},features:[We,Ct]})}return t})(),G0=(()=>{class t extends IM{_table=p(za,{optional:!0});when;constructor(){super(p(mn),p(zs))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[We]})}return t})(),Cd=(()=>{class t{_viewContainer=p(En);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),AM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var RM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})(),RV=(()=>{class t{templateRef=p(mn);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),MV=["top","bottom","left","right"],TM=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));nn({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(j=>j)||n.some(j=>j))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,l=this.direction==="rtl",u=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),y=n.indexOf(!0),x,S,P;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),nn({earlyRead:()=>{x=this._getCellWidths(a,o),S=this._getStickyStartColumnPositions(x,e),P=this._getStickyEndColumnPositions(x,n)},write:()=>{for(let j of i)for(let F=0;F!!j)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:x.slice(0,g+1).map((j,F)=>e[F]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:y===-1?[]:x.slice(y).map((j,F)=>n[F+y]?j:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];nn({earlyRead:()=>{for(let u=0,h=0;u{let u=r.lastIndexOf(!0);for(let h=0;h{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);MV.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of MV)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&pZ(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function pZ(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var pf=new L("STICKY_POSITIONING_LISTENER");var OM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]})}return t})(),PM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),NM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),FM=(()=>{class t{viewContainer=p(En);elementRef=p(se);constructor(){let e=p(za);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),LM=(()=>{class t{_differs=p(zs);_changeDetectorRef=p(Ze);_elementRef=p(se);_dir=p(wn,{optional:!0});_platform=p(Ft);_viewRepeater;_viewportRuler=p(ho);_injector=p(Te);_virtualScrollViewport=p(vN,{optional:!0,host:!0});_positionListener=p(pf,{optional:!0})||p(pf,{optional:!0,skipSelf:!0});_document=p(ke);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new V;viewChange=new on({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){p(new Wi("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Je(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new Xv:new N0,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),Mh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Fa.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=TV(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=TV(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_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(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],n=Math.min(this._data.length,this._renderedRange.end),o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r{let s=o&&o.has(a)?o.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=n,l}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),U0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=U0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=U0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=U0(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],Mh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Mh(this.dataSource)?e=this.dataSource.connect(this):Dc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Me(this.dataSource)),this._renderChangeSubscription=yo([e,this.viewChange]).pipe(Je(this._onDestroy)).subscribe(([n,o])=>{this._data=n||[],this._renderedRange=o,this._dataStream.next(n),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))Cd.mostRecentCellOutlet&&Cd.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",n=this._injector;this._stickyStyler=new TM(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,n),(this._dir?this._dir.change:Me()).pipe(Je(this._onDestroy)).subscribe(o=>{this._stickyStyler.direction=o,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let n=typeof requestAnimationFrame<"u"?eg:Zf;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(au(0,n),Je(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(o,r)=>this._measureRangeSize(o,r)}),yo([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Je(this._onDestroy)).subscribe(([o,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let l=0;l=e.end||n!=="vertical")return 0;let o=this.viewChange.value,r=this._rowOutlet.viewContainer;e.starto.end;let a=e.start-o.start,s=e.end-e.start,l,u;for(let y=0;y-1;y--){let x=r.get(y+a);if(x&&x.rootNodes.length){u=x.rootNodes[x.rootNodes.length-1];break}}let h=l?.getBoundingClientRect?.(),g=u?.getBoundingClientRect?.();return h&&g?g.bottom-h.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,RV,5)(r,nc,5)(r,G0,5)(r,hf,5)(r,kM,5),n&2){let a;X(a=J())&&(o._noDataRow=a.first),X(a=J())&&(o._contentColumnDefs=a),X(a=J())&&(o._contentRowDefs=a),X(a=J())&&(o._contentHeaderRowDefs=a),X(a=J())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&le("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",K],fixedLayout:[2,"fixedLayout","fixedLayout",K],recycleRows:[2,"recycleRows","recycleRows",K]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ke([{provide:za,useExisting:t},{provide:pf,useValue:null}])],ngContentSelectors:cZ,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(lZ),Ie(0),Ie(1,1),A(2,dZ,1,0),A(3,uZ,7,0)(4,mZ,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.cdk-table-fixed-layout { table-layout: fixed; } -`],encapsulation:2})}return t})();function z0(t,i){return t.concat(Array.from(i))}function MV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var RV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var pZ=["mat-sort-header",""],hZ=["*",[["","matSortHeaderIcon",""]]],fZ=["*","[matSortHeaderIcon]"];function gZ(t,i){t&1&&(Gn(),dn(0,"svg",3),mo(1,"path",4),pn())}function _Z(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,gZ,2,0),pn())}var OV=new L("MAT_SORT_DEFAULT_OPTIONS"),tl=(()=>{class t{_defaultOptions;_initializedStream=new Br(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=vZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(OV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function vZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var G0=(()=>{class t{_sort=p(tl,{optional:!0});_columnDef=p(tc,{optional:!0});_changeDetectorRef=p(Ze);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(hb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(OV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:pZ,ngContentSelectors:fZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(hZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,_Z,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { +`],encapsulation:2})}return t})();function U0(t,i){return t.concat(Array.from(i))}function TV(t,i){let e=i.toUpperCase(),n=t.viewContainer.element.nativeElement;for(;n;){let o=n.nodeType===1?n.nodeName:null;if(o===e)return n;if(o==="TABLE")break;n=n.parentNode}return null}var OV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ih]})}return t})();var hZ=["mat-sort-header",""],fZ=["*",[["","matSortHeaderIcon",""]]],gZ=["*","[matSortHeaderIcon]"];function _Z(t,i){t&1&&(Gn(),dn(0,"svg",3),mo(1,"path",4),pn())}function vZ(t,i){t&1&&(dn(0,"div",2),Ie(1,1,null,_Z,2,0),pn())}var PV=new L("MAT_SORT_DEFAULT_OPTIONS"),tl=(()=>{class t{_defaultOptions;_initializedStream=new Br(1);sortables=new Map;_stateChanges=new Z;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new V;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=bZ(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(D(PV,8))};static \u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",K],disabled:[2,"matSortDisabled","disabled",K]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ct]})}return t})();function bZ(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var q0=(()=>{class t{_sort=p(tl,{optional:!0});_columnDef=p(nc,{optional:!0});_changeDetectorRef=p(Ze);_focusMonitor=p(Oi);_elementRef=p(se);_ariaDescriber=p(fb,{optional:!0});_renderChanges;_animationsDisabled=Bt();_recentlyCleared=Re(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(an).load(Mi);let e=p(PV,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=rn(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_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(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&w("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(me("aria-sort",o._getAriaSortAttribute()),le("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",K],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",K]},exportAs:["matSortHeader"],attrs:hZ,ngContentSelectors:gZ,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(vt(fZ),dn(0,"div",0)(1,"div",1),Ie(2),pn(),A(3,vZ,3,0,"div",2),pn()),n&2&&(le("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),me("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),R(o._renderArrow()?3:-1))},styles:[`.mat-sort-header { cursor: pointer; } @@ -3480,7 +3480,7 @@ div.mat-mdc-select-panel { .mat-sort-header-position-before .mat-sort-header-arrow, [dir=rtl] .mat-sort-header-arrow { margin: 0 6px 0 0; } -`],encapsulation:2,changeDetection:0})}return t})(),PV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bZ=["input"],yZ=["label"],CZ=["*"],LM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},xZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>LM}),Eo=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Eo||{}),VM=class{source;checked},hf=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_animationsDisabled=Bt();_options=p(xZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new VM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Eo.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0});this._options=this._options||LM,this.color=this._options.color||LM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Eo.Indeterminate):this._transitionCheckState(this.checked?Eo.Checked:Eo.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Eo.Checked:Eo.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Eo.Init:if(n===Eo.Checked)return this._animationClasses.uncheckedToChecked;if(n==Eo.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Eo.Unchecked:return n===Eo.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Eo.Checked:return n===Eo.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Eo.Indeterminate:return n===Eo.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(bZ,5)(yZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:CZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),x("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),x("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),x("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),Da(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Sr,Yb],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),NV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var yZ=["input"],CZ=["label"],wZ=["*"],VM={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},xZ=new L("mat-checkbox-default-options",{providedIn:"root",factory:()=>VM}),Eo=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})(Eo||{}),BM=class{source;checked},ff=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_ngZone=p(be);_animationsDisabled=Bt();_options=p(xZ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new BM;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new V;indeterminateChange=new V;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Eo.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0});this._options=this._options||VM,this.color=this._options.color||VM.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(zt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState(Eo.Indeterminate):this._transitionCheckState(this.checked?Eo.Checked:Eo.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Re(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Eo.Checked:Eo.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case Eo.Init:if(n===Eo.Checked)return this._animationClasses.uncheckedToChecked;if(n==Eo.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Eo.Unchecked:return n===Eo.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Eo.Checked:return n===Eo.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Eo.Indeterminate:return n===Eo.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&at(yZ,5)(CZ,5),n&2){let r;X(r=J())&&(o._inputElement=r.first),X(r=J())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:"mat-accent"),le("_mat-animation-noopable",o._animationsDisabled)("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"],ariaExpanded:[2,"aria-expanded","ariaExpanded",K],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",K],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ti(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K],checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],indeterminate:[2,"indeterminate","indeterminate",K]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Jr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:wZ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",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"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",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","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1&&(vt(),c(0,"div",3),w("click",function(a){return o._preventBubblingFromLabel(a)}),c(1,"div",4,0)(3,"div",5),w("click",function(){return o._onTouchTargetClick()}),d(),c(4,"input",6,1),w("blur",function(){return o._onBlur()})("click",function(){return o._onInputClick()})("change",function(a){return o._onInteractionEvent(a)}),d(),O(6,"div",7),c(7,"div",8),Gn(),c(8,"svg",9),O(9,"path",10),d(),Da(),O(10,"div",11),d(),O(11,"div",12),d(),c(12,"label",13,2),Ie(14),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(4),le("mdc-checkbox--selected",o.checked),b("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),me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),b("for",o.inputId)}},dependencies:[Sr,_0],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -3953,7 +3953,7 @@ div.mat-mdc-select-panel { .mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),FV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[hf,pt]})}return t})();var q0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Yr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Yr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { +`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[ff,pt]})}return t})();var Y0=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Yr(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Yr(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(me("aria-orientation",o.vertical?"vertical":"horizontal"),le("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider { display: block; margin: 0; border-top-style: solid; @@ -3973,7 +3973,7 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return t})(),LV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function VV(t){return Error(`Unable to find icon with the name "${t}"`)}function SZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function BV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var nl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},UV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new nl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw jV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new nl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new nl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw jV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new nl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw BV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Y0(o)):this._loadSvgIconFromConfig(new nl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),Qe(r=>Y0(r)))}getNamedSvgIcon(e,n=""){let o=zV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):wc(VV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Y0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Qe(n=>Y0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Bi(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(Qe(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw VV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),Qe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),Cl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(zV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),HV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kZ=HV.map(t=>`[${t}]`).join(", "),AZ=/^url\(['"]?#(.*?)['"]?\)$/,WV=(()=>{class t{_elementRef=p(se);_iconRegistry=p(UV);_location=p(IZ);_errorHandler=p(Ro);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Wi("aria-hidden"),{optional:!0}),n=p(TZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(kZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(AZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:MZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),VV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();function BV(t){return Error(`Unable to find icon with the name "${t}"`)}function EZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function jV(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function zV(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var nl=class{url;svgText;options;svgElement=null;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},HV=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new nl(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ai.HTML,o);if(!a)throw zV(o);let s=ad(a);return this._addSvgIconConfig(e,n,new nl("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new nl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ai.HTML,n);if(!r)throw zV(n);let a=ad(r);return this._addSvgIconSetConfig(e,new nl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Ai.RESOURCE_URL,e);if(!n)throw jV(e);let o=this._cachedIconsByUrl.get(n);return o?Me(Q0(o)):this._loadSvgIconFromConfig(new nl(e,null)).pipe(fi(r=>this._cachedIconsByUrl.set(n,r)),Qe(r=>Q0(r)))}getNamedSvgIcon(e,n=""){let o=UV(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):bl(BV(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Me(Q0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Qe(n=>Q0(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return Me(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Bi(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Ai.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),Me(null)})));return rp(r).pipe(Qe(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw BV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(fi(n=>e.svgText=n),Qe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Me(null):this._fetchIcon(e).pipe(fi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(ad(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(ad("")),o=e.attributes;for(let r=0;rad(u)),wl(()=>this._inProgressUrlFetches.delete(a)),lp());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(UV(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o{let t=p(ke),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),WV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],AZ=WV.map(t=>`[${t}]`).join(", "),RZ=/^url\(['"]?#(.*?)['"]?\)$/,$V=(()=>{class t{_elementRef=p(se);_iconRegistry=p(HV);_location=p(kZ);_errorHandler=p(Ro);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ue.EMPTY;constructor(){let e=p(new Wi("aria-hidden"),{optional:!0}),n=p(IZ,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(AZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],l=s.getAttribute(a),u=l?l.match(RZ):null;if(u){let h=o.get(s);h||(h=[],o.set(s,h)),h.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(bn(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(me("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),Tn(o.color?"mat-"+o.color:""),le("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",K],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:TZ,decls:1,vars:0,template:function(n,o){n&1&&(vt(),Ie(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -4009,8 +4009,8 @@ div.mat-mdc-select-panel { .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})();var RZ=["searchSelectInput"],OZ=["innerSelectSearch"],PZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],NZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function FZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),x("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function LZ(t,i){t&1&&O(0,"mat-spinner",7)}function VZ(t,i){t&1&&Ie(0,1)}function BZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function jZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function zZ(t,i){if(t&1){let e=W();c(0,"button",11),x("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,VZ,1,0)(2,BZ,1,1,"mat-icon",12)(3,jZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function UZ(t,i){t&1&&Ie(0,2)}function HZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function WZ(t,i){if(t&1&&(c(0,"div",9),A(1,UZ,1,0)(2,HZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var $Z=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),GZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],qZ=new L("mat-selectsearch-default-options"),YZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),BM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(Qe(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(Qe(e=>e?e.length:0));previousSelectedValues;_formControl=new Vb("",{nonNullable:!0});_showNoEntriesFound$=yo([this._formControl.valueChanges,this.optionsLength$]).pipe(Qe(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;_removePanelKeydownListener;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of GZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Je(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus(),this._installPanelKeydownListener()):(this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this.clearSearchInput&&this._reset())}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Je(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Je(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Je(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Je(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_installPanelKeydownListener(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0;let e=this.matSelect.panel?.nativeElement;if(!e)return;let n=o=>{o.key!=="Escape"&&o.stopPropagation()};e.addEventListener("keydown",n),this._removePanelKeydownListener=()=>e.removeEventListener("keydown",n)}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Je(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Je(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ze),D(ho),D(Mt,8),D(ze,8),D(qZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,$Z,5)(r,YZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(RZ,7,se)(OZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:NZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(PZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,FZ,1,5,"mat-checkbox",5),c(5,"input",6,1),x("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,LZ,1,0,"mat-spinner",7),A(8,zZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,WZ,3,1,"div",9),$t(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,jb,Ht,$e,TE,hf,q0,Yo,ym,WV,vs,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var $V=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[BM]})}return t})();function KZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),x("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,KZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Xe,Mt,BM],encapsulation:2})}}return t})();function ZZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function XZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function JZ(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function tX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var GV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,ZZ,2,0,"uds-translate")(2,XZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),x("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,JZ,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),x("changed",function(a){return o.filterUser=a}),d(),fe(13,eX,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,tX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),x("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),x("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var nX=(t,i)=>[t,i];function iX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),Fo(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function oX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),x("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,iX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var qV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield GV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,oX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(ID(1,nX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,xt,Dt,wt,Ee],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}"]})}}return t})();var rX="text/csv",YV=",",QV=`\r -`,KV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',Q0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=KV(o.title)+YV}),i=i.slice(0,-1)+QV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=Yi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=Yi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=Yi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=Yi("TIME_FORMAT",a);break;default:break}i+=KV(a)+YV}i=i.slice(0,-1)+QV}let n=new Blob([i],{type:rX});lm(n,t.title+".csv")});var K0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(w){console.error("onItem error:",w)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var jM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},ZV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new jM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var sX=["mat-menu-item",""],lX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],cX=["mat-icon, [matMenuItemIcon]","*"];function dX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var uX=["*"];function mX(t,i){if(t&1){let e=W();dn(0,"div",0),Pl("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var UM=new L("MAT_MENU_PANEL"),xd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(UM,{optional:!0});_changeDetectorRef=p(Ze);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Hi);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ze);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new qi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ke([{provide:JV,useExisting:t}])]})}return t})(),pX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),zM="_mat-menu-enter",Z0="_mat-menu-exit",nc=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=G({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(pX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ys(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye(G({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Z0;(n||e===zM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===zM||e===Z0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Z0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?zM:Z0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,JV,5)(r,xd,5)(r,xd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ke([{provide:UM,useExisting:t}])],ngContentSelectors:uX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Bs(0,mX,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return t})();var OZ=["searchSelectInput"],PZ=["innerSelectSearch"],NZ=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],FZ=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function LZ(t,i){if(t&1){let e=W();c(0,"mat-checkbox",10),w("change",function(o){I(e);let r=_();return k(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=_();b("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function VZ(t,i){t&1&&O(0,"mat-spinner",7)}function BZ(t,i){t&1&&Ie(0,1)}function jZ(t,i){if(t&1&&O(0,"mat-icon",12),t&2){let e=_(2);b("svgIcon",e.closeSvgIcon)}}function zZ(t,i){if(t&1&&(c(0,"mat-icon"),f(1),d()),t&2){let e=_(2);m(),H(" ",e.closeIcon," ")}}function UZ(t,i){if(t&1){let e=W();c(0,"button",11),w("click",function(){I(e);let o=_();return k(o._reset(!0))}),A(1,BZ,1,0)(2,jZ,1,1,"mat-icon",12)(3,zZ,2,1,"mat-icon"),d()}if(t&2){let e=_();m(),R(e.clearIcon?1:e.closeSvgIcon?2:3)}}function HZ(t,i){t&1&&Ie(0,2)}function WZ(t,i){if(t&1&&f(0),t&2){let e=_(2);H(" ",e.noEntriesFoundLabel," ")}}function $Z(t,i){if(t&1&&(c(0,"div",9),A(1,HZ,1,0)(2,WZ,1,1),d()),t&2){let e=_();m(),R(e.noEntriesFound?1:2)}}var GZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),qZ=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],YZ=new L("mat-selectsearch-default-options"),QZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),jM=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new V;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new on(null);optionsList$=this._options$.pipe(yn(e=>e?e.changes.pipe(Qe(n=>n.toArray()),cn(e.toArray())):Me(null)));optionsLength$=this.optionsList$.pipe(Qe(e=>e?e.length:0));previousSelectedValues;_formControl=new s0("",{nonNullable:!0});_showNoEntriesFound$=yo([this._formControl.valueChanges,this.optionsLength$]).pipe(Qe(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new Z;activeDescendant;_removePanelKeydownListener;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of qZ)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}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(sp(1),Je(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus(),this._installPanelKeydownListener()):(this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this.clearSearchInput&&this._reset())}),this.matSelect.openedChange.pipe(bn(1),yn(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(fi(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(Je(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Je(this._onDestroy)).subscribe(e=>{this.matOption&&(e?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(Je(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Je(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0,this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_installPanelKeydownListener(){this._removePanelKeydownListener?.(),this._removePanelKeydownListener=void 0;let e=this.matSelect.panel?.nativeElement;if(!e)return;let n=o=>{o.key!=="Escape"&&o.stopPropagation()};e.addEventListener("keydown",n),this._removePanelKeydownListener=()=>e.removeEventListener("keydown",n)}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(At(n=>n!==this._lastExternalInputValue),fi(()=>this._lastExternalInputValue=void 0),Je(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&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(Je(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(D(en),D(Ze),D(ho),D(Mt,8),D(ze,8),D(YZ,8))};static \u0275cmp=T({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,GZ,5)(r,QZ,5),n&2){let a;X(a=J())&&(o.clearIcon=a.first),X(a=J())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&at(OZ,7,se)(PZ,7,se),n&2){let r;X(r=J())&&(o.searchSelectInput=r.first),X(r=J())&&(o.innerSelectSearch=r.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:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0}])],ngContentSelectors:FZ,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){n&1&&(vt(NZ),O(0,"input",2),c(1,"div",3,0)(3,"div",4),A(4,LZ,1,5,"mat-checkbox",5),c(5,"input",6,1),w("keydown",function(a){return o._handleKeydown(a)})("keyup",function(a){return o._handleKeyup(a)})("blur",function(){return o.onBlur()}),d(),A(7,VZ,1,0,"mat-spinner",7),A(8,UZ,4,1,"button",8),Ie(9),d(),O(10,"mat-divider"),d(),A(11,$Z,3,1,"div",9),$t(12,"async")),n&2&&(m(),le("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),m(3),R(o._isToggleAllCheckboxVisible()?4:-1),m(),b("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),me("aria-label",o.ariaLabel),m(2),R(o.searching?7:-1),m(),R(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),m(3),R(Xt(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Jp,c0,Ht,$e,kE,ff,Y0,Yo,ym,$V,vs,yi],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-sys-surface-container, var(--mat-select-panel-background-color, white))}.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-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[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-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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})}return t})();var GV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[jM]})}return t})();function ZZ(t,i){if(t&1){let e=W();c(0,"mat-option")(1,"ngx-mat-select-search",0),w("ngModelChange",function(o){I(e);let r=_();return k(r.changed.emit(o))}),d()()}if(t&2){let e=_();m(),b("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var pi=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new V,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},standalone:!1,decls:1,vars:1,consts:[["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&A(0,ZZ,2,2,"mat-option"),n&2&&R(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[$e,Xe,Mt,jM],encapsulation:2})}}return t})();function XZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user permission for"),d())}function JZ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group permission for"),d())}function eX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function tX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}function nX(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),_e(e.text)}}var qV=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,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 qn}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){let e=yield this.rest.authenticators.overview();for(let n of e)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(e){return B(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(e,this.data.type+"s").overview();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 e=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&e.push(n)}),e}getFieldLabel(e){return e==="user"?django.gettext("User"):e==="group"?django.gettext("Group"):e==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-permission"]],standalone:!1,decls:26,vars:9,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,XZ,2,0,"uds-translate")(2,JZ,2,0,"uds-translate"),O(3,"b",1),d(),c(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),w("valueChange",function(a){return o.changeAuth(a)}),te("ngModelChange",function(a){return ne(o.authenticator,a)||(o.authenticator=a),a}),fe(8,eX,2,2,"mat-option",4,De),d()(),c(10,"mat-form-field")(11,"mat-select",5),te("ngModelChange",function(a){return ne(o.entity,a)||(o.entity=a),a}),c(12,"uds-cond-select-search",6),w("changed",function(a){return o.filterUser=a}),d(),fe(13,tX,2,2,"mat-option",4,De),d()(),c(15,"mat-form-field")(16,"mat-select",5),te("ngModelChange",function(a){return ne(o.permission,a)||(o.permission=a),a}),fe(17,nX,2,2,"mat-option",4,De),d()()()(),c(19,"mat-dialog-actions")(20,"button",7),w("click",function(){return o.cancel()}),c(21,"uds-translate"),f(22,"Cancel"),d()(),c(23,"button",8),w("click",function(){return o.save()}),c(24,"uds-translate"),f(25,"Ok"),d()()()),n&2&&(m(),R(o.data.type==="user"?1:2),m(2),b("innerHTML",o.data.item.name,Bn),m(4),b("placeholder",o.getFieldLabel("auth")),ee("ngModel",o.authenticator),m(),ge(o.authenticators),m(3),b("placeholder",o.getFieldLabel(o.data.type)),ee("ngModel",o.entity),m(),b("options",o.entities),m(),ge(o.filteredEntities()),m(3),b("placeholder",o.getFieldLabel("perm")),ee("ngModel",o.permission),m(),ge(o.permissions))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,en,Mt,Ee,pi],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}"]})}}return t})();var iX=(t,i)=>[t,i];function oX(t,i){if(t&1){let e=W();c(0,"div",9)(1,"div",10),f(2),d(),c(3,"div",11),f(4),c(5,"a",12),w("click",function(){let o=I(e).$implicit,r=_(2);return k(r.revokePermission(o))}),c(6,"i",13),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),Fo(" ",e.entity_name,"@",e.auth_name," "),m(2),H(" ",e.perm_name," \xA0")}}function rX(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",7)(2,"div",8),w("click",function(o){let r=I(e).$implicit;return _().newPermission(r),k(o.preventDefault())}),c(3,"uds-translate"),f(4,"New permission..."),d()(),fe(5,oX,8,3,"div",9,De),d()()}if(t&2){let e=i.$implicit;m(5),ge(e)}}var YV=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(e,n,o){let r=window.innerWidth<800?"90%":"60%",a=e.gui.dialog.open(t,{width:r,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){yield this.reload()})}reload(){return B(this,null,function*(){let e=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(e)})}updatePermissions(e){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of e)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(e){return B(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+e.entity_name+"@"+e.auth_name+" "+e.perm_name+"")){let n=yield this.data.rest.revokePermission([e.id]);this.reload()}})}newPermission(e){return B(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield qV.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())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-permissions-form"]],standalone:!1,decls:18,vars:4,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],[1,"content"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"perms"],[1,"perm","new",3,"click"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0)(1,"uds-translate"),f(2,"Permissions for"),d(),f(3,"\xA0"),O(4,"b",1),d(),c(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),f(8,"Users"),d(),c(9,"uds-translate",3),f(10,"Groups"),d()(),c(11,"div",4),fe(12,rX,7,0,"div",5,De),d()(),c(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(4),b("innerHTML",o.data.item.name,Bn),m(8),ge(kD(1,iX,o.userPermissions,o.groupPermissions)))},dependencies:[Fe,Nn,wt,Dt,xt,Ee],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}"]})}}return t})();var aX="text/csv",QV=",",KV=`\r +`,ZV=t=>t?(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace(/"/g,'""')+'"'):'""',K0=t=>B(null,null,function*(){let i="";t.columns.forEach(o=>{i+=ZV(o.title)+QV}),i=i.slice(0,-1)+KV;let e=yield t.rest.export();for(let o of e){for(let r of t.columns){let a=o[r.name];switch(r.type){case sn.DATE:a=Yi("SHORT_DATE_FORMAT",a);break;case sn.DATETIME:a=Yi("SHORT_DATETIME_FORMAT",a);break;case sn.DATETIMESEC:a=Yi("SHORT_DATE_FORMAT",a," H:i:s");break;case sn.TIME:a=Yi("TIME_FORMAT",a);break;default:break}i+=ZV(a)+QV}i=i.slice(0,-1)+KV}let n=new Blob([i],{type:aX});lm(n,t.title+".csv")});var Z0=class extends nd{constructor(i,e,n,o,r,a=10){super(),this.rest=i,this.paginator=e,this.sort=n,this.filter$=o,this.onItem=r,this.defaultPageSize=a,this.loadingSubject=new on(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new on([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new on(0),this.total$=this.totalSubject.asObservable(),this.tableInfo=null,this.filterText="",this.filter$.subscribe(s=>{this.filterText=s})}setTableInfo(i){this.tableInfo=i}connect(i){return this.data$}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete(),this.totalSubject.complete()}buildFilter(){if(!this.tableInfo||!this.filterText)return"";let i=this.tableInfo.filter_fields;return(!i||i.length===0)&&(i=this.tableInfo.fields.map(n=>Object.keys(n)[0])),i.map(n=>`contains(${n}, '${this.filterText}')`).join(" or ")}buildOrderBy(){return!this.tableInfo||!this.sort?.active||!this.sort?.direction?"":`${this.tableInfo.field_mappings[this.sort.active]??this.sort.active} ${this.sort.direction}`}loadData(){this.loadingSubject.next(!0);let i=this.paginator?.pageSize??this.defaultPageSize,n=(this.paginator?.pageIndex??0)*i,o=i,r=this.buildOrderBy(),a=this.buildFilter(),s=[`$top=${o}`,`$skip=${n}`];r&&s.push(`$orderby=${r}`),a&&s.push(`$filter=${encodeURIComponent(a)}`);let l=s.join("&");this.rest.list(l,!0).then(({items:u,headers:h})=>{let g=parseInt(h.get("X-Total-Count")??"0",10);if(this.onItem)for(let y of u)try{this.onItem(y)}catch(x){console.error("onItem error:",x)}this.dataSubject.next(u),this.totalSubject.next(g)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var zM=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},XV=(()=>{class t{_document=p(ke);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new zM(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var JV=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var lX=["mat-menu-item",""],cX=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],dX=["mat-icon, [matMenuItemIcon]","*"];function uX(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"polygon",3),d())}var mX=["*"];function pX(t,i){if(t&1){let e=W();dn(0,"div",0),Nl("click",function(){I(e);let o=_();return k(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=_();return k(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=_();return k(r._onAnimationDone(o.animationName))}),dn(1,"div",1),Ie(2),pn()()}if(t&2){let e=_();Tn(e._classList),le("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),On("id",e.panelId),me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var HM=new L("MAT_MENU_PANEL"),wd=(()=>{class t{_elementRef=p(se);_document=p(ke);_focusMonitor=p(Oi);_parentMenu=p(HM,{optional:!0});_changeDetectorRef=p(Ze);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new Z;_focused=new Z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(an).load(Mi),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_template=p(mn);_appRef=p(Hi);_injector=p(Te);_viewContainerRef=p(En);_document=p(ke);_changeDetectorRef=p(Ze);_portal;_outlet;_attached=new Z;constructor(){}attach(e={}){this._portal||(this._portal=new qi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Xu(this._document.createElement("div"),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,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ke([{provide:e3,useExisting:t}])]})}return t})(),hX=new L("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),UM="_mat-menu-enter",X0="_mat-menu-exit",ic=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_injector=p(Te);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Bt();_allItems;_directDescendantItems=new gr;_classList={};_panelAnimationState="void";_animationDone=new Z;_isAnimating=Re(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=q({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new V;close=this.closed;panelId=p(zt).getId("mat-menu-panel-");constructor(){let e=p(hX);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ys(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(e=>rn(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(cn(this._directDescendantItems),yn(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:un(e)||(e.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(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=nn(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ye(q({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===X0;(n||e===UM)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===UM||e===X0)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(X0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?UM:X0)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(cn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,e3,5)(r,wd,5)(r,wd,4),n&2){let a;X(a=J())&&(o.lazyContent=a.first),X(a=J())&&(o._allItems=a),X(a=J())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&at(mn,5),n&2){let r;X(r=J())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&me("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",K],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:K(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ke([{provide:HM,useExisting:t}])],ngContentSelectors:mX,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(vt(),Bs(0,pX,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -4202,7 +4202,7 @@ div.mat-mdc-select-panel { position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return t})(),hX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}});var Am=new WeakMap,fX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(xd,{optional:!0,self:!0});_dir=p(xn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(hX);_changeDetectorRef=p(Ze);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(UM,{optional:!0});this._parentMaterialMenu=n instanceof nc?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof nc&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Je(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof nc&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Uo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof nc&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new jo({positionStrategy:La(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),X0=(()=>{class t extends fX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var t3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,fo,pt,xr]})}return t})();var gX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { +`],encapsulation:2,changeDetection:0})}return t})(),fX=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}});var Am=new WeakMap,gX=(()=>{class t{_canHaveBackdrop;_element=p(se);_viewContainerRef=p(En);_menuItemInstance=p(wd,{optional:!0,self:!0});_dir=p(wn,{optional:!0});_focusMonitor=p(Oi);_ngZone=p(be);_injector=p(Te);_scrollStrategy=p(fX);_changeDetectorRef=p(Ze);_animationsDisabled=Bt();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ue.EMPTY;_menuCloseSubscription=Ue.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=p(HM,{optional:!0});this._parentMaterialMenu=n instanceof ic?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Am.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=Am.get(n);Am.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=n.hasBackdrop??!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof ic&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(Je(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof ic&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(bn(1)).subscribe(()=>{n.detach(),Am.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Am.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Uo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof ic&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new jo({positionStrategy:La(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[h,g]=[o,r],y=0;if(this._triggersSubmenu()){if(g=o=e.xPosition==="before"?"start":"end",r=h=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}y=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:h,overlayY:a,offsetY:y},{originX:r,originY:l,overlayX:g,overlayY:a,offsetY:y},{originX:o,originY:u,overlayX:h,overlayY:s,offsetY:-y},{originX:r,originY:u,overlayX:g,overlayY:s,offsetY:-y}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:Me(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(At(a=>this._menuOpen&&a!==this._menuItemInstance)):Me();return rn(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new qi(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Am.get(e)===this}_triggerIsAriaDisabled(){return K(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){$c()};static \u0275dir=Q({type:t})}return t})(),J0=(()=>{class t extends gX{_cleanupTouchstart;_hoverSubscription=Ue.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new V;onMenuOpen=this.menuOpened;menuClosed=new V;onMenuClose=this.menuClosed;constructor(){super(!0);let e=p(Zt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{rd(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){od(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.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(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&w("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null: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"],features:[We]})}return t})();var n3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,fo,pt,wr]})}return t})();var _X=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize { resize: none; } @@ -4228,7 +4228,7 @@ textarea.cdk-textarea-autosize-measuring-firefox { .cdk-text-field-autofill-monitored:not(:-webkit-autofill) { animation: cdk-text-field-autofill-end 0s 1ms; } -`],encapsulation:2,changeDetection:0})}return t})(),_X={passive:!0},i3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(gX);let n=Vo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,_X)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Vo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var o3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var J0=new L("MAT_INPUT_VALUE_ACCESSOR");var vX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],bX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(ir,{optional:!0,self:!0});_autofillMonitor=p(i3);_ngZone=p(be);_formField=p(ia,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(bX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Yr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=Yr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&fE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Yr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>fE().has(e));constructor(){let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd),r=p(J0,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ds(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Fs(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){vX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ke([{provide:Js,useExisting:t}]),Ct]})}return t})(),r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,o3,pt]})}return t})();var yX=[[["caption"]],[["colgroup"],["col"]],"*"],CX=["caption","colgroup, col","*"];function xX(t,i){t&1&&Ie(0,2)}function wX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function DX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ty=(()=>{class t extends FM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ke([{provide:FM,useExisting:t},{provide:za,useExisting:t},{provide:mf,useValue:null}]),We],ngContentSelectors:CX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(yX),Ie(0),Ie(1,1),A(2,xX,1,0),A(3,wX,7,0)(4,DX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[OM,RM,NM,PM],styles:[`.mat-mdc-table-sticky { +`],encapsulation:2,changeDetection:0})}return t})(),vX={passive:!0},o3=(()=>{class t{_platform=p(Ft);_ngZone=p(be);_renderer=p(bi).createRenderer(null,null);_styleLoader=p(an);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return hi;this._styleLoader.load(_X);let n=Vo(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new Z,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,vX)));return this._monitoredElements.set(n,{subject:r,unlisten:l}),r}stopMonitoring(e){let n=Vo(e),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((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var r3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var ey=new L("MAT_INPUT_VALUE_ACCESSOR");var bX=["button","checkbox","file","hidden","image","radio","range","reset","submit"],yX=new L("MAT_INPUT_CONFIG"),Yt=(()=>{class t{_elementRef=p(se);_platform=p(Ft);ngControl=p(ir,{optional:!0,self:!0});_autofillMonitor=p(o3);_ngZone=p(be);_formField=p(ia,{optional:!0});_renderer=p(Zt);_uid=p(zt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=p(yX,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Yr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=Yr(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&gE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Yr(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>gE().has(e));constructor(){let e=p(ea,{optional:!0}),n=p(Kl,{optional:!0}),o=p(pd),r=p(ey,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ds(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Xl(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Fs(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){bX.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&w("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(On("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),me("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),le("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},exportAs:["matInput"],features:[Ke([{provide:Js,useExisting:t}]),Ct]})}return t})(),a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[yd,yd,r3,pt]})}return t})();var CX=[[["caption"]],[["colgroup"],["col"]],"*"],wX=["caption","colgroup, col","*"];function xX(t,i){t&1&&Ie(0,2)}function DX(t,i){t&1&&(c(0,"thead",0),Ri(1,1),d(),c(2,"tbody",2),Ri(3,3)(4,4),d(),c(5,"tfoot",0),Ri(6,5),d())}function SX(t,i){t&1&&Ri(0,1)(1,3)(2,4)(3,5)}var ny=(()=>{class t extends LM{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&le("mat-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ke([{provide:LM,useExisting:t},{provide:za,useExisting:t},{provide:pf,useValue:null}]),We],ngContentSelectors:wX,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(vt(CX),Ie(0),Ie(1,1),A(2,xX,1,0),A(3,DX,7,0)(4,SX,4,0)),n&2&&(m(2),R(o._isServer?2:-1),m(),R(o._isNativeHtmlTable?3:4))},dependencies:[PM,OM,FM,NM],styles:[`.mat-mdc-table-sticky { position: sticky !important; } @@ -4405,9 +4405,9 @@ mat-cell.mat-mdc-cell, mat-footer-cell.mat-mdc-footer-cell { align-self: stretch; } -`],encapsulation:2})}return t})(),ny=(()=>{class t extends H0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ke([{provide:H0,useExisting:t}]),We]})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ke([{provide:W0,useExisting:t}]),We]})}return t})();var oy=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ke([{provide:tc,useExisting:t}]),We]})}return t})(),ry=(()=>{class t extends IV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var sy=(()=>{class t extends pf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ke([{provide:pf,useExisting:t}]),We]})}return t})();var ly=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ke([{provide:$0,useExisting:t}]),We]})}return t})(),cy=(()=>{class t extends kM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ke([{provide:kM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var dy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ke([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var a3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[RV,pt]})}return t})(),SX=9007199254740991,ey=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Yv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=yo([n,this._filter]).pipe(Qe(([s])=>this._filterData(s))),r=yo([o,i]).pipe(Qe(([s])=>this._orderData(s))),a=yo([r,e]).pipe(Qe(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var l3=(()=>{class t{transform(e){return hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!hE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var c3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var MX=["trigger"],TX=()=>[5,10,25,100,1e3];function IX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function kX(t,i){if(t&1){let e=W();c(0,"button",44),x("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function AX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,kX,1,1,"button",43,De),$t(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(K_(6,3,e.value,"name"))}}function RX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,AX,7,6,null,null,De),$t(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function OX(t,i){if(t&1){let e=W();c(0,"button",46),x("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function PX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,OX,1,1,"button",45,De),$t(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(K_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function NX(t,i){if(t&1&&(A(0,RX,13,4),A(1,PX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function FX(t,i){if(t&1){let e=W();c(0,"a",47),x("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function LX(t,i){if(t&1&&(A(0,NX,2,2),A(1,FX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function VX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",48),x("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function jX(t,i){if(t&1){let e=W();c(0,"a",50),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function zX(t,i){if(t&1&&fe(0,jX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function UX(t,i){if(t&1){let e=W();c(0,"a",51),x("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function HX(t,i){if(t&1){let e=W();c(0,"a",52),x("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function WX(t,i){if(t&1){let e=W();c(0,"button",53),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function $X(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),x("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function GX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),x("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function qX(t,i){t&1&&(us(0,26),xe(1,$X,2,2,"mat-header-cell",54)(2,GX,2,1,"mat-cell",55),ms())}function YX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),x("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function QX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),x("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function KX(t,i){if(t&1&&(us(0,27),xe(1,YX,2,5,"mat-header-cell",59)(2,QX,2,2,"mat-cell",60),ms()),t&2){let e=i.$implicit;b("matColumnDef",Nl(e.name))}}function ZX(t,i){t&1&&O(0,"mat-header-row")}function XX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function JX(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function eJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",68),x("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function oJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function rJ(t,i){if(t&1){let e=W();c(0,"button",71),x("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function aJ(t,i){if(t&1){let e=W();c(0,"button",70),x("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function sJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,aJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function lJ(t,i){if(t&1&&(A(0,eJ,5,0,"button",65),A(1,tJ,5,0,"button",65),A(2,nJ,5,0,"button",65),A(3,iJ,5,0,"button",65),fe(4,oJ,1,2,"button",66,De),A(6,rJ,5,0,"button",67),A(7,sJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Cs(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Ks.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Ks.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new K0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new Cs(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ONLY_MENU&&e.type!==Gt.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Gt.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=Yi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=Yi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=Yi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=Yi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Gt.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Gt.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Gt.ALWAYS||(e.type===Gt.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){Q0(this)}permissions(){this.selection.selected.length&&qV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl),D(ZV),D(Ze))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(MX,7)(el,7)(tl,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,IX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,LX,2,2),A(11,VX,6,1,"a",12),A(12,BX,6,1,"a",12),A(13,zX,2,0),A(14,UX,6,0,"a",13),A(15,HX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),x("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,WX,3,0,"button",18),$t(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),x("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),x("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),x("matSortChange",function(s){return o.sortChanged(s)}),A(33,qX,3,0,"ng-container",26),fe(34,KX,3,2,"ng-container",27,De),xe(36,ZX,1,0,"mat-header-row",28)(37,XX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,JX,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),xe(48,lJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,TX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Ht,$e,Xe,Fe,yi,nc,xd,e3,X0,ze,st,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,ym,hf,q0,Ee,KD,Ci,c3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var d3='pause'+django.gettext("Maintenance")+"",cJ='pause'+django.gettext("Exit maintenance mode")+"",dJ='pause'+django.gettext("Enter maintenance mode")+"",HM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:d3,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=d3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=cJ:this.customButtons[0].html=dJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),x("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var uJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function mJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(uJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function pJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>mJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(pJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Jo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Ks.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e,n){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var hJ=()=>[5,10,25,100,1e3];function fJ(t,i){if(t&1){let e=W();c(0,"button",24),x("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function gJ(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function _J(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function vJ(t,i){if(t&1&&(us(0,20),xe(1,gJ,2,1,"mat-header-cell",25)(2,_J,2,1,"mat-cell",26),ms()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function bJ(t,i){t&1&&O(0,"mat-header-row")}function yJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var rr=(()=>{class t{constructor(e){this.api=e,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 ey([]),this.selection=new Cs}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=Yi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){Q0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(el,7)(tl,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),x("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),x("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,fJ,3,0,"button",13),$t(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),x("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),x("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),x("matSortChange",function(a){return o.sortChanged(a)}),fe(33,vJ,3,1,"ng-container",20,De),xe(35,bJ,1,0,"mat-header-row",21)(36,yJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,hJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Ht,$e,Xe,Fe,yi,ze,Ar,Yt,ty,iy,sy,oy,ny,ly,ry,ay,cy,dy,el,tl,G0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function CJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function xJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var wJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],u3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Zh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new or(django.gettext("Service pools"),e,wJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),xe(7,CJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),xe(10,xJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` -`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr],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}"]})}}return t})();var DJ=(t,i)=>i.tab;function SJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function EJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,SJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var MJ=django.gettext("Main"),ra=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||MJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=Wh.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=Wh.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,EJ,6,1,"div",1,DJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var TJ=t=>["/services","providers",t];function IJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function kJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function AJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function OJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function PJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,IJ,2,0,"ng-template",8),c(5,"div",9),A(6,kJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,AJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),xe(12,RJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),xe(16,OJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){u3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,PJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,TJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra],encapsulation:2})}}return t})();var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var m3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),x("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),x("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),x("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Ht,$e,Xe,Fe,Yo,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var NJ=t=>["/services","servers",t];function FJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function LJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function VJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,FJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,LJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var p3='pause'+django.gettext("Maintenance")+"",BJ='pause'+django.gettext("Exit maintenance mode")+"",jJ='pause'+django.gettext("Enter maintenance mode")+"",zJ='import_export'+django.gettext("Import CSV")+"",h3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:p3,type:Gt.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:zJ,type:Gt.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.invoke(n.id+"/maintenance",void 0,"POST").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield m3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=p3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=BJ:this.customButtons[0].html=jJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,VJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,NJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var UJ=["panel"],HJ=["*"];function WJ(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var YM=class{source;option;constructor(i,e){this.source=i,this.option=e}},f3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_defaults=p(f3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new YM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(UJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ke([{provide:_m,useExisting:t}])],ngContentSelectors:HJ,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&&(vt(),Bs(0,WJ,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { +`],encapsulation:2})}return t})(),iy=(()=>{class t extends W0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[Ke([{provide:W0,useExisting:t}]),We]})}return t})(),oy=(()=>{class t extends $0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ke([{provide:$0,useExisting:t}]),We]})}return t})();var ry=(()=>{class t extends nc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ke([{provide:nc,useExisting:t}]),We]})}return t})(),ay=(()=>{class t extends kV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[We]})}return t})();var sy=(()=>{class t extends AV{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[We]})}return t})();var ly=(()=>{class t extends hf{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",K]},features:[Ke([{provide:hf,useExisting:t}]),We]})}return t})();var cy=(()=>{class t extends G0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ke([{provide:G0,useExisting:t}]),We]})}return t})(),dy=(()=>{class t extends AM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ke([{provide:AM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var uy=(()=>{class t extends RM{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ke([{provide:RM,useExisting:t}]),We],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Ri(0,0)},dependencies:[Cd],encapsulation:2})}return t})();var s3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[OV,pt]})}return t})(),EX=9007199254740991,ty=class extends nd{_data;_renderData=new on([]);_filter=new on("");_internalPageChanges=new Z;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(Qv(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),l=this.sortingDataAccessor(a,n),u=typeof s,h=typeof l;u!==h&&(u==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new on(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?rn(this._sort.sortChange,this._sort.initialized):Me(null),e=this._paginator?rn(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Me(null),n=this._data,o=yo([n,this._filter]).pipe(Qe(([s])=>this._filterData(s))),r=yo([o,i]).pipe(Qe(([s])=>this._orderData(s))),a=yo([r,e]).pipe(Qe(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var c3=(()=>{class t{transform(e){return fE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),Ci=(()=>{class t{transform(e){return!fE(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var d3=(()=>{class t{transform(e,n){let o;return n===void 0?o=(r,a)=>r>a?1:-1:o=(r,a)=>r[n]>a[n]?1:-1,e.sort(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=ka({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var TX=["trigger"],IX=()=>[5,10,25,100,1e3];function kX(t,i){if(t&1&&O(0,"img",7),t&2){let e=_();b("src",e.icon,it)}}function AX(t,i){if(t&1){let e=W();c(0,"button",44),w("click",function(){let o=I(e).$implicit,r=_(5);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(5);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function RX(t,i){if(t&1&&(c(0,"button",41),f(1),d(),c(2,"mat-menu",42,3),fe(4,AX,1,1,"button",43,De),$t(6,"sort"),d()),t&2){let e=i.$implicit,n=Pt(3);b("matMenuTriggerFor",n),m(),_e(e.key),m(),b("overlapTrigger",!1),m(2),ge(Z_(6,3,e.value,"name"))}}function OX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,RX,7,6,null,null,De),$t(4,"keyvalue"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Xt(4,2,n.grpTypes)),m(3),b("matMenuTriggerFor",e)}}function PX(t,i){if(t&1){let e=W();c(0,"button",46),w("click",function(){let o=I(e).$implicit,r=_(4);return k(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=_(4);b("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Bn)}}function NX(t,i){if(t&1&&(c(0,"mat-menu",38,2),fe(2,PX,1,1,"button",45,De),$t(4,"sort"),d(),c(5,"a",39)(6,"i",23),f(7,"insert_drive_file"),d(),c(8,"span",40)(9,"uds-translate"),f(10,"New"),d()(),c(11,"i",23),f(12,"arrow_drop_down"),d()()),t&2){let e=Pt(1),n=_(3);b("overlapTrigger",!1),m(2),ge(Z_(4,2,n.oTypes,"name")),m(3),b("matMenuTriggerFor",e)}}function FX(t,i){if(t&1&&(A(0,OX,13,4),A(1,NX,13,5)),t&2){let e=_(2);R(e.newGrouped?0:-1),m(),R(e.newGrouped?-1:1)}}function LX(t,i){if(t&1){let e=W();c(0,"a",47),w("click",function(){I(e);let o=_(2);return k(o.newAction.emit({param:void 0,table:o}))}),c(1,"i",23),f(2,"insert_drive_file"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"New"),d()()()}}function VX(t,i){if(t&1&&(A(0,FX,2,2),A(1,LX,6,0,"a",37)),t&2){let e=_();R(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),m(),R(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function BX(t,i){if(t&1){let e=W();c(0,"a",48),w("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.editAction))}),c(1,"i",23),f(2,"edit"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Edit"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function jX(t,i){if(t&1){let e=W();c(0,"a",48),w("click",function(){I(e);let o=_();return k(o.permissions())}),c(1,"i",23),f(2,"perm_identity"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Permissions"),d()()()}if(t&2){let e=_();b("disabled",e.selection.selected.length!==1)}}function zX(t,i){if(t&1){let e=W();c(0,"a",50),w("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function UX(t,i){if(t&1&&fe(0,zX,1,2,"a",49,De),t&2){let e=_();ge(e.getcustomButtons())}}function HX(t,i){if(t&1){let e=W();c(0,"a",51),w("click",function(){I(e);let o=_();return k(o.export())}),c(1,"i",23),f(2,"import_export"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Export CSV"),d()()()}}function WX(t,i){if(t&1){let e=W();c(0,"a",52),w("click",function(){I(e);let o=_();return k(o.emitIfSelection(o.deleteAction,!0))}),c(1,"i",23),f(2,"delete_forever"),d(),c(3,"span",40)(4,"uds-translate"),f(5,"Delete"),d()()()}if(t&2){let e=_();b("disabled",e.selection.isEmpty())}}function $X(t,i){if(t&1){let e=W();c(0,"button",53),w("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",23),f(2,"clear"),d()()}}function GX(t,i){if(t&1){let e=W();c(0,"mat-header-cell")(1,"mat-checkbox",56),w("change",function(){I(e);let o=_(2);return k(o.masterToggle())}),d()()}if(t&2){let e=_(2);m(),b("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qX(t,i){if(t&1){let e=W();c(0,"mat-cell",57),w("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))}),c(1,"mat-checkbox",58),w("click",function(o){return o.stopPropagation()})("change",function(){let o=I(e).$implicit,r=_(2);return k(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=_(2);m(),b("checked",n.selection.isSelected(e))}}function YX(t,i){t&1&&(us(0,26),we(1,GX,2,2,"mat-header-cell",54)(2,qX,2,1,"mat-cell",55),ms())}function QX(t,i){if(t&1){let e=W();c(0,"mat-header-cell",61),w("click",function(){I(e);let o=_().$implicit,r=_();return k(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),f(1),d()}if(t&2){let e=_().$implicit,n=_();le("non-sortable",!n.isSortable(e.name)),b("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),m(),H(" ",e.title," ")}}function KX(t,i){if(t&1){let e=W();c(0,"mat-cell",62),w("click",function(o){let r=I(e).$implicit,a=_(2);return k(a.clickRow(r,o))})("contextmenu",function(o){let r=I(e).$implicit,a=_().$implicit,s=_();return k(s.onContextMenu(r,a,o))}),O(1,"div",63),d()}if(t&2){let e=i.$implicit,n=_().$implicit,o=_();b("ngStyle",o.columnStyle(n)),m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function ZX(t,i){if(t&1&&(us(0,27),we(1,QX,2,5,"mat-header-cell",59)(2,KX,2,2,"mat-cell",60),ms()),t&2){let e=i.$implicit;b("matColumnDef",Fl(e.name))}}function XX(t,i){t&1&&O(0,"mat-header-row")}function JX(t,i){if(t&1&&O(0,"mat-row",64),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}function eJ(t,i){if(t&1&&(c(0,"div",34),f(1),c(2,"uds-translate"),f(3,"Selected items"),d()()),t&2){let e=_();m(),H(" ",e.selection.selected.length," ")}}function tJ(t,i){if(t&1){let e=W();c(0,"button",68),w("click",function(){I(e);let o=_(2);return k(o.copyToClipboard())}),c(1,"i",69),f(2,"content_copy"),d(),c(3,"uds-translate"),f(4,"Copy"),d()()}}function nJ(t,i){if(t&1){let e=W();c(0,"button",68),w("click",function(){I(e);let o=_().item,r=_();return k(r.detailAction.emit({param:o,table:r}))}),c(1,"i",69),f(2,"subdirectory_arrow_right"),d(),c(3,"uds-translate"),f(4,"Detail"),d()()}}function iJ(t,i){if(t&1){let e=W();c(0,"button",68),w("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.editAction))}),c(1,"i",69),f(2,"edit"),d(),c(3,"uds-translate"),f(4,"Edit"),d()()}}function oJ(t,i){if(t&1){let e=W();c(0,"button",68),w("click",function(){I(e);let o=_(2);return k(o.permissions())}),c(1,"i",69),f(2,"perm_identity"),d(),c(3,"uds-translate"),f(4,"Permissions"),d()()}}function rJ(t,i){if(t&1){let e=W();c(0,"button",70),w("click",function(){let o=I(e).$implicit,r=_(2);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(2);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function aJ(t,i){if(t&1){let e=W();c(0,"button",71),w("click",function(){I(e);let o=_(2);return k(o.emitIfSelection(o.deleteAction))}),c(1,"i",69),f(2,"delete_forever"),d(),c(3,"uds-translate"),f(4,"Delete"),d()()}}function sJ(t,i){if(t&1){let e=W();c(0,"button",70),w("click",function(){let o=I(e).$implicit,r=_(3);return k(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=_(3);b("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Bn)}}function lJ(t,i){if(t&1&&(O(0,"mat-divider"),fe(1,sJ,1,2,"button",66,De)),t&2){let e=_(2);m(),ge(e.getCustomAccelerators())}}function cJ(t,i){if(t&1&&(A(0,tJ,5,0,"button",65),A(1,nJ,5,0,"button",65),A(2,iJ,5,0,"button",65),A(3,oJ,5,0,"button",65),fe(4,rJ,1,2,"button",66,De),A(6,aJ,5,0,"button",67),A(7,lJ,3,0)),t&2){let e=_();R(e.allowCopy===!0?0:-1),m(),R(e.detailAction.observed?1:-1),m(),R(e.editAction.observed?2:-1),m(),R(e.hasPermissions===!0?3:-1),m(),ge(e.getCustomMenu()),m(2),R(e.deleteAction.observed?6:-1),m(),R(e.hasAccelerators?7:-1)}}var Ge=(()=>{class t{constructor(e,n,o,r){this.api=e,this.headerService=n,this.clipboard=o,this.cdr=r,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.titleOverride="",this.autoReload=!0,this.navHeader=!0,this.loaded=new V,this.rowSelected=new V,this.newAction=new V,this.editAction=new V,this.deleteAction=new V,this.customButtonAction=new V,this.detailAction=new V,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new Cs(!0,[]),this.lastSelectedIds=[],this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.firstLoad=!0,this.lastActivityTime=Date.now(),this.idleTimeout=3e4,this.autoReloadInterval=6e4,this.activitySub=null,this.reloadSub=null,this.pendingSelectionUuid=null,this.dataSub=null,this.contextMenuPosition={x:"0px",y:"0px"},this.filter$=new on(""),this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1,this.filterFields=[]}get navHeaderClass(){return this.navHeader?"uds-table-nav-header":""}ngOnInit(){return B(this,null,function*(){this.tableId=this.tableId||this.rest.id,this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",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;let e=this.rest.permision();(e&Qs.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==Qs.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=[],o={};try{n=yield this.rest.types()}catch(r){}try{o=yield this.rest.tableInfo()}catch(r){}if(this.dataSource=new Z0(this.rest,this.paginator,this.sort,this.filter$,this.onItem?this.onItem.bind(this):void 0,this.pageSize),this.dataSource.setTableInfo(o),this.filterFields=o.filter_fields||[],yield this.initialize(o,n),this.navHeader&&this.title){let r=this.icon;if(r&&r.includes("/")){let a=r.split("/");r=a[a.length-1].replace(".png","")}this.headerService.setTitle(this.title,r)}if(this.dataSource.total$.subscribe(r=>{this.paginator.length=r}),this.dataSource.loading$.subscribe(r=>{this.loading=r,this.cdr.detectChanges()}),this.paginator.page.subscribe(()=>this.reloadPage()),this.sort.sortChange.subscribe(()=>this.reloadPage()),this.filter$.subscribe(()=>this.reloadPage()),this.selection=new Cs(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=rn(Sc(document,"click"),Sc(document,"keydown"),Sc(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=ap(r).subscribe(()=>{Date.now()-this.lastActivityTime>this.idleTimeout&&this.reloadPage()})}this.loaded.emit({param:!0,table:this})})}ngOnDestroy(){this.dataSub&&this.dataSub.unsubscribe(),this.activitySub&&this.activitySub.unsubscribe(),this.reloadSub&&this.reloadSub.unsubscribe()}initialize(e,n){return B(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let r of n)if(this.types.set(r.type,r),r.group!==void 0){this.grpTypes.has(r.group)||this.grpTypes.set(r.group,[]);let a=this.grpTypes.get(r.group);a!==void 0&&a.push(r)}e.row_style!==void 0&&e.row_style.field!==void 0?this.rowStyleInfo=e.row_style:this.rowStyleInfo=null,this.title=this.titleOverride||e.title,this.subtitle=e.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let r of e.fields)for(let a in r)if(r.hasOwnProperty(a)){let s=u=>{l.width===void 0&&(l.width=u)},l=r[a];switch(l.type){case void 0:l.type=sn.ALPHANUMERIC,s("10rem");break;case sn.DATE:case sn.DATETIME:case sn.TIME:case sn.DATETIMESEC:s("13rem");break;case sn.IMAGE:case sn.BOOLEAN:s("6.5rem");break;case sn.NUMERIC:s("9rem");break}o.push({name:a,title:l.title,type:l.type===void 0?sn.ALPHANUMERIC:l.type,dict:l.dict,width:l.width}),(l.visible===void 0||l.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ONLY_MENU&&e.type!==Gt.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==Gt.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===Gt.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case sn.BOOLEAN:o===!0?o=this.api.safeString(this.api.gui.material_icon("done","green")):o===!1?o=this.api.safeString(this.api.gui.material_icon("close","red")):o=this.api.safeString(this.api.gui.material_icon("question_mark","orange"));break;case sn.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case sn.DATE:o=Yi("SHORT_DATE_FORMAT",o);break;case sn.DATETIME:o=Yi("SHORT_DATETIME_FORMAT",o);break;case sn.TIME:o=Yi("TIME_FORMAT",o);break;case sn.DATETIMESEC:o=Yi("SHORT_DATE_FORMAT",o," H:i:s");break;case sn.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch(r){}return this.api.safeString(o);case sn.DICTIONARY:try{o=n.dict[o]}catch(r){o=""}break}return typeof o=="string"&&(o=o.replace(/0&&(n===!0||o===1)&&e.emit({table:this,param:o})}isCustomDisabled(e){switch(e.type){case void 0:case Gt.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case Gt.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==Gt.ALWAYS||(e.type===Gt.ACCELERATOR?this.api.navigation.goto(e.id,this.selection.selected[0],e.acceleratorProperties||[]):this.customButtonAction.emit({param:e,table:this}))}clickRow(e,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(e),this.detailAction.observed?this.detailAction.emit({param:e,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(e,n)}selectRow(e){this.selection.select(e),this.rowSelected.emit({param:null,table:this})}clearSelection(){this.selection.clear(),this.rowSelected.emit({param:null,table:this})}doSelect(e,n){n.ctrlKey||n.shiftKey?this.selection.toggle(e):!this.selection.isSelected(e)||this.selection.selected.length>1?(this.clearSelection(),this.selection.select(e)):this.selection.toggle(e),this.cdr.detectChanges(),this.rowSelected.emit({param:null,table:this})}onContextMenu(e,n,o){o.preventDefault();let r=e[n.name];r.changingThisBreaksApplicationSecurity&&(r=r.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+r,this.hasActions&&(this.clearSelection(),this.selection.select(e),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:e},this.contextMenu.openMenu())}selectElement(e){return B(this,null,function*(){if(e===null)return;let n=yield this.rest.position(e);n===null||n<0||(this.paginator.pageIndex=Math.floor(n/this.pageSize),this.pendingSelectionUuid=e,this.paginator.page.emit())})}trackById(e,n){return n.id===void 0?e:n.id}isAllSelected(){let e=this.selection.selected.length,n=this.dataSource.data.length;return e===n}masterToggle(){this.isAllSelected()?this.clearSelection():this.dataSource.data.forEach(e=>this.selection.select(e))}reloadPage(){let e=this.selection.selected.filter(n=>n.id!==void 0).map(n=>n.id);this.pendingSelectionUuid!==null&&(e.push(this.pendingSelectionUuid),this.pendingSelectionUuid=null),this.loaded.emit({param:!1,table:this}),this.dataSource.loadData(),this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=null),e.length>0&&(this.dataSub=this.dataSource.data$.subscribe(()=>{this.clearSelection(),this.dataSource.data.forEach(n=>{e.includes(n.id)&&this.selectRow(n)})}))}export(){K0(this)}permissions(){this.selection.selected.length&&YV.launch(this.api,this.rest,this.selection.selected[0])}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Jl),D(XV),D(Ze))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&at(TX,7)(el,7)(tl,7),n&2){let r;X(r=J())&&(o.contextMenu=r.first),X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy",titleOverride:"titleOverride",autoReload:"autoReload",navHeader:"navHeader"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},standalone:!1,decls:49,vars:32,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"header-icon",3,"src"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"disabled"],["mat-raised-button",""],["mat-raised-button","","color","warn",3,"disabled"],[1,"navigation"],[1,"filter"],["matInput","",3,"input","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear"],[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","trackBy"],["matColumnDef","selection-column"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],[1,"selection"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],["mat-raised-button","","color","primary",1,"main-button"],[1,"wide-menu",3,"overlapTrigger"],["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"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","",1,"main-button",3,"innerHTML"],["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"],["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"],[4,"matHeaderCellDef"],[3,"click",4,"matCellDef"],[3,"change","checked","indeterminate"],[3,"click"],[3,"click","change","checked"],["mat-sort-header","",3,"disabled","non-sortable","ngStyle","click",4,"matHeaderCellDef"],[3,"ngStyle","click","contextmenu",4,"matCellDef"],["mat-sort-header","",3,"click","disabled","ngStyle"],[3,"click","contextmenu","ngStyle"],[3,"innerHtml"],[3,"ngClass"],["mat-menu-item",""],["mat-menu-item","",3,"disabled","innerHTML"],["mat-menu-item","",1,"menu-warn"],["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 r=W();c(0,"div",4)(1,"div",5)(2,"div",6),A(3,kX,1,1,"img",7),f(4),d(),c(5,"div",8),f(6),d()(),c(7,"div",9)(8,"div",10)(9,"div",11),A(10,VX,2,2),A(11,BX,6,1,"a",12),A(12,jX,6,1,"a",12),A(13,UX,2,0),A(14,HX,6,0,"a",13),A(15,WX,6,1,"a",14),d(),c(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),f(21,"Filter"),d()(),c(22,"input",17),w("input",function(){return o.applyFilter()}),te("ngModelChange",function(s){return I(r),ne(o.filterText,s)||(o.filterText=s),k(s)}),d(),A(23,$X,3,0,"button",18),$t(24,"notEmpty"),d()(),c(25,"div",19),O(26,"mat-paginator",20),d(),c(27,"div",21)(28,"a",22),w("click",function(){return o.reloadPage()}),c(29,"i",23),f(30,"autorenew"),d()()()()(),c(31,"div",24),w("keydown",function(s){return o.keyDown(s)}),c(32,"mat-table",25),w("matSortChange",function(s){return o.sortChanged(s)}),A(33,YX,3,0,"ng-container",26),fe(34,ZX,3,2,"ng-container",27,De),we(36,XX,1,0,"mat-header-row",28)(37,JX,1,1,"mat-row",29),d(),c(38,"div",30)(39,"div",31),O(40,"mat-progress-spinner",32),d()()(),c(41,"div",33),f(42," \xA0 "),A(43,eJ,4,1,"div",34),d()()(),O(44,"div",35,0),c(46,"mat-menu",null,1),we(48,cJ,8,6,"ng-template",36),d()}if(n&2){let r=Pt(47);le("nav-header",o.navHeader),m(3),R(o.icon!==void 0?3:-1),m(),H(" ",o.title," "),m(2),H(" ",o.subtitle," "),m(4),R(o.newAction.observed?10:-1),m(),R(o.editAction.observed?11:-1),m(),R(o.hasPermissions===!0?12:-1),m(),R(o.hasCustomButtons?13:-1),m(),R(o.allowExport===!0?14:-1),m(),R(o.deleteAction.observed?15:-1),m(7),ee("ngModel",o.filterText),m(),R(Xt(24,29,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(31,IX))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource)("trackBy",o.trackById),m(),R(o.hasButtons?33:-1),m(),ge(o.columns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns),m(),b("hidden",!o.loading),m(5),R(o.hasButtons&&o.selection.selected.length>0?43:-1),m(),Si("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),b("matMenuTriggerFor",r)}},dependencies:[qc,Zp,Ht,$e,Xe,Fe,yi,ic,wd,t3,J0,ze,st,Ar,Yt,ny,oy,ly,ry,iy,cy,ay,sy,dy,uy,el,tl,q0,ym,ff,Y0,Ee,ZD,Ci,d3],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:2.25rem 1.25rem 1.25rem;gap:1rem}.card-header[_ngcontent-%COMP%]{margin:1.5rem 1.25rem 0}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;font-weight:700;color:var(--text-primary)}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]{width:36px;height:36px;margin-right:1.25rem;filter:grayscale(100%) brightness(.8) sepia(100%) hue-rotate(190deg) saturate(500%);opacity:.9;transition:transform .3s ease}.card-header[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] img.header-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1) rotate(5deg)}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.75rem}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]{margin:0!important;border-radius:12px!important;padding:8px 16px!important;font-weight:500!important;transition:all .3s ease!important;background:var(--glass-bg);border:1px solid var(--glass-border);color:var(--text-primary);box-shadow:0 4px 12px var(--glass-shadow)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=primary][_ngcontent-%COMP%], .buttons[_ngcontent-%COMP%] a[mat-raised-button].main-button[_ngcontent-%COMP%]{background:var(--bg-button)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][color=warn][_ngcontent-%COMP%]{background:linear-gradient(135deg,#f44336,#d32f2f)!important;color:#fff!important;border:none!important}.buttons[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover:not([disabled]){transform:translateY(-2px);box-shadow:0 6px 16px var(--glass-shadow);filter:brightness(1.1)}.buttons[_ngcontent-%COMP%] a[mat-raised-button][disabled][_ngcontent-%COMP%]{opacity:.5;background:var(--glass-bg)!important;color:var(--text-secondary)!important;border:1px solid var(--glass-border)!important}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:1.2rem;margin-right:.25rem}.navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.filter[_ngcontent-%COMP%]{width:14rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field{width:100%}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--glass-bg)!important;border:1px solid var(--glass-border)!important;border-radius:12px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):before, .filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-text-field--filled:not(.mdc-text-field--disabled):after{display:none}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-infix{padding-top:10px!important;padding-bottom:10px!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field .mdc-line-ripple{display:none}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator{background:transparent!important;color:var(--text-primary)!important}.reload[_ngcontent-%COMP%]{margin-left:.5rem}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]{color:var(--text-primary);background:transparent!important;border:none!important;opacity:.6;transition:opacity .2s,transform .2s}.reload[_ngcontent-%COMP%] a[mat-icon-button][_ngcontent-%COMP%]:hover{opacity:1;transform:rotate(30deg)}.table[_ngcontent-%COMP%]{margin:0 1.25rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border)}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important;min-height:40px}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px;padding-right:28px!important;overflow:visible!important;cursor:pointer}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%]{cursor:default!important;opacity:.7}.table[_ngcontent-%COMP%] mat-header-cell.non-sortable[_ngcontent-%COMP%] .mat-sort-header-arrow{display:none!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]:not(.non-sortable):hover{color:var(--bg-button)!important}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{min-height:48px;border-bottom:1px solid var(--glass-border);transition:all .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important;cursor:pointer;box-shadow:inset 0 0 10px #0000000d}.table[_ngcontent-%COMP%] mat-row.selected[_ngcontent-%COMP%]{background-color:#3f51b51a!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:100%}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%] span[style*=background][_ngcontent-%COMP%]{display:inline-block!important;vertical-align:middle;border:1px solid var(--glass-border);box-shadow:0 4px 12px var(--glass-shadow);margin-right:8px}.dark-theme[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{background:#ffffff05}.dark-theme[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#ffffff0d!important}.footer[_ngcontent-%COMP%]{padding:.75rem 1.25rem;display:flex;justify-content:flex-end;font-size:.85rem;color:var(--text-secondary)} .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#1976d2!important;border-color:#1976d2!important} .dark-theme .mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:#3f51b5!important;border-color:#3f51b5!important}"]})}}return t})();var u3='pause'+django.gettext("Maintenance")+"",dJ='pause'+django.gettext("Exit maintenance mode")+"",uJ='pause'+django.gettext("Enter maintenance mode")+"",WM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:u3,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New provider"),!0)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit provider"),!0)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete provider"))}onMaintenance(e){let n=e.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(r=>{r&&this.rest.providers.maintenance(n.id).then(()=>{e.table.reloadPage()})})}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=u3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=dJ:this.customButtons[0].html=uJ}onDetail(e){this.api.navigation.gotoService(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){return B(this,null,function*(){e.param===!0&&(yield e.table.selectElement(this.route.snapshot.paramMap.get("provider")))})}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-providers"]],standalone:!1,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),w("customButtonAction",function(a){return o.onMaintenance(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("rowSelected",function(a){return o.onRowSelect(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],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} .dark-theme .row-maintenance-true>mat-cell{color:#dc3131!important}"]})}}return t})();var mJ=/contains\(\s*([^,\s]+)\s*,\s*'([^']*)'\s*\)/g;function pJ(t,i){let e=!1;for(let[,n,o]of i.matchAll(mJ))if(e=!0,String(t[n]??"").toLowerCase().includes(o.toLowerCase()))return!0;return!e}function hJ(t,i){return(e,n)=>{let[o,r]=i?[n[t],e[t]]:[e[t],n[t]];return typeof o=="string"&&typeof r=="string"?o.localeCompare(r):o===r?0:o{let a={};return a[r.field]={visible:!0,title:r.title,type:r.type===void 0?sn.ALPHANUMERIC:r.type},a})}get(i){return Promise.resolve({})}getLogs(i){return Promise.resolve([])}all(){return typeof this.data!="function"?Promise.resolve(this.data):(this.loaded??=this.data(),this.loaded)}overview(i){return this.all()}list(i,e){return this.all().then(n=>{let o=new URLSearchParams(i??""),r=o.get("$filter"),a=o.get("$orderby"),s=r?n.filter(g=>pJ(g,r)):[...n];if(a){let[g,y]=a.split(" ");s.sort(hJ(g,y==="desc"))}let l=s.length,u=parseInt(o.get("$skip")??"0",10),h=parseInt(o.get("$top")??"0",10);return s=h>0?s.slice(u,u+h):s.slice(u),{items:s,headers:new Jo({"X-Total-Count":l.toString()})}})}put(i,e){return Promise.resolve()}create(i){return Promise.resolve()}save(i,e){return Promise.resolve()}test(i,e){return Promise.resolve("")}delete(i){return Promise.resolve()}permision(){return Qs.ALL}getPermissions(i){return Promise.resolve([])}addPermission(i,e,n,o){return Promise.resolve({})}revokePermission(i){return Promise.resolve()}types(){return Promise.resolve([])}gui(i){return Promise.resolve({})}callback(i,e){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(i,e){return null}invoke(i,e,n){return Promise.resolve({})}export(i){return this.all()}position(i){return Promise.resolve(null)}};var fJ=()=>[5,10,25,100,1e3];function gJ(t,i){if(t&1){let e=W();c(0,"button",24),w("click",function(){I(e);let o=_();return o.filterText="",k(o.applyFilter())}),c(1,"i",8),f(2,"close"),d()()}}function _J(t,i){if(t&1&&(c(0,"mat-header-cell",27),f(1),d()),t&2){let e=_().$implicit;m(),_e(e)}}function vJ(t,i){if(t&1&&(c(0,"mat-cell"),O(1,"div",28),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_();m(),b("innerHtml",o.getRowColumn(e,n),Bn)}}function bJ(t,i){if(t&1&&(us(0,20),we(1,_J,2,1,"mat-header-cell",25)(2,vJ,2,1,"mat-cell",26),ms()),t&2){let e=i.$implicit;b("matColumnDef",e)}}function yJ(t,i){t&1&&O(0,"mat-header-row")}function CJ(t,i){if(t&1&&O(0,"mat-row",29),t&2){let e=i.$implicit,n=_();b("ngClass",n.rowClass(e))}}var rr=(()=>{class t{constructor(e){this.api=e,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 ty([]),this.selection=new Cs}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 e of this.displayedColumns){let n=e==="date"?sn.DATETIMESEC:sn.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return B(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return B(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=Yi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=xF(o)),o}rowClass(e){return["level-"+e.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(e){this.api.putOnStorage("logs-sort-column",e.active),this.api.putOnStorage("logs-sort-direction",e.direction)}export(){K0(this)}keyDown(e){switch(e.keyCode){case 36:this.paginator.firstPage(),e.preventDefault();break;case 35:this.paginator.lastPage(),e.preventDefault();break;case 39:this.paginator.nextPage(),e.preventDefault();break;case 37:this.paginator.previousPage(),e.preventDefault();break}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&at(el,7)(tl,7),n&2){let r;X(r=J())&&(o.paginator=r.first),X(r=J())&&(o.sort=r.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},standalone:!1,decls:38,vars:13,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"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",1,"logtable",3,"matSortChange","dataSource"],[3,"matColumnDef"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["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),O(3,"img",3),f(4," \xA0"),c(5,"uds-translate"),f(6,"Logs"),d()()(),c(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),w("click",function(){return o.export()}),c(11,"i",8),f(12,"import_export"),d(),c(13,"span",9)(14,"uds-translate"),f(15,"Export"),d()()()(),c(16,"div",10)(17,"div",11)(18,"uds-translate"),f(19,"Filter"),d(),f(20,"\xA0 "),c(21,"mat-form-field")(22,"input",12),w("keyup",function(){return o.applyFilter()}),te("ngModelChange",function(a){return ne(o.filterText,a)||(o.filterText=a),a}),d(),A(23,gJ,3,0,"button",13),$t(24,"notEmpty"),d()(),c(25,"div",14),O(26,"mat-paginator",15),d(),c(27,"div",16)(28,"a",17),w("click",function(){return o.reloadPage()}),c(29,"i",8),f(30,"autorenew"),d()()()()(),c(31,"div",18),w("keydown",function(a){return o.keyDown(a)}),c(32,"mat-table",19),w("matSortChange",function(a){return o.sortChanged(a)}),fe(33,bJ,3,1,"ng-container",20,De),we(35,yJ,1,0,"mat-header-row",21)(36,CJ,1,1,"mat-row",22),d()(),O(37,"div",23),d()()),n&2&&(m(3),b("src",o.api.staticURL("admin/img/icons/logs.png"),it),m(19),ee("ngModel",o.filterText),m(),R(Xt(24,10,o.filterText)?23:-1),m(3),b("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Gc(12,fJ))("showFirstLastButtons",!0),m(6),b("dataSource",o.dataSource),m(),ge(o.displayedColumns),m(2),b("matHeaderRowDef",o.displayedColumns),m(),b("matRowDefColumns",o.displayedColumns))},dependencies:[qc,Ht,$e,Xe,Fe,yi,ze,Ar,Yt,ny,oy,ly,ry,iy,cy,ay,sy,dy,uy,el,tl,q0,Ee,Ci],styles:["[_nghost-%COMP%] .card-header[_ngcontent-%COMP%]{position:static!important;top:auto!important;left:auto!important;min-width:0!important;max-width:none!important;margin:1rem 1rem 0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;box-shadow:none!important;border-radius:0!important}.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}.paginator[_ngcontent-%COMP%] .mat-mdc-paginator, .paginator[_ngcontent-%COMP%] .mat-mdc-paginator-container{background:transparent!important}[_nghost-%COMP%] .card-content[_ngcontent-%COMP%]{padding-bottom:1rem}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;border-radius:16px;overflow:hidden;background:#00000005;border:1px solid var(--glass-border);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.table[_ngcontent-%COMP%] mat-table[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] .logtable[_ngcontent-%COMP%]{background:transparent!important;width:100%}.table[_ngcontent-%COMP%] mat-header-row[_ngcontent-%COMP%]{background:#0000000d!important}.table[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--text-primary)!important;font-weight:600!important;text-transform:uppercase;font-size:.75rem;letter-spacing:.3px}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]{border-bottom:1px solid var(--glass-border);transition:background-color .2s ease}.table[_ngcontent-%COMP%] mat-row[_ngcontent-%COMP%]:hover{background-color:var(--glass-hover-bg)!important}.table[_ngcontent-%COMP%] mat-cell[_ngcontent-%COMP%]{color:var(--text-primary);font-size:.9rem}.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}"]})}}return t})();function wJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services pools"),d())}function xJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var DJ=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],m3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[Pi.getGotoButton(Xh,"id")],this.servicePools={},this.services=r.services,this.service=r.service}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let e=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new or(django.gettext("Service pools"),e,DJ,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-information"]],standalone:!1,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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),we(7,wJ,2,0,"ng-template",1),O(8,"uds-table",2),d(),c(9,"mat-tab"),we(10,xJ,2,0,"ng-template",1),c(11,"div",3),O(12,"uds-logs-table",4),d()()()(),c(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),f(16,"Ok"),d()()()),n&2&&(m(3),H(" ",o.service.name,` +`),m(5),b("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),b("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[Fe,Nn,wt,Dt,xt,Yn,Qn,ii,Ee,Ge,rr],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}"]})}}return t})();var SJ=(t,i)=>i.tab;function EJ(t,i){if(t&1&&(c(0,"div",4),O(1,"div",5)(2,"div",6),d()),t&2){let e=i.$implicit;m(),b("innerHTML",e.gui.label,Bn),m(),b("innerHTML",e.value,Bn)}}function MJ(t,i){if(t&1&&(c(0,"div",1)(1,"div",2),f(2),d(),c(3,"div",3),fe(4,EJ,3,2,"div",4,De),d()()),t&2){let e=i.$implicit;m(2),_e(e.tab),m(2),ge(e.fields)}}var TJ=django.gettext("Main"),ra=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.groupedFields()}groupedFields(){let e=this.processFields();if(!e)return[];let n=[],o={};for(let r of e){let a=r.gui.tab||TJ;o[a]||(o[a]={tab:a,fields:[]},n.push(o[a])),o[a].fields.push(r)}return n}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==$o.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case $o.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case $o.PASSWORD:n.value=django.gettext("(hidden)");break;case $o.CHOICE:{let r=$h.locateChoice(o,n);n.value=r.text;break}case $o.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case $o.IMAGECHOICE:{let r=$h.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case $o.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:3,vars:0,consts:[[1,"info-groups"],[1,"info-card"],[1,"info-card-header"],[1,"info-card-body"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"div",0),fe(1,MJ,6,1,"div",1,SJ),d()),n&2&&(m(),ge(o.groupedFields()))},styles:[".info-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr));gap:1.5rem;padding:1.5rem;align-items:start}.info-card[_ngcontent-%COMP%]{background:var(--glass-bg);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);border:1px solid var(--glass-border);border-radius:16px;box-shadow:0 8px 32px var(--glass-shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.info-card[_ngcontent-%COMP%]:hover{transform:translateY(-3px);box-shadow:0 12px 40px var(--glass-shadow)}.info-card-header[_ngcontent-%COMP%]{padding:.9rem 1.25rem;font-size:1rem;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--text-primary);background:linear-gradient(135deg,#ffffff1a,#ffffff05);border-bottom:1px solid var(--glass-border)}.info-card-body[_ngcontent-%COMP%]{padding:.5rem 1.25rem 1rem}.item[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--glass-border)}.item[_ngcontent-%COMP%]:last-child{border-bottom:none}.label[_ngcontent-%COMP%]{flex:0 0 45%;font-weight:600;font-size:.85rem;color:var(--text-secondary);text-align:left;overflow-wrap:break-word}.value[_ngcontent-%COMP%]{flex:1 1 auto;color:var(--text-primary);overflow-wrap:break-word}.value[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px;width:auto;vertical-align:middle;margin-right:.4rem}"]})}}return t})();var IJ=t=>["/services","providers",t];function kJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function AJ(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.provider)("gui",e.gui)}}function RJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services"),d())}function OJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Usage"),d())}function PJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function NJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),we(4,kJ,2,0,"ng-template",8),c(5,"div",9),A(6,AJ,1,2,"uds-information",10),d()(),c(7,"mat-tab"),we(8,RJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),w("newAction",function(o){I(e);let r=_();return k(r.onNewService(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditService(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteService(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onInformation(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()(),c(11,"mat-tab"),we(12,OJ,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),w("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()(),c(15,"mat-tab"),we(16,PJ,2,0,"ng-template",8),c(17,"div",9),O(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.provider&&e.gui?6:-1),m(4),b("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),m(4),b("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),m(4),b("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var $M=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let e=this.route.snapshot.paramMap.get("provider");e&&(this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(e){m3.launch(this.api,this.services,e.table.selection.selected[0])}onNewService(e){let n=django.gettext("New service")+": "+(e.param.name||"");this.api.gui.forms.typedNewForm(e,n,!1)}onEditService(e){let n=django.gettext("Edit service")+": "+(e.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(e,n,!1)}onDeleteService(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete service"))}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user service"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("service"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-provider-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,NJ,19,17,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,IJ,o.services.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.provider==null?null:o.provider.name," "),m(),R(o.provider!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra],encapsulation:2})}}return t})();var GM=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete server"))}onDetail(e){this.api.navigation.gotoServerDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var p3=(()=>{class t{constructor(e,n,o){this.api=e,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result={data:"",has_header:!0,separator:","},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(e,n){return B(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",r=e.gui.dialog.open(t,{width:o,data:n,disableClose:!1});return new Promise((a,s)=>{r.afterClosed().subscribe(l=>{a(r.componentInstance.result)})})})}onFileChange(e){return B(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qn;o.onload=s=>{let l=o.result;r.resolve(l)},o.readAsText(n);let a=yield r;this.result={data:a,has_header:this.contains_header,separator:this.separator}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-cvsimport"]],standalone:!1,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 r=W();c(0,"h4",1)(1,"uds-translate"),f(2,"CVS Import options for"),d(),f(3,"\xA0"),O(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"),f(12,"Header"),d()(),c(13,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.contains_header,s)||(o.contains_header=s),k(s)}),c(14,"mat-option",7)(15,"uds-translate"),f(16,"CSV contains header line"),d()(),c(17,"mat-option",7)(18,"uds-translate"),f(19,"CSV DOES NOT contains header line"),d()()()()(),c(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),f(24,"Separator"),d()(),c(25,"mat-select",6),te("valueChange",function(s){return I(r),ne(o.separator,s)||(o.separator=s),k(s)}),c(26,"mat-option",8)(27,"uds-translate"),f(28,"Use comma"),d(),f(29," (,)"),d(),c(30,"mat-option",9)(31,"uds-translate"),f(32,"Use semicolon"),d(),f(33," (;)"),d(),c(34,"mat-option",10)(35,"uds-translate"),f(36,"Use pipe"),d(),f(37," (|)"),d(),c(38,"mat-option",11)(39,"uds-translate"),f(40,"Use tab"),d(),f(41," (tab)"),d()()()()()(),c(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),f(46,"File"),d()(),c(47,"input",13,0),w("change",function(s){return o.onFileChange(s)}),d(),c(49,"input",14),te("ngModelChange",function(s){return I(r),ne(o.filename,s)||(o.filename=s),k(s)}),w("click",function(){I(r);let s=Pt(48);return k(s.click())}),d()()()(),c(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),f(53,"Ok"),d()(),c(54,"button",16),w("click",function(){return o.filename=""}),c(55,"uds-translate"),f(56,"Cancel"),d()()()}n&2&&(m(4),b("innerHTML",o.title,Bn),m(9),ee("value",o.contains_header),m(),b("value",!0),m(3),b("value",!1),m(8),ee("value",o.separator),m(24),ee("ngModel",o.filename),b("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[Ht,$e,Xe,Fe,Yo,Nn,wt,Dt,xt,ze,st,Yt,en,Mt,Ee],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}"]})}}return t})();var FJ=t=>["/services","servers",t];function LJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function VJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"Servers"),d())}function BJ(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),we(4,LJ,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),we(8,VJ,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),w("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("editAction",function(o){I(e);let r=_();return k(r.onEdit(o))})("rowSelected",function(o){I(e);let r=_();return k(r.onRowSelect(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.customButtonAction(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.server)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","servers-d-servers"+e.server.id)}}var h3='pause'+django.gettext("Maintenance")+"",jJ='pause'+django.gettext("Exit maintenance mode")+"",zJ='pause'+django.gettext("Enter maintenance mode")+"",UJ='import_export'+django.gettext("Import CSV")+"",f3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:h3,type:Gt.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("server");e&&(this.servers=this.rest.serverGroups.detail(e,"servers"),this.server=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:UJ,type:Gt.ALWAYS}))})}onMaintenance(e){let n=e.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(r=>{r&&this.servers.invoke(n.id+"/maintenance",void 0,"POST").then(()=>{e.table.reloadPage()})})}onImportCSV(e){return B(this,null,function*(){let n=yield p3.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(n,this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),e.table.reloadPage()})}customButtonAction(e){return B(this,null,function*(){if(e.param.id=="maintenance")return yield this.onMaintenance(e);if(e.param.id=="import-csv")return yield this.onImportCSV(e)})}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New server"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit server"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove server from server group"),"hostname")}onRowSelect(e){let n=e.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=h3;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=jJ:this.customButtons[0].html=zJ}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-server-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,BJ,11,9,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,FJ,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/servers.png"),it),m(),H(" \xA0",o.server==null?null:o.server.name," "),m(),R(o.server!==null?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var qM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return B(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return B(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return B(this,null,function*(){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("authenticator"))})}processElement(e){e.visible=this.api.boolAsHumanString(e.visible)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var YM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("mfa")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New MFA"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit MFA"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete MFA"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("mfa"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-mfas"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var HJ=["panel"],WJ=["*"];function $J(t,i){if(t&1&&(dn(0,"div",1,0),Ie(2),pn()),t&2){let e=i.id,n=_();Tn(n._classList),le("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),On("id",n.id),me("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var QM=class{source;option;constructor(i,e){this.source=i,this.option=e}},g3=new L("mat-autocomplete-default-options",{providedIn:"root",factory:()=>({autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1})}),Om=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_defaults=p(g3);_animationsDisabled=Bt();_activeOptionChanges=Ue.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple=!1;optionSelected=new V;opened=new V;closed=new V;optionActivated=new V;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=p(zt).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(Ft);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new dd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new QM(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Mt,5)(r,vm,5),n&2){let a;X(a=J())&&(o.options=a),X(a=J())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&at(mn,7)(HJ,5),n&2){let r;X(r=J())&&(o.template=r.first),X(r=J())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",K],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",K],requireSelection:[2,"requireSelection","requireSelection",K],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",K],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",K]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ke([{provide:_m,useExisting:t}])],ngContentSelectors:WJ,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&&(vt(),Bs(0,$J,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel { width: 100%; max-height: 256px; visibility: hidden; @@ -4461,11 +4461,11 @@ div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden, mat-autocomplete { display: none; } -`],encapsulation:2,changeDetection:0})}return t})();var $J={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var GJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ze);_dir=p(xn,{optional:!0});_formField=p(ia,{optional:!0,host:!0});_viewportRuler=p(ho);_scrollStrategy=p(GJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(f3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=qs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&Gl(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(Qe(e=>e instanceof gm?e:null))}optionSelections=pr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=Gi(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Gr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new qi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=Uo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(cb.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new jo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=La(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Gl(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Gl(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&x("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ke([$J]),Ct]})}return t})(),g3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,xr,bm,pt]})}return t})();function qJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function YJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function QJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function KJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function ZJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),x("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,KJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function JJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function eee(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var KM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,qJ,4,1,"div")(2,YJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,QJ,4,3,"mat-form-field"),A(6,ZJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),x("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,XJ,4,2,"mat-form-field"),A(43,JJ,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,eee,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),x("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function tee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function nee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function iee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function oee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function ree(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),x("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,oee,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function aee(t,i){if(t&1&&(A(0,iee,4,3,"mat-form-field"),A(1,ree,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function see(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function lee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function cee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,lee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function dee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function uee(t,i){if(t&1&&A(0,dee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function mee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,uee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,tee,4,1,"div")(2,nee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,aee,2,2)(6,see,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,cee,7,1,"mat-form-field")(35,mee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),x("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function hee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,pee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function gee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,fee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function _ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function vee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,_ee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var yee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Cee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],xee=[{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")}],_3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/services_pools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/user_services")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new or(django.gettext("Groups"),e,yee,this.user.id+"infogrp"),this.servicesPools=new or(django.gettext("Services Pools"),n,Cee,this.user.id+"infopool"),this.userServices=new or(django.gettext("Assigned services"),o,xee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,hee,3,2,"mat-tab"),$t(7,"notEmpty"),A(8,gee,3,2,"mat-tab"),$t(9,"notEmpty"),A(10,vee,3,2,"mat-tab"),$t(11,"notEmpty"),c(12,"mat-tab"),xe(13,bee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` -`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,rr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function Dee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,wee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function See(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Eee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,See,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Mee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Tee(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Mee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var Iee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],kee=[{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:sn.DATETIME}],Aee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/services_pools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new or(django.gettext("Service pools"),n,Iee,this.data.group.id+"infopls"),this.users=new or(django.gettext("Users"),o,kee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new or(django.gettext("Groups"),r,Aee,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,Dee,3,2,"mat-tab"),$t(6,"notEmpty"),A(7,Eee,3,2,"mat-tab"),$t(8,"notEmpty"),A(9,Tee,3,2,"mat-tab"),$t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,xt,Dt,wt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Ree=t=>["/authenticators",t];function Oee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Pee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Nee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Fee(t,i){if(t&1){let e=W();c(0,"uds-table",14),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Lee(t,i){if(t&1){let e=W();c(0,"uds-table",15),x("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function jee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Oee,2,0,"ng-template",8),c(5,"div",9),A(6,Pee,1,2,"uds-information",10),$t(7,"notEmpty"),d()(),c(8,"mat-tab"),xe(9,Nee,2,0,"ng-template",8),c(10,"div",9),A(11,Fee,1,6,"uds-table",11),A(12,Lee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),xe(14,Vee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),x("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),xe(18,Bee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var uy=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:Gt.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:Gt.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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){KM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){KM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){ZM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ZM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?_3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){v3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,jee,21,16,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Ree,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],encapsulation:2})}}return t})();var XM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function zee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,zee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),x("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),x("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Uee=t=>["/connectivity","tunnels",t];function Hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function $ee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Hee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,Wee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var y3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.tunnel=null,this.gui=[],this.servers={}}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onNew(e){return B(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 b3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","deleteAction","loaded","rest","multiSelect","allowExport","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,$ee,11,8,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Uee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(NE,"provider_id"),Pi.getGotoButton(FE,"provider_id","service_id"),Pi.getGotoButton(BE,"osmanager_id"),Pi.getGotoButton(jE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function Gee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var my=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(10,Gee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),x("changed",function(a){return o.userFilter=a}),d(),fe(18,qee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),x("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),x("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Zee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Xee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),x("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Zee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Yee,2,0,"uds-translate"),A(2,Qee,2,0,"uds-translate"),A(3,Kee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Xee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` -`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Jee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function ete(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function tte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ete,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.authFilter=a}),d(),fe(12,Jee,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),x("changed",function(a){return o.groupFilter=a}),d(),fe(20,tte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),x("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),x("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function nte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ite(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,nte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var C3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ite,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),x("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),x("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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),"POST").then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),x("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),x("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.reason))},dependencies:[Ht,$e,Xe,Fe,xt,Dt,wt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` -`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ote=["switch"],rte=["*"];function ate(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var ste=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),hy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},il=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ze);defaults=p(ste);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new hy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 hy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(ote,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Xr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:rte,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),x("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ate,5,0,"span",11),d()()(),c(12,"label",12),x("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Sr,Yb],styles:[`.mdc-switch { +`],encapsulation:2,changeDetection:0})}return t})();var GJ={provide:Go,useExisting:Wn(()=>Dd),multi:!0};var qJ=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),Dd=(()=>{class t{_environmentInjector=p(Cn);_element=p(se);_injector=p(Te);_viewContainerRef=p(En);_zone=p(be);_changeDetectorRef=p(Ze);_dir=p(wn,{optional:!0});_formField=p(ia,{optional:!0,host:!0});_viewportRuler=p(ho);_scrollStrategy=p(qJ);_renderer=p(Zt);_animationsDisabled=Bt();_defaults=p(g3,{optional:!0});_overlayRef=null;_portal;_componentDestroyed=!1;_initialized=new Z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue=null;_valueOnAttach=null;_valueOnLastKeydown=null;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ue.EMPTY;_breakpointObserver=p(ld);_handsetLandscapeSubscription=Ue.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption=null;_closeKeyEventStream=new Z;_overlayPanelClass=qs(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled=!1;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;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&&ql(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return rn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(At(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(At(()=>this._overlayAttached)):Me()).pipe(Qe(e=>e instanceof gm?e:null))}optionSelections=pr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(cn(e),yn(()=>rn(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(yn(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new dt(e=>{let n=r=>{let a=Gi(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=un(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):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(e){let n=e.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 r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_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()}_hasFocus(){return Gr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new dt(o=>{nn(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(fi(()=>this._positionStrategy.reapplyLastPosition()),sp(0))??Me();return rn(e,n).pipe(yn(()=>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})),bn(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.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),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;sm(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){if(!this.autocomplete)return;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new qi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=Uo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(db.HandsetLandscape).subscribe(r=>{r.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=e,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()}_handlePanelKeydown=e=>{(e.keyCode===27&&!un(e)||e.keyCode===38&&un(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=void 0}_getOverlayConfig(){return new jo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=La(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPopoverLocation("inline");return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_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 e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&ql(this._trackedModal,"aria-owns",n),sm(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ql(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&w("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&me("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",K]},exportAs:["matAutocompleteTrigger"],features:[Ke([GJ]),Ct]})}return t})(),_3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fo,bm,wr,bm,pt]})}return t})();function YJ(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit user"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.user.name," ")}}function QJ(t,i){t&1&&(c(0,"uds-translate"),f(1,"New user"),d())}function KJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",16),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",e.user.name),b("disabled",e.user.id)}}function ZJ(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function XJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",17),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.name,o)||(r.user.name=o),k(o)}),w("input",function(o){I(e);let r=_();return k(r.filterUser(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,ZJ,2,3,"mat-option",13,De),d()()}if(t&2){let e=Pt(5),n=_();m(2),H(" ",n.authenticator.type_info.extra.label_username," "),m(),ee("ngModel",n.user.name),b("matAutocomplete",e),m(3),ge(n.users)}}function JJ(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",18),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.password,o)||(r.user.password=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.authenticator.type_info.extra.label_password," "),m(),ee("ngModel",e.user.password)}}function eee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"MFA"),d()(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.user.mfa_data,o)||(r.user.mfa_data=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.user.mfa_data)}}function tee(t,i){if(t&1&&(c(0,"mat-option",13),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var ZM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new V(!0),this.users=[],this.authenticator=r.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},r.user!==void 0&&(this.user.id=r.user.id,this.user.name=r.user.name)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(e=>{this.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(e=>{this.user=e,this.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},e=>{this.dialogRef.close()})}roleChanged(e){this.user.is_admin=e==="admin",this.user.staff_member=e==="admin"||e==="staff"}filterUser(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(r=>{this.users.push(r)})})}save(){return B(this,null,function*(){try{let e=yield this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user);this.dialogRef.close(),this.onSave.emit(!0)}catch(e){this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-user"]],standalone:!1,decls:58,vars:10,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[1,"content"],["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"],["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"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,YJ,4,1,"div")(2,QJ,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,KJ,4,3,"mat-form-field"),A(6,XJ,8,3,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Real name"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(a){return ne(o.user.comments,a)||(o.user.comments=a),a}),d()(),c(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),f(20,"State"),d()(),c(21,"mat-select",5),te("ngModelChange",function(a){return ne(o.user.state,a)||(o.user.state=a),a}),c(22,"mat-option",6)(23,"uds-translate"),f(24,"Enabled"),d()(),c(25,"mat-option",7)(26,"uds-translate"),f(27,"Disabled"),d()()()(),c(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),f(31,"Role"),d()(),c(32,"mat-select",8),te("ngModelChange",function(a){return ne(o.user.role,a)||(o.user.role=a),a}),w("valueChange",function(a){return o.roleChanged(a)}),c(33,"mat-option",9)(34,"uds-translate"),f(35,"Admin"),d()(),c(36,"mat-option",10)(37,"uds-translate"),f(38,"Staff member"),d()(),c(39,"mat-option",11)(40,"uds-translate"),f(41,"User"),d()()()(),A(42,JJ,4,2,"mat-form-field"),A(43,eee,5,1,"mat-form-field"),c(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),f(47,"Groups"),d()(),c(48,"mat-select",12),te("ngModelChange",function(a){return ne(o.user.groups,a)||(o.user.groups=a),a}),fe(49,tee,2,2,"mat-option",13,De),d()()()(),c(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),f(54,"Cancel"),d()(),c(55,"button",15),w("click",function(){return o.save()}),c(56,"uds-translate"),f(57,"Ok"),d()()()),n&2&&(m(),R(o.user.id?1:2),m(4),R(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),m(),R(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),m(5),ee("ngModel",o.user.real_name),m(5),ee("ngModel",o.user.comments),m(5),ee("ngModel",o.user.state),m(11),ee("ngModel",o.user.role),m(10),R(o.authenticator.type_info.extra.needs_password?42:-1),m(),R(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),m(5),ee("ngModel",o.user.groups),m(),ge(o.groups))},dependencies:[Ht,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Yt,en,Mt,Om,Dd,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function nee(t,i){if(t&1&&(c(0,"div")(1,"uds-translate"),f(2,"Edit group"),d(),f(3),d()),t&2){let e=_();m(3),H(" ",e.group.name," ")}}function iee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New group"),d())}function oee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",9),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_(2);m(2),H(" ",e.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function ree(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),Fo(" ",e.id," (",e.name,") ")}}function aee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",10),te("ngModelChange",function(o){I(e);let r=_(2);return ne(r.group.name,o)||(r.group.name=o),k(o)}),w("input",function(o){I(e);let r=_(2);return k(r.filterGroup(o))}),d(),c(4,"mat-autocomplete",null,0),fe(6,ree,2,3,"mat-option",11,De),d()()}if(t&2){let e=Pt(5),n=_(2);m(2),H(" ",n.authenticator.type_info.extra.label_groupname," "),m(),ee("ngModel",n.group.name),b("matAutocomplete",e),m(3),ge(n.fltrGroup)}}function see(t,i){if(t&1&&(A(0,oee,4,3,"mat-form-field"),A(1,aee,8,3,"mat-form-field")),t&2){let e=_();R(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),m(),R(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function lee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Meta group name"),d()(),c(4,"input",9),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.name,o)||(r.group.name=o),k(o)}),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.name),b("disabled",e.group.id)}}function cee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function dee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Service Pools"),d()(),c(4,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.pools,o)||(r.group.pools=o),k(o)}),fe(5,cee,2,2,"mat-option",11,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.pools),m(),ge(e.servicePools)}}function uee(t,i){if(t&1&&(c(0,"mat-option",11),f(1),d()),t&2){let e=_().$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function mee(t,i){if(t&1&&A(0,uee,2,2,"mat-option",11),t&2){let e=i.$implicit;R(e.type==="group"?0:-1)}}function pee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Match mode"),d()(),c(4,"mat-select",4),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.meta_if_any,o)||(r.group.meta_if_any=o),k(o)}),c(5,"mat-option",11)(6,"uds-translate"),f(7,"Any group"),d()(),c(8,"mat-option",11)(9,"uds-translate"),f(10,"All groups"),d()()()(),c(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),f(14,"Selected Groups"),d()(),c(15,"mat-select",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.group.groups,o)||(r.group.groups=o),k(o)}),fe(16,mee,1,1,null,null,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.group.meta_if_any),m(),b("value",!0),m(3),b("value",!1),m(7),ee("ngModel",e.group.groups),m(),ge(e.groups)}}var XM=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=r.authenticator,this.group={id:void 0,type:r.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},r.group!==void 0&&(this.group.id=r.group.id,this.group.type=r.group.type,this.group.name=r.group.name)}static launch(e,n,o,r){let a=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:r},disableClose:!0}).componentInstance.onSave}ngOnInit(){let e=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&e.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?e.overview().then(n=>this.groups=n):this.rest.servicesPools.overview().then(n=>this.servicePools=n)}filterGroup(e){let n=e.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(r=>{this.fltrGroup.push(r)})})}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(e=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-group"]],standalone:!1,decls:43,vars:6,consts:[["auto","matAutocomplete"],["mat-dialog-title",""],[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"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",1),A(1,nee,4,1,"div")(2,iee,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2),A(5,see,2,2)(6,lee,5,2,"mat-form-field"),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Comments"),d()(),c(11,"input",3),te("ngModelChange",function(a){return ne(o.group.comments,a)||(o.group.comments=a),a}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"State"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.state,a)||(o.group.state=a),a}),c(17,"mat-option",5)(18,"uds-translate"),f(19,"Enabled"),d()(),c(20,"mat-option",6)(21,"uds-translate"),f(22,"Disabled"),d()()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Skip MFA"),d()(),c(27,"mat-select",4),te("ngModelChange",function(a){return ne(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),c(28,"mat-option",5)(29,"uds-translate"),f(30,"Enabled"),d()(),c(31,"mat-option",6)(32,"uds-translate"),f(33,"Disabled"),d()()()(),A(34,dee,7,1,"mat-form-field")(35,pee,18,4),d()(),c(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),f(39,"Cancel"),d()(),c(40,"button",8),w("click",function(){return o.save()}),c(41,"uds-translate"),f(42,"Ok"),d()()()),n&2&&(m(),R(o.group.id?1:2),m(4),R(o.group.type==="group"?5:6),m(6),ee("ngModel",o.group.comments),m(5),ee("ngModel",o.group.state),m(11),ee("ngModel",o.group.skip_mfa),m(7),R(o.group.type==="group"?34:35))},dependencies:[Ht,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Yt,en,Mt,Om,Dd,Ee],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}"]})}}return t})();function hee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function fee(t,i){if(t&1&&(c(0,"mat-tab"),we(1,hee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.group)("pageSize",6)}}function gee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function _ee(t,i){if(t&1&&(c(0,"mat-tab"),we(1,gee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function vee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned Services"),d())}function bee(t,i){if(t&1&&(c(0,"mat-tab"),we(1,vee,2,0,"ng-template",1),O(2,"uds-table",5),d()),t&2){let e=_();m(2),b("rest",e.userServices)("pageSize",6)}}function yee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}var Cee=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],xee=[{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")}],v3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=r.users,this.user=r.user}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){return B(this,null,function*(){let e=()=>B(this,null,function*(){let r=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(s=>r.groups.includes(s.id))}),n=()=>B(this,null,function*(){return this.users.invoke(this.user.id+"/services_pools")}),o=()=>B(this,null,function*(){return(yield this.users.invoke(this.user.id+"/user_services")).map(a=>(a.in_use=this.api.boolAsHumanString(a.in_use),a))});this.group=new or(django.gettext("Groups"),e,Cee,this.user.id+"infogrp"),this.servicesPools=new or(django.gettext("Services Pools"),n,wee,this.user.id+"infopool"),this.userServices=new or(django.gettext("Assigned services"),o,xee,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-user-information"]],standalone:!1,decls:20,vars:14,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"mat-tab-group"),A(6,fee,3,2,"mat-tab"),$t(7,"notEmpty"),A(8,_ee,3,2,"mat-tab"),$t(9,"notEmpty"),A(10,bee,3,2,"mat-tab"),$t(11,"notEmpty"),c(12,"mat-tab"),we(13,yee,2,0,"ng-template",1),c(14,"div",2),O(15,"uds-logs-table",3),d()()()(),c(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(3),H(" ",o.user.name,` +`),m(3),R(Xt(7,8,o.group)?6:-1),m(2),R(Xt(9,10,o.servicesPools)?8:-1),m(2),R(Xt(11,12,o.userServices)?10:-1),m(5),b("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[Fe,Nn,wt,Dt,xt,Yn,Qn,ii,Ee,Ge,rr,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Dee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Services Pools"),d())}function See(t,i){if(t&1&&(c(0,"mat-tab"),we(1,Dee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.servicesPools)("pageSize",6)}}function Eee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Mee(t,i){if(t&1&&(c(0,"mat-tab"),we(1,Eee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.users)("pageSize",6)}}function Tee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Iee(t,i){if(t&1&&(c(0,"mat-tab"),we(1,Tee,2,0,"ng-template",2),O(2,"uds-table",3),d()),t&2){let e=_();m(2),b("rest",e.groups)("pageSize",6)}}var kee=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Aee=[{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:sn.DATETIME}],Ree=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],b3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.users={},this.groups={},this.servicesPools={}}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%",a=e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let e=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>e.invoke(this.data.group.id+"/services_pools"),o=()=>e.invoke(this.data.group.id+"/users").then(r=>r.map(a=>(a.state=a.state==="A"?django.gettext("Enabled"):a.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),a)));if(this.servicesPools=new or(django.gettext("Service pools"),n,kee,this.data.group.id+"infopls"),this.users=new or(django.gettext("Users"),o,Aee,this.data.group.id+"infousr"),this.data.group.type==="meta"){let r=()=>e.overview().then(a=>a.filter(s=>this.data.group.groups.includes(s.id)));this.groups=new or(django.gettext("Groups"),r,Ree,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-group-information"]],standalone:!1,decls:15,vars:9,consts:[["mat-dialog-title",""],["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"),f(2,"Information for"),d()(),c(3,"mat-dialog-content")(4,"mat-tab-group"),A(5,See,3,2,"mat-tab"),$t(6,"notEmpty"),A(7,Mee,3,2,"mat-tab"),$t(8,"notEmpty"),A(9,Iee,3,2,"mat-tab"),$t(10,"notEmpty"),d()(),c(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),f(14,"Ok"),d()()()),n&2&&(m(5),R(Xt(6,3,o.servicesPools)?5:-1),m(2),R(Xt(8,5,o.users)?7:-1),m(2),R(Xt(10,7,o.groups)?9:-1))},dependencies:[Fe,Nn,wt,Dt,xt,Yn,Qn,ii,Ee,Ge,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Oee=t=>["/authenticators",t];function Pee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Nee(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.authenticator)("gui",e.gui)}}function Fee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Users"),d())}function Lee(t,i){if(t&1){let e=W();c(0,"uds-table",14),w("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewUser(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Vee(t,i){if(t&1){let e=W();c(0,"uds-table",15),w("loaded",function(o){I(e);let r=_(2);return k(r.onLoad(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditUser(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteUser(o))})("customButtonAction",function(o){I(e);let r=_(2);return k(r.onUserCustom(o))}),d()}if(t&2){let e=_(2);b("rest",e.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+e.authenticator.id)("customButtons",e.usersCustomButtons)("pageSize",e.api.config.admin.page_size)}}function Bee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function jee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function zee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),we(4,Pee,2,0,"ng-template",8),c(5,"div",9),A(6,Nee,1,2,"uds-information",10),$t(7,"notEmpty"),d()(),c(8,"mat-tab"),we(9,Fee,2,0,"ng-template",8),c(10,"div",9),A(11,Lee,1,6,"uds-table",11),A(12,Vee,1,6,"uds-table",11),d()(),c(13,"mat-tab"),we(14,Bee,2,0,"ng-template",8),c(15,"div",9)(16,"uds-table",12),w("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))})("customButtonAction",function(o){I(e);let r=_();return k(r.onGroupInformation(o))}),d()()(),c(17,"mat-tab"),we(18,jee,2,0,"ng-template",8),c(19,"div",9),O(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(Xt(7,14,e.gui)?6:-1),m(5),R(e.authenticator.type_info.extra.create_users_supported?11:-1),m(),R(e.authenticator.type_info.extra.create_users_supported?-1:12),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var my=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.groupsCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Gt.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:Gt.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:Gt.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 e=this.route.snapshot.paramMap.get("authenticator");e&&(this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(e){if(e.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),r=n||o;e.table.selectElement(r)}}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(e){ZM.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){ZM.launch(this.api,this.authenticator,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteUser(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete user"))}onNewGroup(e){XM.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){XM.launch(this.api,this.authenticator,e.param.type,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete group"))}onUserCustom(e){return B(this,null,function*(){e.param.id==="info"?v3.launch(this.api,this.users,e.table.selection.selected[0]):e.param.id==="clean-related"?(yield this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0))&&(yield this.users.invoke(e.table.selection.selected[0].id+"/clean_related",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()):e.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(e.table.selection.selected[0].id+"/enable_client_logging",void 0,"POST"),this.api.gui.snackbar.open(django.gettext("Client logging enabled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage())})}onGroupInformation(e){b3.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-authenticators-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],["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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,zee,21,16,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Oee,o.authenticator?o.authenticator.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/services.png"),it),m(),H(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),R(Xt(9,4,o.authenticator)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],encapsulation:2})}}return t})();var JM=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("osmanager")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New OS Manager"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit OS Manager"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete OS Manager"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("osmanager"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-osmanagers"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var e1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("transport")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Transport"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Transport"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Transport"))}processElement(e){try{e.allowed_oss=e.allowed_oss.join(", ")}catch(n){e.allowed_oss=""}}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("transport"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-transports"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var t1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("network")}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Network"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Network"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete Network"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("network"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-networks"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var n1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New tunnel"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit tunnel"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete tunnel"))}onDetail(e){this.api.navigation.gotoTunnelDetail(e.param.id)}processElement(e){e.maintenance_state=e.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();function Uee(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var y3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return B(this,null,function*(){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return B(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let e=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&e.push(n);return e}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-new-tunnel"]],standalone:!1,decls:20,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(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"),f(8,"Tunnel"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serverId,a)||(o.serverId=a),a}),c(10,"uds-cond-select-search",3),w("changed",function(a){return o.tunnelFilter=a}),d(),fe(11,Uee,2,2,"mat-option",4,De),d()()()(),c(13,"mat-dialog-actions")(14,"button",5),w("click",function(){return o.cancel()}),c(15,"uds-translate"),f(16,"Cancel"),d()(),c(17,"button",6),w("click",function(){return o.save()}),c(18,"uds-translate"),f(19,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serverId),m(),b("options",o.availTunnelServers),m(),ge(o.filteredTunnels()))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Hee=t=>["/connectivity","tunnels",t];function Wee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function $ee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Tunnel servers"),d())}function Gee(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),we(4,Wee,2,0,"ng-template",8),c(5,"div",9),O(6,"uds-information",10),d()(),c(7,"mat-tab"),we(8,$ee,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),w("newAction",function(o){I(e);let r=_();return k(r.onNew(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDelete(o))})("loaded",function(o){I(e);let r=_();return k(r.onLoad(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("value",e.tunnel)("gui",e.gui),m(4),b("rest",e.servers)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","tunnels-d-servers"+e.tunnel.id)}}var C3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.tunnel=null,this.gui=[],this.servers={}}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("tunnel");e&&(this.servers=this.rest.tunnels.detail(e,"servers"),this.tunnel=yield this.servers.parentModel.get(e),this.gui=yield this.servers.parentModel.gui())})}onNew(e){return B(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 y3.launch(this.api,this.tunnel.id,n))===!0&&e.table.reloadPage()})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Remove member from tunnel"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-tunnels-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","deleteAction","loaded","rest","multiSelect","allowExport","pageSize","tableId"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Gee,11,8,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Hee,o.servers.parentId)),m(4),b("src",o.api.staticURL("admin/img/icons/tunnels.png"),it),m(),H(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),R(Xt(9,4,o.tunnel)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,ra,Ci],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var i1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(LE,"provider_id"),Pi.getGotoButton(VE,"provider_id","service_id"),Pi.getGotoButton(zE,"osmanager_id"),Pi.getGotoButton(UE,"pool_group_id")],this.editing=!1}ngOnInit(){return B(this,null,function*(){})}onChange(e){return B(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(e.on===null||e.on.field.name==="service_id"){if(e.all.service_id.value===""){e.all.osmanager_id.gui.choices=[];for(let r of n)e.all[r].gui.readonly=!0;e.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(e.all.service_id.value);if(e.all.allow_users_reset.gui.readonly=!o.info.can_reset,e.all.osmanager_id.gui.choices=[],this.editing||(e.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let r=yield this.rest.osManagers.overview(),a=[];for(let s of r)for(let l of s.servicesTypes)o.info.services_type_provided==l&&a.push({id:s.id,text:s.name});a.length>0?e.all.osmanager_id.value=e.all.osmanager_id.value||a[0].id:e.all.osmanager_id.value="",e.all.osmanager_id.gui.choices=a}else e.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],e.all.osmanager_id.value="";for(let r of n)e.all[r].gui.readonly=!o.info.uses_cache;e.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,e.all.publish_on_save&&(e.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(e){return B(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(e,django.gettext("New service Pool"),!1,[],this.onChange.bind(this))})}onEdit(e){return B(this,null,function*(){if(this.editing=!0,e.table.selection.selected.length!==0){if(e.table.selection.selected[0].state==="Q"){yield this.api.gui.alert(django.gettext("Service Pool is locked"),django.gettext("This service pool is locked and cannot be edited"));return}yield this.api.gui.forms.typedEditForm(e,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))}})}onDelete(e){return B(this,null,function*(){return this.api.gui.forms.deleteForm(e,django.gettext("Delete service pool"),void 0,!0)})}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.restrained?(e.name='warning '+this.api.gui.icon_from_image(e.info.icon)+e.name,e.state="T"):(e.name=this.api.gui.icon_from_image(e.info.icon)+e.name,e.meta_member.length>0&&(e.state="V")),e.name=this.api.safeString(e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onDetail(e){this.api.navigation.gotoServicePoolDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("pool"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-usage{max-width:5rem;justify-content:center} .mat-column-state{min-width:12rem;max-width:12rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:14rem} .mat-column-visible{max-width:8rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .row-state-Q>.mat-mdc-cell{color:#00a5ff!important} .row-state-Y>.mat-mdc-cell{color:#a05014!important} .row-state-R>.mat-mdc-cell{color:#f00000!important} .row-state-M>.mat-mdc-cell{color:#f00000!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]})}}return t})();function qee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Yee(t,i){if(t&1&&(c(0,"mat-option",3),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var py=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=r.userService,this.userServices=r.userServices}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(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.overview(),this.authChanged()})}changeAuth(e){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&e.push(n)}),e}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 B(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").overview():this.users=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-change-assigned-service-owner"]],standalone:!1,decls:27,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["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"),f(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"),f(8,"Authenticator"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),w("selectionChange",function(a){return o.changeAuth(a)}),fe(10,qee,2,2,"mat-option",3,De),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"User"),d()(),c(16,"mat-select",4),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(17,"uds-cond-select-search",5),w("changed",function(a){return o.userFilter=a}),d(),fe(18,Yee,2,2,"mat-option",3,De),d()()()(),c(20,"mat-dialog-actions")(21,"button",6),w("click",function(){return o.cancel()}),c(22,"uds-translate"),f(23,"Cancel"),d()(),c(24,"button",7),w("click",function(){return o.save()}),c(25,"uds-translate"),f(26,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function Qee(t,i){t&1&&(c(0,"uds-translate"),f(1,"New access rule for"),d())}function Kee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit access rule for"),d())}function Zee(t,i){t&1&&(c(0,"uds-translate"),f(1,"Default fallback access for"),d())}function Xee(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function Jee(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Priority"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.priority,o)||(r.accessRule.priority=o),k(o)}),d()(),c(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Calendar"),d()(),c(9,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),k(o)}),c(10,"uds-cond-select-search",8),w("changed",function(o){I(e);let r=_();return k(r.calendarsFilter=o)}),d(),fe(11,Xee,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.accessRule.priority),m(5),ee("ngModel",e.accessRule.calendar_id),m(),b("options",e.calendars),m(),ge(e.filtered(e.calendars,e.calendarsFilter))}}var Sd=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.calendars=[],this.calendarsFilter="",this.pool=r.pool,this.model=r.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendar_id:""},r.accessRule&&(this.accessRule.id=r.accessRule.id)}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:r},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.overview().then(e=>{this.calendars=e}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(e=>{this.accessRule=e}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(e=>this.accessRule.access=e)}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){let e=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-access-calendars"]],standalone:!1,decls:24,vars:6,consts:[["mat-dialog-title",""],[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"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,Qee,2,0,"uds-translate"),A(2,Kee,2,0,"uds-translate"),A(3,Zee,2,0,"uds-translate"),f(4),d(),c(5,"mat-dialog-content")(6,"div",1),A(7,Jee,13,3),c(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),f(11,"Action"),d()(),c(12,"mat-select",2),te("ngModelChange",function(a){return ne(o.accessRule.access,a)||(o.accessRule.access=a),a}),c(13,"mat-option",3),f(14," ALLOW "),d(),c(15,"mat-option",4),f(16," DENY "),d()()()()(),c(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",6),w("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),R(o.accessRule.id===void 0?1:-1),m(),R(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),m(),R(o.accessRule.id===-1?3:-1),m(),H(" ",o.pool.name,` +`),m(3),R(o.accessRule.id!==-1?7:-1),m(5),ee("ngModel",o.accessRule.access))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Yt,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ete(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function tte(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function nte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,tte,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var hy=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=r.pool,this.model=r.model}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return B(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(e=>(e.name+e.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(e=>e.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return B(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 B(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return B(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").overview():this.groups=[]})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-group"]],standalone:!1,decls:29,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value"],[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"),f(2,"New group for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Authenticator"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),w("selectionChange",function(a){return o.changeAuth(a)}),c(11,"uds-cond-select-search",3),w("changed",function(a){return o.authFilter=a}),d(),fe(12,ete,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Group"),d()(),c(18,"mat-select",5),te("ngModelChange",function(a){return ne(o.groupId,a)||(o.groupId=a),a}),c(19,"uds-cond-select-search",3),w("changed",function(a){return o.groupFilter=a}),d(),fe(20,nte,3,3,"mat-option",4,De),d()()()(),c(22,"mat-dialog-actions")(23,"button",6),w("click",function(){return o.cancel()}),c(24,"uds-translate"),f(25,"Cancel"),d()(),c(26,"button",7),w("click",function(){return o.save()}),c(27,"uds-translate"),f(28,"Ok"),d()()()),n&2&&(m(3),H(" ",o.pool.name),m(7),ee("ngModel",o.authId),m(),b("options",o.auths),m(),ge(o.filteredAuths()),m(6),ee("ngModel",o.groupId),m(),b("options",o.groups),m(),ge(o.filteredGroups()))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();function ite(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" (",e.comments,") ")}}function ote(t,i){if(t&1&&(c(0,"mat-option",4),f(1),A(2,ite,1,1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name),m(),R(e.comments?2:-1)}}var w3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.transports=(yield this.rest.transports.overview()).filter(e=>this.servicePool.info.allowed_protocols.includes(e.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(e=>e.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return B(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 B(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-add-transport"]],standalone:!1,decls:21,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["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"),f(2,"New transport for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Transport"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.transportId,a)||(o.transportId=a),a}),c(11,"uds-cond-select-search",3),w("changed",function(a){return o.transportsFilter=a}),d(),fe(12,ote,3,3,"mat-option",4,De),d()()()(),c(14,"mat-dialog-actions")(15,"button",5),w("click",function(){return o.cancel()}),c(16,"uds-translate"),f(17,"Cancel"),d()(),c(18,"button",6),w("click",function(){return o.save()}),c(19,"uds-translate"),f(20,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name),m(7),ee("ngModel",o.transportId),m(),b("options",o.transports),m(),ge(o.filteredTransports()))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var x3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.reason="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{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),"POST").then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-new-publication"]],standalone:!1,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"),f(2,"New publication for"),d(),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Comments"),d()(),c(10,"input",2),te("ngModelChange",function(a){return ne(o.reason,a)||(o.reason=a),a}),d()()()(),c(11,"mat-dialog-actions")(12,"button",3),w("click",function(){return o.cancel()}),c(13,"uds-translate"),f(14,"Cancel"),d()(),c(15,"button",4),w("click",function(){return o.save()}),c(16,"uds-translate"),f(17,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.reason))},dependencies:[Ht,$e,Xe,Fe,wt,Dt,xt,ze,st,Yt,Ee],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var D3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.changeLogPubs={},this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"80%":"60%",r=e.gui.dialog.open(t,{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")}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-publications-changelog"]],standalone:!1,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"),f(2,"Changelog of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-table",2,0),d(),c(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),f(10,"Ok"),d()()()),n&2&&(m(3),H(" ",o.servicePool.name,` +`),m(2),b("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[Fe,Nn,wt,Dt,xt,Ee,Ge],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var rte=["switch"],ate=["*"];function ste(t,i){t&1&&(c(0,"span",11),Gn(),c(1,"svg",13),O(2,"path",14),d(),c(3,"svg",15),O(4,"path",16),d()())}var lte=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),fy=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},il=(()=>{class t{_elementRef=p(se);_focusMonitor=p(Oi);_changeDetectorRef=p(Ze);defaults=p(lte);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new fy(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Bt();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new V;toggleChange=new V;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(an).load(Mi);let e=p(new Wi("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=p(zt).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 fy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&at(rte,5),n&2){let r;X(r=J())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(On("id",o.id),me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tn(o.color?"mat-"+o.color:""),le("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",K],color:"color",disabled:[2,"disabled","disabled",K],disableRipple:[2,"disableRipple","disableRipple",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)],checked:[2,"checked","checked",K],hideIcon:[2,"hideIcon","hideIcon",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ke([{provide:Go,useExisting:Wn(()=>t),multi:!0},{provide:Jr,useExisting:t,multi:!0}]),Ct],ngContentSelectors:ate,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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-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&&(vt(),c(0,"div",1)(1,"button",2,0),w("click",function(){return o._handleClick()}),O(3,"div",3)(4,"span",4),c(5,"span",5)(6,"span",6)(7,"span",7),O(8,"span",8),d(),c(9,"span",9),O(10,"span",10),d(),A(11,ste,5,0,"span",11),d()()(),c(12,"label",12),w("click",function(a){return a.stopPropagation()}),Ie(13),d()()),n&2){let r=Pt(2);b("labelPosition",o.labelPosition),m(),le("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),b("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),me("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),m(9),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),R(o.hideIcon?-1:11),m(),b("for",o.buttonId),me("id",o._labelId)}},dependencies:[Sr,_0],styles:[`.mdc-switch { align-items: center; background: none; border: none; @@ -4893,12 +4893,12 @@ mat-autocomplete { right: 50%; transform: translate(50%, -50%); } -`],encapsulation:2,changeDetection:0})}return t})(),D3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[il,pt]})}return t})();var lte=()=>["transport","group","bool"];function cte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function ute(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function hte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,pte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function fte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),x("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,fte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),x("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,gte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function vte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function bte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var i1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,cte,2,0,"uds-translate")(2,dte,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),x("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,ute,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),x("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,mte,2,2,"mat-option",4,De),d()(),A(30,hte,8,2,"mat-form-field"),A(31,_te,15,3),A(32,vte,5,2,"div",8),A(33,bte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),x("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` -`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,lte).includes(o.parameter.type)?33:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var ff=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` -`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,xt,Dt,wt,Ee,rr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function yte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var S3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),x("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,yte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),x("selectionChange",function(a){return o.changeAuth(a)}),fe(18,Cte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),x("changed",function(a){return o.userFilter=a}),d(),fe(26,xte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),x("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),x("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,xt,Dt,wt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var wte=["chart"],E3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>Yi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(wte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ste=t=>["/pools","service-pools",t];function Ete(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Mte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Tte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function Ite(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Tte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function kte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Rte(t,i){if(t&1&&(A(0,kte,3,0,"span"),A(1,Ate,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Ote(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Rte,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Pte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Nte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Pte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Fte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Lte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Fte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),x("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Vte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function Bte(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,Vte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function jte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Ute(t,i){if(t&1){let e=W();c(0,"mat-tab"),xe(1,zte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),x("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Hte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function Wte(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,Hte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function $te(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function Gte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,Ete,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),x("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Mte,1,2,"uds-information",12),d()(),A(11,Ite,4,8,"mat-tab"),A(12,Ote,4,9,"mat-tab"),A(13,Nte,4,7,"mat-tab"),A(14,Lte,4,7,"mat-tab"),A(15,Bte,4,7,"mat-tab"),c(16,"mat-tab"),xe(17,jte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Ute,4,8,"mat-tab"),A(21,Wte,4,1,"mat-tab"),c(22,"mat-tab"),xe(23,$te,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var gy='event'+django.gettext("Logs")+"",qte='computer'+django.gettext("VNC")+"",Yte='schedule'+django.gettext("Launch now")+"",o1='perm_identity'+django.gettext("Change owner")+"",Qte='perm_identity'+django.gettext("Assign service")+"",Kte='cancel'+django.gettext("Cancel")+"",Zte='event'+django.gettext("Changelog")+"",M3='perm_identity'+django.gettext("Fallback: Allow")+"",Xte='perm_identity'+django.gettext("Fallback: Deny")+"",_y=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Yte,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:M3,type:Gt.ALWAYS},Pi.getGotoButton(Gb,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:gy,type:Gt.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Kte,type:Gt.SINGLE_SELECT},{id:"changelog",html:Zte,type:Gt.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(LE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(VE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:qte,type:Gt.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Qte,type:Gt.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] +`],encapsulation:2,changeDetection:0})}return t})(),S3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[il,pt]})}return t})();var cte=()=>["transport","group","bool"];function dte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit action for"),d())}function ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"New action for"),d())}function mte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function pte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.description," ")}}function hte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function fte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Transport"),d()(),c(4,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(5,"uds-cond-select-search",3),w("changed",function(o){I(e);let r=_();return k(r.transportsFilter=o)}),d(),fe(6,hte,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.paramValue),m(),b("options",e.transports),m(),ge(e.filtered(e.transports,e.transportsFilter))}}function gte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function _te(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit,n=_(2);b("value",n.authenticator+"@"+e.id),m(),H(" ",e.name," ")}}function vte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),f(3,"Authenticator"),d()(),c(4,"mat-select",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.authenticator,o)||(r.authenticator=o),k(o)}),w("valueChange",function(o){I(e);let r=_();return k(r.authenticatorChangedTo(o))}),fe(5,gte,2,2,"mat-option",4,De),d()(),c(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Group"),d()(),c(11,"mat-select",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),c(12,"uds-cond-select-search",3),w("changed",function(o){I(e);let r=_();return k(r.groupsFilter=o)}),d(),fe(13,_te,2,2,"mat-option",4,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.authenticator),m(),ge(e.authenticators),m(6),ee("ngModel",e.paramValue),m(),b("options",e.groups),m(),ge(e.filtered(e.groups,e.groupsFilter))}}function bte(t,i){if(t&1){let e=W();c(0,"div",8)(1,"span",11),f(2),d(),f(3,"\xA0 "),c(4,"mat-slide-toggle",2),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),_e(e.parameter.description),m(2),ee("ngModel",e.paramValue)}}function yte(t,i){if(t&1){let e=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"input",12),te("ngModelChange",function(o){I(e);let r=_();return ne(r.paramValue,o)||(r.paramValue=o),k(o)}),d()()}if(t&2){let e=_();m(2),H(" ",e.parameter.description," "),m(),b("type",e.parameter.type),ee("ngModel",e.paramValue)}}var o1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!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=r.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},r.scheduledAction!==void 0&&(this.scheduledAction.id=r.scheduledAction.id)}static launch(e,n,o){let r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.overview().then(e=>this.authenticators=e),this.rest.transports.overview().then(e=>this.transports=e),this.rest.calendars.overview().then(e=>this.calendars=e),this.rest.servicesPools.actionsList(this.servicePool.id).then(e=>{this.actionList=e,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(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}actionChangedTo(e){if(this.parameter=this.paramsDict[e],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(e){return B(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return B(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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-scheduled-action"]],standalone:!1,decls:41,vars:12,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[1,"mat-form-field-infix"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,dte,2,0,"uds-translate")(2,ute,2,0,"uds-translate"),f(3),d(),c(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),f(9,"Calendar"),d()(),c(10,"mat-select",2),te("ngModelChange",function(a){return ne(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),c(11,"uds-cond-select-search",3),w("changed",function(a){return o.calendarsFilter=a}),d(),fe(12,mte,2,2,"mat-option",4,De),d()(),c(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),f(17,"Events offset (minutes)"),d()(),c(18,"input",5),te("ngModelChange",function(a){return ne(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),c(19,"div",6)(20,"mat-slide-toggle",2),te("ngModelChange",function(a){return ne(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),c(21,"uds-translate"),f(22,"At the beginning of the interval?"),d()()(),c(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),f(26,"Action"),d()(),c(27,"mat-select",7),te("ngModelChange",function(a){return ne(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),w("valueChange",function(a){return o.actionChangedTo(a)}),fe(28,pte,2,2,"mat-option",4,De),d()(),A(30,fte,8,2,"mat-form-field"),A(31,vte,15,3),A(32,bte,5,2,"div",8),A(33,yte,4,3,"mat-form-field"),d()(),c(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),f(37,"Cancel"),d()(),c(38,"button",10),w("click",function(){return o.save()}),c(39,"uds-translate"),f(40,"Ok"),d()()()),n&2&&(m(),R(o.scheduledAction.id!==void 0?1:2),m(2),H(" ",o.servicePool.name,` +`),m(7),ee("ngModel",o.scheduledAction.calendar_id),m(),b("options",o.calendars),m(),ge(o.filtered(o.calendars,o.calendarsFilter)),m(6),ee("ngModel",o.scheduledAction.events_offset),m(2),ee("ngModel",o.scheduledAction.at_start),m(7),ee("ngModel",o.scheduledAction.action),m(),ge(o.actionList),m(2),R((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),m(),R((o.parameter==null?null:o.parameter.type)==="group"?31:-1),m(),R((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),m(),R(o.parameter!=null&&o.parameter.type&&!Gc(11,cte).includes(o.parameter.type)?33:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var gf=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.userService=r.userService,this.model=r.model,this.title=r.userService?.name||r.title||""}static launch(e,n,o,r){let a=window.innerWidth<800?"80%":"60%",s=e.gui.dialog.open(t,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o,title:r},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-userservices-log"]],standalone:!1,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"),f(2,"Logs of"),d(),f(3),d(),c(4,"mat-dialog-content"),O(5,"uds-logs-table",1),d(),c(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),f(9,"Ok"),d()()()),n&2&&(m(3),H(" ",o.title,` +`),m(2),b("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[Fe,Nn,wt,Dt,xt,Ee,rr],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function Cte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}function wte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}function xte(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var E3=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=r.servicePool}static launch(e,n){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.authId="",this.userId="";let e=yield this.rest.authenticators.overview(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=e,this.assignablesServices=n})}changeAuth(e){return B(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let e=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&e.push(n)}),e}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let e=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e}save(){return B(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(e=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return B(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").overview())})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-assign-service-to-owner"]],standalone:!1,decls:35,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value"],[3,"ngModelChange","selectionChange","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"),f(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"),f(8,"Service"),d()(),c(9,"mat-select",2),te("ngModelChange",function(a){return ne(o.serviceId,a)||(o.serviceId=a),a}),c(10,"uds-cond-select-search",3),w("changed",function(a){return o.assignablesServicesFilter=a}),d(),fe(11,Cte,2,2,"mat-option",4,De),d()(),c(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),f(16,"Authenticator"),d()(),c(17,"mat-select",5),te("ngModelChange",function(a){return ne(o.authId,a)||(o.authId=a),a}),w("selectionChange",function(a){return o.changeAuth(a)}),fe(18,wte,2,2,"mat-option",4,De),d()(),c(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),f(23,"User"),d()(),c(24,"mat-select",2),te("ngModelChange",function(a){return ne(o.userId,a)||(o.userId=a),a}),c(25,"uds-cond-select-search",3),w("changed",function(a){return o.userFilter=a}),d(),fe(26,xte,2,2,"mat-option",4,De),d()()()(),c(28,"mat-dialog-actions")(29,"button",6),w("click",function(){return o.cancel()}),c(30,"uds-translate"),f(31,"Cancel"),d()(),c(32,"button",7),w("click",function(){return o.save()}),c(33,"uds-translate"),f(34,"Ok"),d()()()),n&2&&(m(9),ee("ngModel",o.serviceId),m(),b("options",o.assignablesServices),m(),ge(o.filteredAssignables()),m(6),ee("ngModel",o.authId),m(),ge(o.auths),m(6),ee("ngModel",o.userId),m(),b("options",o.users),m(),ge(o.filteredUsers()))},dependencies:[$e,Xe,Fe,wt,Dt,xt,ze,st,en,Mt,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var Dte=["chart"],M3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.chart=null,this.data=null,this.resizeObserver=null,this.themeObserver=null,this.lastDark=n.isDarkTheme,this.themeObserver=new MutationObserver(()=>{this.api.isDarkTheme!==this.lastDark&&(this.lastDark=this.api.isDarkTheme,this.build())}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngAfterViewInit(){return B(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid);if(!e||!e.assigned)return;let n=e.assigned.map(l=>l.value),o=(e.cached||[]).map(l=>l.value),r=(e.inuse||[]).map(l=>l.value),a=e.assigned.map(l=>Math.floor(new Date(l.stamp).getTime()/1e3)),s=n.map((l,u)=>l+(o[u]??0));this.data=[a,s,n,r],this.build(),this.resizeObserver=new ResizeObserver(l=>{let u=l[0]?.contentRect;u&&u.width>0&&u.height>0&&this.chart?.setSize({width:Math.round(u.width),height:Math.round(u.height)})}),this.resizeObserver.observe(this.chartEl.nativeElement)})}build(){if(!this.data)return;this.chart?.destroy();let e=this.api.isDarkTheme?"#f8fafc":"#1e293b",n=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)",o=Ti.paths.spline(),r={width:this.width(),height:this.height(),scales:{x:{time:!0}},legend:{live:!0},axes:[{stroke:e,grid:{stroke:n},ticks:{stroke:n},values:(a,s)=>s.map(l=>Yi("SHORT_DATETIME_FORMAT",new Date(l*1e3)))},{stroke:e,grid:{stroke:n},ticks:{stroke:n}}],series:[{},{label:django.gettext("Cached"),stroke:"#6366f1",width:3,fill:"rgba(99, 102, 241, 0.2)",paths:o},{label:django.gettext("Assigned"),stroke:"#3b82f6",width:3,fill:"rgba(37, 99, 235, 0.2)",paths:o},{label:django.gettext("In use"),stroke:"#10b981",width:3,fill:"rgba(16, 185, 129, 0.1)",paths:o}]};this.chart=new Ti(r,this.data,this.chartEl.nativeElement)}ngOnDestroy(){this.resizeObserver?.disconnect(),this.themeObserver?.disconnect(),this.chart?.destroy()}width(){return this.chartEl.nativeElement.clientWidth||600}height(){return this.chartEl.nativeElement.clientHeight||360}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-charts"]],viewQuery:function(n,o){if(n&1&&at(Dte,7),n&2){let r;X(r=J())&&(o.chartEl=r.first)}},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:3,vars:0,consts:[["chart",""],[1,"statistics-chart"],[1,"statistics-chart-canvas"]],template:function(n,o){n&1&&(c(0,"div",1),O(1,"div",2,0),d())},styles:[".statistics-chart[_ngcontent-%COMP%]{width:100%;height:60vh;min-height:480px}.statistics-chart-canvas[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var Ete=t=>["/pools","service-pools",t];function Mte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function Tte(t,i){if(t&1&&O(0,"uds-information",12),t&2){let e=_(2);b("value",e.servicePool)("gui",e.gui)}}function Ite(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function kte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Ite,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",15),w("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",e.processsAssignedElement)("tableId","servicePools-d-services"+e.servicePool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Ate(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Cache"),d()())}function Rte(t,i){t&1&&(c(0,"span")(1,"uds-translate"),f(2,"Servers"),d()())}function Ote(t,i){if(t&1&&(A(0,Ate,3,0,"span"),A(1,Rte,3,0,"span")),t&2){let e=_(3);R(e.servicePool.state!=="Q"?0:-1),m(),R(e.servicePool.state==="Q"?1:-1)}}function Pte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Ote,2,2,"ng-template",8),c(2,"div",9)(3,"uds-table",16),w("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomCached(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteCache(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.cache)("titleOverride",e.servicePool.state==="Q"?"Servers":"")("multiSelect",!0)("allowExport",!0)("onItem",e.processsCacheElement)("tableId","servicePools-d-cache"+e.servicePool.id)("customButtons",e.customButtonsCachedServices)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Nte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function Fte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Nte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",17),w("newAction",function(o){I(e);let r=_(2);return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsGroups)("tableId","servicePools-d-groups"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Lte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Transports"),d())}function Vte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Lte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",18),w("newAction",function(o){I(e);let r=_(2);return k(r.onNewTransport(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.transports)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonsTransports)("tableId","servicePools-d-transports"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Bte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Publications"),d())}function jte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Bte,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",19),w("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomPublication(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewPublication(o))})("rowSelected",function(o){I(e);let r=_(2);return k(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+e.servicePool.id)("customButtons",e.customButtonsPublication)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function zte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Scheduled actions"),d())}function Ute(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function Hte(t,i){if(t&1){let e=W();c(0,"mat-tab"),we(1,Ute,2,0,"ng-template",8),c(2,"div",9)(3,"uds-table",20),w("customButtonAction",function(o){I(e);let r=_(2);return k(r.onCustomSetFallbackAction(o))})("newAction",function(o){I(e);let r=_(2);return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_(2);return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_(2);return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_(2);return k(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=_(2);m(3),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtonAccessCalendars)("tableId","servicePools-d-access"+e.servicePool.id)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1)}}function Wte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Charts"),d())}function $te(t,i){if(t&1&&(c(0,"mat-tab"),we(1,Wte,2,0,"ng-template",8),c(2,"div",9),O(3,"uds-service-pools-charts",21),d()()),t&2){let e=_(2);m(3),b("poolUuid",e.servicePool.id)}}function Gte(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function qte(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),we(4,Mte,2,0,"ng-template",8),c(5,"div",9)(6,"div",10)(7,"a",11),w("click",function(){I(e);let o=_();return k(o.reloadInfo())}),c(8,"i",3),f(9,"autorenew"),d()()(),A(10,Tte,1,2,"uds-information",12),d()(),A(11,kte,4,8,"mat-tab"),A(12,Pte,4,9,"mat-tab"),A(13,Fte,4,7,"mat-tab"),A(14,Vte,4,7,"mat-tab"),A(15,jte,4,7,"mat-tab"),c(16,"mat-tab"),we(17,zte,2,0,"ng-template",8),c(18,"div",9)(19,"uds-table",13),w("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomScheduleAction(o))})("newAction",function(o){I(e);let r=_();return k(r.onNewScheduledAction(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditScheduledAction(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteScheduledAction(o))}),d()()(),A(20,Hte,4,8,"mat-tab"),A(21,$te,4,1,"mat-tab"),c(22,"mat-tab"),we(23,Gte,2,0,"ng-template",8),c(24,"div",9),O(25,"uds-logs-table",14),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(5),b("matTooltip",e.refreshTooltip),m(3),R(e.servicePool&&e.gui?10:-1),m(),R(e.servicePool.state!=="Q"?11:-1),m(),R(e.cache?12:-1),m(),R(e.servicePool.state!=="Q"?13:-1),m(),R(e.servicePool.state!=="Q"?14:-1),m(),R(e.publications?15:-1),m(4),b("rest",e.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+e.servicePool.id)("customButtons",e.customButtonsScheduledAction)("onItem",e.processsCalendarOrScheduledElement)("pageSize",e.api.config.admin.page_size)("navHeader",!1),m(),R(e.servicePool.state!=="Q"?20:-1),m(),R(e.servicePool.state!=="Q"?21:-1),m(4),b("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var _y='event'+django.gettext("Logs")+"",Yte='computer'+django.gettext("VNC")+"",Qte='schedule'+django.gettext("Launch now")+"",r1='perm_identity'+django.gettext("Change owner")+"",Kte='perm_identity'+django.gettext("Assign service")+"",Zte='cancel'+django.gettext("Cancel")+"",Xte='event'+django.gettext("Changelog")+"",T3='perm_identity'+django.gettext("Fallback: Allow")+"",Jte='perm_identity'+django.gettext("Fallback: Deny")+"",vy=(()=>{class t{constructor(e,n,o,r){this.route=e,this.rest=n,this.api=o,this.headerService=r,this.customButtonsScheduledAction=[{id:"launch-action",html:Qte,type:Gt.SINGLE_SELECT},Pi.getGotoButton(f0,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:T3,type:Gt.ALWAYS},Pi.getGotoButton(f0,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Gt.SINGLE_SELECT},{id:"log",html:_y,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Jh,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:_y,type:Gt.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Zte,type:Gt.SINGLE_SELECT},{id:"changelog",html:Xte,type:Gt.ALWAYS}],this.customButtonsGroups=[Pi.getGotoButton(BE,"auth_id","id")],this.customButtonsTransports=[Pi.getGotoButton(jE,"id")],this.servicePoolId=null,this.servicePool=null,this.gui=[],this.refreshTooltip=django.gettext("Refresh"),this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(e){return e.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>e.table.selection.deselect(n)),e.table.selection.isEmpty()}ngOnInit(){return B(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;this.servicePoolId=e,this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),yield this.reloadInfo();let n=this.servicePool;n.info.uses_cache?this.cache=this.rest.servicesPools.detail(e,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(e,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:Yte,type:Gt.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Kte,type:Gt.ALWAYS})})}reloadInfo(){return B(this,null,function*(){if(!this.servicePoolId)return;let e=yield this.rest.servicesPools.get(this.servicePoolId),n=(yield this.rest.servicesPools.gui()).filter(o=>{let r=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(e.info.uses_cache===!1&&r.includes(o.name)||e.info.uses_cache_l2===!1&&o.name==="cache_l2_srvs"||e.info.needs_manager===!1&&o.name==="osmanager_id")});this.servicePool=e,this.gui=n,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"])})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});lm(o,e.ip+".vnc")}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?ff.launch(this.api,n,this.assignedServices,this.servicePool?.name):e.param.id==="assign-service"?(yield S3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage():e.param.id==="vnc"&&this.vnc(n)})}onCustomCached(e){let n=e.table.selection.selected[0];e.param.id==="log"&&this.cache&&ff.launch(this.api,n,this.cache,this.servicePool?.name)}processsAssignedElement(e){e.in_use=this.api.boolAsHumanString(e.in_use),e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}onDeleteAssigned(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))}onDeleteCache(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))}processsCacheElement(e){e.origState=e.state,e.state==="U"&&(e.state=e.os_state!==""&&e.os_state!=="U"?"Z":"U")}checkLocked(){return B(this,null,function*(){return this.servicePool.state==="Q"?(this.api.gui.alert(django.gettext("Service pool is locked"),django.gettext("Service pool is locked, no changes allowed")),!0):!1})}onNewGroup(e){return B(this,null,function*(){(yield this.checkLocked())||(yield py.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return B(this,null,function*(){(yield this.checkLocked())||(yield C3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return B(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return B(this,null,function*(){(yield x3.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return B(this,null,function*(){e.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(e.table.selection.selected[0].state))})}onCustomPublication(e){return B(this,null,function*(){e.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel",void 0,"POST").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&w3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){i1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute",void 0,"POST").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=M3:this.customButtonAccessCalendars[0].html=Xte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Gte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,Ste,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Ge,rr,ra,E3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var T3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],Jte=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],ene=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],I3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),Jte],users:[()=>this.users(),T3],"users-with-services":[()=>this.usersWithServices(),T3],"user-services":[()=>this.userServices(!0),I3],"assigned-services":[()=>this.userServices(!1),I3],"restrained-pools":[()=>this.pools(!0),ene]},[s,l]=a[r.list];this.selectedRest=new or(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(G({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var r1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),x("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function tne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function ine(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),x("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function one(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var a1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,tne,2,0,"uds-translate"),A(2,nne,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,ine,1,0,"uds-cond-select-search"),fe(16,one,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),x("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),x("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Ht,Er,$e,Xe,Fe,xt,Dt,wt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var rne=t=>["/pools","meta-pools",t];function ane(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function sne(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function lne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function mne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function pne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),xe(4,ane,2,0,"ng-template",8),c(5,"div",9),A(6,sne,1,2,"uds-information",10),d()(),c(7,"mat-tab"),xe(8,lne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),x("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),xe(12,cne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),x("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),xe(16,dne,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),x("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),xe(20,une,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),x("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),xe(24,mne,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var k3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Zh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:o1,type:Gt.SINGLE_SELECT},{id:"log",html:gy,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Xh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield a1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield my.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&ff.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){_y.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield py.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,pne,27,31,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,rne,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var s1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var hne=["mat-calendar-body",""];function fne(t,i){return this._trackRow(i)}var L3=(t,i)=>i.id;function gne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function _ne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function vne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Pl("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),mo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function bne(t,i){if(t&1&&(dn(0,"tr",1),A(1,_ne,2,6,"td",4),fe(2,vne,5,49,"td",5,L3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function yne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var Cne=["*"];function xne(t,i){}function wne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Dne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sne(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),x("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ene(t,i){}var Mne=["button"],Tne=[[["","matDatepickerToggleIcon",""]]],Ine=["[matDatepickerToggleIcon]"];function kne(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ane=0,_f=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=Ane++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},Rne={passive:!1,capture:!0},vy={passive:!0,capture:!0},A3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,Rne),e.listen(o,"mouseenter",this._enterHandler,vy),e.listen(o,"focus",this._enterHandler,vy),e.listen(o,"mouseleave",this._leaveHandler,vy),e.listen(o,"blur",this._leaveHandler,vy),e.listen(o,"mousedown",this._mousedownHandler,A3),e.listen(o,"touchstart",this._mousedownHandler,A3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return u1(e,this.startValue,this.endValue)}_isRangeEnd(e){return m1(e,this.startValue,this.endValue)}_isInRange(e){return p1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return u1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return p1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return u1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return m1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return p1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=R3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),d1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=d1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=R3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=d1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:hne,decls:11,vars:11,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","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&&(A(0,gne,3,6,"tr",0),fe(1,bne,4,1,"tr",1,fne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset{n&&this.publications&&this.publications.invoke(e.table.selection.selected[0].id+"/cancel",void 0,"POST").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})}):e.param.id==="changelog"&&D3.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return B(this,null,function*(){o1.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return B(this,null,function*(){Sd.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return B(this,null,function*(){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(e.table.selection.selected[0].id+"/execute",void 0,"POST").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),e.table.reloadPage()})})})}onNewAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||Sd.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return B(this,null,function*(){(yield this.checkLocked())||(e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e))})}onAccessCalendarLoad(e){return B(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=T3:this.customButtonAccessCalendars[0].html=Jte})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y),D(Jl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-service-pools-detail"]],standalone:!1,decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[1,"info-toolbar"],["mat-icon-button","",3,"click","matTooltip"],[3,"value","gui"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","navHeader"],[3,"rest","itemId","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","cached",3,"customButtonAction","deleteAction","rest","titleOverride","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","navHeader"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize","navHeader"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize","navHeader"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","navHeader"],[3,"poolUuid"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,qte,26,23,"div",5),d()),n&2&&(m(2),b("routerLink",po(4,Ete,o.servicePool?o.servicePool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/pools.png"),it),m(),H(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),R(o.servicePool!==null?8:-1))},dependencies:[mi,yi,Yo,Yn,Qn,ii,Ee,Ge,rr,ra,M3],styles:[".info-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .card-header{position:static!important;top:auto!important;left:auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:0!important;z-index:auto!important;margin:1.25rem 1.25rem 0!important;padding:0 0 .75rem!important;background:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:none!important;border-bottom:1px solid var(--glass-border)!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important}[_nghost-%COMP%] .header{margin-top:1.25rem!important} .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}"]})}}return t})();var I3=[{field:"name",title:django.gettext("User")},{field:"real_name",title:django.gettext("Name")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"state",title:django.gettext("State")},{field:"last_access",title:django.gettext("Last access"),type:sn.DATETIME},{field:"role",title:django.gettext("Role")}],ene=[{field:"name",title:django.gettext("Group")},{field:"authenticator",title:django.gettext("Authenticator")},{field:"comments",title:django.gettext("Comments")},{field:"state",title:django.gettext("State")}],tne=[{field:"name",title:django.gettext("Name")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User services"),type:sn.NUMERIC},{field:"user_services_in_preparation",title:django.gettext("In preparation"),type:sn.NUMERIC},{field:"usage",title:django.gettext("Usage")},{field:"pool_group_name",title:django.gettext("Pool group")}],k3=[{field:"friendly_name",title:django.gettext("Name")},{field:"pool_name",title:django.gettext("Service pool")},{field:"unique_id",title:django.gettext("Unique ID")},{field:"state",title:django.gettext("State")},{field:"ip",title:django.gettext("IP")},{field:"in_use",title:django.gettext("In use"),type:sn.BOOLEAN}],Ed=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o;let r=this.route.snapshot.data;this.icon=r.icon,this.title=r.title;let a={groups:[()=>this.groups(),ene],users:[()=>this.users(),I3],"users-with-services":[()=>this.usersWithServices(),I3],"user-services":[()=>this.userServices(!0),k3],"assigned-services":[()=>this.userServices(!1),k3],"restrained-pools":[()=>this.pools(!0),tne]},[s,l]=a[r.list];this.selectedRest=new or(this.title,s,l,r.list)}forEachAuthenticator(e){return B(this,null,function*(){let n=yield this.rest.authenticators.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(q({},a),{authenticator:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}usersWithServices(){return this.forEachAuthenticator(e=>this.rest.authenticators.users_with_services(e.id))}users(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"users").overview())}groups(){return this.forEachAuthenticator(e=>this.rest.authenticators.detail(e.id,"groups").overview())}pools(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return e?n.filter(o=>o.restrained):n})}forEachPool(e){return B(this,null,function*(){let n=yield this.rest.servicesPools.overview();return(yield Promise.allSettled(n.map(r=>B(this,null,function*(){return(yield e(r)).map(a=>Ye(q({},a),{pool_name:r.name}))})))).filter(r=>r.status==="fulfilled").flatMap(r=>r.value)})}userServices(e){return B(this,null,function*(){let n=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"services").overview());if(!e)return n;let o=this.forEachPool(r=>this.rest.servicesPools.detail(r.id,"cache").overview());return(yield Promise.all([n,o])).flat()})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-dashboard-list"]],standalone:!1,decls:2,vars:7,consts:[[3,"rest","multiSelect","allowExport","hasPermissions","pageSize","titleOverride","icon"]],template:function(n,o){n&1&&(c(0,"div"),O(1,"uds-table",0),d()),n&2&&(m(),b("rest",o.selectedRest)("multiSelect",!1)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)("titleOverride",o.title)("icon",o.icon))},dependencies:[Ge],encapsulation:2})}}return t})();var a1=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New meta pool"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit meta pool"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete meta pool"),void 0,!0)}onDetail(e){this.api.navigation.gotoMetapoolDetail(e.param.id)}processElement(e){typeof e.name!="string"&&(e.name=""),e.name=e.name.replace(//g,">"),e.name=this.api.safeString(this.api.gui.icon_from_image(e.thumb)+e.name),e.pool_group_name=this.api.safeString(this.api.gui.icon_from_image(e.pool_group_thumb)+e.pool_group_name)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("metapool"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools"]],standalone:!1,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),w("detailAction",function(a){return o.onDetail(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()()),n&2&&(m(),b("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],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}"]})}}return t})();function nne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New member pool"),d())}function ine(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit member pool"),d())}function one(t,i){if(t&1){let e=W();c(0,"uds-cond-select-search",9),w("changed",function(o){I(e);let r=_();return k(r.servicePoolsFilter=o)}),d()}}function rne(t,i){if(t&1&&(c(0,"mat-option",4),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.name," ")}}var s1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qn,this.servicePools=[],this.servicePoolsFilter="",this.model=r.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},r.memberPool&&(this.memberPool.id=r.memberPool.id)}static launch(e,n,o){let r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return B(this,null,function*(){this.servicePools=yield this.rest.servicesPools.overview(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(e,n){return n?e.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):e}save(){return B(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)}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-service-pools"]],standalone:!1,decls:31,vars:7,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"]],template:function(n,o){n&1&&(c(0,"h4",0),A(1,nne,2,0,"uds-translate"),A(2,ine,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Priority"),d()(),c(9,"input",2),te("ngModelChange",function(a){return ne(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),c(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),f(13,"Service pool"),d()(),c(14,"mat-select",3),te("ngModelChange",function(a){return ne(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),A(15,one,1,0,"uds-cond-select-search"),fe(16,rne,2,2,"mat-option",4,De),d()(),c(18,"div",5)(19,"span",6)(20,"uds-translate"),f(21,"Enabled?"),d()(),c(22,"mat-slide-toggle",3),te("ngModelChange",function(a){return ne(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),f(23),d()()()(),c(24,"mat-dialog-actions")(25,"button",7),w("click",function(){return o.cancel()}),c(26,"uds-translate"),f(27,"Cancel"),d()(),c(28,"button",8),w("click",function(){return o.save()}),c(29,"uds-translate"),f(30,"Ok"),d()()()),n&2&&(m(),R(o.memberPool!=null&&o.memberPool.id?-1:1),m(),R(o.memberPool!=null&&o.memberPool.id?2:-1),m(7),ee("ngModel",o.memberPool.priority),m(5),ee("ngModel",o.memberPool.pool_id),m(),R(o.servicePools.length>10?15:-1),m(),ge(o.filtered(o.servicePools,o.servicePoolsFilter)),m(6),ee("ngModel",o.memberPool.enabled),m(),H(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[Ht,Er,$e,Xe,Fe,wt,Dt,xt,ze,st,Yt,en,Mt,il,Ee,pi],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var ane=t=>["/pools","meta-pools",t];function sne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Summary"),d())}function lne(t,i){if(t&1&&O(0,"uds-information",10),t&2){let e=_(2);b("value",e.metaPool)("gui",e.gui)}}function cne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Service pools"),d())}function dne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Assigned services"),d())}function une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Groups"),d())}function mne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Access calendars"),d())}function pne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Logs"),d())}function hne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),te("selectedIndexChange",function(o){I(e);let r=_();return ne(r.selectedTab,o)||(r.selectedTab=o),k(o)}),c(3,"mat-tab"),we(4,sne,2,0,"ng-template",8),c(5,"div",9),A(6,lne,1,2,"uds-information",10),d()(),c(7,"mat-tab"),we(8,cne,2,0,"ng-template",8),c(9,"div",9)(10,"uds-table",11),w("newAction",function(o){I(e);let r=_();return k(r.onNewMemberPool(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditMemberPool(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteMemberPool(o))}),d()()(),c(11,"mat-tab"),we(12,dne,2,0,"ng-template",8),c(13,"div",9)(14,"uds-table",12),w("customButtonAction",function(o){I(e);let r=_();return k(r.onCustomAssigned(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAssigned(o))}),d()()(),c(15,"mat-tab"),we(16,une,2,0,"ng-template",8),c(17,"div",9)(18,"uds-table",13),w("newAction",function(o){I(e);let r=_();return k(r.onNewGroup(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteGroup(o))}),d()()(),c(19,"mat-tab"),we(20,mne,2,0,"ng-template",8),c(21,"div",9)(22,"uds-table",14),w("newAction",function(o){I(e);let r=_();return k(r.onNewAccessCalendar(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditAccessCalendar(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteAccessCalendar(o))})("loaded",function(o){I(e);let r=_();return k(r.onAccessCalendarLoad(o))}),d()()(),c(23,"mat-tab"),we(24,pne,2,0,"ng-template",8),c(25,"div",9),O(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=_();m(2),ee("selectedIndex",e.selectedTab),b("@.disabled",!0),m(4),R(e.metaPool&&e.gui?6:-1),m(4),b("rest",e.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("customButtons",e.customButtons)("tableId","metaPools-d-members"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),m(4),b("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),m(4),b("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var A3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[Pi.getGotoButton(Xh,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:r1,type:Gt.SINGLE_SELECT},{id:"log",html:_y,type:Gt.SINGLE_SELECT},Pi.getGotoButton(Jh,"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 B(this,null,function*(){let e=this.route.snapshot.paramMap.get("metapool");if(!e)return;let n=yield this.rest.metaPools.get(e),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(e,"pools"),this.memberUserServices=this.rest.metaPools.detail(e,"services"),this.groups=this.rest.metaPools.detail(e,"groups"),this.accessCalendars=this.rest.metaPools.detail(e,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return B(this,null,function*(){(yield s1.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return B(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return B(this,null,function*(){let n=e.table.selection.selected[0];if(e.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield py.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&gf.launch(this.api,n,this.memberUserServices,this.metaPool?.name)})}onDeleteAssigned(e){return B(this,null,function*(){vy.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return B(this,null,function*(){(yield hy.launch(this.api,this.metaPool.id,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))}onNewAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Sd.launch(this.api,this.metaPool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())}onDeleteAccessCalendar(e){e.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(e)}onAccessCalendarLoad(e){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{})}processElement(e){e.enabled=this.api.boolAsHumanString(e.enabled)}processsCalendarItem(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-meta-pools-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,hne,27,31,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,ane,o.metaPool?o.metaPool.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/metas.png"),it),m(),H(" ",o.metaPool==null?null:o.metaPool.name," "),m(),R(Xt(9,4,o.metaPool)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,rr,ra,Ci],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var l1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New pool group"),!1).then(()=>e.table.reloadPage())}onEdit(e){return B(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit pool group"),!1)})}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete pool group"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("poolgroup"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-pool-groups"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var c1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New calendar"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit calendar"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar"))}onDetail(e){this.api.navigation.gotoCalendarDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("calendar"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],encapsulation:2})}}return t})();var fne=["mat-calendar-body",""];function gne(t,i){return this._trackRow(i)}var V3=(t,i)=>i.id;function _ne(t,i){if(t&1&&(dn(0,"tr",0)(1,"td",3),f(2),pn()()),t&2){let e=_();m(),Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e.numCols),m(),H(" ",e.label," ")}}function vne(t,i){if(t&1&&(dn(0,"td",3),f(1),pn()),t&2){let e=_(2);Si("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),me("colspan",e._firstRowOffset),m(),H(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function bne(t,i){if(t&1){let e=W();dn(0,"td",6)(1,"button",7),Nl("click",function(o){let r=I(e).$implicit,a=_(2);return k(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=_(2);return k(a._emitActiveDateChange(r,o))}),dn(2,"span",8),f(3),pn(),mo(4,"span",9),pn()()}if(t&2){let e=i.$implicit,n=i.$index,o=_().$index,r=_();Si("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),me("data-mat-row",o)("data-mat-col",n),m(),Tn(e.cssClasses),le("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),On("tabIndex",r._isActiveCell(o,n)?0:-1),me("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),le("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),H(" ",e.displayValue," ")}}function yne(t,i){if(t&1&&(dn(0,"tr",1),A(1,vne,2,6,"td",4),fe(2,bne,5,49,"td",5,V3),pn()),t&2){let e=i.$implicit,n=i.$index,o=_();m(),R(n===0&&o._firstRowOffset?1:-1),m(),ge(e)}}function Cne(t,i){if(t&1&&(c(0,"th",2)(1,"span",6),f(2),d(),c(3,"span",3),f(4),d()()),t&2){let e=i.$implicit;m(2),_e(e.long),m(2),_e(e.narrow)}}var wne=["*"];function xne(t,i){}function Dne(t,i){if(t&1){let e=W();c(0,"mat-month-view",4),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),w("_userSelection",function(o){I(e);let r=_();return k(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=_();return k(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=_();return k(r._dragEnded(o))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Sne(t,i){if(t&1){let e=W();c(0,"mat-year-view",5),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),w("monthSelected",function(o){I(e);let r=_();return k(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ene(t,i){if(t&1){let e=W();c(0,"mat-multi-year-view",6),te("activeDateChange",function(o){I(e);let r=_();return ne(r.activeDate,o)||(r.activeDate=o),k(o)}),w("yearSelected",function(o){I(e);let r=_();return k(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=_();return k(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=_();ee("activeDate",e.activeDate),b("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Mne(t,i){}var Tne=["button"],Ine=[[["","matDatepickerToggleIcon",""]]],kne=["[matDatepickerToggleIcon]"];function Ane(t,i){t&1&&(Gn(),c(0,"svg",2),O(1,"path",3),d())}var Fm=(()=>{class t{changes=new Z;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rne=0,vf=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=Rne++;cssClasses;constructor(i,e,n,o,r,a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.compareValue=a,this.rawValue=s,this.cssClasses=r instanceof Set?Array.from(r):r}},One={passive:!1,capture:!0},by={passive:!0,capture:!0},R3={passive:!0},Nm=(()=>{class t{_elementRef=p(se);_ngZone=p(be);_platform=p(Ft);_intl=p(Fm);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new V;previewChange=new V;activeDateChange=new V;dragStarted=new V;dragEnded=new V;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Te);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(Zt),n=p(zt);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),p(an).load(Mi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,One),e.listen(o,"mouseenter",this._enterHandler,by),e.listen(o,"focus",this._enterHandler,by),e.listen(o,"mouseleave",this._leaveHandler,by),e.listen(o,"blur",this._leaveHandler,by),e.listen(o,"mousedown",this._mousedownHandler,R3),e.listen(o,"touchstart",this._mousedownHandler,R3)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){nn(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return m1(e,this.startValue,this.endValue)}_isRangeEnd(e){return p1(e,this.startValue,this.endValue)}_isInRange(e){return h1(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return m1(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return p1(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return h1(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return m1(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return p1(e,this.previewStart,this.previewEnd)}_isInPreview(e){return h1(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=O3(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),u1(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=u1(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=O3(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=u1(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,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"],features:[Ct],attrs:fne,decls:11,vars:11,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","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&&(A(0,_ne,3,6,"tr",0),fe(1,yne,4,1,"tr",1,gne,!0),dn(3,"span",2),f(4),pn(),dn(5,"span",2),f(6),pn(),dn(7,"span",2),f(8),pn(),dn(9,"span",2),f(10),pn()),n&2&&(R(o._firstRowOffset=i&&t===e}function p1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function R3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var aa=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},vf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),One=(()=>{class t extends vf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(we(lo))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var V3={provide:vf,useFactory:()=>p(vf,{optional:!0,skipSelf:!0})||new One(p(lo))};var B3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var h1=7,Pne=0,O3=(()=>{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rangeStrategy=p(B3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof aa?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((h1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%h1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Pne++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof aa?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,yne,5,2,"th",2,L3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),x("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Rr=24,f1=4,P3=(()=>{class t{_changeDetectorRef=p(Ze);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),j3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-f1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,f1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Rr-gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Rr*10:-Rr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Rr*10:Rr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return gf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new _f(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Kl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new _f(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(g1);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(qr);let e=p(Ze);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Rr))}nextClicked(){this.nextEnabled()&&(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:Rr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):j3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-gf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Rr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Cne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),x("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),Da(),O(9,"div",7),Ie(10),c(11,"button",8),x("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),Da(),c(14,"button",11),x("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),g1=(()=>{class t{_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_changeDetectorRef=p(Ze);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nr(this.headerComponent||U3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Gr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof aa||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(O3,5)(N3,5)(P3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ke([V3]),Ct],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&&(xe(0,xne,0,0,"ng-template",0),c(1,"div",1),A(2,wne,1,11,"mat-month-view",2)(3,Dne,1,6,"mat-year-view",3)(4,Sne,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Bo,Nh,O3,N3,P3],styles:[`.mat-calendar { +`],encapsulation:2,changeDetection:0})}return t})();function d1(t){return t?.nodeName==="TD"}function u1(t){let i;return d1(t)?i=t:d1(t.parentNode)?i=t.parentNode:d1(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function m1(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function h1(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function O3(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var aa=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},bf=(()=>{class t{selection;_adapter;_selectionChanged=new Z;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){$c()};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Pne=(()=>{class t extends bf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(xe(lo))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();var B3={provide:bf,useFactory:()=>p(bf,{optional:!0,skipSelf:!0})||new Pne(p(lo))};var j3=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var f1=7,Nne=0,P3=(()=>{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Zl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(wn,{optional:!0});_rangeStrategy=p(j3,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new V;_userSelection=new V;dragStarted=new V;dragEnded=new V;activeDateChange=new V;_matCalendarBody;_monthLabel=Re("");_weeks=Re([]);_firstWeekOffset=Re(0);_rangeStart=Re(null);_rangeEnd=Re(null);_comparisonRangeStart=Re(null);_comparisonRangeEnd=Re(null);_previewStart=Re(null);_previewEnd=Re(null);_isRange=Re(!1);_todayDate=Re(null);_weekdays=Re([]);constructor(){p(an).load(qr),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof aa?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!un(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((f1+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%f1),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:Nne++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof aa?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&at(Nm,5),n&2){let r;X(r=J())&&(o._matCalendarBody=r.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"],features:[Ct],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"),fe(3,Cne,5,2,"th",2,V3),d(),c(5,"tr",3),O(6,"th",4),d()(),c(7,"tbody",5),w("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),d()()),n&2&&(m(3),ge(o._weekdays()),m(4),b("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:[Nm],encapsulation:2,changeDetection:0})}return t})(),Rr=24,g1=4,N3=(()=>{class t{_changeDetectorRef=p(Ze);_dateAdapter=p(lo,{optional:!0});_dir=p(wn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),z3(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;yearSelected=new V;activeDateChange=new V;_matCalendarBody;_years=Re([]);_todayYear=Re(0);_selectedYear=Re(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-_f(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,-g1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,g1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-_f(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Rr-_f(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Rr*10:-Rr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Rr*10:Rr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return _f(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new vf(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=p(Ze);_dateFormats=p(Zl,{optional:!0});_dateAdapter=p(lo,{optional:!0});_dir=p(wn,{optional:!0});_rerenderSubscription=Ue.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new V;monthSelected=new V;activeDateChange=new V;_matCalendarBody;_months=Re([]);_yearLabel=Re("");_todayMonth=Re(null);_selectedMonth=Re(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.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()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new vf(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=p(Fm);calendar=p(_1);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Zl,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){p(an).load(qr);let e=p(Ze);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(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:-Rr))}nextClicked(){this.nextEnabled()&&(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:Rr))}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)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):z3(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-_f(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Rr-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=p(zt).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:wne,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["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"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(vt(),c(0,"div",0)(1,"div",1)(2,"span",2),f(3),d(),c(4,"button",3),w("click",function(){return o.currentPeriodClicked()}),c(5,"span",4),f(6),d(),Gn(),c(7,"svg",5),O(8,"polygon",6),d()(),Da(),O(9,"div",7),Ie(10),c(11,"button",8),w("click",function(){return o.previousClicked()}),Gn(),c(12,"svg",9),O(13,"path",10),d()(),Da(),c(14,"button",11),w("click",function(){return o.nextClicked()}),Gn(),c(15,"svg",9),O(16,"path",12),d()()()()),n&2&&(m(2),b("id",o._periodButtonLabelId),m(),_e(o.periodButtonDescription),m(),me("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),_e(o.periodButtonText),m(),le("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),b("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),me("aria-label",o.prevButtonLabel),m(3),b("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),me("aria-label",o.nextButtonLabel))},dependencies:[Fe,yi,Yo],encapsulation:2,changeDetection:0})}return t})(),_1=(()=>{class t{_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Zl,{optional:!0});_changeDetectorRef=p(Ze);_elementRef=p(se);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof aa?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new V;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);_userSelection=new V;_userDragDrop=new V;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new Z;constructor(){this._intlChanges=p(Fm).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nr(this.headerComponent||H3),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(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Gr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let n=e.value;(this.selected instanceof aa||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&at(P3,5)(F3,5)(N3,5),n&2){let r;X(r=J())&&(o.monthView=r.first),X(r=J())&&(o.yearView=r.first),X(r=J())&&(o.multiYearView=r.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"],features:[Ke([B3]),Ct],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&&(we(0,xne,0,0,"ng-template",0),c(1,"div",1),A(2,Dne,1,11,"mat-month-view",2)(3,Sne,1,6,"mat-year-view",3)(4,Ene,1,6,"mat-multi-year-view",3),d()),n&2){let r;b("cdkPortalOutlet",o._calendarHeaderPortal),m(2),R((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Bo,Nh,P3,F3,N3],styles:[`.mat-calendar { display: block; line-height: normal; font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font)); @@ -5291,7 +5291,7 @@ port=5900 .mat-calendar-body-cell:focus-visible .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return t})(),Fne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),H3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ze);_globalModel=p(vf);_dateAdapter=p(lo);_ngZone=p(be);_rangeSelectionStrategy=p(B3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(qr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof aa;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(g1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),x("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),xe(2,Ene,0,0,"ng-template",2),c(3,"button",3),x("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[rE,g1,Bo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { +`],encapsulation:2,changeDetection:0})}return t})(),Lne=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Te);return()=>Dr(t)}}),W3=(()=>{class t{_elementRef=p(se);_animationsDisabled=Bt();_changeDetectorRef=p(Ze);_globalModel=p(bf);_dateAdapter=p(lo);_ngZone=p(be);_rangeSelectionStrategy=p(j3,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new Z;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(p(an).load(qr),this._closeButtonText=p(Fm).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(Zt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof aa;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&at(_1,5),n&2){let r;X(r=J())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,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","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"mat-calendar",1),w("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),d(),we(2,Mne,0,0,"ng-template",2),c(3,"button",3),w("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),f(4),d()()),n&2&&(le("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),me("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),m(),Tn(o.datepicker.panelClass),b("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)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),b("cdkPortalOutlet",o._actionsPortal),m(),le("cdk-visually-hidden",!o._closeButtonFocused),b("color",o.color||"primary"),m(),_e(o._closeButtonText))},dependencies:[aE,_1,Bo,Fe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter { from { opacity: 0; transform: scaleY(0.8); @@ -5394,7 +5394,7 @@ port=5900 height: 115vw; } } -`],encapsulation:2,changeDetection:0})}return t})(),F3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(lo,{optional:!0});_dir=p(xn,{optional:!0});_model=p(vf);_animationsDisabled=Bt();_scrollStrategy=p(Fne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=nF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ze);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Gr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new nr(H3,this._viewContainerRef),o=this._overlayRef=Uo(this._injector,new jo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Hl(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return gs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=La(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),by=(()=>{class t extends F3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ke([V3,{provide:F3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Lne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Kl,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Vne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Vne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var Bne={provide:Go,useExisting:Wn(()=>Lm),multi:!0},jne={provide:Xr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Lne{_formField=p(ia,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=bs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&x("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Ke([Bne,jne,{provide:J0,useExisting:t}]),We]})}return t})(),zne=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),bf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ze);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Wi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,zne,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Mne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&x("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:Ine,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Tne),c(0,"button",1,0),A(2,kne,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { +`],encapsulation:2,changeDetection:0})}return t})(),L3=(()=>{class t{_injector=p(Te);_viewContainerRef=p(En);_dateAdapter=p(lo,{optional:!0});_dir=p(wn,{optional:!0});_model=p(bf);_animationsDisabled=Bt();_scrollStrategy=p(Lne);_inputStateChanges=Ue.EMPTY;_document=p(ke);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new V;monthSelected=new V;viewChanged=new V(!0);dateClass;openedStream=new V;closedStream=new V;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=iF(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(zt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new Z;_changeDetectorRef=p(Ze);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof em&&(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(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Gr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=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:r}=this._componentRef;o._animationDone.pipe(bn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new nr(W3,this._viewContainerRef),o=this._overlayRef=Uo(this._injector,new jo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Wl(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||nn(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return gs(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=La(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return rn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(At(o=>o.keyCode===27&&!un(o)||this.datepickerInput&&un(o,"altKey")&&o.keyCode===38&&n.every(r=>!un(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",K],disabled:[2,"disabled","disabled",K],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",K],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",K]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ct]})}return t})(),yy=(()=>{class t extends L3{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275cmp=T({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ke([B3,{provide:L3,useExisting:t}]),We],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Pm=class{target;targetElement;value=null;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Vne=(()=>{class t{_elementRef=p(se);_dateAdapter=p(lo,{optional:!0});_dateFormats=p(Zl,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new V;dateInput=new V;stateChanges=new Z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ue.EMPTY;_localeSubscription=Ue.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,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 Pm(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Bne(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];un(e,"altKey")&&e.keyCode===40&&n.every(r=>!un(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new Pm(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pm(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,n){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),n&&this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",K]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Ct]})}return t})();function Bne(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var jne={provide:Go,useExisting:Wn(()=>Lm),multi:!0},zne={provide:Jr,useExisting:Wn(()=>Lm),multi:!0},Lm=(()=>{class t extends Vne{_formField=p(ia,{optional:!0});_closedSubscription=Ue.EMPTY;_openedSubscription=Ue.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Re(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=bs.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(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&w("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(On("disabled",o.disabled),me("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"],features:[Ke([jne,zne,{provide:ey,useExisting:t}]),We]})}return t})(),Une=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),yf=(()=>{class t{_intl=p(Fm);_changeDetectorRef=p(Ze);_stateChanges=Ue.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=p(new Wi("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Me(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Me(),o=this.datepicker?rn(this.datepicker.openedStream,this.datepicker.closedStream):Me();this._stateChanges.unsubscribe(),this._stateChanges=rn(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Une,5),n&2){let a;X(a=J())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&at(Tne,5),n&2){let r;X(r=J())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&w("click",function(a){return o._open(a)}),n&2&&(me("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),le("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",K],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Ct],ngContentSelectors:kne,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","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&&(vt(Ine),c(0,"button",1,0),A(2,Ane,2,0,":svg:svg",2),Ie(3),d()),n&2&&(b("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),me("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),R(o._customIcon?-1:2))},dependencies:[yi],styles:[`.mat-datepicker-toggle { pointer-events: auto; color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant)); } @@ -5411,7 +5411,7 @@ port=5900 color: CanvasText; } } -`],encapsulation:2,changeDetection:0})}return t})();var W3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[vs,fo,cd,wr,H3,bf,U3,pt,xr]})}return t})();function Une(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Hne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function Wne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,Gne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function Yne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var yy={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")]},Cy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},G3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],q3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(G3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Y3=t=>{t.frequency==="WEEKDAYS"?t.interval=q3(t.interval):t.interval=t.interval+" "+yy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Cy[t.duration_unit]},v1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Cy).map(a=>({id:a,value:Cy[a]})),this.freqs=Object.keys(yy).map(a=>({id:a,value:yy[a][2]})),this.weekDays=G3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=pE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+q3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+ql(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+ql(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Cy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Une,2,0,"uds-translate"),$t(2,"notEmpty"),A(3,Hne,2,0,"uds-translate"),$t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,Wne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),x("valueChange",function(){return o.rule.interval=1}),fe(61,$ne,2,2,"mat-option",9,De),d()(),A(63,qne,7,1,"mat-form-field",10),A(64,Yne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),x("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Ht,Er,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Ar,Yt,en,Mt,by,Lm,bf,Ee,l3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Qne=t=>["/pools","calendars",t];function Kne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Zne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,Kne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var Q3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){v1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){v1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Y3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Zne,7,7,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Qne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Xne='event'+django.gettext("Set time mark")+"",b1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Xne,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),x("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var Jne=t=>["/pools","accounts",t];function eie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function tie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),xe(4,eie,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),x("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,tie,7,6,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Jne,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function nie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function iie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var y1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,nie,2,0,"uds-translate"),A(2,iie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),x("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),x("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),x("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),Fo(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Ht,$e,Xe,Fe,Nn,xt,Dt,wt,ze,st,Yt,Ee],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}"]})}}return t})();var C1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){y1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){y1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var oie='assessment'+django.gettext("Generate report")+"",Z3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:oie,type:Gt.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),x("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function rie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function aie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function cie(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function die(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function uie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,die,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function mie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function pie(t,i){}function hie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function fie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function gie(t,i){if(t&1&&A(0,aie,5,4,"div")(1,sie,5,3,"div")(2,lie,5,3,"div")(3,cie,4,3,"div")(4,uie,7,3,"div")(5,mie,5,3,"div")(6,pie,0,0)(7,hie,5,3,"div")(8,fie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function _ie(t,i){if(t&1&&(c(0,"div",10),A(1,gie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function vie(t,i){if(t&1&&(c(0,"mat-tab"),xe(1,rie,1,1,"ng-template",8),c(2,"div",9),fe(3,_ie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function bie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,vie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),x("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var J3=["UDS","Security"],eB=["UDS ID"],tB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!J3.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,J3),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&eB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,eB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,bie,9,1,"div",3),$t(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Yo,ze,st,Yt,en,Mt,Yn,Qn,ii,il,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var nB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),x("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var yie=[{path:"",canActivate:[E2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:sV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:HM},{path:"services/providers/:provider/detail",component:WM},{path:"services/providers/:provider",component:HM},{path:"services/providers/:provider/detail/:service",component:WM},{path:"services/servers",component:$M},{path:"services/servers/:server/detail",component:h3},{path:"services/servers/:server",component:$M},{path:"authenticators",component:GM},{path:"authenticators/:authenticator/detail",component:uy},{path:"authenticators/:authenticator",component:GM},{path:"authenticators/:authenticator/detail/groups/:group",component:uy},{path:"authenticators/:authenticator/detail/users/:user",component:uy},{path:"mfas",component:qM},{path:"mfas/:mfa",component:qM},{path:"osmanagers",component:XM},{path:"osmanagers/:osmanager",component:XM},{path:"connectivity/transports",component:JM},{path:"connectivity/transports/:transport",component:JM},{path:"connectivity/networks",component:e1},{path:"connectivity/networks/:network",component:e1},{path:"connectivity/tunnels",component:t1},{path:"connectivity/tunnels/:tunnel",component:t1},{path:"connectivity/tunnels/:tunnel/detail",component:y3},{path:"pools/service-pools",component:n1},{path:"pools/service-pools/:pool",component:n1},{path:"pools/service-pools/:pool/detail",component:_y},{path:"pools/meta-pools",component:r1},{path:"pools/meta-pools/:metapool",component:r1},{path:"pools/meta-pools/:metapool/detail",component:k3},{path:"pools/pool-groups",component:s1},{path:"pools/pool-groups/:poolgroup",component:s1},{path:"pools/calendars",component:l1},{path:"pools/calendars/:calendar",component:l1},{path:"pools/calendars/:calendar/detail",component:Q3},{path:"pools/accounts",component:b1},{path:"pools/accounts/:account",component:b1},{path:"pools/accounts/:account/detail",component:K3},{path:"tools/gallery",component:C1},{path:"tools/gallery/:image",component:C1},{path:"tools/reports",component:Z3},{path:"tools/notifiers",component:X3},{path:"tools/tokens/actor",component:nB},{path:"tools/tokens/server",component:iB},{path:"tools/configuration",component:tB}]}],oB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[$v.forRoot(yie,{}),$v]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ha="*";function rB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var ol=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},yf="!";function aB(t){return new ie(3e3,!1)}function Cie(){return new ie(3100,!1)}function xie(){return new ie(3101,!1)}function wie(t){return new ie(3001,!1)}function Die(t){return new ie(3003,!1)}function Sie(t){return new ie(3004,!1)}function lB(t,i){return new ie(3005,!1)}function cB(){return new ie(3006,!1)}function dB(){return new ie(3007,!1)}function uB(t,i){return new ie(3008,!1)}function mB(t){return new ie(3002,!1)}function pB(t,i,e,n,o){return new ie(3010,!1)}function hB(){return new ie(3011,!1)}function fB(){return new ie(3012,!1)}function gB(){return new ie(3200,!1)}function _B(){return new ie(3202,!1)}function vB(){return new ie(3013,!1)}function bB(t){return new ie(3014,!1)}function yB(t){return new ie(3015,!1)}function CB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Eie(t){return new ie(3502,!1)}function wB(t){return new ie(3503,!1)}function DB(){return new ie(3300,!1)}function SB(t){return new ie(3504,!1)}function EB(t){return new ie(3301,!1)}function MB(t,i){return new ie(3302,!1)}function TB(t){return new ie(3303,!1)}function IB(t,i){return new ie(3400,!1)}function kB(t){return new ie(3401,!1)}function AB(t){return new ie(3402,!1)}function RB(t,i){return new ie(3505,!1)}function rl(t){switch(t.length){case 0:return new ol;case 1:return t[0];default:return new Vm(t)}}function E1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,w)=>{let S=w,P=y;if(w!=="offset")switch(S=t.normalizePropertyName(S,o),P){case yf:P=e.get(w);break;case Ha:P=n.get(w);break;default:P=t.normalizeStyleValue(w,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Eie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&w1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&w1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&w1(e,"destroy",t)));break}}function w1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=wy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function wy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function M1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Mie=typeof document>"u"?null:document.documentElement;function Dy(t){let i=t.parentNode||t.host||null;return i===Mie?null:i}function Tie(t){return t.substring(1,6)=="ebkit"}var Md=null,sB=!1;function OB(t){Md||(Md=Iie()||{},sB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Tie(t)&&(i=t in Md.style,!i&&sB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function Iie(){return typeof document<"u"?document.body:null}function T1(t,i){for(;i;){if(i===t)return!0;i=Dy(i)}return!1}function I1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var kie=1e3,k1="{{",Aie="}}",A1="ng-enter",Sy="ng-leave",Cf="ng-trigger",xf=".ng-trigger",R1="ng-animating",Ey=".ng-animating";function xs(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:D1(parseFloat(i[1]),i[2])}function D1(t,i){return i==="s"?t*kie:t}function wf(t,i,e){return t.hasOwnProperty("duration")?t:Oie(t,i,e)}var Rie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Oie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Rie);if(a===null)return i.push(aB(t)),{duration:0,delay:0,easing:""};n=D1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=D1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(Cie()),a=!0),o<0&&(i.push(xie()),a=!0),a&&i.splice(s,0,aB(t))}return{duration:n,delay:o,easing:r}}function PB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Wa(t,i,e){i.forEach((n,o)=>{let r=My(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ic(t,i){i.forEach((e,n)=>{let o=My(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:rB(t):t}function NB(t,i,e){let n=i.params||{},o=O1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(wie(r))})}var S1=new RegExp(`${k1}\\s*(.+?)\\s*${Aie}`,"g");function O1(t){let i=[];if(typeof t=="string"){let e;for(;e=S1.exec(t);)i.push(e[1]);S1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(S1,(r,a)=>{let s=i[a];return s==null&&(e.push(Die(a)),s=""),s.toString()});return o==n?t:o}var Pie=/-+([a-z0-9])/g;function My(t){return t.replace(Pie,(...i)=>i[1].toUpperCase())}function FB(t,i){return t===0||i===0}function LB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Ty(t,s)))}}return i}function sr(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Sie(i.type)}}function Ty(t,i){return window.getComputedStyle(t)[i]}var K1=(()=>{class t{validateStyleProperty(e){return OB(e)}containsElement(e,n){return T1(e,n)}getParentElement(e){return Dy(e)}query(e,n,o){return I1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new ol(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new K1},kd=class{};var Nie=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"]),Oy=class extends kd{normalizePropertyName(i,e){return My(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Nie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(lB(i,n))}return a+r}};var Py="*";function Fie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Lie(n,e,i)):e.push(t),e}function Lie(t,i,e){if(t[0]==":"){let l=Vie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(yB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(VB(o,a));let s=o==Py&&a==Py;r[0]=="<"&&!s&&i.push(VB(a,o))}function Vie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var Iy=new Set(["true","1"]),ky=new Set(["false","0"]);function VB(t,i){let e=Iy.has(t)||ky.has(t),n=Iy.has(i)||ky.has(i);return(o,r)=>{let a=t==Py||t==o,s=i==Py||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Iy.has(t):ky.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Iy.has(i):ky.has(i)),a&&s}}var YB=":self",Bie=new RegExp(`s*${YB}s*,?`,"g");function QB(t,i,e,n){return new B1(t).build(i,e,n)}var BB="",B1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new j1(e);return this._resetContextStyleTimingState(o),sr(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=BB,i.collectedStyles=new Map,i.collectedStyles.set(BB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(cB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(dB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{O1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(uB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,Bm(i.animation),e),o=Fie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Hie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ha?n.push(s):e.errors.push(mB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(k1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(pB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&NB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(hB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let q=this._makeStyleAst(F,e),ve=q.offset!=null?q.offset:Uie(q.styles),oe=0;return ve!=null&&(r++,oe=q.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?q==w?1:y*q:a[q],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:sr(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=jie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(vB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:wf(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:sr(this,Bm(i.animation),e),timings:n,options:null}}};function jie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==YB);return i&&(t=t.replace(Bie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,Ey),[t,i]}function zie(t){return t?G({},t):null}var j1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Uie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Hie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=wf(t,i).duration;return P1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=P1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=wf(e,i);return P1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=G({},t),t.params&&(t.params=zie(t.params))):t={},t}function P1(t,i,e){return{duration:t,delay:i,easing:e}}function Z1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Sf=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},Wie=1,$ie=":enter",Gie=new RegExp($ie,"g"),qie=":leave",Yie=new RegExp(qie,"g");function KB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new z1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var z1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Sf;let g=new U1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?xs(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),sr(this,n,g);let w=g.timelines.filter(S=>S.containsAnimation());if(w.length&&s.size){let S;for(let P=w.length-1;P>=0;P--){let j=w[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return w.length?w.map(S=>S.buildKeyframes()):[Z1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:xs(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?xs(n.duration):null,s=n.delay!=null?xs(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ny);let a=xs(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?xs(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),sr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return wf(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?xs(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ny);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),sr(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Ny={},U1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ny;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Fy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=xs(n.duration)),n.delay!=null&&(o.delay=xs(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Ny,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new H1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(Gie,"."+this._enterClassName),i=i.replace(Yie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(bB(e)),s}},Fy=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=Wie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Qie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===yf?i.add(g):h===Ha&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return Z1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},H1=class extends Fy{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",jB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),w=y.get("offset"),S=e+w*n;y.set("offset",jB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return Z1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function jB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Qie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ha)}else for(let[r,a]of o)e.set(r,a)}),e}function zB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var N1={},Ly=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Kie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||N1,w=s&&s.params||N1,S=this.buildStyles(n,w,g),P=l&&l.params||N1,j=this.buildStyles(o,P,g),F=new Set,q=new Map,ve=new Map,oe=o==="void",Ne={params:ZB(P,y),delay:this.ast.options?.delay},Ce=h?[]:KB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(et=>{Le=Math.max(et.duration+et.delay,Le)}),g.length?zB(e,this._triggerName,n,o,oe,S,j,[],[],q,ve,Le,g):(Ce.forEach(et=>{let Nt=et.element,ht=ar(q,Nt,new Set);et.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=ar(ve,Nt,new Set);et.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),zB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],q,ve,Le))}};function Kie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function ZB(t,i){let e=G({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var W1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=ZB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Zie(t,i,e){return new $1(t,i,e)}var $1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new W1(o.style,r,n))}),UB(this.states,"true","1"),UB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Ly(i,o,this.states))}),this.fallbackTransition=Xie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Xie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Ly(t,r,i)}function UB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var Jie=new Sf,G1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=QB(this._driver,e,n,o);if(n.length)throw wB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=E1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=KB(this._driver,e,r,A1,Sy,new Map,new Map,n,Jie,o),a.forEach(h=>{let g=ar(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(DB()),a=[]),o.length)throw SB(o);s.forEach((h,g)=>{h.forEach((y,w)=>{h.set(w,this._driver.computeStyle(g,w,Ha))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=rl(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw EB(i);return e}listen(i,e,n,o){let r=wy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},HB="ng-animate-queued",eoe=".ng-animate-queued",F1="ng-animate-disabled",toe=".ng-animate-disabled",noe="ng-star-inserted",ioe=".ng-star-inserted",ooe=[],XB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},roe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$a="__ng_removed",Ef=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=soe(o),n){let r=i,{value:a}=r,s=uC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Df="void",L1=new Ef(Df),q1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,sa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw MB(n,e);if(n==null||n.length==0)throw TB(e);if(!loe(n))throw IB(n,e);let r=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(sa(i,Cf),sa(i,Cf+"-"+e),s.set(e,L1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw kB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Mf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(sa(i,Cf),sa(i,Cf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=L1),!(u.value===Df)&&l.value===u.value){if(!uoe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{ic(i,j),Wa(i,F)})}return}let y=ar(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let w=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!w){if(!o)return;w=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:w,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(sa(i,HB),a.onStart(()=>{zm(i,HB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[$a])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Df,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&rl(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||L1,h=new Ef(Df),g=new Mf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[$a];(!r||r===XB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){sa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=wy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Y1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new q1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ay(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ay(e))return;let r=e[$a];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),sa(i,F1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,F1))}removeNode(i,e,n){if(Ay(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[$a]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ay(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Ey,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return rl(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[$a];if(e&&e.setForRemoval){if(i[$a]=XB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(F1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,toe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?rl(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw AB(i)}_flushAnimations(i,e){let n=new Sf,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,eoe,!0);for(let He=0;He{let He=A1+P++;S.set(ae,He),pe.forEach(nt=>sa(nt,He))});let j=[],F=new Set,q=new Set;for(let pe=0;peF.add(nt)):q.add(ae))}let ve=new Map,oe=GB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Sy+P++;ve.set(ae,He),pe.forEach(nt=>sa(nt,He))}),i.push(()=>{w.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[$a];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>ic(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}let eo=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||eo.push(Rt)}),jt.timelines=eo,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>ar(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(RB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,et=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(et.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{ar(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>qB(pe,l,u)),ht=new Map;$B(ht,this.driver,q,u,Ha).forEach(pe=>{qB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;w.forEach((pe,ae)=>{$B(Tt,this.driver,new Set(pe),l,yf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Wa(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(et.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=et.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>et.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=rl(ft)),o.push(He)}}else ic(ae,nt.fromStyles),He.onDestroy(()=>Wa(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=rl(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?coe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Df;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=ar(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(w=>{let S=w.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),w.destroy(),g.push(w)})}ic(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[$a];if(j&&j.removedBeforeQueried)return new ol(S.duration,S.delay);let F=P!==l,q=doe((n.get(P)||ooe).map(Le=>Le.getRealPlayer())).filter(Le=>{let et=Le;return et.element?et.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=E1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,q);if(S.subTimeline&&o&&g.add(P),F){let Le=new Mf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{ar(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>aoe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>sa(S,R1));let w=rl(y);return w.onDestroy(()=>{h.forEach(S=>zm(S,R1)),Wa(l,e.toStyles)}),g.forEach(S=>{ar(o,S,[]).push(w)}),w}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ol(i.duration,i.delay)}},Mf=class{namespaceId;triggerName;element;_player=new ol;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function aoe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function soe(t){return t??null}function Ay(t){return t&&t.nodeType===1}function loe(t){return t=="start"||t=="done"}function WB(t,i){let e=t.style.display;return t.style.display=i??"none",e}function $B(t,i,e,n,o){let r=[];e.forEach(l=>r.push(WB(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[$a]=roe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>WB(l,r[s++])),a}function GB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function sa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function coe(t,i,e){rl(e).onDone(()=>t.processLeaveNode(i))}function doe(t){let i=[];return JB(t,i),i}function JB(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Y1(i.body,e,n),this._timelineEngine=new G1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=QB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Zie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=M1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=M1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function moe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=V1(i[0]),i.length>1&&(n=V1(i[i.length-1]))):i instanceof Map&&(e=V1(i)),e||n?new poe(t,e,n):null}var poe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Wa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wa(this._element,this._initialStyles),this._endStyles&&(Wa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ic(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ic(this._element,this._endStyles),this._endStyles=null),Wa(this._element,this._initialStyles),this._state=3)}}return t})();function V1(t){let i=null;return t.forEach((e,n)=>{hoe(n)&&(i=i||new Map,i.set(n,e))}),i}function hoe(t){return t==="display"||t==="position"}var Vy=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Ty(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},By=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return T1(i,e)}getParentElement(i){return Dy(i)}query(i,e,n){return I1(i,e,n)}computeStyle(i,e,n){return Ty(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(w=>w instanceof Vy);FB(n,o)&&h.forEach(w=>{w.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=PB(e).map(w=>new Map(w));g=LB(i,g,u);let y=moe(i,g);return new Vy(i,g,l,y)}};var Ry="@",ej="@.disabled",jy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ry&&e==ej?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},Q1=class extends jy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ry?e.charAt(1)=="."&&e==ej?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Ry){let r=foe(i),a=e.slice(1),s="";return a.charAt(0)!=Ry&&([a,s]=goe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function foe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function goe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var zy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new jy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new Q1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var voe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(we(ke),we(Id),we(kd))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function boe(){return new Oy}function yoe(){return new zy(p(rh),p(Um),p(be))}var nj=[{provide:kd,useFactory:boe},{provide:Um,useClass:voe},{provide:bi,useFactory:yoe}],Coe=[{provide:Id,useClass:K1},{provide:Ol,useValue:"NoopAnimations"},...nj],tj=[{provide:Id,useFactory:()=>new By},{provide:Ol,useFactory:()=>"BrowserAnimations"},...nj],ij=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Coe:tj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:tj,imports:[sh]})}return t})();var xoe=["button"],woe=["*"];function Doe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Soe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Eoe=new L("MatButtonToggleGroup");var X1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Moe=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Eoe,{optional:!0}),n=p(new Wi("tabindex"),{optional:!0})||"",o=p(Soe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 X1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(xoe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:woe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),x("click",function(){return o._onButtonClick()}),A(2,Doe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Sr,qb],styles:[`.mat-button-toggle-standalone, +`],encapsulation:2,changeDetection:0})}return t})();var $3=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[Fm],imports:[vs,fo,cd,xr,W3,yf,H3,pt,wr]})}return t})();function Hne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit rule"),d())}function Wne(t,i){t&1&&(c(0,"uds-translate"),f(1,"New rule"),d())}function $ne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Gne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function qne(t,i){if(t&1&&(c(0,"mat-option",9),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.value," ")}}function Yne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Week days"),d()(),c(4,"mat-select",19),te("ngModelChange",function(o){I(e);let r=_();return ne(r.wDays,o)||(r.wDays=o),k(o)}),fe(5,qne,2,2,"mat-option",9,De),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.wDays),m(),ge(e.weekDays)}}function Qne(t,i){if(t&1){let e=W();c(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),f(3,"Repeat every"),d()(),c(4,"input",7),te("ngModelChange",function(o){I(e);let r=_();return ne(r.rule.interval,o)||(r.rule.interval=o),k(o)}),d(),c(5,"div",20),f(6),d()()}if(t&2){let e=_();m(4),ee("ngModel",e.rule.interval),m(2),H("\xA0",e.frequency())}}var Cy={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")]},wy={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},q3=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Y3=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(q3[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},Q3=t=>{t.frequency==="WEEKDAYS"?t.interval=Y3(t.interval):t.interval=t.interval+" "+Cy[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+wy[t.duration_unit]},b1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(wy).map(a=>({id:a,value:wy[a]})),this.freqs=Object.keys(Cy).map(a=>({id:a,value:Cy[a][2]})),this.weekDays=q3.map((a,s)=>({id:1<{if(this.rule=e,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 r=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let e=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=hE(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){e=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?e+=" "+Y3(this.rule.interval,!0)+" "+django.gettext("of any week"):e+=" "+ +this.rule.interval+" "+this.frequency();let r=new Date(this.rule.start*1e3);e+=", "+django.gettext("from")+" "+Yl(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+Yl(n,new Date(this.rule.end*1e3)):e+=" "+django.gettext("onwards"),e+=", "+django.gettext("starting at")+" "+r.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?e+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+wy[this.rule.duration_unit]:e+=django.gettext("with no duration")}return e.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendar-rule"]],standalone:!1,decls:77,vars:23,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[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"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let r=W();c(0,"h4",2),A(1,Hne,2,0,"uds-translate"),$t(2,"notEmpty"),A(3,Wne,2,0,"uds-translate"),$t(4,"isEmpty"),d(),c(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),f(10,"Name"),d()(),c(11,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.name,s)||(o.rule.name=s),k(s)}),d()(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Comments"),d()(),c(16,"input",4),te("ngModelChange",function(s){return I(r),ne(o.rule.comments,s)||(o.rule.comments=s),k(s)}),d()(),c(17,"h3")(18,"uds-translate"),f(19,"Event"),d()(),c(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),f(23,"Start time"),d()(),c(24,"input",6),te("ngModelChange",function(s){return I(r),ne(o.startTime,s)||(o.startTime=s),k(s)}),d()(),c(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),f(28,"Duration"),d()(),c(29,"input",7),te("ngModelChange",function(s){return I(r),ne(o.rule.duration,s)||(o.rule.duration=s),k(s)}),d()(),c(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),f(33,"Duration units"),d()(),c(34,"mat-select",8),te("ngModelChange",function(s){return I(r),ne(o.rule.duration_unit,s)||(o.rule.duration_unit=s),k(s)}),fe(35,$ne,2,2,"mat-option",9,De),d()(),c(37,"h3"),f(38," Repetition "),d(),c(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),f(42," Start date "),d()(),c(43,"input",11),te("ngModelChange",function(s){return I(r),ne(o.startDate,s)||(o.startDate=s),k(s)}),d(),O(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),c(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),f(50," Repeat until date "),d()(),c(51,"input",13),te("ngModelChange",function(s){return I(r),ne(o.endDate,s)||(o.endDate=s),k(s)}),d(),O(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),c(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),f(59,"Frequency"),d()(),c(60,"mat-select",15),te("ngModelChange",function(s){return I(r),ne(o.rule.frequency,s)||(o.rule.frequency=s),k(s)}),w("valueChange",function(){return o.rule.interval=1}),fe(61,Gne,2,2,"mat-option",9,De),d()(),A(63,Yne,7,1,"mat-form-field",10),A(64,Qne,7,2,"mat-form-field",10),d(),c(65,"h3")(66,"uds-translate"),f(67,"Summary"),d()(),c(68,"div",16),f(69),d()()(),c(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),f(73,"Cancel"),d()(),c(74,"button",18),w("click",function(){return o.save()}),c(75,"uds-translate"),f(76,"Ok"),d()()()}if(n&2){let r=Pt(46),a=Pt(54);m(),R(Xt(2,19,o.rule.id)?1:-1),m(2),R(Xt(4,21,o.rule.id)?3:-1),m(8),ee("ngModel",o.rule.name),m(5),ee("ngModel",o.rule.comments),m(8),ee("ngModel",o.startTime),m(5),ee("ngModel",o.rule.duration),m(5),ee("ngModel",o.rule.duration_unit),m(),ge(o.dunits),m(8),b("matDatepicker",r),ee("ngModel",o.startDate),m(),b("for",r),m(7),b("matDatepicker",a),ee("ngModel",o.endDate),b("placeholder",o.FOREVER_STRING),m(),b("for",a),m(8),ee("ngModel",o.rule.frequency),m(),ge(o.freqs),m(2),R(o.rule.frequency==="WEEKDAYS"?63:-1),m(),R(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),m(5),H(" ",o.summary()," "),m(5),b("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[Ht,Er,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Ar,Yt,en,Mt,yy,Lm,yf,Ee,c3,Ci],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:90%;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}"]})}}return t})();var Kne=t=>["/pools","calendars",t];function Zne(t,i){t&1&&(c(0,"uds-translate"),f(1,"Rules"),d())}function Xne(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),we(4,Zne,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),w("newAction",function(o){I(e);let r=_();return k(r.onNewRule(o))})("editAction",function(o){I(e);let r=_();return k(r.onEditRule(o))})("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","calendars-d-rules"+e.calendar.id)("pageSize",e.api.config.admin.page_size)}}var K3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("calendar");e&&this.rest.calendars.get(e).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(e){b1.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){b1.launch(this.api,this.calendarRules,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDeleteRule(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete calendar rule"))}processElement(e){Q3(e)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-calendars-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,Xne,7,7,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,Kne,o.calendar?o.calendar.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/calendars.png"),it),m(),H(" ",o.calendar==null?null:o.calendar.name," "),m(),R(Xt(9,4,o.calendar)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],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}"]})}}return t})();var Jne='event'+django.gettext("Set time mark")+"",y1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Jne,type:Gt.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New account"))}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit account"))}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account"))}onTimeMark(e){let n=e.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}),e.table.reloadPage()})})}onDetail(e){this.api.navigation.gotoAccountDetail(e.param.id)}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("account"))}processElement(e){e.time_mark=e.time_mark===78793200?void 0:e.time_mark}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts"]],standalone:!1,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),w("customButtonAction",function(a){return o.onTimeMark(a)})("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("detailAction",function(a){return o.onDetail(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Ge],encapsulation:2})}}return t})();var eie=t=>["/pools","accounts",t];function tie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Account usage"),d())}function nie(t,i){if(t&1){let e=W();c(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),we(4,tie,2,0,"ng-template",8),c(5,"div",9)(6,"uds-table",10),w("deleteAction",function(o){I(e);let r=_();return k(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(4),b("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var Z3=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let e=this.route.snapshot.paramMap.get("account");e&&this.rest.accounts.get(e).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete account usage"))}processElement(e){e.running=this.api.boolAsHumanString(e.running)}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-accounts-detail"]],standalone:!1,decls:10,vars:8,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],[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),f(4,"arrow_back"),d()(),f(5," \xA0"),O(6,"img",4),f(7),d(),A(8,nie,7,6,"div",5),$t(9,"notEmpty"),d()),n&2&&(m(2),b("routerLink",po(6,eie,o.account?o.account.id:"")),m(4),b("src",o.api.staticURL("admin/img/icons/accounts.png"),it),m(),H(" ",o.account==null?null:o.account.name," "),m(),R(Xt(9,4,o.account)?8:-1))},dependencies:[mi,Yn,Qn,ii,Ee,Ge,Ci],encapsulation:2})}}return t})();function iie(t,i){t&1&&(c(0,"uds-translate"),f(1,"New image for"),d())}function oie(t,i){t&1&&(c(0,"uds-translate"),f(1,"Edit for"),d())}var C1=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new V(!0),this.preview="",this.image={id:void 0,data:"",name:""},r.image&&(this.image.id=r.image.id)}static launch(e,n=null){let o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(e){let n=e.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","image/svg+xml"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG, GIF and SVG)"));return}let r=new FileReader;r.onload=a=>{let s=r.result;this.preview=s,this.image.data=s.substr(s.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},r.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(e=>{switch(this.image=e,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 e=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":e,"height.px":n,"background-size":e+"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)})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery-image"]],standalone:!1,decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[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 r=W();c(0,"h4",1),A(1,iie,2,0,"uds-translate"),A(2,oie,2,0,"uds-translate"),d(),c(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),f(8,"Image name"),d()(),c(9,"input",3),te("ngModelChange",function(s){return I(r),ne(o.image.name,s)||(o.image.name=s),k(s)}),d()(),c(10,"input",4,0),w("change",function(s){return o.onFileChanged(s)}),d(),c(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),f(15,"Image (click to change)"),d()(),c(16,"input",5),w("click",function(){I(r);let s=Pt(11);return k(s.click())}),d(),c(17,"div",6),w("click",function(){I(r);let s=Pt(11);return k(s.click())}),O(18,"div",7),d()(),c(19,"div",8)(20,"uds-translate"),f(21,' For optimal results, use "squared" images. '),d(),c(22,"uds-translate"),f(23," The image will be resized on upload to "),d(),f(24),d()()(),c(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),f(28,"Cancel"),d()(),c(29,"button",10),w("click",function(){return o.save()}),c(30,"uds-translate"),f(31,"Ok"),d()()()}n&2&&(m(),R(o.image.id?-1:1),m(),R(o.image.id?2:-1),m(7),ee("ngModel",o.image.name),m(7),b("hidden",!0),m(2),b("ngStyle",o.background()),m(6),Fo(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zp,Ht,$e,Xe,Fe,Nn,wt,Dt,xt,ze,st,Yt,Ee],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}"]})}}return t})();var w1=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){C1.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){C1.launch(this.api,e.table.selection.selected[0]).subscribe(()=>e.table.reloadPage())}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete image"))}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("image"))}static{this.\u0275fac=function(n){return new(n||t)(D(tt),D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-gallery"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)})("loaded",function(a){return o.onLoad(a)}),d()),n&2&&b("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Ge],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var rie='assessment'+django.gettext("Generate report")+"",X3=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:rie,type:Gt.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return B(this,null,function*(){let n=new qn;this.api.gui.forms.typedForm(e,django.gettext("Generate report"),!1,[],void 0,e.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let r=yield this.rest.reports.save(o,e.table.selection.selected[0].id),a=r.encoded?window.atob(r.data):r.data,s=a.length,l=new Uint8Array(s);for(let h=0;h{class t{constructor(e,n){this.api=e,this.rest=n}ngOnInit(){}onNew(e){this.api.gui.forms.typedNewForm(e,django.gettext("New Notifier"),!1)}onEdit(e){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Notifier"),!1)}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notifiers"]],standalone:!1,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),w("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();function aie(t,i){if(t&1&&f(0),t&2){let e=_().$implicit;H(" ",e," ")}}function sie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",11),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),b("type",o.config[n][e].crypt?"password":"text"),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function lie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"textarea",12),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function cie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",13),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function die(t,i){if(t&1){let e=W();c(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),f(3),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(2),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),H(" ",e," ")}}function uie(t,i){if(t&1&&(c(0,"mat-option",16),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}function mie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"mat-select",15),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),fe(5,uie,2,2,"mat-option",16,De),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),H(" ",e," "),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help),m(),ge(o.config[n][e].params)}}function pie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",17),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function hie(t,i){}function fie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",18),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function gie(t,i){if(t&1){let e=W();c(0,"div")(1,"mat-form-field")(2,"mat-label"),f(3),d(),c(4,"input",19),te("ngModelChange",function(o){I(e);let r=_(2).$implicit,a=_().$implicit,s=_(2);return ne(s.config[a][r].value,o)||(s.config[a][r].value=o),k(o)}),d()()()}if(t&2){let e=_(2).$implicit,n=_().$implicit,o=_(2);m(3),_e(e),m(),ee("ngModel",o.config[n][e].value),b("matTooltip",o.config[n][e].help)}}function _ie(t,i){if(t&1&&A(0,sie,5,4,"div")(1,lie,5,3,"div")(2,cie,5,3,"div")(3,die,4,3,"div")(4,mie,7,3,"div")(5,pie,5,3,"div")(6,hie,0,0)(7,fie,5,3,"div")(8,gie,5,3,"div"),t&2){let e,n=_().$implicit,o=_().$implicit,r=_(2);R((e=r.config[o][n].type)===0?0:e===1?1:e===2?2:e===3?3:e===4?4:e===5?5:e===6?6:e===7?7:8)}}function vie(t,i){if(t&1&&(c(0,"div",10),A(1,_ie,9,1),d()),t&2){let e=i.$implicit,n=_().$implicit,o=_(2);m(),R(o.config[n][e]?1:-1)}}function bie(t,i){if(t&1&&(c(0,"mat-tab"),we(1,aie,1,1,"ng-template",8),c(2,"div",9),fe(3,vie,2,1,"div",10,De),d()()),t&2){let e=i.$implicit,n=_(2);m(3),ge(n.configElements(e))}}function yie(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),fe(3,bie,5,0,"mat-tab",null,De),d(),c(5,"div",6)(6,"button",7),w("click",function(){I(e);let o=_();return k(o.save())}),c(7,"uds-translate"),f(8,"Save"),d()()()()()}if(t&2){let e=_();m(2),b("@.disabled",!0),m(),ge(e.sections())}}var eB=["UDS","Security"],tB=["UDS ID"],nB=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return B(this,null,function*(){this.config=yield this.rest.configuration.overview(),this.config.Enterprise&&delete this.config.Enterprise;for(let e in this.config)if(this.config.hasOwnProperty(e)){for(let n in this.config[e])if(this.config[e].hasOwnProperty(n)){let o=this.config[e][n];o.type===7?o.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':o.type===3&&(o.value=!!["1",1,!0].includes(o.value)),o.original_value=o.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!eB.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,eB),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&tB.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,tB),n}save(){let e={};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 r=this.config[n][o];if(r.original_value!==r.value){r.original_value=r.value,e[n]||(e[n]={});let a=r.value;r.type===3&&(a=["1",1,!0].includes(r.value)?"1":"0"),e[n][o]={value:a}}}}this.rest.configuration.save(e).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}static{this.\u0275fac=function(n){return new(n||t)(D(ce),D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-configuration"]],standalone:!1,decls:8,vars:4,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],[1,"field"],["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"],["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),O(2,"img",2),f(3,"\xA0"),c(4,"uds-translate"),f(5,"UDS Configuration"),d()(),A(6,yie,9,1,"div",3),$t(7,"notEmpty"),d()),n&2&&(m(2),b("src",o.api.staticURL("admin/img/icons/configuration.png"),it),m(4),R(Xt(7,2,o.config)?6:-1))},dependencies:[Ht,Er,$e,Xe,Fe,Yo,ze,st,Yt,en,Mt,Yn,Qn,ii,il,Ee,Ci],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}.toggle[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return t})();var iB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return B(this,null,function*(){yield this.api.gui.forms.deleteForm(e,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-actor-tokens"]],standalone:!1,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),w("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var oB=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){this.api.gui.forms.deleteForm(e,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(tt),D(ce))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-servers-tokens"]],standalone:!1,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),w("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(m(),b("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Ge],encapsulation:2})}}return t})();var Cie=[{path:"",canActivate:[M2],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:lV},{path:"summary/users-with-services",component:Ed,data:{list:"users-with-services",icon:"users",title:"Users with services"}},{path:"summary/groups",component:Ed,data:{list:"groups",icon:"groups",title:"Groups"}},{path:"summary/users",component:Ed,data:{list:"users",icon:"users",title:"Users"}},{path:"summary/user-services",component:Ed,data:{list:"user-services",icon:"services",title:"User services"}},{path:"summary/assigned-services",component:Ed,data:{list:"assigned-services",icon:"assigned",title:"Assigned services"}},{path:"summary/restrained-pools",component:Ed,data:{list:"restrained-pools",icon:"pools",title:"Restrained pools"}},{path:"services/providers",component:WM},{path:"services/providers/:provider/detail",component:$M},{path:"services/providers/:provider",component:WM},{path:"services/providers/:provider/detail/:service",component:$M},{path:"services/servers",component:GM},{path:"services/servers/:server/detail",component:f3},{path:"services/servers/:server",component:GM},{path:"authenticators",component:qM},{path:"authenticators/:authenticator/detail",component:my},{path:"authenticators/:authenticator",component:qM},{path:"authenticators/:authenticator/detail/groups/:group",component:my},{path:"authenticators/:authenticator/detail/users/:user",component:my},{path:"mfas",component:YM},{path:"mfas/:mfa",component:YM},{path:"osmanagers",component:JM},{path:"osmanagers/:osmanager",component:JM},{path:"connectivity/transports",component:e1},{path:"connectivity/transports/:transport",component:e1},{path:"connectivity/networks",component:t1},{path:"connectivity/networks/:network",component:t1},{path:"connectivity/tunnels",component:n1},{path:"connectivity/tunnels/:tunnel",component:n1},{path:"connectivity/tunnels/:tunnel/detail",component:C3},{path:"pools/service-pools",component:i1},{path:"pools/service-pools/:pool",component:i1},{path:"pools/service-pools/:pool/detail",component:vy},{path:"pools/meta-pools",component:a1},{path:"pools/meta-pools/:metapool",component:a1},{path:"pools/meta-pools/:metapool/detail",component:A3},{path:"pools/pool-groups",component:l1},{path:"pools/pool-groups/:poolgroup",component:l1},{path:"pools/calendars",component:c1},{path:"pools/calendars/:calendar",component:c1},{path:"pools/calendars/:calendar/detail",component:K3},{path:"pools/accounts",component:y1},{path:"pools/accounts/:account",component:y1},{path:"pools/accounts/:account/detail",component:Z3},{path:"tools/gallery",component:w1},{path:"tools/gallery/:image",component:w1},{path:"tools/reports",component:X3},{path:"tools/notifiers",component:J3},{path:"tools/tokens/actor",component:iB},{path:"tools/tokens/server",component:oB},{path:"tools/configuration",component:nB}]}],rB=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({imports:[Gv.forRoot(Cie,{}),Gv]})}}return t})();var Jt=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Jt||{}),Ha="*";function aB(t,i=null){return{type:Jt.Sequence,steps:t,options:i}}function x1(t){return{type:Jt.Style,styles:t,offset:null}}var ol=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Vm=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Cf="!";function sB(t){return new ie(3e3,!1)}function wie(){return new ie(3100,!1)}function xie(){return new ie(3101,!1)}function Die(t){return new ie(3001,!1)}function Sie(t){return new ie(3003,!1)}function Eie(t){return new ie(3004,!1)}function cB(t,i){return new ie(3005,!1)}function dB(){return new ie(3006,!1)}function uB(){return new ie(3007,!1)}function mB(t,i){return new ie(3008,!1)}function pB(t){return new ie(3002,!1)}function hB(t,i,e,n,o){return new ie(3010,!1)}function fB(){return new ie(3011,!1)}function gB(){return new ie(3012,!1)}function _B(){return new ie(3200,!1)}function vB(){return new ie(3202,!1)}function bB(){return new ie(3013,!1)}function yB(t){return new ie(3014,!1)}function CB(t){return new ie(3015,!1)}function wB(t){return new ie(3016,!1)}function xB(t,i){return new ie(3404,!1)}function Mie(t){return new ie(3502,!1)}function DB(t){return new ie(3503,!1)}function SB(){return new ie(3300,!1)}function EB(t){return new ie(3504,!1)}function MB(t){return new ie(3301,!1)}function TB(t,i){return new ie(3302,!1)}function IB(t){return new ie(3303,!1)}function kB(t,i){return new ie(3400,!1)}function AB(t){return new ie(3401,!1)}function RB(t){return new ie(3402,!1)}function OB(t,i){return new ie(3505,!1)}function rl(t){switch(t.length){case 0:return new ol;case 1:return t[0];default:return new Vm(t)}}function M1(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==a,g=h&&s||new Map;l.forEach((y,x)=>{let S=x,P=y;if(x!=="offset")switch(S=t.normalizePropertyName(S,o),P){case Cf:P=e.get(x);break;case Ha:P=n.get(x);break;default:P=t.normalizeStyleValue(x,S,P,o);break}g.set(S,P)}),h||r.push(g),s=g,a=u}),o.length)throw Mie(o);return r}function xy(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&D1(e,"start",t)));break;case"done":t.onDone(()=>n(e&&D1(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&D1(e,"destroy",t)));break}}function D1(t,i,e){let n=e.totalTime,o=!!e.disabled,r=Dy(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,o),a=t._data;return a!=null&&(r._data=a),r}function Dy(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function ar(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function T1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var Tie=typeof document>"u"?null:document.documentElement;function Sy(t){let i=t.parentNode||t.host||null;return i===Tie?null:i}function Iie(t){return t.substring(1,6)=="ebkit"}var Md=null,lB=!1;function PB(t){Md||(Md=kie()||{},lB=Md.style?"WebkitAppearance"in Md.style:!1);let i=!0;return Md.style&&!Iie(t)&&(i=t in Md.style,!i&&lB&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Md.style)),i}function kie(){return typeof document<"u"?document.body:null}function I1(t,i){for(;i;){if(i===t)return!0;i=Sy(i)}return!1}function k1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var Aie=1e3,A1="{{",Rie="}}",R1="ng-enter",Ey="ng-leave",wf="ng-trigger",xf=".ng-trigger",O1="ng-animating",My=".ng-animating";function ws(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:S1(parseFloat(i[1]),i[2])}function S1(t,i){return i==="s"?t*Aie:t}function Df(t,i,e){return t.hasOwnProperty("duration")?t:Pie(t,i,e)}var Oie=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pie(t,i,e){let n,o=0,r="";if(typeof t=="string"){let a=t.match(Oie);if(a===null)return i.push(sB(t)),{duration:0,delay:0,easing:""};n=S1(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(o=S1(parseFloat(s),a[4]));let l=a[5];l&&(r=l)}else n=t;if(!e){let a=!1,s=i.length;n<0&&(i.push(wie()),a=!0),o<0&&(i.push(xie()),a=!0),a&&i.splice(s,0,sB(t))}return{duration:n,delay:o,easing:r}}function NB(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Wa(t,i,e){i.forEach((n,o)=>{let r=Ty(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function oc(t,i){i.forEach((e,n)=>{let o=Ty(n);t.style[o]=""})}function Bm(t){return Array.isArray(t)?t.length==1?t[0]:aB(t):t}function FB(t,i,e){let n=i.params||{},o=P1(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(Die(r))})}var E1=new RegExp(`${A1}\\s*(.+?)\\s*${Rie}`,"g");function P1(t){let i=[];if(typeof t=="string"){let e;for(;e=E1.exec(t);)i.push(e[1]);E1.lastIndex=0}return i}function jm(t,i,e){let n=`${t}`,o=n.replace(E1,(r,a)=>{let s=i[a];return s==null&&(e.push(Sie(a)),s=""),s.toString()});return o==n?t:o}var Nie=/-+([a-z0-9])/g;function Ty(t){return t.replace(Nie,(...i)=>i[1].toUpperCase())}function LB(t,i){return t===0||i===0}function VB(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((r,a)=>{n.has(a)||o.push(a),n.set(a,r)}),o.length)for(let r=1;ra.set(s,Iy(t,s)))}}return i}function sr(t,i,e){switch(i.type){case Jt.Trigger:return t.visitTrigger(i,e);case Jt.State:return t.visitState(i,e);case Jt.Transition:return t.visitTransition(i,e);case Jt.Sequence:return t.visitSequence(i,e);case Jt.Group:return t.visitGroup(i,e);case Jt.Animate:return t.visitAnimate(i,e);case Jt.Keyframes:return t.visitKeyframes(i,e);case Jt.Style:return t.visitStyle(i,e);case Jt.Reference:return t.visitReference(i,e);case Jt.AnimateChild:return t.visitAnimateChild(i,e);case Jt.AnimateRef:return t.visitAnimateRef(i,e);case Jt.Query:return t.visitQuery(i,e);case Jt.Stagger:return t.visitStagger(i,e);default:throw Eie(i.type)}}function Iy(t,i){return window.getComputedStyle(t)[i]}var Z1=(()=>{class t{validateStyleProperty(e){return PB(e)}containsElement(e,n){return I1(e,n)}getParentElement(e){return Sy(e)}query(e,n,o){return k1(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],l){return new ol(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})(),Id=class{static NOOP=new Z1},kd=class{};var Fie=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"]),Py=class extends kd{normalizePropertyName(i,e){return Ty(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(Fie.has(e)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(cB(i,n))}return a+r}};var Ny="*";function Lie(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Vie(n,e,i)):e.push(t),e}function Vie(t,i,e){if(t[0]==":"){let l=Bie(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(CB(t)),i;let o=n[1],r=n[2],a=n[3];i.push(BB(o,a));let s=o==Ny&&a==Ny;r[0]=="<"&&!s&&i.push(BB(a,o))}function Bie(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}var ky=new Set(["true","1"]),Ay=new Set(["false","0"]);function BB(t,i){let e=ky.has(t)||Ay.has(t),n=ky.has(i)||Ay.has(i);return(o,r)=>{let a=t==Ny||t==o,s=i==Ny||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?ky.has(t):Ay.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?ky.has(i):Ay.has(i)),a&&s}}var QB=":self",jie=new RegExp(`s*${QB}s*,?`,"g");function KB(t,i,e,n){return new j1(t).build(i,e,n)}var jB="",j1=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new z1(e);return this._resetContextStyleTimingState(o),sr(this,Bm(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=jB,i.collectedStyles=new Map,i.collectedStyles.set(jB,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0,r=[],a=[];return i.name.charAt(0)=="@"&&e.errors.push(dB()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Jt.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=u}else if(s.type==Jt.Transition){let l=this.visitTransition(s,e);n+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(uB())}),{type:Jt.Trigger,name:i.name,states:r,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=o||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{P1(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&e.errors.push(mB(i.name,[...r.values()]))}return{type:Jt.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=sr(this,Bm(i.animation),e),o=Lie(i.expr,e.errors);return{type:Jt.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Td(i.options)}}visitSequence(i,e){return{type:Jt.Sequence,steps:i.steps.map(n=>sr(this,n,e)),options:Td(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=sr(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:Jt.Group,steps:r,options:Td(i.options)}}visitAnimate(i,e){let n=Wie(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:x1({});if(r.type==Jt.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let u={};n.easing&&(u.easing=n.easing),a=x1(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:Jt.Animate,timings:n,style:o,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of o)typeof s=="string"?s===Ha?n.push(s):e.errors.push(pB(s)):n.push(new Map(Object.entries(s)));let r=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!r)){for(let l of s.values())if(l.toString().indexOf(A1)>=0){r=!0;break}}}),{type:Jt.Style,styles:n,easing:a,offset:i.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),i.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),g=!0;h&&(r!=o&&r>=h.startTime&&o<=h.endTime&&(e.errors.push(hB(l,h.startTime,h.endTime,r,o)),g=!1),r=h.startTime),g&&u.set(l,{startTime:r,endTime:o}),e.options&&FB(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Jt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(fB()),n;let o=1,r=0,a=[],s=!1,l=!1,u=0,h=i.steps.map(F=>{let G=this._makeStyleAst(F,e),ve=G.offset!=null?G.offset:Hie(G.styles),oe=0;return ve!=null&&(r++,oe=G.offset=ve),l=l||oe<0||oe>1,s=s||oe0&&r{let ve=y>0?G==x?1:y*G:a[G],oe=ve*j;e.currentTime=S+P.delay+oe,P.duration=oe,this._validateStyleAst(F,e),F.offset=ve,n.styles.push(F)}),n}visitReference(i,e){return{type:Jt.Reference,animation:sr(this,Bm(i.animation),e),options:Td(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Jt.AnimateChild,options:Td(i.options)}}visitAnimateRef(i,e){return{type:Jt.AnimateRef,animation:this.visitReference(i.animation,e),options:Td(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=zie(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,ar(e.collectedStyles,e.currentQuerySelector,new Map);let s=sr(this,Bm(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Jt.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Td(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(bB());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:Df(i.timings,e.errors,!0);return{type:Jt.Stagger,animation:sr(this,Bm(i.animation),e),timings:n,options:null}}};function zie(t){let i=!!t.split(/\s*,\s*/).find(e=>e==QB);return i&&(t=t.replace(jie,"")),t=t.replace(/@\*/g,xf).replace(/@\w+/g,e=>xf+"-"+e.slice(1)).replace(/:animating/g,My),[t,i]}function Uie(t){return t?q({},t):null}var z1=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(i){this.errors=i}};function Hie(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function Wie(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=Df(t,i).duration;return N1(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=N1(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=Df(e,i);return N1(o.duration,o.delay,o.easing)}function Td(t){return t?(t=q({},t),t.params&&(t.params=Uie(t.params))):t={},t}function N1(t,i,e){return{duration:t,delay:i,easing:e}}function X1(t,i,e,n,o,r,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}var Ef=class{_map=new Map;get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},$ie=1,Gie=":enter",qie=new RegExp(Gie,"g"),Yie=":leave",Qie=new RegExp(Yie,"g");function ZB(t,i,e,n,o,r=new Map,a=new Map,s,l,u=[]){return new U1().buildKeyframes(t,i,e,n,o,r,a,s,l,u)}var U1=class{buildKeyframes(i,e,n,o,r,a,s,l,u,h=[]){u=u||new Ef;let g=new H1(i,e,u,o,r,h,[]);g.options=l;let y=l.delay?ws(l.delay):0;g.currentTimeline.delayNextStep(y),g.currentTimeline.setStyles([a],null,g.errors,l),sr(this,n,g);let x=g.timelines.filter(S=>S.containsAnimation());if(x.length&&s.size){let S;for(let P=x.length-1;P>=0;P--){let j=x[P];if(j.element===e){S=j;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,g.errors,l)}return x.length?x.map(S=>S.buildKeyframes()):[X1(e,[],[],[],0,y,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let o=e.createSubContext(i.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let o of i){let r=o?.delay;if(r){let a=typeof r=="number"?r:ws(jm(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?ws(n.duration):null,s=n.delay!=null?ws(n.delay):null;return a!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,u.duration+u.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),sr(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,o=e,r=i.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==Jt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Fy);let a=ws(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>sr(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],o=e.currentTimeline.currentTime,r=i.options&&i.options.delay?ws(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),sr(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,o=e.params?jm(n,e.params,e.errors):n;return Df(o,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());let r=i.style;r.type==Jt.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(r):n.setStyles(i.styles,r,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,o=i.options||{},r=o.delay?ws(o.delay):0;r&&(e.previousNode.type===Jt.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fy);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(i.options,u);r&&g.delayNextStep(r),u===e.element&&(l=g.currentTimeline),sr(this,i.animation,g),g.currentTimeline.applyStylesToKeyframe();let y=g.currentTimeline.currentTime;a=Math.max(a,y)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,o=e.currentTimeline,r=i.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;sr(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-g+(o.startTime-n.currentTimeline.startTime)}},Fy={},H1=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Fy;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=l||new Ly(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,o=this.options;n.duration!=null&&(o.duration=ws(n.duration)),n.delay!=null&&(o.delay=ws(n.delay));let r=n.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=jm(r[s],a,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){let o=e||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(i),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(i){return this.previousNode=Fy,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},r=new W1(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,r,a){let s=[];if(o&&s.push(this.element),i.length>0){i=i.replace(qie,"."+this._enterClassName),i=i.replace(Qie,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push(...u)}return!r&&s.length==0&&a.push(yB(e)),s}},Ly=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||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+=$ie,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=Kie(i,this._globalTimelineStyles);for(let[s,l]of a){let u=jm(l,r,n);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ha),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((h,g)=>{h===Cf?i.add(g):h===Ha&&e.add(g)}),n||u.set("offset",l/this.duration),o.push(u)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],l=new Map(s);s.set("offset",0),l.set("offset",1),o=[s,l]}return X1(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},W1=class extends Ly{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(i,e,n,o,r,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],a=n+e,s=e/a,l=new Map(i[0]);l.set("offset",0),r.push(l);let u=new Map(i[0]);u.set("offset",zB(s)),r.push(u);let h=i.length-1;for(let g=1;g<=h;g++){let y=new Map(i[g]),x=y.get("offset"),S=e+x*n;y.set("offset",zB(S/a)),r.push(y)}n=a,e=0,o="",i=r}return X1(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function zB(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function Kie(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ha)}else for(let[r,a]of o)e.set(r,a)}),e}function UB(t,i,e,n,o,r,a,s,l,u,h,g,y){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:g,errors:y}}var F1={},Vy=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return Zie(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return i!==void 0&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,r,a,s,l,u,h){let g=[],y=this.ast.options&&this.ast.options.params||F1,x=s&&s.params||F1,S=this.buildStyles(n,x,g),P=l&&l.params||F1,j=this.buildStyles(o,P,g),F=new Set,G=new Map,ve=new Map,oe=o==="void",Ne={params:XB(P,y),delay:this.ast.options?.delay},Ce=h?[]:ZB(i,e,this.ast.animation,r,a,S,j,Ne,u,g),Le=0;return Ce.forEach(et=>{Le=Math.max(et.duration+et.delay,Le)}),g.length?UB(e,this._triggerName,n,o,oe,S,j,[],[],G,ve,Le,g):(Ce.forEach(et=>{let Nt=et.element,ht=ar(G,Nt,new Set);et.preStyleProps.forEach(Tt=>ht.add(Tt));let Se=ar(ve,Nt,new Set);et.postStyleProps.forEach(Tt=>Se.add(Tt)),Nt!==e&&F.add(Nt)}),UB(e,this._triggerName,n,o,oe,S,j,Ce,[...F.values()],G,ve,Le))}};function Zie(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function XB(t,i){let e=q({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var $1=class{styles;defaultParams;normalizer;constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,o=XB(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=jm(a,o,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(s,a)})}),n}};function Xie(t,i,e){return new G1(t,i,e)}var G1=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new $1(o.style,r,n))}),HB(this.states,"true","1"),HB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Vy(i,o,this.states))}),this.fallbackTransition=Jie(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function Jie(t,i,e){let n=[(a,s)=>!0],o={type:Jt.Sequence,steps:[],options:null},r={type:Jt.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new Vy(t,r,i)}function HB(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var eoe=new Ef,q1=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n}register(i,e){let n=[],o=[],r=KB(this._driver,e,n,o);if(n.length)throw DB(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=M1(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,r,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let o=[],r=this._animations.get(i),a,s=new Map;if(r?(a=ZB(this._driver,e,r,R1,Ey,new Map,new Map,n,eoe,o),a.forEach(h=>{let g=ar(s,h.element,new Map);h.postStyleProps.forEach(y=>g.set(y,null))})):(o.push(SB()),a=[]),o.length)throw EB(o);s.forEach((h,g)=>{h.forEach((y,x)=>{h.set(x,this._driver.computeStyle(g,x,Ha))})});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map,g)}),u=rl(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw MB(i);return e}listen(i,e,n,o){let r=Dy(e,"","","");return xy(this._getPlayer(i),n,r,o),()=>{}}command(i,e,n,o){if(n=="register"){this.register(i,o[0]);return}if(n=="create"){let a=o[0]||{};this.create(i,e,a);return}let r=this._getPlayer(i);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i);break}}},WB="ng-animate-queued",toe=".ng-animate-queued",L1="ng-animate-disabled",noe=".ng-animate-disabled",ioe="ng-star-inserted",ooe=".ng-star-inserted",roe=[],JB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aoe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$a="__ng_removed",Mf=class{namespaceId;value;options;get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),o=n?i.value:i;if(this.value=loe(o),n){let r=i,{value:a}=r,s=mC(r,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(o=>{n[o]==null&&(n[o]=e[o])})}}},Sf="void",V1=new Mf(Sf),Y1=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+i,sa(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw TB(n,e);if(n==null||n.length==0)throw IB(e);if(!coe(n))throw kB(n,e);let r=ar(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=ar(this._engine.statesByElement,i,new Map);return s.has(e)||(sa(i,wf),sa(i,wf+"-"+e),s.set(e,V1)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw AB(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Tf(this.id,e,i),s=this._engine.statesByElement.get(i);s||(sa(i,wf),sa(i,wf+"-"+e),this._engine.statesByElement.set(i,s=new Map));let l=s.get(e),u=new Mf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=V1),!(u.value===Sf)&&l.value===u.value){if(!moe(l.params,u.params)){let P=[],j=r.matchStyles(l.value,l.params,P),F=r.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{oc(i,j),Wa(i,F)})}return}let y=ar(this._engine.playersByElement,i,[]);y.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let x=r.matchTransition(l.value,u.value,i,u.params),S=!1;if(!x){if(!o)return;x=r.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:x,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(sa(i,WB),a.onStart(()=>{zm(i,WB)})),a.onDone(()=>{let P=this.players.indexOf(a);P>=0&&this.players.splice(P,1);let j=this._engine.playersByElement.get(i);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),y.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,xf,!0);n.forEach(o=>{if(o[$a])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){let r=this._engine.statesByElement.get(i),a=new Map;if(r){let s=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Sf,o);h&&s.push(h)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&rl(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let o=new Set;e.forEach(r=>{let a=r.name;if(o.has(a))return;o.add(a);let l=this._triggers.get(a).fallbackTransition,u=n.get(a)||V1,h=new Mf(Sf),g=new Tf(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:l,fromState:u,toState:h,player:g,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(i):[];if(r&&r.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{let r=i[$a];(!r||r===JB)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){sa(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==n.triggerName){let l=Dy(r,n.triggerName,n.fromState.value,n.toState.value);l._data=i,xy(n.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{let r=n.transition.ast.depCount,a=o.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},Q1=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(i,e)=>{};_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new Y1(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=o.get(s);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(i,e,n,o){if(Ry(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Ry(e))return;let r=e[$a];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){let a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),sa(i,L1)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),zm(i,L1))}removeNode(i,e,n){if(Ry(e)){let o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let r=this.namespacesByHostElement.get(e);r&&r.id!==i&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,r){this.collectedLeaveElements.push(e),e[$a]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Ry(e)?this._fetchNamespace(i).listen(e,n,o,r):()=>{}}_buildInstruction(i,e,n,o,r){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,r)}destroyInnerAnimations(i){let e=this.driver.query(i,xf,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,My,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return rl(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[$a];if(e&&e.setForRemoval){if(i[$a]=JB,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(L1)&&this.markElementAsDisabled(i,!1),this.driver.query(i,noe,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?rl(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw RB(i)}_flushAnimations(i,e){let n=new Ef,o=[],r=new Map,a=[],s=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(pe=>{h.add(pe);let ae=this.driver.query(pe,toe,!0);for(let He=0;He{let He=R1+P++;S.set(ae,He),pe.forEach(nt=>sa(nt,He))});let j=[],F=new Set,G=new Set;for(let pe=0;peF.add(nt)):G.add(ae))}let ve=new Map,oe=qB(y,Array.from(F));oe.forEach((pe,ae)=>{let He=Ey+P++;ve.set(ae,He),pe.forEach(nt=>sa(nt,He))}),i.push(()=>{x.forEach((pe,ae)=>{let He=S.get(ae);pe.forEach(nt=>zm(nt,He))}),oe.forEach((pe,ae)=>{let He=ve.get(ae);pe.forEach(nt=>zm(nt,He))}),j.forEach(pe=>{this.processLeaveNode(pe)})});let Ne=[],Ce=[];for(let pe=this._namespaceList.length-1;pe>=0;pe--)this._namespaceList[pe].drainQueuedTransitions(e).forEach(He=>{let nt=He.player,gt=He.element;if(Ne.push(nt),this.collectedEnterElements.length){let Rt=gt[$a];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(He.triggerName)){let Li=Rt.previousTriggersValues.get(He.triggerName),Jn=this.statesByElement.get(He.element);if(Jn&&Jn.has(He.triggerName)){let jn=Jn.get(He.triggerName);jn.value=Li,Jn.set(He.triggerName,jn)}}nt.destroy();return}}let Qt=!g||!this.driver.containsElement(g,gt),ft=ve.get(gt),Ve=S.get(gt),jt=this._buildInstruction(He,n,Ve,ft,Qt);if(jt.errors&&jt.errors.length){Ce.push(jt);return}if(Qt){nt.onStart(()=>oc(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}if(He.isFallbackTransition){nt.onStart(()=>oc(gt,jt.fromStyles)),nt.onDestroy(()=>Wa(gt,jt.toStyles)),o.push(nt);return}let eo=[];jt.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||eo.push(Rt)}),jt.timelines=eo,n.append(gt,jt.timelines);let Xn={instruction:jt,player:nt,element:gt};a.push(Xn),jt.queriedElements.forEach(Rt=>ar(s,Rt,[]).push(nt)),jt.preStyleProps.forEach((Rt,Li)=>{if(Rt.size){let Jn=l.get(Li);Jn||l.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))}}),jt.postStyleProps.forEach((Rt,Li)=>{let Jn=u.get(Li);Jn||u.set(Li,Jn=new Set),Rt.forEach((jn,Qo)=>Jn.add(Qo))})});if(Ce.length){let pe=[];Ce.forEach(ae=>{pe.push(OB(ae.triggerName,ae.errors))}),Ne.forEach(ae=>ae.destroy()),this.reportError(pe)}let Le=new Map,et=new Map;a.forEach(pe=>{let ae=pe.element;n.has(ae)&&(et.set(ae,ae),this._beforeAnimationBuild(pe.player.namespaceId,pe.instruction,Le))}),o.forEach(pe=>{let ae=pe.element;this._getPreviousPlayers(ae,!1,pe.namespaceId,pe.triggerName,null).forEach(nt=>{ar(Le,ae,[]).push(nt),nt.destroy()})});let Nt=j.filter(pe=>YB(pe,l,u)),ht=new Map;GB(ht,this.driver,G,u,Ha).forEach(pe=>{YB(pe,l,u)&&Nt.push(pe)});let Tt=new Map;x.forEach((pe,ae)=>{GB(Tt,this.driver,new Set(pe),l,Cf)}),Nt.forEach(pe=>{let ae=ht.get(pe),He=Tt.get(pe);ht.set(pe,new Map([...ae?.entries()??[],...He?.entries()??[]]))});let qe=[],It=[],ot={};a.forEach(pe=>{let{element:ae,player:He,instruction:nt}=pe;if(n.has(ae)){if(h.has(ae)){He.onDestroy(()=>Wa(ae,nt.toStyles)),He.disabled=!0,He.overrideTotalTime(nt.totalTime),o.push(He);return}let gt=ot;if(et.size>1){let ft=ae,Ve=[];for(;ft=ft.parentNode;){let jt=et.get(ft);if(jt){gt=jt;break}Ve.push(ft)}Ve.forEach(jt=>et.set(jt,gt))}let Qt=this._buildAnimation(He.namespaceId,nt,Le,r,Tt,ht);if(He.setRealPlayer(Qt),gt===ot)qe.push(He);else{let ft=this.playersByElement.get(gt);ft&&ft.length&&(He.parentPlayer=rl(ft)),o.push(He)}}else oc(ae,nt.fromStyles),He.onDestroy(()=>Wa(ae,nt.toStyles)),It.push(He),h.has(ae)&&o.push(He)}),It.forEach(pe=>{let ae=r.get(pe.element);if(ae&&ae.length){let He=rl(ae);pe.setRealPlayer(He)}}),o.forEach(pe=>{pe.parentPlayer?pe.syncPlayerEvents(pe.parentPlayer):pe.destroy()});for(let pe=0;pe!Qt.destroyed);gt.length?doe(this,ae,gt):this.processLeaveNode(ae)}return j.length=0,qe.forEach(pe=>{this.players.push(pe),pe.onDone(()=>{pe.destroy();let ae=this.players.indexOf(pe);this.players.splice(ae,1)}),pe.play()}),qe}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,r){let a=[];if(e){let s=this.playersByQueriedElement.get(i);s&&(a=s)}else{let s=this.playersByElement.get(i);if(s){let l=!r||r==Sf;s.forEach(u=>{u.queued||!l&&u.triggerName!=o||a.push(u)})}}return(n||o)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){let o=e.triggerName,r=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let u=l.element,h=u!==r,g=ar(n,u,[]);this._getPreviousPlayers(u,h,a,s,e.toState).forEach(x=>{let S=x.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),x.destroy(),g.push(x)})}oc(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,l=e.element,u=[],h=new Set,g=new Set,y=e.timelines.map(S=>{let P=S.element;h.add(P);let j=P[$a];if(j&&j.removedBeforeQueried)return new ol(S.duration,S.delay);let F=P!==l,G=uoe((n.get(P)||roe).map(Le=>Le.getRealPlayer())).filter(Le=>{let et=Le;return et.element?et.element===P:!1}),ve=r.get(P),oe=a.get(P),Ne=M1(this._normalizer,S.keyframes,ve,oe),Ce=this._buildPlayer(S,Ne,G);if(S.subTimeline&&o&&g.add(P),F){let Le=new Tf(i,s,P);Le.setRealPlayer(Ce),u.push(Le)}return Ce});u.forEach(S=>{ar(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>soe(this.playersByQueriedElement,S.element,S))}),h.forEach(S=>sa(S,O1));let x=rl(y);return x.onDestroy(()=>{h.forEach(S=>zm(S,O1)),Wa(l,e.toStyles)}),g.forEach(S=>{ar(o,S,[]).push(x)}),x}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ol(i.duration,i.delay)}},Tf=class{namespaceId;triggerName;element;_player=new ol;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>xy(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){ar(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function soe(t,i,e){let n=t.get(i);if(n){if(n.length){let o=n.indexOf(e);n.splice(o,1)}n.length==0&&t.delete(i)}return n}function loe(t){return t??null}function Ry(t){return t&&t.nodeType===1}function coe(t){return t=="start"||t=="done"}function $B(t,i){let e=t.style.display;return t.style.display=i??"none",e}function GB(t,i,e,n,o){let r=[];e.forEach(l=>r.push($B(l)));let a=[];n.forEach((l,u)=>{let h=new Map;l.forEach(g=>{let y=i.computeStyle(u,g,o);h.set(g,y),(!y||y.length==0)&&(u[$a]=aoe,a.push(u))}),t.set(u,h)});let s=0;return e.forEach(l=>$B(l,r[s++])),a}function qB(t,i){let e=new Map;if(t.forEach(s=>e.set(s,[])),i.length==0)return e;let n=1,o=new Set(i),r=new Map;function a(s){if(!s)return n;let l=r.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:o.has(u)?l=n:l=a(u),r.set(s,l),l}return i.forEach(s=>{let l=a(s);l!==n&&e.get(l).push(s)}),e}function sa(t,i){t.classList?.add(i)}function zm(t,i){t.classList?.remove(i)}function doe(t,i,e){rl(e).onDone(()=>t.processLeaveNode(i))}function uoe(t){let i=[];return ej(t,i),i}function ej(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var Um=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Q1(i.body,e,n),this._timelineEngine=new q1(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(i,e,n,o,r){let a=i+"-"+o,s=this._triggerCache[a];if(!s){let l=[],u=[],h=KB(this._driver,r,l,u);if(l.length)throw xB(o,l);s=Xie(o,h,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if(n.charAt(0)=="@"){let[r,a]=T1(n),s=o;this._timelineEngine.command(r,e,a,s)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,r){if(n.charAt(0)=="@"){let[a,s]=T1(n);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(i,e,n,o,r)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function poe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=B1(i[0]),i.length>1&&(n=B1(i[i.length-1]))):i instanceof Map&&(e=B1(i)),e||n?new hoe(t,e,n):null}var hoe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Wa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wa(this._element,this._initialStyles),this._endStyles&&(Wa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(oc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(oc(this._element,this._endStyles),this._endStyles=null),Wa(this._element,this._initialStyles),this._state=3)}}return t})();function B1(t){let i=null;return t.forEach((e,n)=>{foe(n)&&(i=i||new Map,i.set(n,e))}),i}function foe(t){return t==="display"||t==="position"}var By=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let i=this.keyframes,e=this._triggerWebAnimation(this.element,i,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=i.length?i[i.length-1]:new Map;let n=()=>this._onFinish();return e.addEventListener("finish",n),this.onDestroy(()=>{e.removeEventListener("finish",n)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){let o=this._convertKeyframesToObject(e);try{return i.animate(o,n)}catch(r){return null}}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){let i=this._buildPlayer();i&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),i.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=i*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&i.set(o,this._finished?n:Iy(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},jy=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return I1(i,e)}getParentElement(i){return Sy(i)}query(i,e,n){return k1(i,e,n)}computeStyle(i,e,n){return Iy(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",l={duration:n,delay:o,fill:s};r&&(l.easing=r);let u=new Map,h=a.filter(x=>x instanceof By);LB(n,o)&&h.forEach(x=>{x.currentSnapshot.forEach((S,P)=>u.set(P,S))});let g=NB(e).map(x=>new Map(x));g=VB(i,g,u);let y=poe(i,g);return new By(i,g,l,y)}};var Oy="@",tj="@.disabled",zy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n,o){if(o){this.delegate.removeChild(i,e,n,o);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Oy&&e==tj?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n,o){return this.delegate.listen(i,e,n,o)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},K1=class extends zy{factory;constructor(i,e,n,o,r){super(e,n,o,r),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Oy?e.charAt(1)=="."&&e==tj?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n,o){if(e.charAt(0)==Oy){let r=goe(i),a=e.slice(1),s="";return a.charAt(0)!=Oy&&([a,s]=_oe(a)),this.engine.listen(this.namespaceId,r,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,n,l)})}return this.delegate.listen(i,e,n,o)}};function goe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _oe(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var Uy=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,e.onRemovalComplete=(o,r)=>{r?.removeChild(null,o)}}createRenderer(i,e){let o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(o);if(!h){let g=()=>u.delete(o);h=new zy("",o,this.engine,g),u.set(o,h)}return h}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(r,a,i,u.name,u)};return e.data.animation.forEach(s),new K1(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&ie(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),o.push([e,n])}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()}componentReplaced(i){this.engine.flush(),this.delegate.componentReplaced?.(i)}};var boe=(()=>{class t extends Um{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(xe(ke),xe(Id),xe(kd))};static \u0275prov=$({token:t,factory:t.\u0275fac})}return t})();function yoe(){return new Py}function Coe(){return new Uy(p(rh),p(Um),p(be))}var ij=[{provide:kd,useFactory:yoe},{provide:Um,useClass:boe},{provide:bi,useFactory:Coe}],woe=[{provide:Id,useClass:Z1},{provide:Pl,useValue:"NoopAnimations"},...ij],nj=[{provide:Id,useFactory:()=>new jy},{provide:Pl,useFactory:()=>"BrowserAnimations"},...ij],oj=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?woe:nj}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:nj,imports:[sh]})}return t})();var xoe=["button"],Doe=["*"];function Soe(t,i){if(t&1&&(c(0,"div",2),O(1,"mat-pseudo-checkbox",6),d()),t&2){let e=_();m(),b("disabled",e.disabled)}}var Eoe=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),Moe=new L("MatButtonToggleGroup");var J1=class{source;value;constructor(i,e){this.source=i,this.value=e}};var Toe=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_focusMonitor=p(Oi);_idGenerator=p(zt);_animationDisabled=Bt();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new V;constructor(){p(an).load(Mi);let e=p(Moe,{optional:!0}),n=p(new Wi("tabindex"),{optional:!0})||"",o=p(Eoe,{optional:!0});this._tabIndex=Re(parseInt(n)||0),this.buttonToggleGroup=e,this._appearance=o&&o.appearance?o.appearance:"standard",this._disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,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 J1(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&at(xoe,5),n&2){let r;X(r=J())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&w("focus",function(){return o.focus()}),n&2&&(me("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),le("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",K],appearance:"appearance",checked:[2,"checked","checked",K],disabled:[2,"disabled","disabled",K],disabledInteractive:[2,"disabledInteractive","disabledInteractive",K]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Doe,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1&&(vt(),c(0,"button",1,0),w("click",function(){return o._onButtonClick()}),A(2,Soe,2,1,"div",2),c(3,"span",3),Ie(4),d()(),O(5,"span",4)(6,"span",5)),n&2){let r=Pt(1);b("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),me("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),m(2),R(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),m(4),b("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Sr,g0],styles:[`.mat-button-toggle-standalone, .mat-button-toggle-group { position: relative; display: inline-flex; @@ -5686,7 +5686,7 @@ port=5900 border-top-right-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); border-top-left-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large)); } -`],encapsulation:2,changeDetection:0})}return t})(),oj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,Moe,pt]})}return t})();var Ioe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],koe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Aoe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Roe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Ooe=`.mdc-evolution-chip, +`],encapsulation:2,changeDetection:0})}return t})(),rj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[_s,Toe,pt]})}return t})();var koe=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Aoe=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Roe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Ooe(t,i){t&1&&(c(0,"span",6),Ie(1,2),d())}var Poe=`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6234,7 +6234,7 @@ port=5900 img.mdc-evolution-chip__icon { min-height: 0; } -`,Poe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Noe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Foe(t,i){t&1&&O(0,"span",0)}function Loe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Voe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function Boe(t,i){t&1&&Ie(0,2)}function joe(t,i){t&1&&O(0,"span",7)}function zoe(t,i){if(t&1&&A(0,Boe,1,0)(1,joe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Uoe(t,i){t&1&&Ie(0,3)}function Hoe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var lj=["*"],Woe=`.mat-mdc-chip-set { +`,Noe=[[["","matChipEdit",""]],[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Foe=["[matChipEdit]","mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Loe(t,i){t&1&&O(0,"span",0)}function Voe(t,i){t&1&&(c(0,"span",1),Ie(1),d())}function Boe(t,i){t&1&&(c(0,"span",3),Ie(1,1),d())}function joe(t,i){t&1&&Ie(0,2)}function zoe(t,i){t&1&&O(0,"span",7)}function Uoe(t,i){if(t&1&&A(0,joe,1,0)(1,zoe,1,0,"span",7),t&2){let e=_();R(e.contentEditInput?0:1)}}function Hoe(t,i){t&1&&Ie(0,3)}function Woe(t,i){t&1&&(c(0,"span",6),Ie(1,4),d())}var cj=["*"],$oe=`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6302,7 +6302,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`,cj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),rj=new L("MatChipAvatar"),aj=new L("MatChipTrailingIcon"),sj=new L("MatChipEdit"),eT=new L("MatChipRemove"),iT=new L("MatChip"),dj=(()=>{class t{_elementRef=p(se);_parentChip=p(iT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),oT=(()=>{class t extends dj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&x("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var uj=(()=>{class t extends oT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Ke([{provide:eT,useExisting:t}]),We]})}return t})(),tT=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_tagName=p(SO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(bb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rj,5)(r,sj,5)(r,aj,5)(r,eT,5)(r,rj,5)(r,aj,5)(r,sj,5)(r,eT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(oT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ke([{provide:iT,useExisting:t}])],ngContentSelectors:koe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(Ioe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,Aoe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Roe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[dj],styles:[`.mdc-evolution-chip, +`,dj=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),aj=new L("MatChipAvatar"),sj=new L("MatChipTrailingIcon"),lj=new L("MatChipEdit"),tT=new L("MatChipRemove"),oT=new L("MatChip"),uj=(()=>{class t{_elementRef=p(se);_parentChip=p(oT);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(e){this._disabled=e}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}constructor(){p(an).load(Mi),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(n,o){n&2&&(me("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),le("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--secondary",!o._isPrimary)("mdc-evolution-chip__action--trailing",!o._isPrimary&&!o._isLeading))},inputs:{disabled:[2,"disabled","disabled",K],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:ti(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})(),rT=(()=>{class t extends uj{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(e){!this.disabled&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(n,o){n&1&&w("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(me("tabindex",o._getTabindex()),le("mdc-evolution-chip__action--presentational",!1))},features:[We]})}return t})();var mj=(()=>{class t extends rT{_isPrimary=!1;_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Kt(t)))(o||t)}})();static \u0275dir=Q({type:t,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&me("aria-hidden",null)},features:[Ke([{provide:tT,useExisting:t}]),We]})}return t})(),nT=(()=>{class t{_changeDetectorRef=p(Ze);_elementRef=p(se);_tagName=p(EO);_ngZone=p(be);_focusMonitor=p(Oi);_globalRippleOptions=p(dm,{optional:!0});_document=p(ke);_onFocus=new Z;_onBlur=new Z;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=Bt();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(zt).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(e){this._disabled=e}_disabled=!1;removed=new V;destroyed=new V;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p(yb);_injector=p(Te);constructor(){let e=p(an);e.load(Mi),e.load(qr),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._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=rn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.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._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===e||o.contains(e)})}_getActions(){let e=[];return this.editIcon&&e.push(this.editIcon),this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),e}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(e){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let n=e!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aj,5)(r,lj,5)(r,sj,5)(r,tT,5)(r,aj,5)(r,sj,5)(r,lj,5)(r,tT,5),n&2){let a;X(a=J())&&(o.leadingIcon=a.first),X(a=J())&&(o.editIcon=a.first),X(a=J())&&(o.trailingIcon=a.first),X(a=J())&&(o.removeIcon=a.first),X(a=J())&&(o._allLeadingIcons=a),X(a=J())&&(o._allTrailingIcons=a),X(a=J())&&(o._allEditIcons=a),X(a=J())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&at(rT,5),n&2){let r;X(r=J())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&w("keydown",function(a){return o._handleKeydown(a)}),n&2&&(On("id",o.id),me("role",o.role)("aria-label",o.ariaLabel),Tn("mat-"+(o.color||"primary")),le("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",K],highlighted:[2,"highlighted","highlighted",K],disableRipple:[2,"disableRipple","disableRipple",K],disabled:[2,"disabled","disabled",K]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ke([{provide:oT,useExisting:t}])],ngContentSelectors:Aoe,decls:8,vars:2,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(vt(koe),O(0,"span",0),c(1,"span",1)(2,"span",2),A(3,Roe,2,0,"span",3),c(4,"span",4),Ie(5),O(6,"span",5),d()()(),A(7,Ooe,2,0,"span",6)),n&2&&(m(3),R(o.leadingIcon?3:-1),m(4),R(o._hasTrailingIcon()?7:-1))},dependencies:[uj],styles:[`.mdc-evolution-chip, .mdc-evolution-chip__cell, .mdc-evolution-chip__action { display: inline-flex; @@ -6850,7 +6850,7 @@ input.mat-mdc-chip-input { img.mdc-evolution-chip__icon { min-height: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var J1=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),rT=(()=>{class t extends tT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Je(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,J1,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(J1,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&x("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ke([{provide:tT,useExisting:t},{provide:iT,useExisting:t}]),We],ngContentSelectors:Noe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Poe),A(0,Foe,1,0,"span",0),A(1,Loe,2,0,"span",1),c(2,"span",2),A(3,Voe,2,0,"span",3),c(4,"span",4),A(5,zoe,2,1)(6,Uoe,1,0),O(7,"span",5),d()(),A(8,Hoe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[oT,J1],styles:[Ooe],encapsulation:2,changeDetection:0})}return t})(),$oe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_dir=p(xn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Ys(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Je(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Je(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Je(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Je(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,tT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { +`],encapsulation:2,changeDetection:0})}return t})();var eT=(()=>{class t{_elementRef=p(se);_document=p(ke);constructor(){}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),aT=(()=>{class t extends nT{basicChipAttrName="mat-basic-chip-row";_renderer=p(Zt);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new V;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Je(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mousedown",()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(e){e.keyCode===13&&!this.disabled?this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e):this._isEditing?e.stopPropagation():super._handleKeydown(e)}_handleClick(e){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(e.preventDefault(),e.stopPropagation(),this._startEditing(e))}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(e){if(!this.primaryAction||this.removeIcon&&e&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,nn(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>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}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,r){if(n&1&&Mn(r,eT,5),n&2){let a;X(a=J())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&at(eT,5),n&2){let r;X(r=J())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:29,hostBindings:function(n,o){n&1&&w("focus",function(){return o._handleFocus()})("click",function(a){return o._hasInteractiveActions()?o._handleClick(a):null})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(On("id",o.id),me("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),le("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-leading-action",o._hasLeadingActionIcon())("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"},features:[Ke([{provide:nT,useExisting:t},{provide:oT,useExisting:t}]),We],ngContentSelectors:Foe,decls:9,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--leading"],["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-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],["matChipEditInput",""]],template:function(n,o){n&1&&(vt(Noe),A(0,Loe,1,0,"span",0),A(1,Voe,2,0,"span",1),c(2,"span",2),A(3,Boe,2,0,"span",3),c(4,"span",4),A(5,Uoe,2,1)(6,Hoe,1,0),O(7,"span",5),d()(),A(8,Woe,2,0,"span",6)),n&2&&(R(o._isEditing?-1:0),m(),R(o._hasLeadingActionIcon()?1:-1),m(),b("disabled",o.disabled),me("aria-description",o.ariaDescription)("aria-label",o.ariaLabel),m(),R(o.leadingIcon?3:-1),m(2),R(o._isEditing?5:6),m(3),R(o._hasTrailingIcon()?8:-1))},dependencies:[rT,eT],styles:[Poe],encapsulation:2,changeDetection:0})}return t})(),Goe=(()=>{class t{_elementRef=p(se);_changeDetectorRef=p(Ze);_dir=p(wn,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Z;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(e){this._explicitRole=e}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new gr;constructor(){}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(e=>e._hasFocus())}_syncChipsState(){this._chips?.forEach(e=>{e._chipListDisabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis._elementRef.nativeElement.tabIndex=e))}_getChipStream(e){return this._chips.changes.pipe(cn(null),yn(()=>rn(...this._chips.map(e))))}_originatesFromChip(e){let n=e.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(cn(this._chips)).subscribe(e=>{let n=[];e.forEach(o=>o._getActions().forEach(r=>n.push(r))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new Ys(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Je(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Je(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(cn(null),Je(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Je(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip),r=e.chip._hasFocus(),a=e.chip._hadFocusOnRemove&&this._keyManager.activeItem&&e.chip._getActions().includes(this._keyManager.activeItem),s=r||a;this._isValidIndex(o)&&s&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[e];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,nT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&w("keydown",function(a){return o._handleKeydown(a)}),n&2&&me("role",o.role)},inputs:{disabled:[2,"disabled","disabled",K],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ti(e)]},ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[`.mat-mdc-chip-set { display: flex; } .mat-mdc-chip-set:focus { @@ -6918,7 +6918,7 @@ input.mat-mdc-chip-input { margin-left: 0; margin-right: 0; } -`],encapsulation:2,changeDetection:0})}return t})();var nT=class{source;value;constructor(i,e){this.source=i,this.value=e}},mj=(()=>{class t extends $oe{ngControl=p(ir,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(Jr,{optional:!0}),n=p(Ql,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Zl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Je(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Je(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new nT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,rT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&x("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ke([{provide:Js,useExisting:t}]),We],ngContentSelectors:lj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[Woe],encapsulation:2,changeDetection:0})}return t})(),pj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(cj),n=p(ia,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&x("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var hj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:cj,useValue:{separatorKeyCodes:[13]}}],imports:[_s,pt]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[fj,wr,pt]})}return t})();var qoe=["*",[["mat-toolbar-row"]]],Yoe=["*","mat-toolbar-row"],Qoe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),_j=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Qoe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Yoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(qoe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { +`],encapsulation:2,changeDetection:0})}return t})();var iT=class{source;value;constructor(i,e){this.source=i,this.value=e}},pj=(()=>{class t extends Goe{ngControl=p(ir,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_uid=p(zt).getId("mat-chip-grid-");_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=e,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}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(e){this._placeholder=e,this.stateChanges.next()}_placeholder="";get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(bs.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}change=new V;valueChange=new V;_chips=void 0;stateChanges=new Z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(ea,{optional:!0}),n=p(Kl,{optional:!0}),o=p(pd);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Xl(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Je(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),rn(this.chipFocusChanges,this._chips.changes).pipe(Je(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let e=this._elementRef.nativeElement.getAttribute("aria-describedby");return e?e.split(" "):[]}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?this._chipInput.setDescribedByIds(e):e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(e){let n=e.keyCode,o=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&un(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),o?this._keyManager.setActiveItem(o):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&o){let r=this._chipActions.filter(l=>l._isPrimary===o._isPrimary&&!this._skipPredicate(l)),a=r.indexOf(o),s=e.keyCode===38?-1:1;e.preventDefault(),a>-1&&this._isValidIndex(a+s)&&this._keyManager.setActiveItem(r[a+s])}else super._handleKeydown(e);this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let e=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=e,this.change.emit(new iT(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,aT,5),n&2){let a;X(a=J())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&w("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(me("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),le("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",K],placeholder:"placeholder",required:[2,"required","required",K],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ke([{provide:Js,useExisting:t}]),We],ngContentSelectors:cj,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(vt(),dn(0,"div",0),Ie(1),pn())},styles:[$oe],encapsulation:2,changeDetection:0})}return t})(),hj=(()=>{class t{_elementRef=p(se);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new V;placeholder="";id=p(zt).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(dj),n=p(ia,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,this.disabledInteractive=e.inputDisabledInteractive??!1,n&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(e){this.empty&&e.keyCode===8?(e.repeat||this._chipGrid._focusLastChip(),e.preventDefault()):this._emitChipEnd(e)}_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(e){(!e||this._isSeparatorKey(e)&&!e.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let o,r;typeof n=="number"?(o=n,r=null):(o=n.keyCode,r=n.modifiers);let a=r?.length?un(e,...r):!un(e);if(o===e.keyCode&&a)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:8,hostBindings:function(n,o){n&1&&w("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(On("id",o.id),me("disabled",o.disabled&&!o.disabledInteractive?"":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)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("readonly",o._getReadonlyAttribute())("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",K],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",K],readonly:[2,"readonly","readonly",K],disabledInteractive:[2,"matChipInputDisabledInteractive","disabledInteractive",K]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Ct]})}return t})();var fj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({providers:[pd,{provide:dj,useValue:{separatorKeyCodes:[13]}}],imports:[_s,pt]})}return t})();var gj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({})}return t})();var _j=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[gj,xr,pt]})}return t})();var Yoe=["*",[["mat-toolbar-row"]]],Qoe=["*","mat-toolbar-row"],Koe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),vj=(()=>{class t{_elementRef=p(se);_platform=p(Ft);_document=p(ke);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=T({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Mn(r,Koe,5),n&2){let a;X(a=J())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tn(o.color?"mat-"+o.color:""),le("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Qoe,decls:2,vars:0,template:function(n,o){n&1&&(vt(Yoe),Ie(0),Ie(1,1))},styles:[`.mat-toolbar { background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface)); color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface)); } @@ -6983,5 +6983,5 @@ input.mat-mdc-chip-input { min-height: var(--mat-toolbar-mobile-height, 56px); } } -`],encapsulation:2,changeDetection:0})}return t})();var vj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var bj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:F0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ef,useValue:udsData.language}],imports:[eh,l2,jb,vj,vs,t3,B0,gj,fF,yd,r3,V0,W3,w2,a3,DV,PV,k2,FV,f2,hj,oj,D3,g3,C2,LV,XV,$V]})}}return t})();function Zoe(t,i){if(t&1){let e=W();c(0,"button",7),x("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Xoe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function tre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function nre(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function ire(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function ore(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function rre(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,ire,3,1,"a",22),A(4,ore,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function are(t,i){t&1&&A(0,rre,7,3,"div",20),t&2&&R(i.title?0:-1)}function sre(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var yj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Xl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Zoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),x("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),x("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Xoe,2,0,"uds-translate")(18,Joe,2,0,"uds-translate"),d(),c(19,"button",7),x("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),x("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,ere,2,0,"uds-translate")(30,tre,2,0,"uds-translate"),d(),A(31,nre,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,are,1,1),$t(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,sre,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Nl(o.api.config.urls.change_language),it),m(),b("name",Nl(o.api.csrfField))("value",Nl(o.api.csrfToken)),m(),b("value",Nl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,Bb,Nb,Jr,_j,Fe,yi,nc,xd,X0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var Cj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function dre(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function ure(t,i){if(t&1){let e=W();c(0,"a",3),x("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof er)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(tr))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),x("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),x("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),x("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),x("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,dre,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,ure,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),x("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),x("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var wj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&x("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),x("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function hre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Dj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,hre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var gre=["backgroundThumbnail"],Sj=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(gre,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&x("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Ej=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&x("keydown",function(a){return o.handleKeyboardEvent(a)},Yw)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),x("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[xh,yj,Cj,xj,wj,Dj,Sj],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Mj=(()=>{class t extends uf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Tj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function vre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,vre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),x("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Ht,$e,Qi,md,Xe,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var kj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Ht,Er,$e,Qi,Xe,ze,st,Yt],encapsulation:2})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),x("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Ht,$e,Qi,Xe,yi,ze,st,Ar,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Rj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],encapsulation:2})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Pj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(5,bre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function yre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(7,yre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();function Cre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),x("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Fj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,Cre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),x("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),x("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),x("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),x("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),x("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` -`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Ht,$e,Xe,Fe,yi,xt,Dt,wt,ze,Ar,Yt,Ee],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}"]})}}return t})();var Lj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Fj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),x("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Vj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){wF(this.field.value)?this.field.value=_b(this.field.gui.default):this.field.value=_b(this.field.value)}getValue(){return _b(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),x("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Qi,Xe,il],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function xre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function wre(t,i){if(t&1&&(c(0,"div"),A(1,xre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function Dre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var Bj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),x("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,wre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),x("changed",function(a){return o.filter=a}),d(),fe(8,Dre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,L0,Mt,pi],encapsulation:2})}}return t})();var jj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=ql("%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=ql("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ql("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Ht,$e,Xe,ze,st,Ar,Yt,by,Lm,bf],encapsulation:2})}}return t})();function Sre(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),x("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),x("change",function(){return o.changed.emit(o)}),fe(5,Sre,4,2,"mat-chip-row",3,De),c(7,"input",4),x("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,mj,pj,uj,rT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Uj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Ej]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:uf,useClass:Mj},hS(fS())],imports:[sh,oB,ij,bj]})}}return t})();TD(Ub,[Yo,Tj,kj,Aj,Rj,Oj,Pj,Nj,Lj,Vj,Bj,jj,zj,Ij],[]);$b.production&&void 0;aS().bootstrapModule(Uj,{applicationProviders:[TO()]}).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();var bj=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[pt]})}return t})();var yj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=de({providers:[{provide:L0,useValue:{floatLabel:"always",appearance:"outline"}},{provide:tf,useValue:udsData.language}],imports:[eh,c2,c0,bj,vs,n3,j0,_j,gF,yd,a3,B0,$3,D2,s3,SV,NV,A2,LV,g2,fj,rj,S3,_3,w2,VV,JV,GV]})}}return t})();function Xoe(t,i){if(t&1){let e=W();c(0,"button",7),w("click",function(){let o=I(e).$implicit,r=_();return k(r.changeLang(o))}),f(1),d()}if(t&2){let e=i.$implicit;m(),_e(e.name)}}function Joe(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function ere(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function tre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Light theme"),d())}function nre(t,i){t&1&&(c(0,"uds-translate"),f(1,"Dark theme"),d())}function ire(t,i){if(t&1&&(c(0,"button",11)(1,"i",8),f(2,"face"),d(),c(3,"span"),f(4),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(4),_e(e.api.user.user)}}function ore(t,i){if(t&1&&(c(0,"a",22)(1,"i",8),f(2,"arrow_back"),d()()),t&2){let e=_(2);b("routerLink",e.parentRoute)}}function rre(t,i){if(t&1&&O(0,"img",23),t&2){let e=_(2),n=_();b("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),it)}}function are(t,i){if(t&1&&(c(0,"div",20)(1,"span",21),f(2,"/"),d(),A(3,ore,3,1,"a",22),A(4,rre,1,1,"img",23),c(5,"span",24),f(6),d()()),t&2){let e=_();m(3),R(e.parentRoute?3:-1),m(),R(e.icon?4:-1),m(2),_e(e.title)}}function sre(t,i){t&1&&A(0,are,7,3,"div",20),t&2&&R(i.title?0:-1)}function lre(t,i){if(t&1&&(c(0,"button",17),f(1),c(2,"i",8),f(3,"arrow_drop_down"),d()()),t&2){let e=_(),n=Pt(8);b("matMenuTriggerFor",n),m(),H("",e.api.user.user," ")}}var Cj=(()=>{class t{constructor(e,n){this.api=e,this.headerService=n,this.lang={id:"",name:""},this.isNavbarCollapsed=!0,this.headerData$=this.headerService.headerData$;let o=e.config.language;this.langs=[];for(let r of e.config.available_languages)r.id===o?this.lang=r:this.langs.push(r)}ngOnInit(){}changeLang(e){this.lang=e;let n=document.getElementById("id_language");return n&&n.setAttribute("value",e.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}toggleTheme(){this.api.toggleTheme()}toggleSidebar(){this.api.toggleSidebar()}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(Jl))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:23,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",""],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["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"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"navbar-context"],[1,"separator"],[1,"back-button",3,"routerLink"],[1,"context-icon",3,"src"],[1,"context-title"]],template:function(n,o){if(n&1&&(c(0,"form",3),O(1,"input",4)(2,"input",5),d(),c(3,"mat-menu",null,0),fe(5,Xoe,2,1,"button",6,De),d(),c(7,"mat-menu",null,1)(9,"button",7),w("click",function(){return o.user()}),c(10,"i",8),f(11,"home"),d(),c(12,"uds-translate"),f(13,"User mode"),d()(),c(14,"button",7),w("click",function(){return o.toggleTheme()}),c(15,"i",8),f(16),d(),A(17,Joe,2,0,"uds-translate")(18,ere,2,0,"uds-translate"),d(),c(19,"button",7),w("click",function(){return o.logout()}),c(20,"i",9),f(21,"exit_to_app"),d(),c(22,"uds-translate"),f(23,"Logout"),d()()(),c(24,"mat-menu",10,2)(26,"button",7),w("click",function(){return o.toggleTheme()}),c(27,"i",8),f(28),d(),A(29,tre,2,0,"uds-translate")(30,nre,2,0,"uds-translate"),d(),A(31,ire,5,2,"button",11),c(32,"button",11)(33,"i",8),f(34,"language"),d(),c(35,"span"),f(36),d()()(),c(37,"mat-toolbar",12)(38,"button",13),O(39,"img",14),d(),A(40,sre,1,1),$t(41,"async"),O(42,"span",15),c(43,"div",16)(44,"button",17),f(45),c(46,"i",8),f(47,"arrow_drop_down"),d()(),A(48,lre,4,2,"button",17),d(),c(49,"div",18)(50,"button",19)(51,"i",8),f(52,"menu"),d()()()()),n&2){let r,a=Pt(4),s=Pt(25);b("action",Fl(o.api.config.urls.change_language),it),m(),b("name",Fl(o.api.csrfField))("value",Fl(o.api.csrfToken)),m(),b("value",Fl(o.lang.id)),m(3),ge(o.langs),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?17:18),m(11),_e(o.api.isDarkTheme?"wb_sunny":"brightness_2"),m(),R(o.api.isDarkTheme?29:30),m(2),R(o.api.user.isLogged?31:-1),m(),b("matMenuTriggerFor",a),m(4),_e(o.lang.name),m(3),b("src",o.api.staticURL("admin/img/udsicon.png"),it),m(),R((r=Xt(41,21,o.headerData$))?40:-1,r),m(4),b("matMenuTriggerFor",a),m(),H("",o.lang.name," "),m(3),R(o.api.user.isLogged?48:-1),m(2),b("matMenuTriggerFor",s)}},dependencies:[mi,l0,o0,ea,vj,Fe,yi,ic,wd,J0,Ee,Jp],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.uds-nav[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{height:40px;width:auto}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:400;color:var(--text-primary)!important;border-radius:12px!important}.mat-mdc-button[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important}.navbar-context[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:10px;gap:12px;height:40px}.navbar-context[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]{opacity:.3;font-size:1.5rem;font-weight:300;margin-right:-4px}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--text-primary);background:#ffffff1a;transition:all .2s ease}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]:hover{background:#fff3;transform:scale(1.1)}.navbar-context[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px;margin:0}.navbar-context[_ngcontent-%COMP%] .context-icon[_ngcontent-%COMP%]{height:24px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;color:var(--text-primary);white-space:nowrap;letter-spacing:.3px}@media screen and (max-width:600px){.navbar-context[_ngcontent-%COMP%] .context-title[_ngcontent-%COMP%]{display:none}}@media screen and (max-width:744px){.expanded[_ngcontent-%COMP%]{display:none}.shrinked[_ngcontent-%COMP%]{display:block}}@media screen and (min-width:745px){.expanded[_ngcontent-%COMP%]{display:flex;gap:8px}.shrinked[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var wj=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(c(0,"div"),f(1,"\xA9 2012-2025 "),c(2,"a",0),f(3,"Virtual Cable S.L.U."),d()())},styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:var(--text-primary)}"]})}}return t})();function ure(t,i){if(t&1&&(c(0,"a",16),O(1,"img",2),c(2,"uds-translate"),f(3,"Groups"),d()()),t&2){let e=_();m(),b("src",e.icon("groups"),it)}}function mre(t,i){if(t&1){let e=W();c(0,"a",3),w("click",function(){I(e);let o=_();return k(o.toggleConfig())}),O(1,"img",2),c(2,"span")(3,"uds-translate"),f(4,"Tools"),d(),c(5,"i",4),f(6,"arrow_drop_down"),d()()()}if(t&2){let e=_();m(),b("src",e.icon("tools"),it)}}var xj=(()=>{class t{constructor(e,n,o){this.api=e,this.rest=n,this.router=o,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){this.expandForUrl(this.router.url),this.router.events.pipe(At(e=>e instanceof er)).subscribe(e=>this.expandForUrl(e.urlAfterRedirects))}expandForUrl(e){this.open(this.sectionForUrl(e)??"")}sectionForUrl(e){if(e.startsWith("/services"))return"services";if(e.startsWith("/authenticators")||e.startsWith("/mfas"))return"auths";if(e.startsWith("/connectivity"))return"connectivity";if(e.startsWith("/pools"))return"pools";if(e.startsWith("/tools"))return"config"}open(e){this.connectivityShown=e==="connectivity",this.poolsShown=e==="pools",this.configShown=e==="config",this.tokensShown=e==="tokens",this.authsShown=e==="auths",this.servicesShown=e==="services"}icon(e){return this.api.staticURL("admin/img/icons/"+e+".png")}toggle(e){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]===e)}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})})}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(tr))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-sidebar"]],standalone:!1,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",1,"sidebar-link"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","",1,"sidebar-link"],["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"]],template:function(n,o){n&1&&(c(0,"div",0)(1,"a",1),O(2,"img",2),c(3,"uds-translate"),f(4,"Summary"),d()(),c(5,"a",3),w("click",function(){return o.toggleServices()}),O(6,"img",2),c(7,"span")(8,"uds-translate"),f(9,"Services"),d(),c(10,"i",4),f(11,"arrow_drop_down"),d()()(),c(12,"div",5)(13,"a",6),O(14,"img",2),c(15,"uds-translate"),f(16,"Providers"),d()(),c(17,"a",7),O(18,"img",2),c(19,"uds-translate"),f(20,"Servers"),d()()(),c(21,"a",3),w("click",function(){return o.toggleAuths()}),O(22,"img",2),c(23,"span")(24,"uds-translate"),f(25,"Authentication"),d(),c(26,"i",4),f(27,"arrow_drop_down"),d()()(),c(28,"div",5)(29,"a",8),O(30,"img",2),c(31,"uds-translate"),f(32,"Authenticators"),d()(),c(33,"a",9),O(34,"img",2),c(35,"uds-translate"),f(36,"Multi Factor"),d()()(),c(37,"a",10),O(38,"img",2),c(39,"uds-translate"),f(40,"Os Managers"),d()(),c(41,"a",3),w("click",function(){return o.toggleConnectivity()}),O(42,"img",2),c(43,"span")(44,"uds-translate"),f(45,"Connectivity"),d(),c(46,"i",4),f(47,"arrow_drop_down"),d()()(),c(48,"div",5)(49,"a",11),O(50,"img",2),c(51,"uds-translate"),f(52,"Transports"),d()(),c(53,"a",12),O(54,"img",2),c(55,"uds-translate"),f(56,"Networks"),d()(),c(57,"a",13),O(58,"img",2),c(59,"uds-translate"),f(60,"Tunnels"),d()()(),c(61,"a",3),w("click",function(){return o.togglePools()}),O(62,"img",2),c(63,"span")(64,"uds-translate"),f(65,"Pools"),d(),c(66,"i",4),f(67,"arrow_drop_down"),d()()(),c(68,"div",5)(69,"a",14),O(70,"img",2),c(71,"uds-translate"),f(72,"Service pools"),d()(),c(73,"a",15),O(74,"img",2),c(75,"uds-translate"),f(76,"Meta pools"),d()(),A(77,ure,4,1,"a",16),c(78,"a",17),O(79,"img",2),c(80,"uds-translate"),f(81,"Calendars"),d()(),c(82,"a",18),O(83,"img",2),c(84,"uds-translate"),f(85,"Accounting"),d()()(),A(86,mre,7,1,"a",19),c(87,"div",5)(88,"a",20),O(89,"img",2),c(90,"uds-translate"),f(91,"Gallery"),d()(),c(92,"a",21),O(93,"img",2),c(94,"uds-translate"),f(95,"Reports"),d()(),c(96,"a",22),O(97,"img",2),c(98,"uds-translate"),f(99,"Notifiers"),d()(),c(100,"a",3),w("click",function(){return o.tokensShown=!o.tokensShown}),O(101,"img",2),c(102,"span")(103,"uds-translate"),f(104,"Tokens"),d(),c(105,"i",4),f(106,"arrow_drop_down"),d()()(),c(107,"div",23)(108,"a",24),O(109,"img",2),c(110,"uds-translate"),f(111,"Actor"),d()(),c(112,"a",25),O(113,"img",2),c(114,"uds-translate"),f(115,"Servers"),d()()(),c(116,"a",26),O(117,"img",2),c(118,"uds-translate"),f(119,"Configuration"),d()(),c(120,"a",3),w("click",function(){return o.flushCache()}),O(121,"img",2),c(122,"uds-translate"),f(123,"Flush Cache"),d()()()()),n&2&&(m(2),b("src",o.icon("dashboard-monitor"),it),m(4),b("src",o.icon("providers"),it),m(6),b("hidden",!o.servicesShown),m(2),b("src",o.icon("providers"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("authentication"),it),m(6),b("hidden",!o.authsShown),m(2),b("src",o.icon("authenticators"),it),m(4),b("src",o.icon("mfas"),it),m(4),b("src",o.icon("osmanagers"),it),m(4),b("src",o.icon("connectivity"),it),m(6),b("hidden",!o.connectivityShown),m(2),b("src",o.icon("transports"),it),m(4),b("src",o.icon("networks"),it),m(4),b("src",o.icon("tunnels"),it),m(4),b("src",o.icon("poolsmenu"),it),m(6),b("hidden",!o.poolsShown),m(2),b("src",o.icon("pools"),it),m(4),b("src",o.icon("metas"),it),m(3),R(o.api.user.isAdmin?77:-1),m(2),b("src",o.icon("calendars"),it),m(4),b("src",o.icon("accounts"),it),m(3),R(o.api.user.isAdmin?86:-1),m(),b("hidden",!o.configShown),m(2),b("src",o.icon("gallery"),it),m(4),b("src",o.icon("reports"),it),m(4),b("src",o.icon("notifiers"),it),m(4),b("src",o.icon("tokens"),it),m(6),b("hidden",!o.tokensShown),m(2),b("src",o.icon("actors"),it),m(4),b("src",o.icon("servers"),it),m(4),b("src",o.icon("configuration"),it),m(4),b("src",o.icon("flush-cache"),it))},dependencies:[mi,Fe,Ee],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, var(--mat-sys-background, transparent));color:var(--mat-app-text-color, var(--mat-sys-on-background, inherit))}.sidebar[_ngcontent-%COMP%]{height:100%!important;background:transparent!important;color:var(--text-primary)!important;padding:0!important;box-shadow:none!important;border:none!important;overflow-x:hidden;overflow-y:auto}.sidebar-link[_ngcontent-%COMP%]{display:flex!important;align-items:center!important;width:100%!important;color:var(--text-primary)!important;font-weight:400!important;font-size:.95rem!important;padding:12px 16px!important;border-radius:12px!important;margin-bottom:4px!important;text-decoration:none!important;transition:all .3s ease!important}.sidebar-link[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg)!important;transform:translate(4px)}.sidebar-link[_ngcontent-%COMP%] i.material-icons[_ngcontent-%COMP%]{margin-left:auto;font-size:18px;opacity:.6}.submenu[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%]{background:#00000008;border-radius:12px;margin:4px 8px 8px;padding:4px 0}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%], .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding-left:40px!important;font-size:.9rem!important;opacity:.85}.submenu[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover, .submenu2[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover{opacity:1}.icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px!important;transition:filter .3s ease}.dark-theme[_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu[_ngcontent-%COMP%], .dark-theme[_nghost-%COMP%] .submenu2[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .submenu2[_ngcontent-%COMP%]{background:#ffffff08}"]})}}return t})();var Dj=(()=>{class t{constructor(){this.visible=!1}static{this.SHOW_AFTER=300}onScroll(){this.visible=window.scrollY>t.SHOW_AFTER}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-scroll-top"]],hostBindings:function(n,o){n&1&&w("scroll",function(){return o.onScroll()},jp)},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","Back to top",1,"scroll-top",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"button",0),w("click",function(){return o.scrollToTop()}),c(1,"i",1),f(2,"keyboard_arrow_up"),d()()),n&2&&(le("visible",o.visible),me("tabindex",o.visible?0:-1))},styles:[".scroll-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:900;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--glass-border);border-radius:50%;background:var(--glass-bg);color:var(--text-primary);cursor:pointer;box-shadow:0 8px 32px 0 var(--glass-shadow);backdrop-filter:var(--glass-backdrop-filter);-webkit-backdrop-filter:var(--glass-backdrop-filter);opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .3s ease,transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s ease}.scroll-top.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top[_ngcontent-%COMP%]:hover{background:var(--glass-hover-bg);transform:translateY(-3px);box-shadow:0 12px 36px 0 var(--glass-shadow)}.scroll-top[_ngcontent-%COMP%]:active{transform:translateY(0)}.scroll-top[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:26px}"]})}}return t})();function fre(t,i){if(t&1&&O(0,"div",0),t&2){let e=_();b("innerHTML",e.messages,Bn)}}var Sj=(()=>{class t{constructor(e){this.api=e,this.messages="",this.visible=!1}ngOnInit(){let e=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(e).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&A(0,fre,1,1,"div",0),n&2&&R(o.visible?0:-1)},styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:var(--glass-bg)!important;backdrop-filter:var(--glass-backdrop-filter)!important;-webkit-backdrop-filter:var(--glass-backdrop-filter)!important;border:1px solid var(--glass-border)!important;border-radius:16px!important;box-shadow:0 8px 32px 0 var(--glass-shadow)!important;box-sizing:border-box;color:var(--text-primary)!important;margin:1rem 0!important;padding:15px 20px!important;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;font-weight:500;margin-bottom:.5rem}"]})}}return t})();var _re=["backgroundThumbnail"],Ej=(()=>{class t{constructor(e){this.api=e,this.waves=[],this.time=0}get isEnabled(){return this.api.config.allow_animated_backgrounds===!0}ngOnInit(){}ngAfterViewInit(){this.tryStart()}tryStart(e=0){this.isEnabled?(this.initCanvas(),this.animate()):e<10&&setTimeout(()=>this.tryStart(e+1),500)}onResize(){this.waves.length&&this.setCanvasSize()}initCanvas(){let e=this.canvasRef.nativeElement;this.ctx=e.getContext("2d"),this.setCanvasSize(),this.createWaves()}setCanvasSize(){let e=this.canvasRef.nativeElement;e.width=window.innerWidth,e.height=window.innerHeight}createWaves(){this.waves=[];let e=window.innerHeight,n=4;for(let o=0;o{this.ctx.beginPath();let s=this.ctx.createLinearGradient(0,0,this.ctx.canvas.width,0);s.addColorStop(0,`rgba(${n}, 0)`),s.addColorStop(.5,`rgba(${a%2===0?n:o}, ${r.opacity})`),s.addColorStop(1,`rgba(${n}, 0)`),this.ctx.strokeStyle=s,this.ctx.lineWidth=r.thickness,this.ctx.lineCap="round",this.ctx.lineJoin="round";let l=0,u=20;for(l=-u;l<=this.ctx.canvas.width+u;l+=u){let h=r.yBase+Math.sin(l*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(l*.003+this.time*r.speed*.5)*(r.amplitude*.4);l===-u?this.ctx.moveTo(l,h):this.ctx.lineTo(l,h)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&at(_re,5),n&2){let r;X(r=J())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&w("resize",function(){return o.onResize()},jp)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&O(0,"canvas",1,0)},styles:[".background-canvas[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:-1;pointer-events:none}"]})}}return t})();var Mj=(()=>{class t{constructor(e){this.api=e,this.title="UDS Admin"}handleKeyboardEvent(e){e.altKey&&e.ctrlKey&&e.key==="b"&&this.api.toggleTheme(),e.altKey&&e.ctrlKey&&e.key==="s"&&this.api.toggleSidebar()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&w("keydown",function(a){return o.handleKeyboardEvent(a)},Qx)},standalone:!1,decls:13,vars:7,consts:[[1,"sidebar-handle",3,"click"],[1,"material-icons"],[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(O(0,"uds-background")(1,"uds-navbar"),c(2,"div",0),w("click",function(){return o.api.toggleSidebar()}),c(3,"i",1),f(4),d()(),O(5,"uds-sidebar"),c(6,"div",2)(7,"div",3),O(8,"uds-notices")(9,"router-outlet"),d(),c(10,"div",4),O(11,"uds-footer"),d()(),O(12,"uds-scroll-top")),n&2&&(m(2),le("sidebar-hidden",!o.api.sidebarVisible),m(2),_e(o.api.sidebarVisible?"chevron_left":"chevron_right"),m(),le("sidebar-hidden",!o.api.sidebarVisible),m(),le("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[wh,Cj,wj,xj,Dj,Sj,Ej],styles:[".footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{padding:0 20px;overflow-x:hidden}"]})}}return t})();var Tj=(()=>{class t extends mf{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=$({token:t,factory:t.\u0275fac})}}return t})();var Ij=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function bre(t,i){if(t&1&&(c(0,"mat-option",1),f(1),d()),t&2){let e=i.$implicit;b("value",e),m(),H(" ",e," ")}}var kj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.values=[]}ngOnInit(){let e=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=e.map(n=>n.text)}_filter(){let e=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:8,consts:[["auto","matAutocomplete"],[3,"value"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"]],template:function(n,o){if(n&1){let r=W();c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-autocomplete",null,0),fe(5,bre,2,2,"mat-option",1,De),d(),c(7,"input",2),te("ngModelChange",function(s){return I(r),ne(o.field.value,s)||(o.field.value=s),k(s)}),w("change",function(){return o.changed.emit(o)}),d()()}if(n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(3),ge(o._filter()),m(2),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",r)("autocomplete","new-"+o.field.name)}},dependencies:[Ht,$e,Qi,md,Xe,ze,st,Yt,Mt,Om,Dd],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Aj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[Ht,Er,$e,Qi,Xe,ze,st,Yt],encapsulation:2})}}return t})();var Rj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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"),f(2),d(),c(3,"input",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("change",function(){return o.changed.emit(o)}),d(),c(4,"button",2),w("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),c(5,"i",3),f(6),d()()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),_e(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[Ht,$e,Qi,Xe,yi,ze,st,Ar,Yt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var Oj=(()=>{class t{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var Pj=(()=>{class t{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},standalone:!1,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"),f(2),d(),c(3,"textarea",1),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("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:[Ht,$e,Qi,md,Xe,ze,st,Yt],encapsulation:2})}}return t})();function yre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Nj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.ensureValidValue()}ngOnChanges(e){e.field&&this.ensureValidValue()}ngDoCheck(){let e=this.field.gui?.choices||[];(!this.field.value||!e.some(n=>n.id===this.field.value))&&e.length>0&&(this.field.value=e[0].id)}ensureValidValue(){let e=this.field.gui?.choices||[];this.field.value=this.field.value||this.field.gui?.default||"",e.length>0&&!e.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}filteredValues(){let e=this.field.gui?.choices||[];if(!this.filter)return e;let n=this.filter.toLowerCase();return e.filter(o=>o.text.toLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Ct],decls:7,vars:8,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("valueChange",function(){return o.changed.emit(o)}),c(4,"uds-cond-select-search",1),w("changed",function(a){return o.filter=a}),d(),fe(5,yre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),b("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,Mt,pi],encapsulation:2})}}return t})();function Cre(t,i){if(t&1&&(c(0,"mat-option",2),f(1),d()),t&2){let e=i.$implicit;b("value",e.id),m(),H(" ",e.text," ")}}var Fj=(()=>{class t{constructor(){this.field={},this.changed=new V,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 e=this.field.gui.choices||[];if(!this.filter||e.length===0)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let e=this.field.value||[],n="";e.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of e)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(r=>r.id===o)?.text||o;return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:9,vars:7,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("valueChange",function(){return o.changed.emit(o)}),c(4,"mat-select-trigger"),f(5),d(),c(6,"uds-cond-select-search",1),w("changed",function(a){return o.filter=a}),d(),fe(7,Cre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),ee("ngModel",o.field.value),b("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),H(" ",o.selectTriggerString()," "),m(),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,V0,Mt,pi],encapsulation:2})}}return t})();function wre(t,i){if(t&1){let e=W();c(0,"div",3)(1,"div",12),f(2),d(),c(3,"div",13),f(4," \xA0"),c(5,"a",14),w("click",function(){let o=I(e).$index,r=_();return k(r.removeElement(o))}),c(6,"i",15),f(7,"close"),d()()()()}if(t&2){let e=i.$implicit;m(2),H(" ",e," ")}}var Lj=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.data=r,this.values=[],this.input="",this.done=new qn,this.data.values.forEach(a=>this.values.push(a))}static launch(e,n,o){let r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(e=>{this.values.push(e)}),this.input=""}checkKey(e){e.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(e){this.values.splice(e,1)}save(){this.data.values.length=0,this.values.forEach(e=>this.data.values.push(e)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(D(Y),D(ce),D(ct),D(bt))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-editlist-editor"]],standalone:!1,decls:24,vars:2,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],[1,"elem"],[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,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(c(0,"h4",0),f(1),d(),c(2,"mat-dialog-content")(3,"div",1)(4,"div",2),fe(5,wre,8,1,"div",3,De),d(),c(7,"div",4)(8,"button",5),w("click",function(){return o.removeAll()}),c(9,"uds-translate"),f(10,"Remove all"),d()()(),c(11,"div",6)(12,"mat-form-field",7)(13,"input",8),w("keyup",function(a){return o.checkKey(a)}),te("ngModelChange",function(a){return ne(o.input,a)||(o.input=a),a}),d(),c(14,"button",9),w("click",function(){return o.addElements()}),c(15,"i",10),f(16,"add"),d()()()()()(),c(17,"mat-dialog-actions")(18,"button",5),w("click",function(){return o.cancel()}),c(19,"uds-translate"),f(20,"Cancel"),d()(),c(21,"button",11),w("click",function(){return o.save()}),c(22,"uds-translate"),f(23,"Ok"),d()()()),n&2&&(m(),H(" ",o.data.title,` +`),m(4),ge(o.values),m(8),ee("ngModel",o.input))},dependencies:[Ht,$e,Xe,Fe,yi,wt,Dt,xt,ze,Ar,Yt,Ee],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}"]})}}return t})();var Vj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return B(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield Lj.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 e=this.field.value.filter((n,o,r)=>o<5).join(", ");return this.field.value.length>5&&(e+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),e}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),w("click",function(){return o.launch()}),c(1,"mat-label"),f(2),d(),O(3,"input",1),d()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ze,st,Yt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var Bj=(()=>{class t{constructor(){this.field={},this.changed=new V}ngOnInit(){DF(this.field.value)?this.field.value=vb(this.field.gui.default):this.field.value=vb(this.field.value)}getValue(){return vb(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),w("change",function(){return o.changed.emit(o)}),f(2),d()()),n&2&&(m(),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),H(" ",o.field.gui.label," "))},dependencies:[$e,Qi,Xe,il],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function xre(t,i){if(t&1&&O(0,"div",3),t&2){let e=_().$implicit,n=_();b("innerHTML",n.asIcon(e),Bn)}}function Dre(t,i){if(t&1&&(c(0,"div"),A(1,xre,1,1,"div",3),d()),t&2){let e=i.$implicit,n=_();m(),R(e.id===n.field.value?1:-1)}}function Sre(t,i){if(t&1&&(c(0,"mat-option",2),O(1,"div",3),d()),t&2){let e=i.$implicit,n=_();b("value",e.id),m(),b("innerHTML",n.asIcon(e),Bn)}}var jj=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new V,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let e=this.field.gui.choices||[];this.field.value===""&&e.length>0&&(this.field.value=e[0].id)}asIcon(e){return this.api.safeString(this.api.gui.icon_from_image(e.img)+e.text)}filteredValues(){let e=this.field.gui.choices||[];if(!this.filter)return e;let n=this.filter.toLocaleLowerCase();return e.filter(o=>o.text.toLocaleLowerCase().includes(n))}static{this.\u0275fac=function(n){return new(n||t)(D(Y))}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:10,vars:6,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[3,"changed","options"],[3,"value"],[3,"innerHTML"]],template:function(n,o){n&1&&(c(0,"mat-form-field")(1,"mat-label"),f(2),d(),c(3,"mat-select",0),w("valueChange",function(){return o.changed.emit(o)}),te("ngModelChange",function(a){return ne(o.field.value,a)||(o.field.value=a),a}),c(4,"mat-select-trigger"),fe(5,Dre,2,1,"div",null,De),d(),c(7,"uds-cond-select-search",1),w("changed",function(a){return o.filter=a}),d(),fe(8,Sre,2,2,"mat-option",2,De),d()()),n&2&&(m(2),H(" ",o.field.gui.label," "),m(),b("placeholder",o.field.gui.tooltip),ee("ngModel",o.field.value),b("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.gui.choices),m(2),b("options",o.field.gui.choices),m(),ge(o.filteredValues()))},dependencies:[$e,Qi,Xe,ze,st,en,V0,Mt,pi],encapsulation:2})}}return t})();var zj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=Yl("%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=Yl("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=Yl("%Y-12-31"));let e=this.field.value.split("-");e.length===3&&(this.value=new Date(+e[0],+e[1]-1,+e[2]))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,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 r=W();c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"input",2),te("ngModelChange",function(s){return I(r),ne(o.date,s)||(o.date=s),k(s)}),d(),O(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Pt(6);m(2),H(" ",o.field.gui.label," "),m(),b("matDatepicker",r),ee("ngModel",o.date),b("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),b("for",r)}},dependencies:[Ht,$e,Xe,ze,st,Ar,Yt,yy,Lm,yf],encapsulation:2})}}return t})();function Ere(t,i){if(t&1){let e=W();c(0,"mat-chip-row",5),w("removed",function(){let o=I(e).$implicit,r=_();return k(r.remove(o))}),f(1),c(2,"i",6),f(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=_();b("removable",n.field.gui.readonly!==!0),m(),H(" ",e," ")}}var Uj=(()=>{class t{constructor(){this.field={},this.changed=new V,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((e,n,o)=>{e.trim()===""&&o.splice(n,1)})}add(e){let n=e.input,o=e.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(e){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(e);n>=0&&this.field.value.splice(n,1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=T({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,decls:8,vars:6,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1&&(c(0,"mat-form-field",1)(1,"mat-label"),f(2),d(),c(3,"mat-chip-grid",2,0),w("change",function(){return o.changed.emit(o)}),fe(5,Ere,4,2,"mat-chip-row",3,De),c(7,"input",4),w("matChipInputTokenEnd",function(a){return o.add(a)}),d()()()),n&2){let r=Pt(4);m(2),H(" ",o.field.gui.label," "),m(),b("disabled",o.field.gui.readonly===!0),m(2),ge(o.field.value),m(2),b("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ze,st,pj,hj,mj,aT],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var Hj=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ue({type:t,bootstrap:[Mj]})}static{this.\u0275inj=de({providers:[Y,ce,{provide:mf,useClass:Tj},fS(gS())],imports:[sh,rB,oj,yj]})}}return t})();ID(u0,[Yo,Ij,Aj,Rj,Oj,Pj,Nj,Fj,Vj,Bj,jj,zj,Uj,kj],[]);h0.production&&void 0;sS().bootstrapModule(Hj,{applicationProviders:[IO()]}).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index a52be2d17..4ffc04077 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -1,5 +1,6 @@ // "Fake" javascript file for translations // Typescript +gettext("Item changed by another administrator"); gettext("Error saving element"); gettext("Error handling your request"); gettext("Search"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 5f4fd37b8..23c1898a1 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - + From 1ab48e7a928ef30a8b9cd4e0201d9e7372d66b10 Mon Sep 17 00:00:00 2001 From: aschumann-virtualcable Date: Mon, 27 Jul 2026 11:03:48 +0200 Subject: [PATCH 14/14] fix(admin): update script integrity and timestamp in index.html --- src/uds/templates/uds/admin/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 23c1898a1..9a40cdd26 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -114,6 +114,6 @@ - +